[EMAIL PROTECTED] a écrit :
> CoordinateReferenceSystem targetCRS = CRS.decode("EPSG:4326");

Watchout for axis order. The official definition of EPSG:4326 is (latitude,
longitude) and by default GeoTools comply with this definition. You can check 
with:

System.out.println(targetCRS);

and look at the order in which the AXIS[...] elements appear in the printed 
text.

If you need to force (longitude, latitude) axis order despite what the EPSG
definition said, pass a boolean "true" argument to the method:

CoordinateReferenceSystem targetCRS = CRS.decode("EPSG:4326", true);

        Martin

-------------------------------------------------------------------------
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

Reply via email to