[mapserver-users] dynamic data in cgi-mapserver
schroeter at netgis.de
schroeter at netgis.de
Tue Mar 11 08:45:43 PDT 2008
Hi,
I use following layer definition to show dynamic querys using a hidden
form-field (name="testvar") in a cgi-mapserver-application:
LAYER
NAME "test"
TYPE line
STATUS on
DATA routen/test.shp
CLASSITEM "TESTID"
CLASS
Name "Select"
EXPRESSION /%testvar%/
OUTLINECOLOR 250 0 250
SYMBOL 'circle'
SIZE 8
END # CLASS
END
The EXPRESSION /%testvar%/ enables me to send dynamic data via querystring
or postvar. The variables are separated with a pipe, f.e
"var1|var3|va6|var8".
3 Questions:
1.Where is this function documented?
2. Is it possible to use such variables for other objects in a mapfile in a
cgi-apps? (I know, no problem with mapscript)
3. Is it possible to use dynamic sql-statements or data-source via post or
get variable in a cgi-app (f.e. for CONNECTIONTYPE postgis)?
thanks
Sven
More information about the MapServer-users
mailing list