VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img?

Stephen Woodbridge woodbri at swoodbridge.com
Mon Mar 17 18:51:48 EDT 2008


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
> <Jukka.Rahkonen at mmmtike.fi> 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ä: mapserver-users-bounces at lists.osgeo.org puolesta: John Smith
>> Lähetetty: ma 17.3.2008 22:33
>> Vastaanottaja: mapserver-users at lists.osgeo.org
>> 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
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list