[mapserver-users] MapServer Resolution - how to set the parameter dynamically

Alan Boudreault aboudreault at mapgears.com
Tue Oct 5 06:08:45 PDT 2010


You can change the resolution in the url with that parameter:

&map_resolution=x

regards,
Alan

On October 5, 2010 03:41:07 am Astrid Emde wrote:
> Hello list,
> 
> I tested the new Parameter
> 
> RESOLUTION
> DEFRESOLUTION
> 
> With these Paramter I can produce a nice map for print output [1].
> 
> It would be nice to set the Paramter RESOLUTION parameter directly in the
> MapRequest like &RESOLUTION=288. If not set here the default from the
> Mapfile could be used.
> What do you think about this idea? Do you have discussed this already?
> 
> Alternatively I tried to set a variable wit MapServer variable
> substitution [2] like:
> 
> RESOLUTION %resolution%
> 
> But this caused a MapServer error.
> 
> If someone has already a solution to set the resolution dynamically
> (without MapScript) please let me know.
> 
> Astrid Emde
> 
> [1] http://mapserver.org/development/rfc/ms-rfc-55.html
> [2] http://mapserver.org/mapfile/variable_sub.html
> 
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101005/0d7ef5d7/attachment.htm>


More information about the MapServer-users mailing list