[mapserver-dev] Questions regarding to the extent/scale calculations in MapServer

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Wed Nov 27 07:19:48 PST 2013


Note that I started an RFC back in 2007 to make the switch. I don’t recall why it wasn’t pursued…

  http://mapserver.org/development/rfc/ms-rfc-25.html

Steve

From: mapserver-dev-bounces at lists.osgeo.org [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres
Sent: Wednesday, November 27, 2013 8:54 AM
To: mapserver-dev at lists.osgeo.org
Subject: [mapserver-dev] Questions regarding to the extent/scale calculations in MapServer

Hi All,

We've already noticed MapServer use a "center of pixel" representation when doing the extent/scale calculations in the code, which may cause quite some confusion for the users (mostly from the mapscript side) regarding to the behaviour.

The most typical issue I've encountered is the complain about "why mapserver modifies my accurate extent specified in setExtent and why MapServer calculates a different scale I can calculate?"

The reason of why is in fact that we consider the area coverage of the image is larger than the area coverage of the map extent (half of the pixel size in each directions). But the users (and mostly everyone in the world except MapServer) considers that the area coverage of the image is the same as the area coverage of the map extent.

Can someone explain why we do things this way and do we have the chance to get rid of it?

We could also eliminate the unnecessary transformations done in the WMS/WCS interface where the extent of the BBOX is considered to be in - let's say - edge of pixel representation and not in center of pixel representation.

Best regards,

Tamas


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20131127/dd79b633/attachment-0001.html>


More information about the mapserver-dev mailing list