Debasish Sahu a écrit :
Is there a sample code to transform an Envelope to EPSG:4326 coordinate
system ?
ISO 19115 (metadata) defines "GeographicBoundingBox", which may be seen
as a kind of envelope with the CRS fixed to WGS 84 (EPSG:4326). Geotools
provides an implementation with convenience transformation method:
http://javadoc.geotools.fr/snapshot/org/geotools/metadata/iso/extent/GeographicBoundingBoxImpl.html
This implementation has a GeographicBoundingBoxImpl(Envelope)
constructor, which expect an arbitrary ISO 19107 envelope and transform
it to WGS 84 as needed.
Note: if you need to work with JTS envelope instead of ISO 19107 ones,
then you may consider ReferencedEnvelope, which is both a JTS envelope
and an ISO 19107 implementation.
http://javadoc.geotools.fr/snapshot/org/geotools/geometry/jts/ReferencedEnvelope.html
Martin.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel