[OpenLayers-Users] UTM scales mismatch with
Max/MinScaleDenomination
David E. Reksten
der at dod.no
Thu Nov 29 11:01:47 EST 2007
On 29/11/2007, Christopher Schmidt <crschmidt at metacarta.com> wrote:
> 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.
That was it! Thanks a lot :-)
Regards,
David
More information about the Users
mailing list