Hi,
I have created a GeoTools Process that I would like to call through GeoServer using WPS. The gs-wps-core jar is included and my own jar. When I try to find the process in Demo → “WPS request builder”, it doesn’t show up. And looking in the log I find this message:
CONFIG [geoserver.wps] - Blacklisting process niva:LineStringPointsExtractor as the output points of type class [Lorg.locationtech.jts.geom.Point; cannot be handled
The output of the function is an array of Point. Doesn’t gs-wps-core support arrays, or am I missing some jar’s?
Best regards,
Roar Brænden
Hi Roar,
what you see means there is no ProcessPareameterIO class able to manage Point[].
I find that normal, if you want to manage multiple disconnected points JTS offers MultiPoint instead, I would expect that to be supported with encodings in WKT, GeoJSON geometry and GML geometry.
Cheers
Andrea
Hi Andrea,
Good point! Sure I can create a MultiPoint of my collection, but wouldn’t it be nice to support the generic collection types like arrays and java.util.List out of the box. I found it a little strange that there wasn’t any support.
Best regards,
Roar Brænden
Hi Roar,
given the formats that are supported, it would be odd to have support for Point[] indeed… check them out, GML, GeoJSON and WKT are all based on the OGC simple features specification, and have no notion of “generic” arrays or lists of geometries. The closest thing are the Multi types and GeometryCollection, but they are quite specific.
If I had to respect the semantic of Point[], I would implement a dedicated JSON format with an array in the root, but I would not know how to represent it in GML/WKT, other than forcing a conversion to MultiPoint in order to encode it.
Cheers
Andrea
Hi,
You’re right. It would be most suitable for json output.
Thanks for the feedback!
Best regards,
Roar Brænden