Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.26 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.26 KB

wps-js

Standalone JavaScript WPS client.

Development

Tomcat configuration

A simple configuration of a Tomcat servlet container to develop wps-js is to point the context of the webapp to the Maven target directory.

<Context 
  docBase="/your/path/to/wps-js/target/wps-js-1.0.0-SNAPSHOT/" 
/>

You can then update the deployed copy by running mvn package -DskiptTests=true.

Proxy

wps-js needs a proxy server to connect to WPS server instances. A simple one is jproxy, see https://github.com/matthesrieke/jprox. wps-js will by default look for a proxy at /wps_proxy/wps_proxy?.

jprox configuration

Make sure you use the following parameters in jprox's web.xml and deploy it as wps_proxy.war to make it work with the default wps-js configuration.

[...]
<param-name>parameterKey</param-name>
<param-value>url</param-value>
[...]
<servlet-mapping>
	<servlet-name>JProxViaParameterServlet</servlet-name>
	<url-pattern>/</url-pattern>
[...]

License

wps-js is published under Apache Software License, Version 2.0

The used libraries are: