Hi all,

I am running GeoServer 2.17.1 on Windows 10 with OpenJDK 11 and have started 
looking at WPS.

Happily I found an old example for my use case in 
http://osgeo-org.1560.x6.nabble.com/Chaining-WFS-and-WPS-td5378069.html and 
have been able to prepare similar using the query builder and a WKT polygon.

I can query a geopackage vector layer and receive application/json 
application/zip output fine.

If I ask for .csv output I get the following error

<ows:ExceptionReport version="1.1.0" 
xsi:schemaLocation="http://www.opengis.net/ows/1.1 
http://myserver:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd";>
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>
java.lang.NoClassDefFoundError: org/geotools/data/csv/CSVDataStoreFactory 
org/geotools/data/csv/CSVDataStoreFactory 
org.geotools.data.csv.CSVDataStoreFactory
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

I did download Geotools 23.1 but I am unsure if  suitable .jar file exists to 
include in the GeoServer lib folder?

Similarly, if I try and query a SQL server vector layer and ask for 
application/json output (note this output working in above example) this yields

<wps:ExecuteResponse xml:lang="en" service="WPS" 
serviceInstance="http://myserver:8080/geoserver/ows?"; version="1.0.0">
<wps:Process wps:processVersion="1.0.0">
<ows:Identifier>gs:Clip</ows:Identifier>
<ows:Title>Clip</ows:Title>
<ows:Abstract>Clips (crops) features to a given geometry</ows:Abstract>
</wps:Process>
<wps:Status creationTime="2020-09-16T05:11:22.665Z">
<wps:ProcessFailed>
<ows:ExceptionReport version="1.1.0">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>
Process failed during execution java.lang.RuntimeException: Don&apos;t know how 
to handle geometries of type org.locationtech.jts.geom.Geometry Don&apos;t know 
how to handle geometries of type org.locationtech.jts.geom.Geometry
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
</wps:ProcessFailed>
</wps:Status>
</wps:ExecuteResponse>

Any advice is very welcome.

Thanks.

Russell.
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to