Title: RE: TR: [Geotools-gt2-users] Problem with RenderedMapScale

My CRS is
LOCAL_CS["Promiscuous", LOCAL_DATUM["Unknow", 32767], UNIT["metre",1.0], AXIS["x",EAST], AXIS["y",NORTH]]

How to initialise de CRS associated with my mapPane ??

-----Message d'origine-----
De : Martin Desruisseaux [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 15 septembre 2005 12:14
À : Virginie BERRE
Cc : [email protected]
Objet : Re: TR: [Geotools-gt2-users] Problem with RenderedMapScale

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.

Reply via email to