mapfish / mapfish-print

A component of MapFish for printing templated cartographic maps. This module is the Java serverside module.
http://mapfish.github.io/mapfish-print-doc/
BSD 2-Clause "Simplified" License
183 stars 416 forks source link

Offer a possibility to print ESRI layers at screen resolution #273

Open sbrunner opened 9 years ago

sbrunner commented 9 years ago

like 92 DPI for a print at e-g. 300 DPI.

see also: https://github.com/Geoportail-Luxembourg/geoportailv3/issues/597

elemoine commented 9 years ago

Wouldn't this require that ESRI WMS have support for a DPI vendor param (like MapServer's MAP_RESOLUTION param)?

tsauerwein commented 9 years ago

If ArcGIS Server does not support a dpi option, i think the idea is to request the image with a smaller size as for the screen resolution. For example usually if your map size is 300x300px and you print in 144 dpi, you would request an image with 600x600px. For ESRI layers you would instead request an image in 300x300px.

elemoine commented 9 years ago

I think I understand. But you probably mean 180 dpi rather than 144 dpi as the default WMS DPI is 90 (rather than 72).

elemoine commented 9 years ago

I think I understand. But you probably mean 180 dpi rather than 144 dpi as the default WMS DPI is 90 (rather than 72).

@tsauerwein and I discussed this, and we might have found a problem that is not directly related to this GitHub isuse. See https://github.com/mapfish/mapfish-print/issues/278.

sbrunner commented 8 years ago

The problem is that ESRI don't have any (as I know) vendor param to set the DPI ... And the used DPI is 92.

Than if we have a map size 100x100px (@72 DPI) and we do a print @300 DPI we get an image on ESRI server 128x128px (100/72*92) (@92 DPI) an 300x300px on mapserver (@300 DPI).