Re: [MapServer-users] Runtime substitution on MAP CONFIG environmental variables

2023-12-26 Thread Steve Lime via MapServer-users
The validation block would go in the WEB object. However, the runtime subs don't operate with config options. There was a ticket related to this message opened already (see https://github.com/MapServer/MapServer/issues/6994), presumably based on this thread. I'm curious what other devs think about

Re: [MapServer-users] Speeding up msDrawMap() for shapefiles

2023-12-18 Thread Steve Lime via MapServer-users
Did you have a look at https://blog.cleverelephant.ca/2022/04/coshp.html? On Mon, Dec 18, 2023 at 2:39 PM Matthew Graber via MapServer-users < mapserver-users@lists.osgeo.org> wrote: > Hi Jukka, > > Thanks for the advice. I was able to confirm through local testing that > using "DATA" is

Re: [MapServer-users] Can I call mapserver with GetLegendGraphic request using curl?

2023-12-15 Thread Steve Lime via MapServer-users
I do this all the time to create static versions of assets. Typically I just use a bash script and wget but I can't think of a reason offhand why curl wouldn't work just fine. What does a curl call look like? --Steve On Thu, Dec 14, 2023 at 3:32 PM Schweitzer, Peter N via MapServer-users <

Re: [MapServer-users] multiple shapepaths

2023-12-05 Thread Steve Lime via MapServer-users
It won’t work. A configuration is loaded in entirety first, and then applied as necessary. On Tue, Dec 5, 2023 at 7:21 AM Jan Hartmann via MapServer-users < mapserver-users@lists.osgeo.org> wrote: > Not sure. I cannot get it working anyway. Any ideas, Steve? > > On 04/12/2023 10:10, Jörg Thomsen

Re: [MapServer-users] multiple shapepaths

2023-12-02 Thread Steve Lime via MapServer-users
One other thought, you can use multiple paths via runtime subs to approximate what I think you’re looking for, so: WEB VALIDATION path1_default “/opt/path1” path1 “^\/opt\/path1$” path2_default “/opt/path2” path2 “^\/opt\/path2$” END END Then in DATA values you’d use %path1%

Re: [MapServer-users] multiple shapepaths

2023-12-01 Thread Steve Lime via MapServer-users
Nope, just the one value. On Fri, Dec 1, 2023 at 1:02 PM Jan Hartmann via MapServer-users < mapserver-users@lists.osgeo.org> wrote: > Hi, > > Is it possible to use multiple paths in a shapepath? ./data1:./data2 > does not work > > Jan > ___ >

Re: [MapServer-users] MapServer WEB global footer header are shown as result even if no feature was effected

2023-11-06 Thread Steve Lime via MapServer-users
Hi Astrid: I noticed this too but in a slightly different way. It's a bug, see the discussion here: https://github.com/MapServer/MapServer/issues/6907 Basically the EMPTY keyword is being ignored. This will be fixed in 8.2... --Steve On Mon, Nov 6, 2023 at 9:39 AM Astrid Emde (WhereGroup)

Re: [MapServer-users] mappyfile is now an OSGeo Community Project

2023-09-28 Thread Steve Lime via MapServer-users
Agreed! Congrats Seth! On Thu, Sep 28, 2023 at 9:29 AM Even Rouault via MapServer-users < mapserver-users@lists.osgeo.org> wrote: > Hi Seth, > > Congratulations! I believe it would make sense to point to mappyfile on > the mapserver.org documentation. Exact place to be determined ("Around >

Re: [mapserver-users] CGI variable "map" fails to validate.

2021-06-03 Thread Steve Lime via mapserver-users
I should note that 7.6.3 (also 7.4.5, 7.2.3 and 7.0.8) should make defining a value for MS_MAP_PATTERN much simpler. We updated things to use two filters instead of one. The first, MS_MAP_BAD_PATTERN, checks for problematic character sequences in the map value, for example /./, /../ or // and

Re: [mapserver-users] CGI variable "map" fails to validate.

2021-06-02 Thread Steve Lime via mapserver-users
Hi David: Presumably the Docker image is running the most recent version of 7.4 which would have that pull request applied. That said, I don't think it's the culprit here and I have seen some issues with -'s where the MS_MAP_PATTERN expression compiles fine but doesn't match as expected.