[mapserver-users] [mapsize] abnormal behavior?
Doyon, Jean-Francois
Jean-Francois.Doyon at ccrs.nrcan.gc.ca
Sun Dec 9 15:49:28 PST 2001
Richard,
Oh it's not even set, don't have to set it, imgxy isn't used for resizing
the map. It should only use the extent requested or the default one, and
output the image in the requested size ... Even if I did set imgxy I would
get the same result since the default IS the middle of the map.
I've done this before many times without trouble, but on older versions of
MapServer ...
It seems to me it's drawing the image as a subset of the default settings.
Imagine the default is 400 360 ... draw that at full extent, now go to the
middle of the map and draw a gif that's 100 89 ... and you'll get what I'm
getting, the resulting image looks as if I'd just zoomed in ... it's the
right size mind you! :P Just not showing the proper default extent ... I
even tried specifying it through the URL, and it STILL looked wrong!
Thanks,
J.F.
-----Original Message-----
From: Richard Greenwood [mailto:Rich at GreenwoodMap.com]
Sent: Sunday, December 09, 2001 6:41 PM
To: Doyon, Jean-Francois
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [mapserver-users] [mapsize] abnormal behavior?
You might want to check your imgxy and be sure that it is half of your
[mapwidth] and [mapheight]
Rich
At 03:49 PM 12/9/2001 -0500, you wrote:
>Hello,
>
>I just noticed something weird ... When I specify a a mapsize via the URL,
>mapserver seems to change the extent!
>
>Here's what's happening:
>
>I have a mapfile that defines a MAPSIZE 375 343 ... and all is well ... The
>hwole country (Canada in my case) is displayed in a gif that's 375x343 ...
>
>No when I add ?mapsize=100+89 to the URL, instead of seeing a small map at
>the same extent as the previous one (the whole country), I just see a part
>of the country, as if I'm zoomed in or something ... It looks like it
>centered on the middle of the map and drew a 100x89 gif from that, using
the
>original mapsize ... am I making sense here?
>
>Has there been a change in the behavior of this parameter lately? Is this a
>bug?
>
>Help!
>
>Thanks,
>
>Jean-François Doyon
>Internet Service Development and Systems Support
>GeoAccess Division
>Canadian Center for Remote Sensing
>Natural Resources Canada
>http://atlas.gc.ca
>Phone: (613) 992-4902
>Fax: (613) 947-2410
Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich at GreenwoodMap.com
(307) 733-0203
http://www.GreenwoodMap.com
More information about the MapServer-users
mailing list