Virginie BERRE a écrit :
I've done what you told me but it doesn't change the scale... it's
always Promiscuous...
The name (a badly choosen name from the legacy Geotools implementation;
"Promiscuous" has been renamed "Generic" in 2.2) suggest that the
problem is not with MapScale, but with the CRS associated to the
MapPane. Make sure that yours data has the appropriate CRS. Checks with
MapPane.getCoordinateSystem(), and RenderedLayer.getCoordinateSystem().
The CRS should probably be something like GEOGCS["WGS84", etc...].
Martin.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users