Hi Paulo, A JTS Polygon doesn't know anything about CRS - it just assumes you are working in a Cartesian coordinate system.
One approach... 1. Construct your polygon with decimal degrees, as in your example. 2. Use a class implementing the JTS CoordinateFilter interface to transform polygon coords to UTM 3. Get area, perimeter etc. I think I already sent you some example code to do this (?) Slightly different approach... 1. Load your polygon vertex coords in decimal degrees into a Coordinate array 2. Transform coords to UTM 3. Construct new Polygon from the transform coords 4. Get area, perimeter etc. If you want to store a CRS with a polygon you should look at SimpleFeatureType and SimpleFeature Hope this helps Michael 2008/11/25 Paulo Santos <[EMAIL PROTECTED]>: > Hi, > > > As to get the CRS of a Polygon. > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
