You can do it with the mapserv executable from the commandline via

mapserv QUERY_STRING='map=/path/tofile.map&value=foo&value2=bar&...'

-Steve W


John Smith wrote:
thks but i fail to see the benefit of that- does shp2img.exe know what
to do with these inserted variables?

i want to use variables in the map file for a postgis query, like
%var%. passing [-m "...map?value=%var%"] throws a msEvalRegex() error.
jzs

On Mon, Mar 17, 2008 at 4:38 PM, Rahkonen Jukka
<[EMAIL PROTECTED]> wrote:
If you use Windows, make a batch file, let's say run.bat
shp2img -m "...map" -o "...gif" %1% %2%

Then send from command line:

run.bat variable1 variable2 (they will be inserted in place of %1 and %2)

-Jukka Rahkonen-


-----Alkuperäinen viesti-----
Lähettäjä: [EMAIL PROTECTED] puolesta: John Smith
Lähetetty: ma 17.3.2008 22:33
Vastaanottaja: [email protected]
Aihe: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img?

can i pass variables to shp2img, say?

shp2img -m "...map" -o "...gif" %variable1% %variable2%

jzs
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to