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
H... Looks right to me. Will need to run a test locally and report back.
On Sat, Feb 5, 2022 at 11:14 AM andy 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, runn
Hi Steve,
and thank you.
It seems right also to me.
Moreover there is a related paragraph in the documentation:
https://mapserver.org/el/mapfile/validation.html#test-with-commandline
I want to add that I'm using MapServer version 7.6.2
--
___
Andrea Borruso
website: https://me
In this compressed file the files I'm using:
https://github.com/aborruso/blackboard/blob/gh-pages/trash/processing.7z
--
___
Andrea Borruso
website: https://medium.com/tantotanto
38° 7' 48" N, 13° 21' 9" E, EPSG:4326
___
"cercare e saper riconoscere chi e cosa,
Hi,
Shouldn't the variable be wrapped in percentage signs?
EXPRESSION (%year% < 1976)
Seth
--
web:http://geographika.net
twitter: @geographika
On Sat, Feb 5, 2022, at 6:13 PM, andy wrote:
> Hi,
> I have this map file [1] in which I use this simple class expression
> "EXPRESSION ([year] < 197
Hi Seth,
On Sun, 6 Feb 2022 at 09:35, Seth G wrote:
> Shouldn't the variable be wrapped in percentage signs?
>
> EXPRESSION (%year% < 1976)
>
my goal is another one. My hardcorded expression is "EXPRESSION ([year] <
1976)".
I want to use run-time substitution to use "EXPRESSION ([year] < '%ye
Ah ok I was looking at the mapfile. Passing &YEAR=1976 in from the command line
should work fine.
Maybe the value is being treated as a string, so you could test if the
following worked (equals rather than less than):
EXPRESSION ("[year]" = "%year%")
Also maybe try with a different parameter na
Hi Seth,
and thank you.
On Sun, 6 Feb 2022 at 10:08, Seth G wrote:
>
> Maybe the value is being treated as a string, so you could test if the
> following worked (equals rather than less than):
>
> EXPRESSION ("[year]" = "%year%")
>
This works, but there are some points that seem strange to me:
So does the following also work? Without quotes should mean it is treated as a
number:
EXPRESSION ([year] = %year%)
--
web:https://geographika.net
twitter: @geographika
On Sun, Feb 6, 2022, at 10:28 AM, andy wrote:
> Hi Seth,
> and thank you.
>
> On Sun, 6 Feb 2022 at 10:08, Seth G wrote:
>>
This should be the way to do it. No quotes around %year% in either
expression.
On Sun, Feb 6, 2022 at 4:32 AM Seth G wrote:
> So does the following also work? Without quotes should mean it is treated
> as a number:
>
> EXPRESSION ([year] = %year%)
>
> --
> web:https://geographika.net
> twitter:
On Sun, 6 Feb 2022 at 15:21, Steve Lime wrote:
> This should be the way to do it. No quotes around %year% in either
> expression.
>
Yes, it works thank you Seth and Steve!!
--
___
Andrea Borruso
website: https://medium.com/tantotanto
38° 7' 48" N, 13° 21' 9" E, EPSG:4326
_
Thanks Andrea, I have added your working example to the documentation,
and included the step of checking your data type through an ogrinfo
command. Thanks again. https://mapserver.org/mapfile/validation.html
-jeff
On 2022-02-06 11:22 a.m., andy wrote:
On Sun, 6 Feb 2022 at 15:21, Steve
12 matches
Mail list logo