From: Martin D. <mar...@no...> - 2006-01-20 09:38:49
|
Debasish Sahu a =E9crit : > Is there a sample code to transform an Envelope to EPSG:4326 coordinat= e=20 > system ? ISO 19115 (metadata) defines "GeographicBoundingBox", which may be seen=20 as a kind of envelope with the CRS fixed to WGS 84 (EPSG:4326). Geotools=20 provides an implementation with convenience transformation method: http://javadoc.geotools.fr/snapshot/org/geotools/metadata/iso/extent/Geog= raphicBoundingBoxImpl.html This implementation has a GeographicBoundingBoxImpl(Envelope)=20 constructor, which expect an arbitrary ISO 19107 envelope and transform=20 it to WGS 84 as needed. Note: if you need to work with JTS envelope instead of ISO 19107 ones,=20 then you may consider ReferencedEnvelope, which is both a JTS envelope=20 and an ISO 19107 implementation. http://javadoc.geotools.fr/snapshot/org/geotools/geometry/jts/ReferencedE= nvelope.html Martin. |