[OpenLayers-Users] UTM scales mismatch with
Max/MinScaleDenomination
Christopher Schmidt
crschmidt at metacarta.com
Thu Nov 29 10:48:09 EST 2007
On Thu, Nov 29, 2007 at 04:35:13PM +0100, David E. Reksten wrote:
> Hi,
>
> we're using GeoServer/TileCache/OpenLayers serving several datasets
> stepwise by scale. We've set the sld (using Min/Maxscaledenominator)
> to display a particular dataset from 1:1-50000 (meters), but it
> doesn't display before around 1:39000.
>
> Our dataset is stored as UTM32, and at first I thought the above to be
> related to this bug: http://trac.openlayers.org/ticket/958
> But the error is still there after applying the patch manually.
>
> We used OpenLayers.Util.getResolutionFromScale(50000, 'm') to get the
> contant used in tilecache.cfg and in OpenLayers.
/**
* Constant: DOTS_PER_INCH
* {Integer} 72 (A sensible default)
*/
OpenLayers.DOTS_PER_INCH = 72;
Change that.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list