extension differences

Frank Warmerdam warmerdam at POBOX.COM
Tue Nov 9 06:55:39 PST 2004


temiz wrote:
> hello
>
> I am using php-mapscript.
>
> in my mapfile: EXTENT  419630  4510820  516250 4617510
> in my php file initial map extends 414562.225 4510820 521317.775
> 4617510. I expect all of them
> are same as the values in the map file. But x values  are different.
> Where might these differences
> come from ;

Temiz,

You weren't too clear on how you got the initial map extents in your map file.
But I will point out that internally mapserver normally adjusts your extents
so as to maintain square pixels.  So if your SIZE parameter does not have the
same aspect ratio as your EXTENT parameter then the extent will be grown in
one dimension or the other in order to have the same aspect ratio.  There
are some ways of overcoming this if it is important for you to have
non-square aspect ratios.

Best regards,

--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the MapServer-users mailing list