[mapserver-users] mapserv cli and run-time substitution

Steve Lime sdlime at gmail.com
Sat Feb 5 09:29:14 PST 2022


Hmmmm... Looks right to me. Will need to run a test locally and report back.

On Sat, Feb 5, 2022 at 11:14 AM andy <aborruso at gmail.com> wrote:

> Hi,
> I have this map file [1] in which I use this simple class expression
> "EXPRESSION ([year] < 1976)".
> Starting from it, I'm able to create the png output I want, running:
>
> mapserv -nh "QUERY_STRING=map=data.map&mode=map" >out.png
>
> But if I replace the hard coded year value with '%year%', and then I run
> this command
>
> mapserv -nh "QUERY_STRING=map=data.map&mode=map&year=1976" >out.png
>
> I have a wrong PNG output, in which the layer that has the run-time
> substitution variable is not rendered properly, because it seems that the
> value is not collected.
>
> What's wrong with my steps? How to use run-time substitution via cli?
>
> Thank you,
>
> Andrea
>
> [1] https://gist.github.com/aborruso/f40da26ec0cb9daa8cb7b308189ce3b3
>
>
> --
> ___________________
>
> Andrea Borruso
> website: https://medium.com/tantotanto
> 38° 7' 48" N, 13° 21' 9" E, EPSG:4326
> ___________________
>
> "cercare e saper riconoscere chi e cosa,
>  in mezzo all’inferno, non è inferno,
> e farlo durare, e dargli spazio"
>
> Italo Calvino
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20220205/0334070f/attachment.html>


More information about the MapServer-users mailing list