Hi Janusz, Ah, the old axis order trap :-)
EPSG 4326 (which can also be accessed as DefaultGeographicCRS.WGS84 in GeoTools) has its ordinates in longitude,latitude order http://javadoc.geotools.fr/2.6/org/geotools/referencing/crs/DefaultGeographicCRS.html#WGS84 The CRS.decode(String code, boolean longitudeFirst) method is your friend here. So your code could changed to: CoordinateReferenceSystem targetCrs = DefaultGeographicCRS.WGS84; CoordinateReferenceSystem sourceCrs = CRS.decode("EPSG:32647", true); For more information on this, have a look at these pages in the User Guide: http://docs.codehaus.org/display/GEOTDOC/The+axis+order+issue http://docs.codehaus.org/display/GEOTDOC/04+What+Axis+is+X Hope this helps Michael ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
