Miles a écrit :
I am working at an application that requires to clip features read from a shape file. When I looked at the Clipper, it requires an instance of CoordinateSystem. Can this coordinatesystem object be null? Attached are my codes. The commented part are what I want to do with the read feature from the file.

Do you means org.geotools.renderer.geom.Clipper? It was designed specifically for rendering purpose, but I guess it can be of some help outside rendering too... Note that you can perform clipping in a more general way (but greater computation cost) using java.awt.geom.Area. Maybe JTS has some tools for that too.

Back on Clipper. I think that the CoordinateSystem is mandatory, but if you don't know it, maybe you can provides a default cartesian one. This class expect a CoordinateSystem from the legacy CTS framework (Clipper has not yet been ported to the new CRS framework). You may one of the org.geotools.cs.LocalCoordinateSystem pre-defined constants.

        Martin.


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to