FW: [UMN_MAPSERVER-USERS] Upgrade to MapServer 5.0.2 from 4.8.1: extent/scale calculation changes?

Bart van den Eijnden bartvde at GMAIL.COM
Wed Feb 6 14:19:07 EST 2008


Hi Jean-Francois,

indeed the scale calculation has changed in mapscale.c, see also:

http://trac.osgeo.org/mapserver/ticket/2300

I fear there is not much to do about it ... but it should be added to the
migration guide IMHO.

Best regards,
Bart

On Feb 5, 2008 10:56 PM, Doyon, Jean-Francois <jdoyon at nrcan.gc.ca> wrote:

>  G'day y'all ...
>
> Posted this to the user's list but had no luck ... anyone?
>
> We might have to delay upgrade to 5 and AGG by months if there are indeed
> undocumented changes to the way scale is calculated :(
>
> Thanks,
> J.F.
>
>  ------------------------------
> *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On
> Behalf Of *Doyon, Jean-Francois
> *Sent:* February 4, 2008 10:12
> *To:* MAPSERVER-USERS at LISTS.UMN.EDU
> *Subject:* [UMN_MAPSERVER-USERS] Upgrade to MapServer 5.0.2 from 4.8.1:
> extent/scale calculation changes?
>
>  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
> *<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
> *<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-dev/attachments/20080206/85d6c7bb/attachment.html


More information about the mapserver-dev mailing list