Andrea,

I thought you were talking about the ClipGeometry and not the ClipProcess.

Unfortunately, the ClipProcess is incompatible with
com.vividsolutions.jts.geom.Geometry geometry type as I get :

"Don't know how to handle geometries of type
com.vividsolutions.jts.geom.Geometry".

However the GeometryClipper works with com.vividsolutions.jts.geom.Geometry.

The ClipProcess code :

if(LineString.class.isAssignableFrom(binding)) {
   target = MultiLineString.class;
} 
else if(Polygon.class.isAssignableFrom(binding)) {
   target = MultiPolygon.class;
} else {
   throw new RuntimeException("Don't know how to handle geometries of type "    
                                               
+ binding.getCanonicalName());

I guess I could cast Geometry to Polygon and send this collection to the
ClipperProcess or modify ClipProcess to have it handle Geometry.

Thanks for your help.




--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


_______________________________________________
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