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

John Smith jayzee.smith at gmail.com
Tue Mar 18 10:01:45 EDT 2008


thks so what's the difference between mapserv.exe and shp2img.exe? i
find the naming a little confusing (map2img? mapserver_cli?)
jzs

On Mon, Mar 17, 2008 at 6:51 PM, Stephen Woodbridge
<woodbri at swoodbridge.com> wrote:
> 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