I did not find any configuration for setting the units for the scale line. 

I went into the code and found that the scaleDenominator is wrong, by which
I mean it is about 3.28 times bigger. I kept tracing the problem, and found
out that the scaleDenominator comes out from this calculation:
RendererUtilities.calculateOGCScale(getRenderingArea(),getRequest().getWidth(),hints).
The calculation seems to be simple and I am still trying to figure out what
is the cause of this problem. Also, when using the Layer Preview in
GeoServer admin page, the map ratio shown on the lower left corner is wrong
too. By checking the source code, I found that the map unit is set to be
"m", which should be "ft". But the projection "EPSG:2927" is picked up
correctly. So, by default, there is something wrong with GeoServer code when
working with StatePlane projections (specifically 2927 here): the map unit
is not being read properly. 

Thanks!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Scalebar-and-scale-ratio-is-wrong-when-using-stateplane-projection-tp5155838p5156002.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to