Anaxa Gore ha scritto:
> Thanks Andrea,
>
> But how can you explain that I dont get the correct coordinates , the
> correct zoom and pan areas ? etc.
I have no idea...
> And why does it works with DefaultGeographicCRS.WGS84 and not
> CRS.decode("EPSG:4326") ?
Axis order issue? CRS.decode("EPSG:4326") by default returns
lat/lon ordered crs, which is not useful for the vast majority
of data out there, which is expressed in lon/lat instead.
There are ways to force the whole geotools to use lon/lat
order, in GeoServer at startup we do use:
System.setProperty("org.geotools.referencing.forceXY", "true");
The following should be working as well:
Hints.putSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER,
Boolean.TRUE);
but in practice, in the case of GeoServer at least, it was not
working properly, whilst the system property setting does.
Cheers
Andrea
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel