52n-client gml as input

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

52n-client gml as input

Edi Karadumi
Hi,

I'm trying to call an execute operation to

http://sedac.ciesin.columbia.edu/arcgis/services/sedac/geoprocessing/GPServer/WPSServer

which gets a gml polygon as input. According to the wps client tutorial I should use

IData data = new GTVectorDataBinding((FeatureCollection) inputValue);
executeBuilder.addComplexData(inputName, data, "http://schemas.opengis.net/gml/3.1.1/base/gml.xsd",  null, "text/xml");

to handle complex data. GTVectorDataBinding is not included in the release. Is there any other method to handle gml data?



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 52n-client gml as input

BenjaminPross
Hello Edi,

you can add the following dependency to your project:

  <dependency>
  <groupId>org.n52.wps</groupId>
  <artifactId>52n-wps-algorithm-geotools</artifactId>
  <version>3.5.0</version>
  </dependency>

Also, you need a wps_config_geotools.xml [1] and call the following in your code:

WPSConfig.forceInitialization("PATH_TO/wps_config_geotools.xml");

HTH

Benjamin

[1] https://raw.githubusercontent.com/52North/WPS/WPS-3.5.0/52n-wps-webapp/src/main/webapp/config/wps_config_geotools.xml
Loading...