Upgrade to MapServer 5.0.2 from 4.8.1: extent/scale calculation changes?
Doyon, Jean-Francois
jdoyon at NRCAN.GC.CA
Mon Feb 4 07:12:23 PST 2008
Hello,
Although all the cartographic testing has been done, I just tested for the first time upgrading 4.8.1 to 5.0.2 with my JavaScript mapping UI, and have discovered something troubling:
For a given map file, the final extent and scale calculations are different between the two versions!
For the same mapfile "105.map" with:
EXTENT -2750564.75 -936638.5 3583872.5 4673125
With 4.8.1:
http://atlas.nrcan.gc.ca/cgi-bin/mapserv?map=/home/atlas/mapdata/english/105.map&map_web_template=/home/atlas/mapdata/to_zope_new.html&mapsize=428+380&map_scalebar_imagecolor=255+255+255
-2750564.750000 -943773.286215 3583872.500000 4680259.786215
41953025.267029
With 5.0.2:
http://dev.atlas.gc.ca/cgi-bin/mapserv502atlas?map=/home/atlas/mapdata/english/105.map&map.web=TEMPLATE+/home/atlas/mapdata/to_zope_new.html&mapsize=428+380&map.scalebar=COLOR+255+255+255
-2750564.750000 -942941.431206 3583872.500000 4679427.931206
42051275.911682
That scale change is big enough to break all our min/max scale ranges and so on :( (on hundreds of mapfiles)
I've looked through HISTORY.TXT and the Migration Guide but am not seeing anything about this (All I saw was a change in scale calculation for PHP?)
Help?
Jean-François Doyon
Data Dissemination Division | Division de la diffusion des données
Data Management and Dissemination Branch | Direction de la gestion et de la diffusion des données
Earth Sciences Sector | Secteur des sciences de la Terre
Natural Resources Canada | Ressources naturelles Canada
Ottawa, Canada K1A 0E9
jdoyon at nrcan-rncan.gc.ca
Telephone | Téléphone 613-992-4902
Facsimile | Télécopieur 613-947-2410
Teletypewriter | Téléimprimeur 613-996-4397
Government of Canada | Gouvernement du Canada
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080204/25f3f5d0/attachment.htm>
More information about the MapServer-users
mailing list