Hi Thiago,
> Sorry for bother you again.
>
> This is correcte implementation:
> private static CoordinateReferenceSystem getDefaultCRS() {
> return DefaultGeographicCRS.WGS84;
> }
No. That method (in the class we talked about off-list) should return
a CRS that you want to be the default for area calculations. You
convert the WGS84 coordinates into this projection. E.g. in the
previous example, with the AreaFromLatLons class, we used the South
America Albers Equal Area Conic projection.
> More question, the result is in meters ?
>
Yes, in the example code the result is in square metres. The CRS you
choose for calculations defines the distance unit. If you look at the
WKT definition for the CRS used in the example you will see this:
// UNIT["Meter",1],
Hope that helps, but if you have more questions or code snippets that
you want to check please feel free to post them to the list - that's
what it is here for :)
Michael
------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT
space for its ease of implementation, lower cost, and increased
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users