Andrea: you can do something like use runtime substitution (neat example at 
http://linfiniti.com/2011/09/making-the-most-of-umn-mapserver-runtime-variable-substitution/),
 or MapScript WxS wrappers 
(http://mapserver.org/ogc/mapscript.html#python-examples).



From: [email protected] 
[mailto:[email protected]] On Behalf Of Andrea Peri
Sent: June 18, 2013 2:27 PM
To: [email protected]
Subject: [mapserver-users] Select the dataset at runtime

Hi,
Is possible to change at runtime the datasource of a layer using a parameter of 
the request to choose the dataset ?
I'm explain better.
I have two datasource of the same physical phenomenon.
The first is at 96dpi and the second at 300dpi.

I like to show the first when the user see it on a webgis and ask it using a 
request getmap with the extra parameter map_resolution=96
Instead the mapserver should return the second dataset when the request has an 
extra_parameter map_resolution=300 tipically when the user call it for a print 
at high resolution.
I'm trying to avoid to set two distinct mapserver layers.
To avoid the user should change the layer in the request.

The solution I'm searching is to allow the use of the parameter 
"map_resolution" to choose the dataset to use.


-- 
-----------------
Andrea Peri
. . . . . . . . . 
qwerty àèìòù
-----------------
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to