From mniemyjski at cloudferro.com Wed Mar 1 07:01:20 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Wed, 1 Mar 2023 15:01:20 +0000 Subject: [MapServer-users] can Mapserver use files stored on STAC as source data? Message-ID: Hello, can Mapserver use files stored on STAC as source data? Best, Marcin [cid:e8236597-5b19-4660-8a19-a244835e388c] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-diriuith.png Type: image/png Size: 528 bytes Desc: Outlook-diriuith.png URL: From bob.basques at ci.stpaul.mn.us Wed Mar 1 09:17:34 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 1 Mar 2023 17:17:34 +0000 Subject: [MapServer-users] Mapfile examples for Feature shadowing and drawing offsets. Message-ID: All, Anyone want to share any MapFile examples they have for styling a line with a scaled shadow width? Also any examples of scaled line offsets? Thanks Bobb -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 14224 bytes Desc: not available URL: From lars.schylberg at blixtmail.se Wed Mar 1 09:35:32 2023 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Wed, 01 Mar 2023 17:35:32 +0000 Subject: [MapServer-users] Mapfile examples for Feature shadowing and drawing offsets. In-Reply-To: References: Message-ID: <90044104140f047e778333bda3ce68a6@blixtmail.se> Hi Bobb, Actually I made some mapfile examples for the FOSS4G talk that I gave last year. Here is the slides from the talk: https://github.com/LarsSchy/FOSS4G-2022/blob/main/MapServer_Make-beautiful-maps_1.03.pdf I will look for the actual mapfile as well, when I can remember which machine I have it on. Have fun / Lars Schylberg 1 mars 2023 kl. 18:17, "Bob Basques" skrev: > All, > > Anyone want to share any MapFile examples they have for styling a line with a scaled shadow width? > Also any examples of scaled line offsets? > > Thanks > > Bobb > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From bob.basques at ci.stpaul.mn.us Wed Mar 1 10:03:03 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 1 Mar 2023 18:03:03 +0000 Subject: [MapServer-users] Mapfile examples for Feature shadowing and drawing offsets. In-Reply-To: <90044104140f047e778333bda3ce68a6@blixtmail.se> References: <90044104140f047e778333bda3ce68a6@blixtmail.se> Message-ID: <28AB6FC8-CF15-4F5E-90A3-852EFB42C514@ci.stpaul.mn.us> Thanks Lars. I did a quick look through, those are the things I'm looking for. Specifically I need to offset a Line/Shape feature a scaled distance with a Shadow as well as an offset line. Both sides of a Line feature. This is for a call before you dig app, and we need to be able to show scaled clearances to various features in the output. Bobb ?On 3/1/23, 11:35 AM, "lars.schylberg at blixtmail.se" wrote: Think Before You Click: This email originated outside our organization. Hi Bobb, Actually I made some mapfile examples for the FOSS4G talk that I gave last year. Here is the slides from the talk: https://github.com/LarsSchy/FOSS4G-2022/blob/main/MapServer_Make-beautiful-maps_1.03.pdf I will look for the actual mapfile as well, when I can remember which machine I have it on. Have fun / Lars Schylberg 1 mars 2023 kl. 18:17, "Bob Basques" skrev: > All, > > Anyone want to share any MapFile examples they have for styling a line with a scaled shadow width? > Also any examples of scaled line offsets? > > Thanks > > Bobb > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From traviskirstine at gmail.com Wed Mar 1 10:12:18 2023 From: traviskirstine at gmail.com (Travis Kirstine) Date: Wed, 1 Mar 2023 13:12:18 -0500 Subject: [MapServer-users] Can Mapserver store VRT content in cache? In-Reply-To: References: Message-ID: I don't think you can store index files / VRTs in a memory cache. On Wed, 22 Feb 2023 at 09:19, Marcin Niemyjski via MapServer-users < mapserver-users at lists.osgeo.org> wrote: > Hello, > > can Mapserver store VRT content in cache so is uses cached file to connect > to source data when requesting it? I want to limit S3 requests (because all > data is stored on s3, including VRT) so Mapserver sends only S3 requests > for source data. > > Any sugestions? > > Thanks, > Marcin > > > > > > > Book > time to meet with me > > _______________________________________________ > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-fxftb1xe.png Type: image/png Size: 528 bytes Desc: not available URL: From lars.schylberg at blixtmail.se Thu Mar 2 05:23:42 2023 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Thu, 02 Mar 2023 13:23:42 +0000 Subject: [MapServer-users] Mapfile examples for Feature shadowing and drawing offsets. In-Reply-To: <28AB6FC8-CF15-4F5E-90A3-852EFB42C514@ci.stpaul.mn.us> References: <28AB6FC8-CF15-4F5E-90A3-852EFB42C514@ci.stpaul.mn.us> <90044104140f047e778333bda3ce68a6@blixtmail.se> Message-ID: <310d84252fcff780679b07e0ff8becb8@blixtmail.se> Hi again, I have uploaded the mapfile that I used to produce the images for the presentation. https://github.com/LarsSchy/FOSS4G-2022/blob/main/layer_comp2.map I guess that You can play with your offset lines with this mapfile. One easy way to get started. Please share if You come up with some new innovative usages of the filter pipeline. Have fun / Lars S. 1 mars 2023 kl. 19:03, "Bob Basques" skrev: > Thanks Lars. > > I did a quick look through, those are the things I'm looking for. > > Specifically I need to offset a Line/Shape feature a scaled distance with a Shadow as well as an > offset line. Both sides of a Line feature. > > This is for a call before you dig app, and we need to be able to show scaled clearances to various > features in the output. > > Bobb > > On 3/1/23, 11:35 AM, "lars.schylberg at blixtmail.se" wrote: > > Think Before You Click: This email originated outside our organization. > > Hi Bobb, > > Actually I made some mapfile examples for the FOSS4G talk that I gave last year. > > Here is the slides from the talk: > https://github.com/LarsSchy/FOSS4G-2022/blob/main/MapServer_Make-beautiful-maps_1.03.pdf > > I will look for the actual mapfile as well, when I can remember which machine I have it on. > > Have fun / Lars Schylberg > > 1 mars 2023 kl. 18:17, "Bob Basques" skrev: > >> All, >> >> Anyone want to share any MapFile examples they have for styling a line with a scaled shadow > width? >> Also any examples of scaled line offsets? >> >> Thanks >> >> Bobb >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users From bob.basques at ci.stpaul.mn.us Thu Mar 2 13:00:13 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 2 Mar 2023 21:00:13 +0000 Subject: [MapServer-users] OSGeo Chapter meeting, request for presenters . . . Message-ID: <7C34E728-B496-4DFB-993B-3F3D700BA2C0@ci.stpaul.mn.us> All, Looking for presenters for the next meeting on March 8th. Can be about anything Geo related. Show something you?ve been working on to others, or even bring up problems you having with software or implementing ideas, anything is game. Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Mar 6 10:13:59 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Mon, 6 Mar 2023 18:13:59 +0000 Subject: [MapServer-users] OSGeo Chapter meeting, request for presenters . . . Message-ID: All, Looking for presenters for the next meeting on March 8th. Can be about anything Geo related. Show something you?ve been working on to others, or even bring up problems you?re having with software or implementing ideas, anything is game. Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Tue Mar 7 01:36:11 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Tue, 7 Mar 2023 09:36:11 +0000 Subject: [MapServer-users] Mapserver requests / prometheus metrics Message-ID: Hello, does mapserver expose any prometheus metrics that I can scrape? I'm especially interested in metrics related to number of requests per second. Thanks, Marcin [cid:37ae3959-1f64-4a2b-a3d5-24f3a48ed2e1] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-uv0qhqx5.png Type: image/png Size: 528 bytes Desc: Outlook-uv0qhqx5.png URL: From bjorn.ove at grotan.com Tue Mar 7 08:30:16 2023 From: bjorn.ove at grotan.com (=?utf-8?B?QmrDuHJuIE92ZSBHcsO4dGFu?=) Date: Tue, 7 Mar 2023 17:30:16 +0100 Subject: [MapServer-users] Mapserver requests / prometheus metrics In-Reply-To: References: Message-ID: Marcin Niemyjski via MapServer-users: > Hello, > > does mapserver expose any prometheus metrics that I can scrape? I'm > especially interested in metrics related to number of requests per second. > > Thanks, Marcin > Not that I'm aware of. Mapserver doesn't run a webserver by itself, but is meant to be run as stateless cgi/fastcgi in a webserver such as Apache, NginX or other. You could propably make one of those servers give you some metrics Example: https://promcat.io/apps/apache Would be nice to see an exporter able to understand the OGC specific stuff, like layers and request-types, but maybe you can configure a custom parser. -- Kind regards Bj?rn Ove Gr?tan From bob.basques at ci.stpaul.mn.us Wed Mar 8 07:27:39 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 8 Mar 2023 15:27:39 +0000 Subject: [MapServer-users] [REMINDER] OSGeo Chapter meeting (TODAY) Message-ID: All, This afternoons meeting will be a face to face at Bad Weather Brewery, sorry about the late notice. 414 7th St W, St Paul, MN 55102 Time : 4:30 Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil.underhill at gmail.com Wed Mar 8 13:46:53 2023 From: neil.underhill at gmail.com (Neil Underhill) Date: Wed, 8 Mar 2023 21:46:53 +0000 Subject: [MapServer-users] Is it possible to pass variables to a mapfile DATA parameter? Message-ID: Hi all, I am using mapserver to allow WFS in Openlayers to access point data held in a PostgreSQL / PostGIS database. The mapfile includes the following statement: ... *INCLUDE "readonly.config"DATA "geom FROM table USING srid=32636 USING UNIQUE fid"* ... Currently I make a new mapfile for each site visit to each project. However this means every time a new site visit or project is made, I have to create a new mapfile, and the only thing that changes is the "table" part of the statement. All the styling info is in the Openlayers WFS statements. Is it possible to get Openlayers to pass variables to the DATA parameter (e.g. a different table name) when called so that I can reuse the same mapfile for different WFS calls? Or alternatively, could store the point data in the same PostgreSQL table and have some other way of filtering the data (e.g. on timestamp) Am I misunderstanding how I should be using mapfiles? thanks, Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed Mar 8 23:47:24 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Thu, 9 Mar 2023 07:47:24 +0000 Subject: [MapServer-users] Is it possible to pass variables to a mapfile DATA parameter? In-Reply-To: References: Message-ID: Hi, I think that your question belongs rather to OpenLayers forums. On the Mapserver side you can use run-time substitution in LAYER-DATA https://mapserver.org/cgi/runsub.html#parameters-supported. DATA "geom FROM %table% USING srid=32636 USING UNIQUE fid" What OpenLayers need to do is to add ?&table=xxyy? to the GetFeature requests. -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Neil Underhill L?hetetty: keskiviikko 8. maaliskuuta 2023 23.47 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MapServer-users] Is it possible to pass variables to a mapfile DATA parameter? Hi all, I am using mapserver to allow WFS in Openlayers to access point data held in a PostgreSQL / PostGIS database. The mapfile includes the following statement: ... INCLUDE "readonly.config" DATA "geom FROM table USING srid=32636 USING UNIQUE fid" ... Currently I make a new mapfile for each site visit to each project. However this means every time a new site visit or project is made, I have to create a new mapfile, and the only thing that changes is the "table" part of the statement. All the styling info is in the Openlayers WFS statements. Is it possible to get Openlayers to pass variables to the DATA parameter (e.g. a different table name) when called so that I can reuse the same mapfile for different WFS calls? Or alternatively, could store the point data in the same PostgreSQL table and have some other way of filtering the data (e.g. on timestamp) Am I misunderstanding how I should be using mapfiles? thanks, Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: From cneves at lrec.pt Thu Mar 9 03:43:49 2023 From: cneves at lrec.pt (Carlos Neves (LREC)) Date: Thu, 9 Mar 2023 11:43:49 +0000 Subject: [MapServer-users] pixmap overlapping Message-ID: Hi list, Is there a way to avoid overlapping Cartographic Symbol type pixmap on the map?? FORCE FALSE works only with labels. Any help would be appreciated. Regards Carlos From sdlime at gmail.com Fri Mar 10 15:01:33 2023 From: sdlime at gmail.com (Steve Lime) Date: Fri, 10 Mar 2023 17:01:33 -0600 Subject: [MapServer-users] pixmap overlapping In-Reply-To: References: Message-ID: So points drawn with a pixmap symbol? No, not that I'm aware of. Might be helpful so see a picture of what you're trying to work around. Using truetype icons as labels has been one way I've tried to do something along those lines. I suppose clustering might be another option. --Steve On Thu, Mar 9, 2023 at 5:43?AM Carlos Neves (LREC) wrote: > Hi list, > > Is there a way to avoid overlapping Cartographic Symbol type pixmap on > the map? FORCE FALSE works only with labels. > > Any help would be appreciated. > > Regards > > Carlos > > _______________________________________________ > 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: From sdlime at gmail.com Sat Mar 11 18:30:59 2023 From: sdlime at gmail.com (Steve Lime) Date: Sat, 11 Mar 2023 20:30:59 -0600 Subject: [MapServer-users] pixmap overlapping In-Reply-To: References: Message-ID: One other idea would be to use a style at the label level with blank text, something like: CLASS # no class-level style TEXT ? ? # blank space LABEL POSITION CC STYLE SYMBOL ?your pixmap? ? END END END I think this could work although you might have to fiddle with it a bit. ?Steve On Fri, Mar 10, 2023 at 5:01 PM Steve Lime wrote: > So points drawn with a pixmap symbol? No, not that I'm aware of. Might be > helpful so see a picture of what you're trying to work around. Using > truetype icons as labels has been one way I've tried to do something > along those lines. I suppose clustering might be another option. --Steve > > On Thu, Mar 9, 2023 at 5:43?AM Carlos Neves (LREC) wrote: > >> Hi list, >> >> Is there a way to avoid overlapping Cartographic Symbol type pixmap on >> the map? FORCE FALSE works only with labels. >> >> Any help would be appreciated. >> >> Regards >> >> Carlos >> >> _______________________________________________ >> 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: From benedek.petrovicz at gmail.com Mon Mar 20 06:51:27 2023 From: benedek.petrovicz at gmail.com (Benedek Petrovicz) Date: Mon, 20 Mar 2023 14:51:27 +0100 Subject: [MapServer-users] MSSQL plugin path outside of the global CONFIG file Message-ID: Hi! Before MapServer 8, I always defined the mssql plugin path in the mapfiles directly. It was a convenient way for my use case. Now from MapServer 8 there's the required global CONFIG file I have to define. Which is fine, but MapServer will only allow loading the plugin through that global CONFIG file. The CONFIG reference states the following: *"PLUGINS: This block allows for keys to be mapped to plugin library paths."* For me, this means I can define a global plugin keyword if I want to, but I don't have to. In reality I don't have other options. At least I don't know about any. Is it mandatory now, to define the PLUGIN path from the global CONFIG file? Thank you! Benedek Petrovicz -------------- next part -------------- An HTML attachment was scrubbed... URL: From joerg.thomsen at wheregroup.com Mon Mar 20 07:13:32 2023 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Mon, 20 Mar 2023 15:13:32 +0100 Subject: [MapServer-users] MSSQL plugin path outside of the global CONFIG file In-Reply-To: References: Message-ID: Hello Benedek, > Is it mandatory now, to define the PLUGIN path from the global CONFIG file? short answer: yes it's mandatory and it's a security issue. the documentation is very explizit (see https://mapserver.org/mapfile/layer.html): > For MapServer >=8: defining plugins for dataconnections in the config-gile ... > For MapServer <8: defining plugins for dataconnections in the mapfile further in https://mapserver.org/mapfile/config.html : > This block allows for keys to be mapped to plugin library paths. > For example the MS SQL Plugin. > **This registry of plugins avoids possible unsafe libraries being > loaded by a mapfile.** Regards, J?rg Am 20.03.23 um 14:51 schrieb Benedek Petrovicz: > Hi! > > Before MapServer 8, I always defined the mssql plugin path in the > mapfiles directly. > It was a convenient way for my use case. > > Now from MapServer 8 there's the required global CONFIG file I have to > define. > Which is fine, but MapServer will only allow loading the plugin through > that global CONFIG file. > > The CONFIG reference states the following: > > /"PLUGINS: This block allows for keys to be mapped to plugin library > paths."/ > > For me, this means I can define a global plugin keyword if I want to, > but I don't have to. > In reality I don't have other options. At least I don't know about any. > > Is it mandatory now, to define the PLUGIN path from the global CONFIG file? > > Thank you! > Benedek Petrovicz > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Viele Gr??e, J?rg Thomsen --------------------------------------------- Aufwind durch Wissen! Web-Seminare und Online-Schulungen bei der www.foss-academy.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Tel: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From bob.basques at ci.stpaul.mn.us Tue Mar 21 06:57:12 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 21 Mar 2023 13:57:12 +0000 Subject: [MapServer-users] Twin Cities Local OSGeo Chapter Meeting for April 2023 Message-ID: <1F733F9D-EC17-4D4C-9E6E-D2F67DE984EA@ci.stpaul.mn.us> All, Just sending out a request for virtual presenter or presenters for our next meeting on Apr. 12th. Time: 4:30 pm CDT It can be anything Geo related. I?ll take care of setting up the presentation, recording, etc. Thanks Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From benedek.petrovicz at gmail.com Thu Mar 23 13:47:42 2023 From: benedek.petrovicz at gmail.com (Benedek Petrovicz) Date: Thu, 23 Mar 2023 21:47:42 +0100 Subject: [MapServer-users] MS_MAP_PATTERN cannot accept network share Message-ID: Hi! I'm running into an issue where I cannot reference the mapfiles from a network share. I'm getting the following error: *msCGILoadMap(): Web application error. CGI variable "map" fails to validate.* The path to my mapfile is the following: *//MY-NAS/MapFiles/test.map* It's under a network share. I know that it should work, because when I set a MAP alias to the same path in the global config, it just works. I tried multiple MS_MAP_PATTERN settings, but couldn't get it to accept the path. - *MS_MAP_PATTERN "."* - *MS_MAP_PATTERN "^.+$"* Is there any way to get MapServer accept a network share path? Unfortunately I cannot use the MAP aliases, because I have to make it work for multiple dynamic environments. I'm trying to make it work under MapServer 8. Thank you! Benedek -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Fri Mar 24 06:52:50 2023 From: sdlime at gmail.com (Steve Lime) Date: Fri, 24 Mar 2023 08:52:50 -0500 Subject: [MapServer-users] MS_MAP_PATTERN cannot accept network share In-Reply-To: References: Message-ID: Hi Benedek: You'll need to fiddle with MS_MAP_BAD_PATTERN. Looking at the sample configuration file it's value is: MS_MAP_BAD_PATTERN "[/\\]{2}|[/\\]?\\.+[/\\]|," If a mapfile path matches any of those, it's rejected. By default it's blocking anything with \\, //, back references or commas anywhere in the path. This makes it easier to write clear MS_MAP_PATTERN values. Anway, you can override that value in the config file to remove blocking the //. Then you'd want to make sure your MS_MAP_PATTERN starts with something like: MS_MAP_PATTERN "^//MY-NAS/MapFiles" and be sure to test your patterns. Let us know how it goes. --Steve On Thu, Mar 23, 2023 at 3:48?PM Benedek Petrovicz < benedek.petrovicz at gmail.com> wrote: > Hi! > > I'm running into an issue where I cannot reference the mapfiles from a > network share. > I'm getting the following error: *msCGILoadMap(): Web application error. > CGI variable "map" fails to validate.* > > The path to my mapfile is the following: *//MY-NAS/MapFiles/test.map* > It's under a network share. > > I know that it should work, because when I set a MAP alias to the same > path in the global config, it just works. > > I tried multiple MS_MAP_PATTERN settings, but couldn't get it to accept > the path. > > - *MS_MAP_PATTERN "."* > - *MS_MAP_PATTERN "^.+$"* > > Is there any way to get MapServer accept a network share path? > Unfortunately I cannot use the MAP aliases, because I have to make it work > for multiple dynamic environments. > > I'm trying to make it work under MapServer 8. > > Thank you! > Benedek > _______________________________________________ > 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: From sdlime at gmail.com Fri Mar 24 07:03:38 2023 From: sdlime at gmail.com (Steve Lime) Date: Fri, 24 Mar 2023 09:03:38 -0500 Subject: [MapServer-users] MSSQL plugin path outside of the global CONFIG file In-Reply-To: References: Message-ID: One point of clarification. If a config file is referenced then when the mapfile is read then the value for PLUGIN is always interpreted as a key to the list of plugins. That is always the case for CGI/FastCGI where a config file is required. In the case of MapScript (or shp2map) loading a mapfile, the config file is optional and the value for PLUGIN works as prior versions if a config file is not referenced. This was done to minimize impact on scripts. If a mapfile serves dual purposes then a config file will be required and PLUGIN values represent keys. --Steve On Mon, Mar 20, 2023 at 9:13?AM J?rg Thomsen (WhereGroup) < joerg.thomsen at wheregroup.com> wrote: > Hello Benedek, > > > Is it mandatory now, to define the PLUGIN path from the global CONFIG > file? > > short answer: yes it's mandatory and it's a security issue. > > the documentation is very explizit > (see https://mapserver.org/mapfile/layer.html): > > > For MapServer >=8: > defining plugins for dataconnections in the config-gile > ... > > For MapServer <8: > defining plugins for dataconnections in the mapfile > > further in https://mapserver.org/mapfile/config.html : > > This block allows for keys to be mapped to plugin library paths. > > For example the MS SQL Plugin. > > **This registry of plugins avoids possible unsafe libraries being > > loaded by a mapfile.** > > Regards, J?rg > > > > > > > Am 20.03.23 um 14:51 schrieb Benedek Petrovicz: > > Hi! > > > > Before MapServer 8, I always defined the mssql plugin path in the > > mapfiles directly. > > It was a convenient way for my use case. > > > > Now from MapServer 8 there's the required global CONFIG file I have to > > define. > > Which is fine, but MapServer will only allow loading the plugin through > > that global CONFIG file. > > > > The CONFIG reference states the following: > > > > /"PLUGINS: This block allows for keys to be mapped to plugin library > > paths."/ > > > > For me, this means I can define a global plugin keyword if I want to, > > but I don't have to. > > In reality I don't have other options. At least I don't know about any. > > > > Is it mandatory now, to define the PLUGIN path from the global CONFIG > file? > > > > Thank you! > > Benedek Petrovicz > > > > _______________________________________________ > > MapServer-users mailing list > > MapServer-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > Viele Gr??e, > J?rg Thomsen > --------------------------------------------- > Aufwind durch Wissen! > Web-Seminare und Online-Schulungen > bei der www.foss-academy.com > --------------------------------------------- > > > J?rg Thomsen > WhereGroup GmbH > Bundesallee 23 > 10717 Berlin > Germany > > Tel: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 5130 278 11 > > joerg.thomsen at wheregroup.com > www.wheregroup.com > > Gesch?ftsf?hrer: > Olaf Knopp, Peter Stamm > Amtsgericht Bonn, HRB 9885 > > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > > _______________________________________________ > 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: From trygve at aspenes.priv.no Fri Mar 24 09:35:15 2023 From: trygve at aspenes.priv.no (Trygve Aspenes) Date: Fri, 24 Mar 2023 17:35:15 +0100 Subject: [MapServer-users] How to add templates(html) to be use with getFeatureInfo for raster data Message-ID: Hi Users list! I'm trying to get getFeatureRequest to reply with a html template with pixel values from a geotiff raster image. I have my layer like this: LAYER NAME "Overview" STATUS ON TYPE raster TEMPLATE "empty" DATA METADATA "wms_title" "Overview" "wms_timeextent" "2021-08-27T13:20:48Z/2021-08-27T13:20:48Z" "wms_enable_request" "*" END FILTER (`[TIME]` = `2021-08-27T13:20:48Z`) END If I ask for the getcapabilities, the getfeatureinfo looks like this: text/html application/vnd.ogc.gml text/plain And if I ask for the getfeatureinfo I get: GetFeatureInfo results: Layer 'Overview' Feature 0: So far so good. But now I want to add a custom template to ultimately give me a html template with pixel values. but what ever I try to put in the TEMPLATE variable, I dont get any other than the results shown above. In my LAYER config I try with TEMPLATE "http://localhost:8080/.html" or TEMPLATE ".html" but nope. mapserver is v7.4.3 In the documentation there is something about getfeatureinfo here https://mapserver.org/mapfile/cluster.html#handling-getfeatureinfo, but that is for cluster so I dont think it applies here. Something more here https://mapserver.org/ogc/wms_server.html#how-does-a-wms-work, but still I don't get it. Some lines after https://mapserver.org/ogc/wms_server.html#setup-a-mapfile-for-your-wms there is also Configuring for GetFeatureInfo Requests: Here I learned how to enable the getfeatureinfo. But the examples only gives the replies, not how I need to setup my map file. Also https://mapserver.org/ogc/wms_server.html#sample-wms-server-mapfile is nice, But I still don't get it. Any advise is much appreciated. Trygve From b.j.kobben at utwente.nl Fri Mar 24 10:09:16 2023 From: b.j.kobben at utwente.nl (Kobben, Barend (UT-ITC)) Date: Fri, 24 Mar 2023 17:09:16 +0000 Subject: [MapServer-users] How to add templates(html) to be use with getFeatureInfo for raster data In-Reply-To: References: Message-ID: The line TEMPLATE "empty" Should be TEMPLATE "" -- Barend K?bben On 24/03/2023, 17:48, "MapServer-users" wrote: Hi Users list! I'm trying to get getFeatureRequest to reply with a html template with pixel values from a geotiff raster image. I have my layer like this: LAYER NAME "Overview" STATUS ON TYPE raster TEMPLATE "empty" DATA METADATA "wms_title" "Overview" "wms_timeextent" "2021-08-27T13:20:48Z/2021-08-27T13:20:48Z" "wms_enable_request" "*" END FILTER (`[TIME]` = `2021-08-27T13:20:48Z`) END If I ask for the getcapabilities, the getfeatureinfo looks like this: text/html application/vnd.ogc.gml text/plain > > And if I ask for the getfeatureinfo I get: GetFeatureInfo results: Layer 'Overview' Feature 0: So far so good. But now I want to add a custom template to ultimately give me a html template with pixel values. but what ever I try to put in the TEMPLATE variable, I dont get any other than the results shown above. In my LAYER config I try with TEMPLATE "http://localhost:8080/.html" or TEMPLATE ".html" but nope. mapserver is v7.4.3 In the documentation there is something about getfeatureinfo here https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Fmapfile%2Fcluster.html%23handling-getfeatureinfo&data=05%7C01%7Cb.j.kobben%40utwente.nl%7Ca71634c058d2421f20d508db2c879c59%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638152733187323138%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=uWdSh%2BNpt4m5Q2u8i39XtCWnsnbFzhrGP2DtvO1VRbA%3D&reserved=0, but that is for cluster so I dont think it applies here. Something more here https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Fogc%2Fwms_server.html%23how-does-a-wms-work&data=05%7C01%7Cb.j.kobben%40utwente.nl%7Ca71634c058d2421f20d508db2c879c59%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638152733187323138%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=FhVwEX6uJgfDF7LXIiUei68dGgYM1kXP0laJ2s58m1Y%3D&reserved=0, but still I don't get it. Some lines after https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Fogc%2Fwms_server.html%23setup-a-mapfile-for-your-wms&data=05%7C01%7Cb.j.kobben%40utwente.nl%7Ca71634c058d2421f20d508db2c879c59%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638152733187323138%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KvCsFuN%2BE8sKZpxlGvf9X2vTPE6zWlJxGw2GuOzxSAs%3D&reserved=0 there is also Configuring for GetFeatureInfo Requests: Here I learned how to enable the getfeatureinfo. But the examples only gives the replies, not how I need to setup my map file. Also https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Fogc%2Fwms_server.html%23sample-wms-server-mapfile&data=05%7C01%7Cb.j.kobben%40utwente.nl%7Ca71634c058d2421f20d508db2c879c59%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638152733187323138%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8e9FKztuVma73pzpqXu8vKJtCwwtBSjdA7ndZedTjnM%3D&reserved=0 is nice, But I still don't get it. Any advise is much appreciated. Trygve _______________________________________________ MapServer-users mailing list MapServer-users at lists.osgeo.org https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-users&data=05%7C01%7Cb.j.kobben%40utwente.nl%7Ca71634c058d2421f20d508db2c879c59%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638152733187323138%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=sYLWKm4FJmM665EGV68H4GKS1azKs0YJtVx5WPSxfqA%3D&reserved=0 -------------- next part -------------- An HTML attachment was scrubbed... URL: From trygve at aspenes.priv.no Fri Mar 24 13:49:40 2023 From: trygve at aspenes.priv.no (Trygve Aspenes) Date: Fri, 24 Mar 2023 21:49:40 +0100 Subject: [MapServer-users] How to add templates(html) to be use with getFeatureInfo for raster data In-Reply-To: References: Message-ID: <2b869f965903cba79904c41f36c2463f@aspenes.priv.no> Thanks I have already tried all kind of options with template and filenames. What I was missing was the query option "info_format=text/html" doing eg. curl. So my setup was working all the time, but my test curl was wrong. Trygve Den 2023-03-24 18:09, skrev Kobben, Barend (UT-ITC): > The line > > TEMPLATE "empty" > > Should be > > TEMPLATE "" > > _-- _ > > _Barend K?bben_ > > On 24/03/2023, 17:48, "MapServer-users" > wrote: > > Hi Users list! > > I'm trying to get getFeatureRequest to reply with a html template with > > pixel values from a geotiff raster image. > > I have my layer like this: > > LAYER > NAME "Overview" > STATUS ON > TYPE raster > TEMPLATE "empty" > DATA > METADATA > "wms_title" "Overview" > "wms_timeextent" "2021-08-27T13:20:48Z/2021-08-27T13:20:48Z" > "wms_enable_request" "*" > END > FILTER (`[TIME]` = `2021-08-27T13:20:48Z`) > END > > If I ask for the getcapabilities, the getfeatureinfo looks like this: > > > text/html > application/vnd.ogc.gml > text/plain > > > xmlns:xlink="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink&data=05%7C01%7Cb.j.kobben%40utwente.nl%7Ca71634c058d2421f20d508db2c879c59%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638152733187323138%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=b1Um6UNYhoT5jVanlyPbiM4W3aHN7eIlSNMu3sVIuQM%3D&reserved=0" > > xlink:href="http://localhost:8080/mapserverapi?"/> > xmlns:xlink="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink&data=05%7C01%7Cb.j.kobben%40utwente.nl%7Ca71634c058d2421f20d508db2c879c59%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638152733187323138%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=b1Um6UNYhoT5jVanlyPbiM4W3aHN7eIlSNMu3sVIuQM%3D&reserved=0" > > xlink:href="http://localhost:8080/mapserverapi?"/> > > > > > And if I ask for the getfeatureinfo I get: > > GetFeatureInfo results: > > Layer 'Overview' > Feature 0: > > So far so good. > > But now I want to add a custom template to ultimately give me a html > template with pixel values. but what ever I try to put in the TEMPLATE > > variable, I dont get any other than the results shown above. > > In my LAYER config I try with > TEMPLATE "http://localhost:8080/.html" > or > TEMPLATE ".html" > > but nope. > > mapserver is v7.4.3 > > In the documentation there is something about getfeatureinfo here > https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Fmapfile%2Fcluster.html%23handling-getfeatureinfo&data=05%7C01%7Cb.j.kobben%40utwente.nl%7Ca71634c058d2421f20d508db2c879c59%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638152733187323138%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=uWdSh%2BNpt4m5Q2u8i39XtCWnsnbFzhrGP2DtvO1VRbA%3D&reserved=0, > but > that is for cluster so I dont think it applies here. > Something more here > https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Fogc%2Fwms_server.html%23how-does-a-wms-work&data=05%7C01%7Cb.j.kobben%40utwente.nl%7Ca71634c058d2421f20d508db2c879c59%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638152733187323138%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=FhVwEX6uJgfDF7LXIiUei68dGgYM1kXP0laJ2s58m1Y%3D&reserved=0, > but still > I don't get it. > Some lines after > https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Fogc%2Fwms_server.html%23setup-a-mapfile-for-your-wms&data=05%7C01%7Cb.j.kobben%40utwente.nl%7Ca71634c058d2421f20d508db2c879c59%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638152733187323138%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KvCsFuN%2BE8sKZpxlGvf9X2vTPE6zWlJxGw2GuOzxSAs%3D&reserved=0 > > there is also Configuring for GetFeatureInfo Requests: > Here I learned how to enable the getfeatureinfo. But the examples only > > gives the replies, not how I need to setup my map file. > Also > https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Fogc%2Fwms_server.html%23sample-wms-server-mapfile&data=05%7C01%7Cb.j.kobben%40utwente.nl%7Ca71634c058d2421f20d508db2c879c59%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638152733187323138%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8e9FKztuVma73pzpqXu8vKJtCwwtBSjdA7ndZedTjnM%3D&reserved=0 > [3] > is nice, But I still don't get it. > > Any advise is much appreciated. > > Trygve > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-users&data=05%7C01%7Cb.j.kobben%40utwente.nl%7Ca71634c058d2421f20d508db2c879c59%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638152733187323138%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=sYLWKm4FJmM665EGV68H4GKS1azKs0YJtVx5WPSxfqA%3D&reserved=0 > > > Links: > ------ > [1] http://localhost:8080/mapserverapi?%22/%3e%3c/Get > [2] http://localhost:8080/mapserverapi?%22/%3e%3c/Post > [3] > https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Fogc%2Fwms_server.html%23sample-wms-server-mapfile&data=05%7C01%7Cb.j.kobben%40utwente.nl%7Ca71634c058d2421f20d508db2c879c59%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638152733187323138%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8e9FKztuVma73pzpqXu8vKJtCwwtBSjdA7ndZedTjnM%3D&reserved=0 From sander.pukk at gmail.com Wed Mar 29 01:56:36 2023 From: sander.pukk at gmail.com (Sander Pukk) Date: Wed, 29 Mar 2023 11:56:36 +0300 Subject: [MapServer-users] Custom metadata key and value pairs Message-ID: Hi Is it possible to use custom key and value pairs in layer metadata that are accessible from metadata API ? Because whichever way I have tried, I can not seem to get it working. Dont see anything in getcapabilites nor metadata api for the layer. I see keywords, but would like to have key and value. https://mapserver.org/mapfile/layer.html Here it says: This keyword allows for arbitrary data to be stored as name value pairs. But how? Example layer: LAYER TEMPLATE "dummy" NAME "arp" GROUP lennuinfo STATUS off TYPE point CONNECTIONTYPE POSTGIS INCLUDE "/app/secrets/postgis.inc" DATA "geom from lennuv2ljad using unique id using srid=3301" PROJECTION "init=epsg:3301" END METADATA "wfs_srs" "EPSG:3301" "gml_msGeometry_type" "point" "ows_extent" "40500 5993000 1064500 7017000" "ows_title" "Lennuv?ljad" "ows_abstract" "Lennuinfo" "ows_keywordlist" "Lennuinfo" "ows_include_items" "all" "gml_include_items" "all" "ows_featureid" "gid" *"custom_key" "custom_value"* END CLASS METADATA *"custom_key" "custom_value"* END NAME "lennuv?li" STYLE SYMBOL 'arp' END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From justb4 at gmail.com Wed Mar 29 03:35:08 2023 From: justb4 at gmail.com (Just van den Broecke) Date: Wed, 29 Mar 2023 12:35:08 +0200 Subject: [MapServer-users] HTTP/2 Protocol Error MS Demo server Message-ID: <22105234-bb69-c675-373f-f09cde91e6ab@gmail.com> Hi, In the pygeoapi CI on GitHub we experience suddenly an error in the OGR Provider that connects via WFS to the MapServer demo server. The problem has to do with HTTP/2 on a Ubuntu 20.04 system. Error is like: "Failure, Msg: HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)" I can trigger the same error with curl on a Ubuntu 20.04 LTS (used by the GH CI) curl -v https://demo.mapserver.org/cgi-bin/wfs * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * old SSL session ID is stale, removing * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! * http2 error: Invalid HTTP header field was received: frame type: 1, stream: 1, name: [upgrade], value: [h2,h2c] * HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) * stopped the pause stream! * Connection #0 to host demo.mapserver.org left intact curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) Forcing HTTP 1.1 gets rid of the error: curl -v --http1.1 https://demo.mapserver.org/cgi-bin/wfs So it doesn't seem pygeoapi nor GDAL-related. Looks more like this (Apache) problem: https://serverfault.com/questions/937253/https-doesnt-work-with-safari Best, --Just Just van den Broecke From just at justobjects.nl Wed Mar 29 03:08:49 2023 From: just at justobjects.nl (Just van den Broecke) Date: Wed, 29 Mar 2023 12:08:49 +0200 Subject: [MapServer-users] HTTP/2 Protocol Error MS Demo server Message-ID: <70971ac2-721b-17ea-01e2-2c31951079aa@justobjects.nl> Hi, In the pygeoapi CI on GitHub we experience suddenly an error in the OGR Provider that connects via WFS to the MapServer demo server. The problem has to do with HTTP/2 on a Ubuntu 20.04 system. Error is like: "Failure, Msg: HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)" I can trigger the same error with curl on a Ubuntu 20.04 LTS (used by the GH CI) curl -v https://demo.mapserver.org/cgi-bin/wfs * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * old SSL session ID is stale, removing * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! * http2 error: Invalid HTTP header field was received: frame type: 1, stream: 1, name: [upgrade], value: [h2,h2c] * HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) * stopped the pause stream! * Connection #0 to host demo.mapserver.org left intact curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) Forcing HTTP 1.1 gets rid of the error: curl -v --http1.1 https://demo.mapserver.org/cgi-bin/wfs So it doesn't seem pygeoapi nor GDAL-related. Looks more like this (Apache) problem: https://serverfault.com/questions/937253/https-doesnt-work-with-safari Best, --Just Just van den Broecke From justb4 at gmail.com Wed Mar 29 06:04:56 2023 From: justb4 at gmail.com (Just van den Broecke) Date: Wed, 29 Mar 2023 15:04:56 +0200 Subject: [MapServer-users] HTTP/2 Protocol Error MS Demo server In-Reply-To: <22105234-bb69-c675-373f-f09cde91e6ab@gmail.com> References: <22105234-bb69-c675-373f-f09cde91e6ab@gmail.com> Message-ID: Sorry for posting twice. Thought I used the wrong email address initially, but someone let me through. Responding from the adress I have subscribed. I found a workaround at the pygeoapi OGR Provider side (which functions as a WFS client and accepts GDAL config settings): 'GDAL_HTTP_VERSION': '1.1' forcing the curl-lib in GDAL/OGR to use HTTP 1.1 (i.s.o. 2). Basically the same as "curl --http1.1 ....", as below. Still, I think a (config) fix is needed on the MS demo server frontend, which runs nginx AFAICS. Best, Just van den Broecke On 29/03/2023 12:35, Just van den Broecke wrote: > Hi, > > In the pygeoapi CI on GitHub we experience suddenly an error in the OGR > Provider that connects via WFS to the MapServer demo server. The problem > has to do with HTTP/2 on a Ubuntu 20.04 system. > > Error is like: > "Failure, Msg: HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR > (err 1)" > > I can trigger the same error with curl on a Ubuntu 20.04 LTS (used by > the GH CI) > > ?curl -v? https://demo.mapserver.org/cgi-bin/wfs > > * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): > * old SSL session ID is stale, removing > * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! > * http2 error: Invalid HTTP header field was received: frame type: 1, > stream: 1, name: [upgrade], value: [h2,h2c] > * HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) > * stopped the pause stream! > * Connection #0 to host demo.mapserver.org left intact > curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) > > > Forcing HTTP 1.1 gets rid of the error: > > curl -v? --http1.1 https://demo.mapserver.org/cgi-bin/wfs > > So it doesn't seem pygeoapi nor GDAL-related. Looks more like this > (Apache) problem: > https://serverfault.com/questions/937253/https-doesnt-work-with-safari > > Best, > > --Just > > Just van den Broecke > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Wed Mar 29 06:49:38 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 29 Mar 2023 10:49:38 -0300 Subject: [MapServer-users] HTTP/2 Protocol Error MS Demo server In-Reply-To: <70971ac2-721b-17ea-01e2-2c31951079aa@justobjects.nl> References: <70971ac2-721b-17ea-01e2-2c31951079aa@justobjects.nl> Message-ID: Hi Just, I've been working hard on the demo server, for the 8.0.1 release, so your report is good timing, will take a look... Thanks, -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2023-03-29 7:08 a.m., Just van den Broecke wrote: > Hi, > > In the pygeoapi CI on GitHub we experience suddenly an error in the OGR > Provider that connects via WFS to the MapServer demo server. The problem > has to do with HTTP/2 on a Ubuntu 20.04 system. > > Error is like: > "Failure, Msg: HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR > (err 1)" > > I can trigger the same error with curl on a Ubuntu 20.04 LTS (used by > the GH CI) > > ?curl -v? https://demo.mapserver.org/cgi-bin/wfs > > * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): > * old SSL session ID is stale, removing > * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! > * http2 error: Invalid HTTP header field was received: frame type: 1, > stream: 1, name: [upgrade], value: [h2,h2c] > * HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) > * stopped the pause stream! > * Connection #0 to host demo.mapserver.org left intact > curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) > > > Forcing HTTP 1.1 gets rid of the error: > > curl -v? --http1.1 https://demo.mapserver.org/cgi-bin/wfs > > So it doesn't seem pygeoapi nor GDAL-related. Looks more like this > (Apache) problem: > https://serverfault.com/questions/937253/https-doesnt-work-with-safari > > Best, > > --Just > > Just van den Broecke > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > From cneves at lrec.pt Thu Mar 30 02:53:35 2023 From: cneves at lrec.pt (Carlos Neves (LREC)) Date: Thu, 30 Mar 2023 10:53:35 +0100 Subject: [MapServer-users] Is there a way to make OPACITY depends of SCALE? Message-ID: <8b4b4d11-e517-89df-411e-930e301d3303@lrec.pt> Hi List, Is there a way to change OPACITY by scale? The goal is to show Orthophotomaps under risk areas. LAYER # Rock Fall Risk Model ??? NAME???????? "rockfall" ??????? COMPOSITE ??????????????? OPACITY 50 ??????? END ??? DATA???????? "geotiffs/risk_m.tiff" # GeoTiff RockFall Risk File ??? STATUS?????? default ??? TYPE???????? RASTER ??? METADATA ?????? "wms_title" "rockfall" ??? END ??????? TEMPLATE "rockfall_query.html" # Rockfall Query file ??????????????? CLASS ??????????????????????? NAME "RockFall Risk" ??????????????????????? EXPRESSION ([pixel] > 0 ) ??????????????????????? #MAXSCALEDENOM 10000 ??????????????????????? #MINSCALEDENOM 2000 ??????????????????????? STYLE ??????????????????????????????? DATARANGE 1 3 ??????????????????????? ??? ??? COLORRANGE 255 255 0 255 0 0 ??????????????????????? END #STYLE ??????????????? END #Class END # Rock Fall layer ends here ############################################################################ risk map example: Best Regards, Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GrShjLticBib5lkF.jpg Type: image/jpeg Size: 7112 bytes Desc: not available URL: From michael.smith.erdc at gmail.com Thu Mar 30 03:28:30 2023 From: michael.smith.erdc at gmail.com (michael.smith.erdc at gmail.com) Date: Thu, 30 Mar 2023 06:28:30 -0400 Subject: [MapServer-users] Is there a way to make OPACITY depends of SCALE? In-Reply-To: <8b4b4d11-e517-89df-411e-930e301d3303@lrec.pt> References: <8b4b4d11-e517-89df-411e-930e301d3303@lrec.pt> Message-ID: Carlos, Yes, you can use SCALETOKEN. https://mapserver.org/mapfile/layer.html Michael Smith US Army Corps > On Mar 30, 2023, at 5:53 AM, Carlos Neves (LREC) wrote: > > ? > Hi List, > > Is there a way to change OPACITY by scale? The goal is to show Orthophotomaps under risk areas. > > LAYER # Rock Fall Risk Model > NAME "rockfall" > COMPOSITE > OPACITY 50 > END > DATA "geotiffs/risk_m.tiff" # GeoTiff RockFall Risk File > STATUS default > TYPE RASTER > > METADATA > "wms_title" "rockfall" > END > TEMPLATE "rockfall_query.html" # Rockfall Query file > CLASS > NAME "RockFall Risk" > EXPRESSION ([pixel] > 0 ) > #MAXSCALEDENOM 10000 > #MINSCALEDENOM 2000 > STYLE > DATARANGE 1 3 > COLORRANGE 255 255 0 255 0 0 > END #STYLE > END #Class > > > END # Rock Fall layer ends here ############################################################################ > > risk map example: > > > > Best Regards, > > Carlos > > _______________________________________________ > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: GrShjLticBib5lkF.jpg Type: image/jpeg Size: 7112 bytes Desc: not available URL: From schroeter at netgis.de Thu Mar 30 05:22:16 2023 From: schroeter at netgis.de (Sven Schroeter) Date: Thu, 30 Mar 2023 14:22:16 +0200 Subject: [MapServer-users] Is there a way to make OPACITY depends of SCALE? In-Reply-To: <8b4b4d11-e517-89df-411e-930e301d3303@lrec.pt> References: <8b4b4d11-e517-89df-411e-930e301d3303@lrec.pt> Message-ID: <587f20c7-4782-27a3-c604-e937548d9a99@netgis.de> Hi, I think that would only be possible with several layers? in a GROUP at the moment... Greetings Sven Am 30.03.2023 um 11:53 schrieb Carlos Neves (LREC): > > Hi List, > > Is there a way to change OPACITY by scale? The goal is to show > Orthophotomaps under risk areas. > > LAYER # Rock Fall Risk Model > ??? NAME???????? "rockfall" > ??????? COMPOSITE > ??????????????? OPACITY 50 > ??????? END > ??? DATA???????? "geotiffs/risk_m.tiff" # GeoTiff RockFall Risk File > ??? STATUS?????? default > ??? TYPE???????? RASTER > > ??? METADATA > ?????? "wms_title" "rockfall" > ??? END > ??????? TEMPLATE "rockfall_query.html" # Rockfall Query file > ??????????????? CLASS > ??????????????????????? NAME "RockFall Risk" > ??????????????????????? EXPRESSION ([pixel] > 0 ) > ??????????????????????? #MAXSCALEDENOM 10000 > ??????????????????????? #MINSCALEDENOM 2000 > ??????????????????????? STYLE > ??????????????????????????????? DATARANGE 1 3 > ??????????????????????? ??? ??? COLORRANGE 255 255 0 255 0 0 > ??????????????????????? END #STYLE > ??????????????? END #Class > > > END # Rock Fall layer ends here > ############################################################################ > > risk map example: > > Best Regards, > > Carlos > > > _______________________________________________ > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: GrShjLticBib5lkF.jpg Type: image/jpeg Size: 7112 bytes Desc: not available URL: From benedek.petrovicz at gmail.com Thu Mar 30 05:55:55 2023 From: benedek.petrovicz at gmail.com (Benedek Petrovicz) Date: Thu, 30 Mar 2023 14:55:55 +0200 Subject: [MapServer-users] Changing mapfile values via CGI parameters Message-ID: Hi! I just upgraded MapServer from 7.7.0 to 8.0.0 and some CGI parameters just stopped working. I'm trying to change the label size on a specific layer with the following parameter: *map.layer[county].class[0].label[0]=SIZE+24* In 7.7.0 it's working perfectly. In 8.0.0 it's not changing anything. I couldn't find any notes about dropping this functionality in 8.0.0, but I might have missed something. What am I missing here? Thank you! Benedek -------------- next part -------------- An HTML attachment was scrubbed... URL: From joerg.thomsen at wheregroup.com Thu Mar 30 06:31:37 2023 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Thu, 30 Mar 2023 15:31:37 +0200 Subject: [MapServer-users] Changing mapfile values via CGI parameters In-Reply-To: References: Message-ID: <74fc0348-f286-b13a-72d1-7418807cd5f2@wheregroup.com> Hi, it's been removed. see: https://mapserver.org/cgi/controls.html#using-mapserver-version-8 > Previous versions of the MapServer CGI program allowed certain > parameters to be changed via a URL using a cumbersome synta Here's a bit longer explanation Steve Lime wrote a few month ago: > -------- Weitergeleitete Nachricht -------- > Betreff: Re: [MapServer-users] mapserver 8 - CGI map_object substitutions broken? > Datum: Thu, 6 Oct 2022 14:49:32 -0500 > Von: Steve Lime > An: Tim Kempisty > Kopie (CC): mapserver-users at lists.osgeo.org > > > > Hi Tim: I was wondering if I'd see any messages on that topic. Short story is that the functionality was removed in MS8. I never liked the all-or-nothing aspect of it and was working on a method to control which objects would be allowed to be updated. The solutions I came up with were convoluted and were going to add a lot of complexity to the codebase for little value. That functionality is poorly documented and by itself overly complicates the code. So after a note to mapserver-users trying to judge how much it was used - with limited replies - it was decided to remove it. I'm dealing with my own upgrade issues as a result, but it's worth it in the end IMHO. > > If necessary, it's better to revisit with another method - ideally something along the lines of runsubs. The challenge is specifying when to apply them and how to validate values. Strings are easy, but numeric/color values aren't so we'd need to do something like add runtime bindings (similar to attribute bindings) so you'd write SIZE %mysize% instead. One advantage being you could reuse the variable across layers. > > So, what are the options right now? It sort of depends on your needs. Do you need to only support a couple of sizes for a class or do you truly need *any* size? Options include: > > * multiple mapfiles - probably using includes to limit redundancy > * class groups > * if you're using a db backend I think attribute bindings could work > paired with runsubs > > DATA "shape FROM (select *, %textsize% AS textsize FROM ...) > > VALIDATION > > "textsize_default" "13" > > "textsize" "^8|10|12|14$" > > END > > CLASS > > LABEL > > SIZE [textsize] # I think attribute binding works here > > END > > END > > * MapScript - load the mapfile, do the changes you need, render the map > > Happy to discuss further and perhaps other folks have ideas. Am 30.03.23 um 14:55 schrieb Benedek Petrovicz: > Hi! > > I just upgraded MapServer from 7.7.0 to 8.0.0 and some CGI parameters > just stopped working. > > I'm trying to change the label size on a specific layer with the > following parameter: *map.layer[county].class[0].label[0]=SIZE+24* > > In 7.7.0 it's working perfectly. > In 8.0.0 it's not changing anything. > > I couldn't find any notes about dropping this functionality in 8.0.0, > but I might have missed something. > > What am I missing here? > > Thank you! > Benedek > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Viele Gr??e, J?rg Thomsen --------------------------------------------- Aufwind durch Wissen! Web-Seminare und Online-Schulungen bei der www.foss-academy.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Tel: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From trygve at aspenes.priv.no Thu Mar 30 07:31:26 2023 From: trygve at aspenes.priv.no (Trygve Aspenes) Date: Thu, 30 Mar 2023 16:31:26 +0200 Subject: [MapServer-users] mapcache: time dimension default value and psql list_query Message-ID: Hi mapserver users list I have a mapserver backend with mapcache to handle the tile queries and psql as a db. It's working but I have some details I'm trying to improve. 1: The time dimension has a default value. The client I server data to require this. I have 1 week of data available adding more data every 5 minute ( and deleting old data). Therefor the hard coded default value quickly become out of range. ie: Is there a way to make the default value be the newest value from my psql? (an emergency solution will be to make some kind of script that continuously update this value somehow, but I hoped to avoid that.) 2: I think I understand that list all timestamps values from the psql. This will be visible in the mapcache getcapabilities as a list of timestamps, 2016 stamps with data every 5 minutes for one week. Like 2023-03-23T00:00:00Z, 2023-03-30T13:30:00Z Is there a way to make a start/end/step kind of list? eg 2023-03-23T00:00:00Z/2023-03-30T13:30:00Z/PT5M Thanks Trygve Aspenes