[Qgis-user] WMS Provider and the DPI parameter
Jürgen E. Fischer
jef at norbit.de
Mon Oct 1 15:13:07 PDT 2012
Hi Andrea,
On Mon, 01. Oct 2012 at 23:16:05 +0200, Andrea Peri wrote:
> It is a not standard parameter, but main question I have is understand why
> there is the need to use a "DPI" parameter.
> Infact the standard wms request contain a bbox and a map pixel dimension.
> Perhaps I miss something, but AFAIK knowing the BBOX and the Pixel Size
> Map I guess is possible to calculate the DPI value.
> So put on a request BBOX, Pixel-SizeMap and DPI seem redundant to me.
Not really. DPI relates to the output size, not the bounding box. Unless you
know how large the pixels will be renderer, you don't know the actual DPI.
WMS assumes a fixed pixel size, which usally doesn't match the actual screen
resolution and certainly not a printer's resolution.
Therefore the result of scale calculation on the server side yield different
results from the client. And I think that's what the DPI parameter is meant to
fix. BTW geoserver also has a DPI parameter.
Jürgen
--
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
committ(ed|ing) to Quantum GIS IRC: jef on FreeNode
--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502
More information about the Qgis-user
mailing list