FW: [Mapserver-users] Max image size

Swaminathan, Gayathri gayathri at ou.edu
Thu Oct 9 10:04:10 EDT 2003


Hope the reply below by Frank helps..
Thanks,
Gayathri



-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com] 
Sent: Tuesday, September 23, 2003 11:50 AM
To: Tyler Mitchell; mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Max image size


Tyler Mitchell wrote:
> 
> 
> 
> 
> Thanks Ed, for the benefit of me and the list, can you reference a 
> line number or string to change.  I've been hunting but am finding 
> that 1024 occurs quite a few times throughout the mapserver code ;)

Tyler,

I believe MS_MAXIMGSIZE is what you want to change.

It is my humble opionion that only remote client requests (via URL) should
be checked against this, not image sizes read from .map files or those
originating from mapscript requests.  If appropriate folks agree, I could
look into making this change.  Ideally we would also have a MAXIMGSIZE
directive that could be included in .map files so this could be set without
recompiling mapserver - which is very hard for some folks to do.

PS. MS_MAXIMGSIZE is 2048 in CVS now as far as I can tell, which I believe
allows up to a 2048x2048 image to be requested.

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

>Hello,

>Anyone know the upper limit to output map size in pixels from 
>Mapserver?  Is there one?  I'm using v4.0.

>Thanks!

>Dan Barron
>dbarron at ddive.com



More information about the mapserver-users mailing list