I am trying to figure out what is the conversion formula between scale and resolution used by GeoServer, specifically when creating a new gridset for Tile Caching. One would expect that the conversion formula for a given resolution expressed in m/px would be:
ScaleDenominator = Resolution * (PPI / 0.0254)
However, I have discovered that the following formula gives exactly the correlation between scale and resolution found in GeoServer:
ScaleDenominator = Resolution * (90 / 0.0252)
The value of 90 for PPI is understandable because you can find in GeoServer's documentation (here) that
The OGC standard output resolution is 90 DPI.
However, I can't understand the value 0.0252. From my point of view there are 2 possibilities:
- Either there's a bug in GeoServer because 0.0252 is used for conversion between meters and inches, instead of 0.0254.
- Or GeoServer is correctly using a conversion ratio of 0.0254 between meters and inches, but it is using a PPI of 90.71428571428571, which doesn't make much sense to me either.
Can someone help with this? I am using GeoServer 2.13.1, and similar results have consistently been obtained when using different coordinate systems.