[Tilecache] How to calculate the correct Resolution?

Christopher Schmidt crschmidt at metacarta.com
Thu Apr 10 07:00:13 EDT 2008


On Thu, Apr 10, 2008 at 01:30:34AM -0700, Christian Schmidt wrote:
> 
> Hi,
> 
> Could anyone explain to me how to calculate the correct Resolution to a
> given Scale?
> I need the map in Scale 1:5000 meter.
> 
> So i try to calculate :
> 
> screenResolution = 100 dpi --> 39,37007874015748031496062992126 dots per cm
>  screenResolution*100 --> 3937,007874015748031496062992126 dots per meter

Your WMS server has no idea what your screen resolution is. It makes a
guess. This guess may be led by an assumption (MapServer: 72), a compile
time option (MapServer: 96), a spec (SLD, GeoServer: 90.28 somethingor
other).

You need to find out what resolution your WMS server is using if you
actually care about matching 'exactly'. 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list