From jmckenna at gatewaygeomatics.com Sun Jan 1 05:43:19 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 1 Jan 2023 08:43:19 -0500 Subject: [MapServer-users] Link in SLD doc returns an exception In-Reply-To: <4c84a2ac917e417aa7b5759e1d78135f@geoanalytic.com> References: <4c84a2ac917e417aa7b5759e1d78135f@geoanalytic.com> Message-ID: <26bb2aaa-55ff-6efe-8659-df578de437ad@gatewaygeomatics.com> Happy new year Brent, I have been updating the demo server with big changes, so your timing is good: if you don't mind, it helps me if you file this as a ticket in the documentation repository (I'll then tag it there as a demo server ticket) : https://github.com/MapServer/MapServer-documentation Thanks, -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2022-12-30 5:34 p.m., Brent Fraser wrote: > > Hi All, > > I'm experimenting with SLD and reading the MapServer doc. ?On the SLD > page under Server Side Support, it says "Test the remote SLD request" > with a link to > > https://demo.mapserver.org/cgi-bin/wms?SERVICE=wms&VERSION=1.1.1&REQUEST=GetMap&LAYERS=country_bounds&FORMAT=png&WIDTH=400&HEIGHT=300&SRS=EPSG:4326&STYLES=&BBOX=-180.0,-90.0,180.0,90.0&TRANSPARENT=TRUE&SLD=https://demo.mapserver.org/ogc-demos/map/sld/sld_line_simple.xml > > The link looks good but it returns an exception: > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msSLDApplySLDURL: WMS server error. Could not open SLD > https://demo.mapserver.org/ogc-demos/map/sld/sld_line_simple.xml > and > save it in a temporary file. Please make sure that the sld url is valid > and that the temporary path is set. The temporary path can be defined > for example by setting TEMPPATH in the map file. Please check the > MapServer documentation on temporary path settings. > msHTTPExecuteRequests(): HTTP request error. HTTP GET request failed > with status 404 () for > https://demo.mapserver.org/ogc-demos/map/sld/sld_line_simple.xml > > > > > > Is the demo in a repo somewhere or does someone have some insight? ?Thanks! > > Best regards, > Brent Fraser > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Sun Jan 1 08:43:14 2023 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 1 Jan 2023 09:43:14 -0700 Subject: [MapServer-users] Link in SLD doc returns an exception In-Reply-To: <26bb2aaa-55ff-6efe-8659-df578de437ad@gatewaygeomatics.com> References: <4c84a2ac917e417aa7b5759e1d78135f@geoanalytic.com> <26bb2aaa-55ff-6efe-8659-df578de437ad@gatewaygeomatics.com> Message-ID: Hi Jeff, I've filed an Issue in the docs. I haven't looked at the Mapserver code yet, but do you have any insight as to why I would get a "Cross-Origin Request Blocked" error from the foreign server when I include the SLD body (not the URL) in the get request using the SLD_BODY= parameter? Thanks! Brent ---------------------------------------- From: "Jeff McKenna" Sent: 1/1/23 6:57 AM To: mapserver-users at lists.osgeo.org Subject: Re: [MapServer-users] Link in SLD doc returns an exception Happy new year Brent, I have been updating the demo server with big changes, so your timing is good: if you don't mind, it helps me if you file this as a ticket in the documentation repository (I'll then tag it there as a demo server ticket) : https://github.com/MapServer/MapServer-documentation Thanks, -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2022-12-30 5:34 p.m., Brent Fraser wrote: > > Hi All, > > I'm experimenting with SLD and reading the MapServer doc. On the SLD > page under Server Side Support, it says "Test the remote SLD request" > with a link to > > https://demo.mapserver.org/cgi-bin/wms?SERVICE=wms&VERSION=1.1.1&REQUEST=GetMap&LAYERS=country_bounds&FORMAT=png&WIDTH=400&HEIGHT=300&SRS=EPSG:4326&STYLES=&BBOX=-180.0,-90.0,180.0,90.0&TRANSPARENT=TRUE&SLD=https://demo.mapserver.org/ogc-demos/map/sld/sld_line_simple.xml > > The link looks good but it returns an exception: > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msSLDApplySLDURL: WMS server error. Could not open SLD > https://demo.mapserver.org/ogc-demos/map/sld/sld_line_simple.xml > and > save it in a temporary file. Please make sure that the sld url is valid > and that the temporary path is set. The temporary path can be defined > for example by setting TEMPPATH in the map file. Please check the > MapServer documentation on temporary path settings. > msHTTPExecuteRequests(): HTTP request error. HTTP GET request failed > with status 404 () for > https://demo.mapserver.org/ogc-demos/map/sld/sld_line_simple.xml > > > > > > Is the demo in a repo somewhere or does someone have some insight? Thanks! > > Best regards, > Brent Fraser > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ 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 list at jbelien.be Mon Jan 2 08:23:04 2023 From: list at jbelien.be (=?UTF-8?Q?Jonathan_Beli=C3=ABn?=) Date: Mon, 02 Jan 2023 17:23:04 +0100 Subject: [MapServer-users] Mapfile PHP Library and Editor Message-ID: Hello everyone, I've developed a few years ago a library in PHP to read and write Mapfiles and based on that library a web editor to ease the way to write a Mapfile. These last few weeks, I've (finally) prepared a new version, added a full test suite, and released version 2 of that PHP library : https://github.com/jbelien/MapFile-PHP-Library The web editor based on that library was previously on Heroku (https://mapfile.herokuapp.com/) but since Heroku will stop offering a free tier, I've migrated it here https://mapfile.akoo.be/ (Heroku host will be discarded soon). Do not hesitate to ask if you have any question or suggestion and I'll hope those 2 little projects will be useful for some of you. I wish you all a really happy 2023 ! Jonathan Beli?n -------------- next part -------------- An HTML attachment was scrubbed... URL: From bahbouba.909 at gmail.com Mon Jan 2 17:13:59 2023 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Tue, 3 Jan 2023 02:13:59 +0100 Subject: [MapServer-users] asking help Message-ID: Hello everybody. I am writing this message to ask for your help regarding a problem I encountered while trying to run the file named *install-demo-data.bat in the folder \apps\tinyows\demo\ *but it shows me the following error: https://pasteboard.co/msgj2PDMYMOJ.png while i copied cgi-bin and bin path in windows environment variable path following thank you in advancing. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Thu Jan 5 03:27:41 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Thu, 5 Jan 2023 11:27:41 +0000 Subject: [MapServer-users] list of layer groups without possibilite to access theirs components. Message-ID: Hello, the last time I was asking about hiding layers in mapfile. I was not clear about what I want to performe. As you can see group "2022-11-01" constist of two layers: https://pasteboard.co/oxYkqAWrkabh.png My goal is to deliver generalized tif on low zoom levels and on scale 1000000 change data source and deliver original tifs via Tileindex. The GROUP allows me to add those two datasets as one layer to qgis etc. But I do not want users to access or see layers which creates the groups. Unfortunately right now I have something like this: https://pasteboard.co/W3yjlTr9XtOJ.png What i want is to have only list of groups without possibilite to access theirs components. Best, Marcin [cid:28472a4b-c01c-4d19-aa97-c8c933134b6a] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-ytyrzks2.png Type: image/png Size: 528 bytes Desc: Outlook-ytyrzks2.png URL: From mniemyjski at cloudferro.com Thu Jan 5 03:45:38 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Thu, 5 Jan 2023 11:45:38 +0000 Subject: [MapServer-users] How to create aliases on mapserver docker image camptocamp/mapserver? Message-ID: Hello, I'm using camptocamp mapserver docker image. I want to create Aliases so I can access several mapfiles using their file names, example: www.service.pl/WMSNo1 instead of www.service.pl?map=/etc/mapserver/WMSNo1.map. Could you please provide me an example of how to edit /etc/apache2/apache2.conf to make it work? On regular Mapserver I'm using this as alias and it works just fine: Alias /Sentinel2Ukraine "/usr/lib/cgi-bin/mapserv" SetHandler cgi-script Options ExecCGI SetEnv MS_MAPFILE "/DyskPlanetiler/MAPFILEs/automatyzacja/Sentinel2Ukraine.map" On camptocamp I created somthing similiar to code above: Alias /Sentinel2Ukraine "/usr/local/bin/mapserv" SetHandler cgi-script Options ExecCGI SetEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map" Alias /Sentinel2Poland "/usr/local/bin/mapserv" SetHandler cgi-script Options ExecCGI SetEnv MS_MAPFILE "/etc/mapserver/Sentinel-2-PL.map" Best, Marcin [cid:82461a60-acc1-4e39-b8ee-5bb3f8c6119c] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-g2f5ffip.png Type: image/png Size: 528 bytes Desc: Outlook-g2f5ffip.png URL: From sethg at geographika.co.uk Thu Jan 5 06:43:56 2023 From: sethg at geographika.co.uk (Seth G) Date: Thu, 05 Jan 2023 15:43:56 +0100 Subject: [MapServer-users] Symbol image on s3 bucket? In-Reply-To: References: Message-ID: <646c436b-dba9-4c29-84a0-d88662c2e3ca@app.fastmail.com> Hi Marcin, This is not currently possible (fopen is used to read these files [1]), but it would be a very nice feature to allow the GDAL virtual filesytems to be used for symbols (and maybe also fonts). Seth [1] https://github.com/MapServer/MapServer/blob/5dbbf8a19abb2f30b4852b72c8661faac14ae4c9/mapimageio.c#L1099 -- web:https://geographika.net twitter: @geographika On Thu, Dec 22, 2022, at 12:01 PM, Marcin Niemyjski via MapServer-users wrote: > Hello, > > is it possible to keep my symbols images on S3 bucket and connect to them via vsis3? > > This way doesn't work: > > SYMBOL > NAME "fuel" > TYPE pixmap > IMAGE "/vsis3/Cyprus/fuel.png" > END > > Mapserver returns "msLoadMSRasterBufferFromFile(): General error message. unable to open file /vsis3/Cyprus/fuel.png for reading" > > Best, > Marcin > _______________________________________________ > 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 steve.lime at state.mn.us Fri Jan 6 07:50:24 2023 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 6 Jan 2023 15:50:24 +0000 Subject: [MapServer-users] How to create aliases on mapserver docker image camptocamp/mapserver? In-Reply-To: References: Message-ID: What isn't working with the configuration you have in place on docker? The locations aren't virtual hosts so they'd be sharing a mapserver config file. The config file support will fall back to an environment variable if the value isn't set explicitly in the config file - we get that for free with the CPL functions being used. So, at first glance it seems like having a custom value for MS_MAPFILE based on location should work assuming you don't have that value set in the mapserver config file. From: MapServer-users On Behalf Of Marcin Niemyjski via MapServer-users Sent: Thursday, January 5, 2023 5:46 AM To: Marcin Niemyjski via MapServer-users Subject: [MapServer-users] How to create aliases on mapserver docker image camptocamp/mapserver? ________________________________ Hello, I'm using camptocamp mapserver docker image. I want to create Aliases so I can access several mapfiles using their file names, example: www.service.pl/WMSNo1 instead of www.service.pl?map=/etc/mapserver/WMSNo1.map. Could you please provide me an example of how to edit /etc/apache2/apache2.conf to make it work? On regular Mapserver I'm using this as alias and it works just fine: Alias /Sentinel2Ukraine "/usr/lib/cgi-bin/mapserv" SetHandler cgi-script Options ExecCGI SetEnv MS_MAPFILE "/DyskPlanetiler/MAPFILEs/automatyzacja/Sentinel2Ukraine.map" On camptocamp I created somthing similiar to code above: Alias /Sentinel2Ukraine "/usr/local/bin/mapserv" SetHandler cgi-script Options ExecCGI SetEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map" Alias /Sentinel2Poland "/usr/local/bin/mapserv" SetHandler cgi-script Options ExecCGI SetEnv MS_MAPFILE "/etc/mapserver/Sentinel-2-PL.map" Best, Marcin [cid:image001.png at 01D921B4.154084C0] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 528 bytes Desc: image001.png URL: From bob.basques at ci.stpaul.mn.us Fri Jan 6 14:04:03 2023 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 6 Jan 2023 22:04:03 +0000 Subject: [MapServer-users] Twin Cities Local OSGeo Chapter Meeting for Jan 2023 Message-ID: All, Just sending out a request for presenter or presenters for our next virtual meeting on Jan. 11th. Time: 4:30 pm CDT Anything Geo related. I?ll take care of setting up the presentation , etc. Thanks Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Mon Jan 9 01:47:49 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Mon, 9 Jan 2023 09:47:49 +0000 Subject: [MapServer-users] accessing mapfiles that are not directly on host server via apache2 aliases? Message-ID: Hello, If the possibility of accessing mapfiles that are not directly on host server via apache2 aliases or redirect or any other way sounds like a good idea and maybe, considered as future update? As a daily user of Mapserver, I think this would be a great and powerful functionality. Example of how I tried that (I know it is not possible): https://pasteboard.co/tEUSonRE5IeC.png Best, Marcin [cid:6aab58cc-0706-4ae1-933d-50047d831f43] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-qvd5qh32.png Type: image/png Size: 528 bytes Desc: Outlook-qvd5qh32.png URL: From jukka.rahkonen at maanmittauslaitos.fi Mon Jan 9 02:10:52 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Mon, 9 Jan 2023 10:10:52 +0000 Subject: [MapServer-users] accessing mapfiles that are not directly on host server via apache2 aliases? In-Reply-To: References: Message-ID: Hi, I have not been thinking about your use case, it may be reasonable and safe, but generally speaking we have just added more control to the access to mapfiles due to security issues. See https://www.mapserver.org/optimization/limit_mapfile_access.html#limit-mapfile-access. -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Marcin Niemyjski via MapServer-users L?hetetty: maanantai 9. tammikuuta 2023 11.48 Vastaanottaja: Marcin Niemyjski via MapServer-users Aihe: [MapServer-users] accessing mapfiles that are not directly on host server via apache2 aliases? Hello, If the possibility of accessing mapfiles that are not directly on host server via apache2 aliases or redirect or any other way sounds like a good idea and maybe, considered as future update? As a daily user of Mapserver, I think this would be a great and powerful functionality. Example of how I tried that (I know it is not possible): https://pasteboard.co/tEUSonRE5IeC.png Best, Marcin [cid:image001.png at 01D92422.072F7920] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 528 bytes Desc: image001.png URL: From mniemyjski at cloudferro.com Mon Jan 9 02:12:56 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Mon, 9 Jan 2023 10:12:56 +0000 Subject: [MapServer-users] How to create aliases on mapserver docker image camptocamp/mapserver? In-Reply-To: References: Message-ID: Steve, after trying to connect to WMS using https://geo.cloudferro.com/ogc/wms/Sentinel2Ukraine I recive: Instead of the capabilities string that was expected, the following response has been received: MapServer Message msCGILoadMap(): Web application error. CGI variable "map" is not set. any idea on this one? Thanks, Marcin [cid:cfca5ef3-fccc-4e97-ad09-4a6b9b820144] Book time to meet with me ________________________________ From: Lime, Steve D (MNIT) Sent: Friday, January 6, 2023 4:50 PM To: Marcin Niemyjski ; Marcin Niemyjski via MapServer-users Subject: RE: How to create aliases on mapserver docker image camptocamp/mapserver? What isn?t working with the configuration you have in place on docker? The locations aren?t virtual hosts so they?d be sharing a mapserver config file. The config file support will fall back to an environment variable if the value isn?t set explicitly in the config file ? we get that for free with the CPL functions being used. So, at first glance it seems like having a custom value for MS_MAPFILE based on location should work assuming you don?t have that value set in the mapserver config file. From: MapServer-users On Behalf Of Marcin Niemyjski via MapServer-users Sent: Thursday, January 5, 2023 5:46 AM To: Marcin Niemyjski via MapServer-users Subject: [MapServer-users] How to create aliases on mapserver docker image camptocamp/mapserver? ________________________________ Hello, I'm using camptocamp mapserver docker image. I want to create Aliases so I can access several mapfiles using their file names, example: www.service.pl/WMSNo1 instead of www.service.pl?map=/etc/mapserver/WMSNo1.map. Could you please provide me an example of how to edit /etc/apache2/apache2.conf to make it work? On regular Mapserver I'm using this as alias and it works just fine: Alias /Sentinel2Ukraine "/usr/lib/cgi-bin/mapserv" SetHandler cgi-script Options ExecCGI SetEnv MS_MAPFILE "/DyskPlanetiler/MAPFILEs/automatyzacja/Sentinel2Ukraine.map" On camptocamp I created somthing similiar to code above: Alias /Sentinel2Ukraine "/usr/local/bin/mapserv" SetHandler cgi-script Options ExecCGI SetEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map" Alias /Sentinel2Poland "/usr/local/bin/mapserv" SetHandler cgi-script Options ExecCGI SetEnv MS_MAPFILE "/etc/mapserver/Sentinel-2-PL.map" Best, Marcin [cid:image001.png at 01D921B4.154084C0] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 528 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-ncnwmudk.png Type: image/png Size: 528 bytes Desc: Outlook-ncnwmudk.png URL: From mniemyjski at cloudferro.com Tue Jan 10 06:36:34 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Tue, 10 Jan 2023 14:36:34 +0000 Subject: [MapServer-users] apache2 aliases: msCGILoadMap(): Web application error. CGI variable " map" Message-ID: Hello, I'm trying to create Apache aliases by editing /etc/apache2/apache2.conf as below: Alias /Sentinel2Ukraine "/usr/local/bin/mapserv" SetHandler fcgi-script (I have also tried with cgi-script) Options ExecCGI SetEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map" Require all granted Then reload apache2. Following logs are recived: msCGILoadMap(): Web application error. CGI variable "map" is not set and https://pastecode.io/s/gkw8n24k My mapfile: https://pastecode.io/s/z75n6qo7 I would be grateful for any advice, Marcin [cid:2691e855-4eb1-4130-ba8b-c5bf19bfd113] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-tmaag4mn.png Type: image/png Size: 528 bytes Desc: Outlook-tmaag4mn.png URL: From joerg.thomsen at wheregroup.com Tue Jan 10 07:18:32 2023 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Tue, 10 Jan 2023 16:18:32 +0100 Subject: [MapServer-users] apache2 aliases: msCGILoadMap(): Web application error. CGI variable " map" In-Reply-To: References: Message-ID: <1ecb09ca-c35a-ebda-2f45-299b55ba3b5e@wheregroup.com> Hello Marcin, I'm n ot sure, but for fast-cgi I think it should be FcgidInitialEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map" Which MS Version do you use? With MapServer 8 you can easy use the mapserver config-file for defining the default mapfile and mapfile aliases. https://mapserver.org/mapfile/config.html J?rg Am 10.01.23 um 15:36 schrieb Marcin Niemyjski via MapServer-users: > > Hello, > > I'm trying to create Apache aliases by editing /etc/apache2/apache2.conf > as below: > > Alias /Sentinel2Ukraine "/usr/local/bin/mapserv" > > ? ? ? ? SetHandler fcgi-script (I have also tried with cgi-script) > ? ? ? ? Options ExecCGI > ? ? ? ? SetEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map" > ? ? ? ? Require all granted > > > Then reload apache2. Following logs are recived: > > msCGILoadMap(): Web application error. CGI variable "map" is > not set > and > https://pastecode.io/s/gkw8n24k > > My mapfile: > https://pastecode.io/s/z75n6qo7 > > I would be grateful for any advice, > 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 -- 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 Jan 10 13:55:59 2023 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 10 Jan 2023 21:55:59 +0000 Subject: [MapServer-users] [REMINDER] Twin Cities Local OSGeo Chapter Meeting for Jan 2023 Message-ID: <9AB67FA7-9A23-4C75-B021-0EAAF8927E9F@ci.stpaul.mn.us> All, No takers on presenting for this months meeting. Going with a face to face meeting at Keg and Case. 928 7th Street West Saint Paul MN, 55102 Time 4:30 pm. Jan 11th. Upstairs in one of the sitting areas. Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Wed Jan 11 00:48:39 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Wed, 11 Jan 2023 08:48:39 +0000 Subject: [MapServer-users] apache2 aliases: msCGILoadMap(): Web application error. CGI variable " map" In-Reply-To: <1ecb09ca-c35a-ebda-2f45-299b55ba3b5e@wheregroup.com> References: <1ecb09ca-c35a-ebda-2f45-299b55ba3b5e@wheregroup.com> Message-ID: J?rg, config-file sounds like a greate idea - thank you. In docker image (camptocamp/mapserver:latest - Mapserver 8) which I use config-fie is located at /etc/mapserver.conf. I've edited it this way: https://pastecode.io/s/ze13uqmz but later after trying to connect to WMS via https://geo.cloudferro.com/ogc/wms/Sentinel2Ukraine or https://geo.cloudferro.com/ogc/wms/usr/local/bin/mapserv/Sentinel2Ukraine I still get the "msCGILoadMap(): Web application error. CGI variable "map" is not set.". Should I reload apache2 after editing /et/mapserver.conf or do something else to enable the edits? Best, Marcin [cid:97709ed4-1ada-4da2-b0c2-6726b98c518c] Book time to meet with me ________________________________ From: MapServer-users on behalf of J?rg Thomsen (WhereGroup) Sent: Tuesday, January 10, 2023 4:18 PM To: mapserver-users at lists.osgeo.org Subject: Re: [MapServer-users] apache2 aliases: msCGILoadMap(): Web application error. CGI variable " map" Hello Marcin, I'm n ot sure, but for fast-cgi I think it should be FcgidInitialEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map" Which MS Version do you use? With MapServer 8 you can easy use the mapserver config-file for defining the default mapfile and mapfile aliases. https://mapserver.org/mapfile/config.html J?rg Am 10.01.23 um 15:36 schrieb Marcin Niemyjski via MapServer-users: > > Hello, > > I'm trying to create Apache aliases by editing /etc/apache2/apache2.conf > as below: > > Alias /Sentinel2Ukraine "/usr/local/bin/mapserv" > > SetHandler fcgi-script (I have also tried with cgi-script) > Options ExecCGI > SetEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map" > Require all granted > > > Then reload apache2. Following logs are recived: > > msCGILoadMap(): Web application error. CGI variable "map" is > not set > and > https://pastecode.io/s/gkw8n24k > > My mapfile: > https://pastecode.io/s/z75n6qo7 > > I would be grateful for any advice, > 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 -- 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-0mrmbws4.png Type: image/png Size: 528 bytes Desc: Outlook-0mrmbws4.png URL: From greg at visible.city Wed Jan 18 10:19:18 2023 From: greg at visible.city (Greg Robillard) Date: Wed, 18 Jan 2023 10:19:18 -0800 Subject: [MapServer-users] mapcache install -- libapache Message-ID: Has anyone had luck installing libapache2-mod-mapcache? I installed Mapserver 7.4 using apt on an Ubuntu 22.04 server. Mapserver works beautifully. I attempted to do the same with apt to install the Apache Mapcache module libapache2-mod-mapcache, but the installation fails. The install goes through, but Apache fails to start. The message from apachctl configtest reads: "Cannot load /usr/lib/apache2/modules/mod_mapcache.so into server: libpng12.so.0: cannot open shared object file: No such file or directory." I can verify that the .so file is in the correct place in the system. When I run $ldd /usr/lib/apache2/modules/mod_mapcache.so, the response is empty, which suggests to me that the install of /usr/lib/apache2/modules/mod_mapcache.so failed. I cannot find any documentation around the use of libapache2-mod-mapcache, so I am wondering if my best bet is to compile from source. Thanks, Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Tue Jan 24 02:36:21 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Tue, 24 Jan 2023 10:36:21 +0000 Subject: [MapServer-users] GetMap request inside python script; measuring speed of WMS? Message-ID: Hello, I want to measure how long does it takes for my WMS to response to GetMap request. I have prepared list of extents in form of python list for example: ['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628', '38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628'...] I'm aiming into itterating over this list and passing it's elements into GetMap request inside python script and then request GetMap and measure how long does it takes to perfome it. Here starts my question: How to do GetMap request inside python script, is it possible? The question is not about creating the url but about function wich does request. Maybe somebody can recommend me some other way of measuring speed of WMS? I would like show my k8s cluster service as use-case at FOSS4G 2023 and i need some statistics for presentation ? Best, Marcin [cid:f896bb67-9d7c-4fef-a779-e7ab8c29f1e6] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-a1f1cvge.png Type: image/png Size: 528 bytes Desc: Outlook-a1f1cvge.png URL: From sethg at geographika.co.uk Tue Jan 24 02:39:43 2023 From: sethg at geographika.co.uk (Seth G) Date: Tue, 24 Jan 2023 11:39:43 +0100 Subject: [MapServer-users] GetMap request inside python script; measuring speed of WMS? In-Reply-To: References: Message-ID: <68512049-d2b3-47b6-a0d6-ddf307f7e668@app.fastmail.com> Hi Marcin, Have a look at the example Python script at https://github.com/MapServer/MapServer/blob/main/mapscript/python/examples/wxs.py - this shows creating and calling a WMS request. Seth -- web:https://geographika.net twitter: @geographika On Tue, Jan 24, 2023, at 11:36 AM, Marcin Niemyjski via MapServer-users wrote: > Hello, > > I want to measure how long does it takes for my WMS to response to GetMap request. I have prepared list of extents in form of python list for example: > ['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628', '38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628'...] > > I'm aiming into itterating over this list and passing it's elements into GetMap request inside python script and then request GetMap and measure how long does it takes to perfome it. > > Here starts my question: How to do GetMap request inside python script, is it possible? The question is not about creating the url but about function wich does request. > Maybe somebody can recommend me some other way of measuring speed of WMS? > > I would like show my k8s cluster service as use-case at FOSS4G 2023 and i need some statistics for presentation ? > > Best, > 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-a1f1cvge.png Type: image/png Size: 528 bytes Desc: not available URL: From jukka.rahkonen at maanmittauslaitos.fi Tue Jan 24 03:00:46 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Tue, 24 Jan 2023 11:00:46 +0000 Subject: [MapServer-users] GetMap request inside python script; measuring speed of WMS? In-Reply-To: References: Message-ID: Hi, If you want to use less time for programming, then JMeter is widely used for that kind of testing and it was also used in the FOSS4G benchmarks https://wiki.osgeo.org/wiki/FOSS4G_Benchmark. Maybe you can get some inspiration from the wiki. The subversion repository is also alive and I think that for example the directories for years 2010 and 2011 may contain something interesting and re-usable https://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/ -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Marcin Niemyjski via MapServer-users L?hetetty: tiistai 24. tammikuuta 2023 12.36 Vastaanottaja: Marcin Niemyjski via MapServer-users Aihe: [MapServer-users] GetMap request inside python script; measuring speed of WMS? Hello, I want to measure how long does it takes for my WMS to response to GetMap request. I have prepared list of extents in form of python list for example: ['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628', '38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628'...] I'm aiming into itterating over this list and passing it's elements into GetMap request inside python script and then request GetMap and measure how long does it takes to perfome it. Here starts my question: How to do GetMap request inside python script, is it possible? The question is not about creating the url but about function wich does request. Maybe somebody can recommend me some other way of measuring speed of WMS? I would like show my k8s cluster service as use-case at FOSS4G 2023 and i need some statistics for presentation ? Best, Marcin [cid:image001.png at 01D92FF2.521D8E00] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 528 bytes Desc: image001.png URL: From mniemyjski at cloudferro.com Tue Jan 24 03:02:08 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Tue, 24 Jan 2023 11:02:08 +0000 Subject: [MapServer-users] GetMap request inside python script; measuring speed of WMS? In-Reply-To: <68512049-d2b3-47b6-a0d6-ddf307f7e668@app.fastmail.com> References: <68512049-d2b3-47b6-a0d6-ddf307f7e668@app.fastmail.com> Message-ID: Seth, do I understand it correctly? I need to provide WMS's mapfile to perform request? I assume that I should be mainly interested in code part between 16 and 36 line. Thank you for quick response, Marcin [cid:fb72e1ec-b687-422e-ad49-e0dca75a8c35] Book time to meet with me ________________________________ From: Seth G Sent: Tuesday, January 24, 2023 11:39 AM To: Marcin Niemyjski ; MapServer Users Subject: Re: [MapServer-users] GetMap request inside python script; measuring speed of WMS? Hi Marcin, Have a look at the example Python script at https://github.com/MapServer/MapServer/blob/main/mapscript/python/examples/wxs.py - this shows creating and calling a WMS request. Seth -- web:https://geographika.net twitter: @geographika On Tue, Jan 24, 2023, at 11:36 AM, Marcin Niemyjski via MapServer-users wrote: Hello, I want to measure how long does it takes for my WMS to response to GetMap request. I have prepared list of extents in form of python list for example: ['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628', '38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628'...] I'm aiming into itterating over this list and passing it's elements into GetMap request inside python script and then request GetMap and measure how long does it takes to perfome it. Here starts my question: How to do GetMap request inside python script, is it possible? The question is not about creating the url but about function wich does request. Maybe somebody can recommend me some other way of measuring speed of WMS? I would like show my k8s cluster service as use-case at FOSS4G 2023 and i need some statistics for presentation ? Best, Marcin [cid:f896bb67-9d7c-4fef-a779-e7ab8c29f1e6] 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-a1f1cvge.png Type: image/png Size: 528 bytes Desc: Outlook-a1f1cvge.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-snopzlg0.png Type: image/png Size: 528 bytes Desc: Outlook-snopzlg0.png URL: From roman.bamio at juntadeandalucia.es Tue Jan 24 02:54:41 2023 From: roman.bamio at juntadeandalucia.es (Roman Bamio Gonzalez) Date: Tue, 24 Jan 2023 11:54:41 +0100 Subject: [MapServer-users] MapServer-users Digest, Vol 180, Issue 14 In-Reply-To: References: Message-ID: Hi! You can use the jmeter product with which you avoid having to make a script... Besides; the calls you make must be spatially separated so that the mapserver does not return cached responses and you get unreal response times. thanks for listening! El 24/01/2023 a las 11:40, mapserver-users-request at lists.osgeo.org escribi?: > Send MapServer-users mailing list submissions to > mapserver-users at lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.osgeo.org/mailman/listinfo/mapserver-users > or, via email, send a message with subject or body 'help' to > mapserver-users-request at lists.osgeo.org > > You can reach the person managing the list at > mapserver-users-owner at lists.osgeo.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of MapServer-users digest..." > > > Today's Topics: > > 1. GetMap request inside python script; measuring speed of WMS? > (Marcin Niemyjski) > 2. Re: GetMap request inside python script; measuring speed of > WMS? (Seth G) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 24 Jan 2023 10:36:21 +0000 > From: Marcin Niemyjski > To: Marcin Niemyjski via MapServer-users > > Subject: [MapServer-users] GetMap request inside python script; > measuring speed of WMS? > Message-ID: > > > Content-Type: text/plain; charset="utf-8" > > Hello, > > I want to measure how long does it takes for my WMS to response to GetMap request. I have prepared list of extents in form of python list for example: > ['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628', '38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628'...] > > I'm aiming into itterating over this list and passing it's elements into GetMap request inside python script and then request GetMap and measure how long does it takes to perfome it. > > Here starts my question: How to do GetMap request inside python script, is it possible? The question is not about creating the url but about function wich does request. > Maybe somebody can recommend me some other way of measuring speed of WMS? > > I would like show my k8s cluster service as use-case at FOSS4G 2023 and i need some statistics for presentation ? > > Best, > Marcin > > > > > [cid:f896bb67-9d7c-4fef-a779-e7ab8c29f1e6] Book time to meet with me > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: Outlook-a1f1cvge.png > Type: image/png > Size: 528 bytes > Desc: Outlook-a1f1cvge.png > URL: > > ------------------------------ > > Message: 2 > Date: Tue, 24 Jan 2023 11:39:43 +0100 > From: "Seth G" > To: "Marcin Niemyjski", "MapServer Users" > > Subject: Re: [MapServer-users] GetMap request inside python script; > measuring speed of WMS? > Message-ID:<68512049-d2b3-47b6-a0d6-ddf307f7e668 at app.fastmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi Marcin, > > Have a look at the example Python script athttps://github.com/MapServer/MapServer/blob/main/mapscript/python/examples/wxs.py - this shows creating and calling a WMS request. > > Seth > > -- > web:https://geographika.net > twitter: @geographika > > On Tue, Jan 24, 2023, at 11:36 AM, Marcin Niemyjski via MapServer-users wrote: >> Hello, >> >> I want to measure how long does it takes for my WMS to response to GetMap request. I have prepared list of extents in form of python list for example: >> ['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628', '38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628'...] >> >> I'm aiming into itterating over this list and passing it's elements into GetMap request inside python script and then request GetMap and measure how long does it takes to perfome it. >> >> Here starts my question: How to do GetMap request inside python script, is it possible? The question is not about creating the url but about function wich does request. >> Maybe somebody can recommend me some other way of measuring speed of WMS? >> >> I would like show my k8s cluster service as use-case at FOSS4G 2023 and i need some statistics for presentation ? >> >> Best, >> 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-a1f1cvge.png > Type: image/png > Size: 528 bytes > Desc: not available > URL: > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------ > > End of MapServer-users Digest, Vol 180, Issue 14 > ************************************************ -- Logo Junta Andalucia Rom?n Bamio Gonz?lez Gesti?n Proyectos Agencia Digital de Andaluc?a Consejer?a de Sostenibilidad, Medio Ambiente y Econom?a Azul https://lajunta.es/3z0xj T: 955003635 (Corp. 303635) | M: N/A roman.bamio at juntadeandalucia.es | www.juntadeandalucia.es AVISO DE CONFIDENCIALIDAD Tanto este mensaje como todos los posibles documentos adjuntos al mismo son confidenciales y est?n dirigidos exclusivamente a los destinatarios de los mismos. Por favor, si Ud no es uno de dichos destinatarios, notif?quenos este hecho y elimine este mensaje lo antes posible.Queda prohibida la copia, difusi?n o revelaci?n de su contenido a terceros sin el previo consentimiento por escrito de la Consejer?a. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura.PNG Type: image/png Size: 6427 bytes Desc: not available URL: From mniemyjski at cloudferro.com Tue Jan 24 03:15:50 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Tue, 24 Jan 2023 11:15:50 +0000 Subject: [MapServer-users] MapServer-users Digest, Vol 180, Issue 14 In-Reply-To: References: Message-ID: Roman, are you talking about something like this https://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2011/jmeter/mapserver/linux/ ? I'm not fammilliar with .jmx file or jmeter itself, could you pleas provide me some example / further explenation? Thank you, Marcin [cid:720503ba-ad00-4f19-862d-d3ae8b8af1f5] Book time to meet with me ________________________________ From: MapServer-users on behalf of Roman Bamio Gonzalez Sent: Tuesday, January 24, 2023 11:54 AM To: mapserver-users at lists.osgeo.org Subject: Re: [MapServer-users] MapServer-users Digest, Vol 180, Issue 14 Hi! You can use the jmeter product with which you avoid having to make a script... Besides; the calls you make must be spatially separated so that the mapserver does not return cached responses and you get unreal response times. thanks for listening! El 24/01/2023 a las 11:40, mapserver-users-request at lists.osgeo.org escribi?: Send MapServer-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of MapServer-users digest..." Today's Topics: 1. GetMap request inside python script; measuring speed of WMS? (Marcin Niemyjski) 2. Re: GetMap request inside python script; measuring speed of WMS? (Seth G) ---------------------------------------------------------------------- Message: 1 Date: Tue, 24 Jan 2023 10:36:21 +0000 From: Marcin Niemyjski To: Marcin Niemyjski via MapServer-users Subject: [MapServer-users] GetMap request inside python script; measuring speed of WMS? Message-ID: Content-Type: text/plain; charset="utf-8" Hello, I want to measure how long does it takes for my WMS to response to GetMap request. I have prepared list of extents in form of python list for example: ['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628', '38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628'...] I'm aiming into itterating over this list and passing it's elements into GetMap request inside python script and then request GetMap and measure how long does it takes to perfome it. Here starts my question: How to do GetMap request inside python script, is it possible? The question is not about creating the url but about function wich does request. Maybe somebody can recommend me some other way of measuring speed of WMS? I would like show my k8s cluster service as use-case at FOSS4G 2023 and i need some statistics for presentation ? Best, Marcin [cid:f896bb67-9d7c-4fef-a779-e7ab8c29f1e6] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-a1f1cvge.png Type: image/png Size: 528 bytes Desc: Outlook-a1f1cvge.png URL: ------------------------------ Message: 2 Date: Tue, 24 Jan 2023 11:39:43 +0100 From: "Seth G" To: "Marcin Niemyjski" , "MapServer Users" Subject: Re: [MapServer-users] GetMap request inside python script; measuring speed of WMS? Message-ID: <68512049-d2b3-47b6-a0d6-ddf307f7e668 at app.fastmail.com> Content-Type: text/plain; charset="utf-8" Hi Marcin, Have a look at the example Python script at https://github.com/MapServer/MapServer/blob/main/mapscript/python/examples/wxs.py - this shows creating and calling a WMS request. Seth -- web:https://geographika.net twitter: @geographika On Tue, Jan 24, 2023, at 11:36 AM, Marcin Niemyjski via MapServer-users wrote: Hello, I want to measure how long does it takes for my WMS to response to GetMap request. I have prepared list of extents in form of python list for example: ['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628', '38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628'...] I'm aiming into itterating over this list and passing it's elements into GetMap request inside python script and then request GetMap and measure how long does it takes to perfome it. Here starts my question: How to do GetMap request inside python script, is it possible? The question is not about creating the url but about function wich does request. Maybe somebody can recommend me some other way of measuring speed of WMS? I would like show my k8s cluster service as use-case at FOSS4G 2023 and i need some statistics for presentation ? Best, 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-a1f1cvge.png Type: image/png Size: 528 bytes Desc: not available URL: ------------------------------ Subject: Digest Footer _______________________________________________ MapServer-users mailing list MapServer-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ End of MapServer-users Digest, Vol 180, Issue 14 ************************************************ -- [Logo Junta Andalucia] Rom?n Bamio Gonz?lez Gesti?n Proyectos Agencia Digital de Andaluc?a Consejer?a de Sostenibilidad, Medio Ambiente y Econom?a Azul https://lajunta.es/3z0xj T: 955003635 (Corp. 303635) | M: N/A roman.bamio at juntadeandalucia.es | www.juntadeandalucia.es AVISO DE CONFIDENCIALIDAD Tanto este mensaje como todos los posibles documentos adjuntos al mismo son confidenciales y est?n dirigidos exclusivamente a los destinatarios de los mismos. Por favor, si Ud no es uno de dichos destinatarios, notif?quenos este hecho y elimine este mensaje lo antes posible.Queda prohibida la copia, difusi?n o revelaci?n de su contenido a terceros sin el previo consentimiento por escrito de la Consejer?a. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura.PNG Type: image/png Size: 6427 bytes Desc: Captura.PNG URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-ysfdnder.png Type: image/png Size: 528 bytes Desc: Outlook-ysfdnder.png URL: From sethg at geographika.co.uk Tue Jan 24 03:55:31 2023 From: sethg at geographika.co.uk (Seth G) Date: Tue, 24 Jan 2023 12:55:31 +0100 Subject: [MapServer-users] GetMap request inside python script; measuring speed of WMS? In-Reply-To: References: <68512049-d2b3-47b6-a0d6-ddf307f7e668@app.fastmail.com> Message-ID: <7d23e591-adb3-4758-93cd-8e2e93404417@app.fastmail.com> Hi Marcin, Sorry I thought you wanted to do this within MapScript without a web server. If you want to simply make WMS requests to any WMS server over HTTP I'd recommend the Python library OWSLib, see for example https://geopython.github.io/OWSLib/notebooks/examples/wms.html Seth -- web:https://geographika.net twitter: @geographika On Tue, Jan 24, 2023, at 12:02 PM, Marcin Niemyjski wrote: > Seth, > > do I understand it correctly? I need to provide WMS's mapfile to perform request? I assume that I should be mainly interested in code part between 16 and 36 line. > > Thank you for quick response, > Marcin > > > > > > > Book time to meet with me > > > > *From:* Seth G > *Sent:* Tuesday, January 24, 2023 11:39 AM > *To:* Marcin Niemyjski ; MapServer Users > *Subject:* Re: [MapServer-users] GetMap request inside python script; measuring speed of WMS? > > Hi Marcin, > > Have a look at the example Python script at https://github.com/MapServer/MapServer/blob/main/mapscript/python/examples/wxs.py - this shows creating and calling a WMS request. > > Seth > > -- > web:https://geographika.net > twitter: @geographika > > On Tue, Jan 24, 2023, at 11:36 AM, Marcin Niemyjski via MapServer-users wrote: >> Hello, >> >> I want to measure how long does it takes for my WMS to response to GetMap request. I have prepared list of extents in form of python list for example: >> ['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628', '38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628'...] >> >> I'm aiming into itterating over this list and passing it's elements into GetMap request inside python script and then request GetMap and measure how long does it takes to perfome it. >> >> Here starts my question: How to do GetMap request inside python script, is it possible? The question is not about creating the url but about function wich does request. >> Maybe somebody can recommend me some other way of measuring speed of WMS? >> >> I would like show my k8s cluster service as use-case at FOSS4G 2023 and i need some statistics for presentation ? >> >> Best, >> 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-a1f1cvge.png Type: image/png Size: 528 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-snopzlg0.png Type: image/png Size: 528 bytes Desc: not available URL: From jukka.rahkonen at maanmittauslaitos.fi Tue Jan 24 04:54:28 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Tue, 24 Jan 2023 12:54:28 +0000 Subject: [MapServer-users] MapServer-users Digest, Vol 180, Issue 14 In-Reply-To: References: Message-ID: Hi, Read the JMeter section from this tutorial and consider if you are interested or not https://cs-geonode.readthedocs.io/en/2.8_a/tutorials/advanced/geonode_production/adv_gsconfig/jmeter/index.html BTW the mailing list prevents direct reply because the body of the message is too long. Please remove some unnecessary contents. -Jukka Rahkonen- L?hett?j?: MapServer-users > Puolesta Marcin Niemyjski via MapServer-users L?hetetty: tiistai 24. tammikuuta 2023 13.16 Vastaanottaja: Roman Bamio Gonzalez >; mapserver-users at lists.osgeo.org Aihe: Re: [MapServer-users] MapServer-users Digest, Vol 180, Issue 14 Roman, are you talking about something like this https://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2011/jmeter/mapserver/linux/ ? I'm not fammilliar with .jmx file or jmeter itself, could you pleas provide me some example / further explenation? Thank you, Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: From roman.bamio at juntadeandalucia.es Tue Jan 24 08:27:07 2023 From: roman.bamio at juntadeandalucia.es (Roman Bamio Gonzalez) Date: Tue, 24 Jan 2023 17:27:07 +0100 Subject: [MapServer-users] MapServer-users Digest, Vol 180, Issue 17 In-Reply-To: <6bf9499e-e5ac-95a9-def6-170ab10a0f37@juntadeandalucia.es> References: <6bf9499e-e5ac-95a9-def6-170ab10a0f37@juntadeandalucia.es> Message-ID: <68ba4f8d-c9f2-a001-dba5-4aa2ee57205a@juntadeandalucia.es> El 24/01/2023 a las 13:45, Roman Bamio Gonzalez escribi?: > > Hi, Marcin! > > In this link, you can see the installation part: > https://www.youtube.com/watch?v=pSWwtU8S94k > Performance measurement of WMS services with JMeter: > https://www.idecanarias.es/sites/default/files/resources/documentacion/divulgacionc/jidee08/086.pdf > (sorry, in spanish!) > I've only seen the above links quickly... so I'd urge you to space the > calls out (ie the bboxes don't overlap) as you'd get false results > because mapserver caches the calls. > Execution plan, schematically: > 1. Set the bbox of the set of all the calls involved in the response > time calculation. > 2.- Create the calls taking into account that the bboxes of each of > them do not overlap and that they do not leave the bbox indicated in > the previous point. > 3.- "Introduce them" in the plan to be executed in the jmeter. > 4.- Verify that the response times of each of the calls are similar > (that is, there are no disproportionately low values compared to each > other). Otherwise, go back to point 2. > > Regards! > >> El 24/01/2023 a las 12:15, mapserver-users-request at lists.osgeo.org >> escribi?: >>> Send MapServer-users mailing list submissions to >>> mapserver-users at lists.osgeo.org >>> >>> To subscribe or unsubscribe via the World Wide Web, visit >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >>> or, via email, send a message with subject or body 'help' to >>> mapserver-users-request at lists.osgeo.org >>> >>> You can reach the person managing the list at >>> mapserver-users-owner at lists.osgeo.org >>> >>> When replying, please edit your Subject line so it is more specific >>> than "Re: Contents of MapServer-users digest..." >>> >>> >>> Today's Topics: >>> >>> 1. Re: MapServer-users Digest, Vol 180, Issue 14 (Marcin Niemyjski) >>> >>> >>> ---------------------------------------------------------------------- >>> >>> Message: 1 >>> Date: Tue, 24 Jan 2023 11:15:50 +0000 >>> From: Marcin Niemyjski >>> To: Roman Bamio Gonzalez, >>> "mapserver-users at lists.osgeo.org" >>> Subject: Re: [MapServer-users] MapServer-users Digest, Vol 180, Issue >>> 14 >>> Message-ID: >>> >>> >>> Content-Type: text/plain; charset="iso-8859-1" >>> >>> >>> Roman, >>> >>> are you talking about something like thishttps://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2011/jmeter/mapserver/linux/ ? >>> I'm not fammilliar with .jmx file or jmeter itself, could you pleas provide me some example / further explenation? >>> >>> Thank you, >>> Marcin From dhoese at gmail.com Tue Jan 24 12:59:02 2023 From: dhoese at gmail.com (David Hoese) Date: Tue, 24 Jan 2023 14:59:02 -0600 Subject: [MapServer-users] GetMap request inside python script; measuring speed of WMS? In-Reply-To: References: Message-ID: <4226c968-8427-3218-8fec-6509a65fa844@gmail.com> I did something recently to compare my MapServer performance with local mounted storage for geotiffs and S3 geotiffs. I ended up building a Python script using Locust: https://locust.io/ I ended up putting something together that worked for what I wanted and could scale to different numbers of fake users and be deployed across my Kubernetes cluster. Bottom line for your original question is to use the `requests` library to make a URL request from within Python. The locust python library gives you access to the `requests` library to do that, but with all of the load testing stuff you may want to do in the long run. The overall suggestions from all the responses you've gotten so far are more important to consider though: don't just get a response time for a single request, but for many requests. Don't just do the same request over and over again, make it semi-random to avoid reporting the results of internal caching in MapServer. Dave On 1/24/23 04:36, Marcin Niemyjski via MapServer-users wrote: > Hello, > > I want to measure how long does it takes for my WMS to response to GetMap request. I have prepared list of extents in form of python list for example: > ['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628', '38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628'...] > > I'm aiming into itterating over this list and passing it's elements into GetMap request inside python script and then request GetMap and measure how long does it takes to perfome it. > > Here starts my question: How to do GetMap request inside python script, is it possible? The question is not about creating the url but about function wich does request. > Maybe somebody can recommend me some other way of measuring speed of WMS? > > I would like show my k8s cluster service as use-case at FOSS4G 2023 and i need some statistics for presentation ? > > Best, > 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 From jmckenna at gatewaygeomatics.com Mon Jan 30 12:13:10 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 30 Jan 2023 16:13:10 -0400 Subject: [MapServer-users] MapCache 1.14.0 available (security release) Message-ID: <14bfcd26-44b6-bd8d-8f1e-f3255d1785c4@gatewaygeomatics.com> MapCache 1.14.0 is now released, that includes handling a string formatting injection vulnerability. Changelog: https://mapserver.org/development/changelog/mapcache/changelog-1-14.html Download: https://download.osgeo.org/mapserver/mapcache-1.14.0.tar.gz thanks, -- MapServer / MapCache team