From bob.basques at ci.stpaul.mn.us Wed Nov 1 15:24:35 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 1 Nov 2023 22:24:35 +0000 Subject: [MapServer-users] OSGeo Local Chapter meeting - Twin Cities, for Nov. 9th Message-ID: All, Casting out a call for presenters for our next Local chapter meeting. I can set up a Virtual presentation at the meeting for presenters. The Meeting will take place at: https://www.liftbridgebrewery.com/ https://maps.app.goo.gl/h4cQF9PGDZcNiYgXA 1900 Tower Dr. W, Stillwater MN 55082 Time : 4:30pm ? 6:00 Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Thu Nov 2 10:26:40 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 2 Nov 2023 17:26:40 +0000 Subject: [MapServer-users] [DATE CORRECTION] OSGeo Local Chapter meeting - Twin Cities, for Nov. 8th Message-ID: Everyone, I screwed up, should have been for Wednesday, the 8th of Nov. (Not the 9th). Sorry about that. Bobb All, Casting out a call for presenters for our next Local chapter meeting. I can set up a Virtual presentation at the meeting for presenters. The Meeting will take place at: https://www.liftbridgebrewery.com/ https://maps.app.goo.gl/h4cQF9PGDZcNiYgXA 1900 Tower Dr. W, Stillwater MN 55082 Date: Nov 8th 2023. Time : 4:30pm ? 6:00 Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From astrid.emde at wheregroup.com Mon Nov 6 07:39:01 2023 From: astrid.emde at wheregroup.com (Astrid Emde (WhereGroup)) Date: Mon, 06 Nov 2023 16:39:01 +0100 Subject: [MapServer-users] MapServer WEB global footer header are shown as result even if no feature was effected Message-ID: Hello all, I have noticed a different behaviour in MapServer 8 in comparision to MapServer 7. In the Web-Section I use a global header and footer and I created an empty.html page. The definition in the Web-Section looks like: WEB HEADER './templates/header.html' FOOTER './templates/footer.html' EMPTY 'http://myserver/ms_empty.html' Before Version 8 - MapServer would show the EMPTY-html if no result comes back from a Featureinfo-Request But with MapServer 8 - The Header & Footer are given back - with no results in the middle When I define everything in the LAYER the behaviour is a bit better - I get back an empty result but still not the content of the EMPTY-File HEADER "./templates/header.html" TEMPLATE "./templates/plz.html" FOOTER "./templates/footer.html" My question: How can I get back the old behaviour and only get back the content of the Empty-file? Did the definition change? Or is it a bug? Does someone else noticed the behaviour? I checked the actual issues, but I could not find anything about it https://github.com/MapServer/MapServer/issues/6907 Documentation see https://mapserver.org/mapfile/web.html -- Best regards Astrid Emde GIS-Consultant ********************************** Where2B Konferenz 2023 14. Dezember 2023 in Bonn und Online https://where2b-conference.com/ ********************************** Astrid Emde WhereGroup GmbH Eifelstra?e 7 53119 Bonn Germany Tel: +49(0)228 90 90 38 - 22 Fax: +49(0)228 90 90 38 - 11 astrid.emde at wheregroup.com www.wheregroup.com Meinen PGP Public-Key k?nnen Sie unter pgp.mit.edu herunterladen: https://keys.openpgp.org/vks/v1/by-fingerprint/01F8152D36FC07C25EADDE86C5084ACC1C287CCB Signierte und/oder verschl?sselte Nachrichten sind sehr willkommen Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: 0x1C287CCB.asc Type: application/pgp-keys Size: 1574 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 228 bytes Desc: OpenPGP digital signature URL: From sdlime at gmail.com Mon Nov 6 08:13:06 2023 From: sdlime at gmail.com (Steve Lime) Date: Mon, 6 Nov 2023 10:13:06 -0600 Subject: [MapServer-users] MapServer WEB global footer header are shown as result even if no feature was effected In-Reply-To: References: Message-ID: Hi Astrid: I noticed this too but in a slightly different way. It's a bug, see the discussion here: https://github.com/MapServer/MapServer/issues/6907 Basically the EMPTY keyword is being ignored. This will be fixed in 8.2... --Steve On Mon, Nov 6, 2023 at 9:39?AM Astrid Emde (WhereGroup) via MapServer-users wrote: > Hello all, > > I have noticed a different behaviour in MapServer 8 in comparision to > MapServer 7. > > In the Web-Section I use a global header and footer and I created an > empty.html page. The definition in the Web-Section looks like: > > WEB > HEADER './templates/header.html' > FOOTER './templates/footer.html' > EMPTY 'http://myserver/ms_empty.html' > > Before Version 8 > - MapServer would show the EMPTY-html if no result comes back from a > Featureinfo-Request > > But with MapServer 8 > - The Header & Footer are given back - with no results in the middle > > When I define everything in the LAYER the behaviour is a bit better - I > get back an empty result but still not the content of the EMPTY-File > HEADER "./templates/header.html" > TEMPLATE "./templates/plz.html" > FOOTER "./templates/footer.html" > > My question: How can I get back the old behaviour and only get back the > content of the Empty-file? > > Did the definition change? > Or is it a bug? Does someone else noticed the behaviour? > > I checked the actual issues, but I could not find anything about it > > https://github.com/MapServer/MapServer/issues/6907 > > > Documentation see > https://mapserver.org/mapfile/web.html > > -- > Best regards > > Astrid Emde > GIS-Consultant > > ********************************** > Where2B Konferenz 2023 > 14. Dezember 2023 in Bonn und Online > https://where2b-conference.com/ > ********************************** > > Astrid Emde > WhereGroup GmbH > Eifelstra?e 7 > 53119 Bonn > Germany > > Tel: +49(0)228 90 90 38 - 22 > Fax: +49(0)228 90 90 38 - 11 > > astrid.emde at wheregroup.com > www.wheregroup.com > > Meinen PGP Public-Key k?nnen Sie unter pgp.mit.edu herunterladen: > > > https://keys.openpgp.org/vks/v1/by-fingerprint/01F8152D36FC07C25EADDE86C5084ACC1C287CCB > Signierte und/oder verschl?sselte Nachrichten sind sehr willkommen > > Folgen Sie der WhereGroup auf twitter: > http://twitter.com/WhereGroup_com > > Gesch?ftsf?hrer: > Olaf Knopp, Peter Stamm > Amtsgericht Bonn, HRB 9885 > > -------------------------------_______________________________________________ > 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 astrid.emde at wheregroup.com Mon Nov 6 09:39:17 2023 From: astrid.emde at wheregroup.com (Astrid Emde (WhereGroup)) Date: Mon, 06 Nov 2023 18:39:17 +0100 Subject: [MapServer-users] MapServer WEB global footer header are shown as result even if no feature was effected In-Reply-To: References: Message-ID: <7e2fb26ea45522602952aef44a65c43f@wheregroup.com> Hello Steve, thanks a lot for your answer. 8.2 - sounds good Astrid Am 2023-11-06 17:13, schrieb Steve Lime: > Hi Astrid: I noticed this too but in a slightly different way. It's a > bug, see the discussion here: > > https://github.com/MapServer/MapServer/issues/6907 > > Basically the EMPTY keyword is being ignored. This will be fixed in > 8.2... > > --Steve > > On Mon, Nov 6, 2023 at 9:39?AM Astrid Emde (WhereGroup) via > MapServer-users wrote: > >> Hello all, >> >> I have noticed a different behaviour in MapServer 8 in comparision >> to >> MapServer 7. >> >> In the Web-Section I use a global header and footer and I created an >> >> empty.html page. The definition in the Web-Section looks like: >> >> WEB >> HEADER './templates/header.html' >> FOOTER './templates/footer.html' >> EMPTY 'http://myserver/ms_empty.html' >> >> Before Version 8 >> - MapServer would show the EMPTY-html if no result comes back from a >> >> Featureinfo-Request >> >> But with MapServer 8 >> - The Header & Footer are given back - with no results in the middle >> >> When I define everything in the LAYER the behaviour is a bit better >> - I >> get back an empty result but still not the content of the EMPTY-File >> HEADER "./templates/header.html" >> TEMPLATE "./templates/plz.html" >> FOOTER "./templates/footer.html" >> >> My question: How can I get back the old behaviour and only get back >> the >> content of the Empty-file? >> >> Did the definition change? >> Or is it a bug? Does someone else noticed the behaviour? >> >> I checked the actual issues, but I could not find anything about it >> >> https://github.com/MapServer/MapServer/issues/6907 >> >> Documentation see >> https://mapserver.org/mapfile/web.html >> >> -- >> Best regards >> >> Astrid Emde >> GIS-Consultant >> >> ********************************** >> Where2B Konferenz 2023 >> 14. Dezember 2023 in Bonn und Online >> https://where2b-conference.com/ >> ********************************** >> >> Astrid Emde >> WhereGroup GmbH >> Eifelstra?e 7 >> 53119 Bonn >> Germany >> >> Tel: +49(0)228 90 90 38 - 22 >> Fax: +49(0)228 90 90 38 - 11 >> >> astrid.emde at wheregroup.com >> www.wheregroup.com [1] >> >> Meinen PGP Public-Key k?nnen Sie unter pgp.mit.edu [2] >> herunterladen: >> >> > https://keys.openpgp.org/vks/v1/by-fingerprint/01F8152D36FC07C25EADDE86C5084ACC1C287CCB >> Signierte und/oder verschl?sselte Nachrichten sind sehr >> willkommen >> >> Folgen Sie der WhereGroup auf twitter: >> http://twitter.com/WhereGroup_com >> >> Gesch?ftsf?hrer: >> Olaf Knopp, Peter Stamm >> Amtsgericht Bonn, HRB 9885 >> > -------------------------------_______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > Links: > ------ > [1] http://www.wheregroup.com > [2] http://pgp.mit.edu -- Mit freundlichen Gr??en Astrid Emde GIS-Consultant ********************************** Where2B Konferenz 2023 14. Dezember 2023 in Bonn und Online https://where2b-conference.com/ ********************************** Astrid Emde WhereGroup GmbH Eifelstra?e 7 53119 Bonn Germany Tel: +49(0)228 90 90 38 - 22 Fax: +49(0)228 90 90 38 - 11 astrid.emde at wheregroup.com www.wheregroup.com Meinen PGP Public-Key k?nnen Sie unter pgp.mit.edu herunterladen: https://keys.openpgp.org/vks/v1/by-fingerprint/01F8152D36FC07C25EADDE86C5084ACC1C287CCB Signierte und/oder verschl?sselte Nachrichten sind sehr willkommen Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: 0x1C287CCB.asc Type: application/pgp-keys Size: 1574 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 228 bytes Desc: OpenPGP digital signature URL: From bob.basques at ci.stpaul.mn.us Tue Nov 7 06:13:18 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 7 Nov 2023 14:13:18 +0000 Subject: [MapServer-users] [REMINDER] [DATE CORRECTION] OSGeo Local Chapter meeting - Twin Cities, for Nov. 8th Message-ID: Everyone, I screwed up, should have been for Wednesday, the 8th of Nov. (Not the 9th). Sorry about that. Bobb All, Casting out a call for presenters for our next Local chapter meeting. I can set up a Virtual presentation at the meeting for presenters. The Meeting will take place at: https://www.liftbridgebrewery.com/ https://maps.app.goo.gl/h4cQF9PGDZcNiYgXA 1900 Tower Dr. W, Stillwater MN 55082 Date: Nov 8th 2023. Time : 4:30pm ? 6:00 Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From theduckylittle at gmail.com Wed Nov 8 05:54:23 2023 From: theduckylittle at gmail.com (Dan Little) Date: Wed, 8 Nov 2023 07:54:23 -0600 Subject: [MapServer-users] [GeoMoose-users] OSGeo Local Chapter meeting - Twin Cities, for Nov. 9th In-Reply-To: References: Message-ID: Is this for tonight?s usual meet up (Wednesdays) or really for tomorrow (the 9th)? On Wed, Nov 1, 2023 at 17:24 Bob Basques via GeoMoose-users < geomoose-users at lists.osgeo.org> wrote: > All, > > > > Casting out a call for presenters for our next Local chapter meeting. I > can set up a Virtual presentation at the meeting for presenters. > > > > The Meeting will take place at: https://www.liftbridgebrewery.com/ > > > > https://maps.app.goo.gl/h4cQF9PGDZcNiYgXA > > > > 1900 Tower Dr. W, > Stillwater MN 55082 > > > > Time : 4:30pm ? 6:00 > > > > Bobb > > > > > > > > Get me in Teams > > > *PW19-S295-C024* > > > > > _______________________________________________ > GeoMoose-users mailing list > GeoMoose-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/geomoose-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at gmail.com Wed Nov 8 05:59:54 2023 From: j.l.h.hartmann at gmail.com (Jan Hartmann) Date: Wed, 8 Nov 2023 14:59:54 +0100 Subject: [MapServer-users] Docker image for MapServer with PHP-MapScript In-Reply-To: References: <69ba4e0a-583b-43e2-bb90-1a0607b306bd@gmail.com> <1b174510-f8bc-49ab-8d64-6c93415b54dd@gmail.com> <9137b4e4-8a90-4f3d-a42f-58425248d2b4@gmail.com> <7f484702-9fb3-439e-a9a7-f8911fedc3dc@gmail.com> Message-ID: Thanks Steve. I should have been able to guess that, but the PHP-MapScript documentation (https://mapserver.org/mapscript/php/index.html) still has a metadata member for the MapObj. As well as for the WebObj As has been said before, the documentation for PHP Mapscript (https://mapserver.org/mapscript/php/index.html) is not very helpful. Essentially, it still describes the pre-SWIG version. I have been compiling MapServer since before the first marvelous MapServer-meeting in 2003 (https://maps.hisgis.nl/conferences/2003/mum/, look at the photographs!), but I have been using the UbuntuGIS version for the last few years. It was really a pain to get the current version working from scratch in a user directory. I was almost starting to think about switching to GeoServer :-). To get the "official" PHP-Mapscript-guide working I had to use: https://ms4w.com/trac/wiki/MigrationGuide5.x https://mapserver.org/MIGRATION_GUIDE.html https://mapserver.org/mapscript/php/migration_guide.html https://mapserver.org/mapscript/php/index.html The main new requirements (including mapscript.php and setting mapserver.conf) core-dump the PHP-script when missing, so that too leads to some not-so-nice debugging. I would strongly advise to bring the documentation of MapScript up to date and to base it on the most recent version. And to clean out a bit the remnants of previous releases. There seems to be a working Docker-version for MapServer/Mapscript in Debian Bookworm (https://lists.osgeo.org/pipermail/mapserver-dev/2023-October/017032.html), but I haven't tested it yet. Has anyone worked with it? And does anyone know of a recent Docker version for Mapserver/Mapscript in Alpine? Some organisations I am working for in the Euregio Aachen-Liege-Maastricht require Alpine for their Docker version. Anyway, thanks to Tanya, Vassilis and Steve, Jan Hartmann Amsterdam On 30/10/2023 18:56, Lime, Steve D (MNIT) wrote: > > Map-level metadata lives in the WEB object? > > *From:* MapServer-users *On > Behalf Of *Jan Hartmann via MapServer-users > *Sent:* Monday, October 30, 2023 12:46 PM > *To:* Vassilis Chatzigiannakis ; > mapserver-users at lists.osgeo.org > *Subject:* Re: [MapServer-users] Docker image for MapServer with > PHP-MapScript > > Almost there. There are additional migration examples in: > https://ms4w.com/trac/wiki/MigrationGuide5.x > > > I wrote wrapper functions for the old ms_new... functions, and can > create that way a new mapObj called $oMap. > > The "set" function has been? renamed? to "__set" : not > $oMap->set("maxsize",6020), but: ;$oMap->__set("maxsize",6020); > > Layers can be declared as before:? $layer = $oMap->getLayer(1). > > Metadata have to be set as follows: > > Not: $layer->setMetadata("...","..."); but: > $layer->metadata->set("...","...") > > However, I cannot set the metadata of the mapObj: > $oMap->metadata->set("...","...") gives: "Undefined array key "metadata"" > > Any idea? > > On 29/10/2023 07:52, Vassilis Chatzigiannakis wrote: > > Yes the documentation is a mess . > > I worked with this reference: > > https://mapserver.org/mapscript/mapscript-api/index.html > > So, you start by > > $oMap= newmapObj($mapfile); > > Best regards, > > Vassilis > > *From:* Jan Hartmann > > *Sent:* Saturday, October 28, 2023 9:14 PM > *To:* Vassilis Chatzigiannakis > ; mapserver-users at lists.osgeo.org > *Subject:* Re: [MapServer-users] Docker image for MapServer with > PHP-MapScript > > This seems to work.? And it says so in the migration guide > (https://mapserver.org/mapscript/php/migration_guide.html): > > all of your PHP scripts (that leverage MapServer objects and > functions) must now always first include the generated > mapscript.php?file containing MapServer constants: > > But could it be that only "$m = new mapObj('...');" is accepted, > and "$m=ms_newMapObj('...');" isn't? The docs still mention the > old call (https://mapserver.org/mapscript/php/phpmapscript.html > > On 28/10/2023 09:11, Vassilis Chatzigiannakis wrote: > > Hi, > > I did it recently. There should be a mapscript.php file in the > same folder as the ?php_mapscriptng.so extension. > > You need to include it in your php script. > > Best, > > Vassilis > > *From:* MapServer-users > > *On Behalf Of > *Jan Hartmann via MapServer-users > *Sent:* Friday, October 27, 2023 9:42 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [MapServer-users] Docker image for MapServer > with PHP-MapScript > > I made a docker version of mapserver/php-mapscript myself, > based on Ubuntu 22.04. I installed all required libraries with > apt, and compiled mapserver and mapscript according to > instructions. No problem at all. > > At the end I got the following from phpinfo(); > > > > > mapscript > > *MapServer Version* > > > > MapServer version 8.0.1 PROJ version 9.3 GDAL version 3.4 > OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG > SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=GEOS > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > INPUT=FLATGEOBUF > > > But no mapscript function or object was regognized in my > PHP-scripts: > > PHP Fatal error:? Uncaught Error: Class "mapObj" not found in > /virdir/www_root/test.php:2 > Stack trace: > #0 {main} > ? thrown in /virdir/www_root/test.php on line 2 > > > I am really desparate. Has anyone ever succeeded to get > php_mapscriptng.so to work?? Or does anyone know of a working > Docker image for MapServer with PHP MapScript? > > Jan > > On 21/10/2023 05:40, Jan Hartmann wrote: > > I tried this with serveral versions of PHP and MapServer, > but got always the same result. Can anyone point me to a > Docker image for MapServer + PHP-MapScript? > > Jan > > On 19/10/2023 18:12, Jan Hartmann wrote: > > Still not there. Everything has been installed, and > phpinfo() gives: > > *MapServer Version* > > > > MapServer version 8.0.1 PROJ version 9.3 GDAL version > 3.7 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG > SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=OGCAPI_SERVER INPUT=JPEG INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF > > > But calling "$map = new mapObj('mapfile.map');" gives: > > *Fatal error*: Uncaught Error: Class "mapObj" not > found in > /mnt/virdir/www_root/test/test_mapscript.php:2 Stack > trace: #0 {main} thrown in > */mnt/virdir/www_root/test/test_mapscript.php*?on line *2 > > *Any idea? > > Jan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Wed Nov 8 06:57:09 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 8 Nov 2023 14:57:09 +0000 Subject: [MapServer-users] [GeoMoose-users] OSGeo Local Chapter meeting - Twin Cities, for Nov. 9th In-Reply-To: References: Message-ID: Tonight, The 8th (Wed) My screw up originally. Bobb From: Dan Little Sent: Wednesday, November 8, 2023 7:54 AM To: Bob Basques Cc: geomoose-users at lists.osgeo.org; mapserver-users at lists.osgeo.org; tcmug Subject: Re: [GeoMoose-users] OSGeo Local Chapter meeting - Twin Cities, for Nov. 9th Think Before You Click: This email originated outside our organization. Is this for tonight?s usual meet up (Wednesdays) or really for tomorrow (the 9th)? On Wed, Nov 1, 2023 at 17:24 Bob Basques via GeoMoose-users > wrote: All, Casting out a call for presenters for our next Local chapter meeting. I can set up a Virtual presentation at the meeting for presenters. The Meeting will take place at: https://www.liftbridgebrewery.com/ https://maps.app.goo.gl/h4cQF9PGDZcNiYgXA 1900 Tower Dr. W, Stillwater MN 55082 Time : 4:30pm ? 6:00 Bobb Get me in Teams PW19-S295-C024 _______________________________________________ GeoMoose-users mailing list GeoMoose-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/geomoose-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From gkvoelkl at nelson-games.de Thu Nov 9 00:35:21 2023 From: gkvoelkl at nelson-games.de (=?utf-8?Q? G._V=C3=B6lkl ?=) Date: Thu, 9 Nov 2023 09:35:21 +0100 Subject: [MapServer-users] WMS with Raster Images and time Dimension Message-ID: <97E9C5D7-8718-405A-8247-DCDDDAF54228@nelson-games.de> Hi, I want to create a WMs Service that consists of two raster files. The tomorrow.tif file shows the city in the morning. The file midday.tif the city at midday. The corresponding image should be able to be queried using the time parameter. Any examples with Raster images and time demension? Best regards Gerhard Von meinem iPhone gesendet -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Thu Nov 9 07:45:45 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Thu, 9 Nov 2023 15:45:45 +0000 Subject: [MapServer-users] WMS with Raster Images and time Dimension In-Reply-To: <97E9C5D7-8718-405A-8247-DCDDDAF54228@nelson-games.de> References: <97E9C5D7-8718-405A-8247-DCDDDAF54228@nelson-games.de> Message-ID: Hi, I would read first this https://www.mapserver.org/ogc/wms_time.html. But if you have only two alternatives midday/tomorrow then simply having two layers could be an option. Or use runtime substitution https://mapserver.org/cgi/runsub.html. Define LAYER ? DATA like DATA "%img_time%.tif " write the validation block and then make the WMS client to add a new parameter ?&request=GetMap&img_time=midday -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta G. V?lkl via MapServer-users L?hetetty: torstai 9. marraskuuta 2023 10.35 Vastaanottaja: MapServer-users at lists.osgeo.org Aihe: [MapServer-users] WMS with Raster Images and time Dimension Hi, I want to create a WMs Service that consists of two raster files. The tomorrow.tif file shows the city in the morning. The file midday.tif the city at midday. The corresponding image should be able to be queried using the time parameter. Any examples with Raster images and time demension? Best regards Gerhard Von meinem iPhone gesendet -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Thu Nov 9 07:52:49 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 9 Nov 2023 15:52:49 +0000 Subject: [MapServer-users] OSGeo Twin Cities Local Chapter Monthly Meeting (aka TCMUG) Message-ID: All, Had a great meeting last evening at the Lift Bridge Brewery in Stillwatewr. Smaller group, but good discussion, and some new(er) faces as well. Next month?s meeting will be at Urban Growler in St. Paul. As always, if anyone wants to show off what they have been working on, just send me a note, and I?ll set up the virtual online presentation. You are not required to attend in person if you want to do a virtual presentation. Date: Dec 13th, 4:30 ? 6:00 Place: Urban Growler in St. Paul, Mn. See you there. Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at gmail.com Fri Nov 10 09:59:47 2023 From: j.l.h.hartmann at gmail.com (Jan Hartmann) Date: Fri, 10 Nov 2023 18:59:47 +0100 Subject: [MapServer-users] PHP-Mapscript: write imageObj to stdout Message-ID: Hi, In previous versions of PHP-Mapscript there was a function ImageObj->saveImage(fn), that wrote an ImageObj to a file on disk. When fn was empty, the image was sent to stdout. In SWIG-Mapscript, this function has been replaced by ImageObj->save(fn), but fn cannot be empty anymore. How do I send an ImageObj directly to stdout (i.e. to the browser)? Jan From schroeter at netgis.de Mon Nov 13 00:43:54 2023 From: schroeter at netgis.de (Sven Schroeter) Date: Mon, 13 Nov 2023 09:43:54 +0100 Subject: [MapServer-users] PHP-Mapscript: write imageObj to stdout In-Reply-To: References: Message-ID: Hi Jan, maybe you need this: ?? ???? ??? //SWIG ?? ???? ??? if($mapscriptSwig) { ?? ???? ??? ??? echo msIO_getStdoutBufferBytes(); ?? ???? ??? }else{ ?? ???? ??? ??? echo ms_iogetStdoutBufferBytes(); ?? ???? ??? } Sven Am 10.11.2023 um 18:59 schrieb Jan Hartmann via MapServer-users: > > Hi, > > In previous versions of PHP-Mapscript there was a function > ImageObj->saveImage(fn), that wrote an ImageObj to a file on disk. > When fn was empty, the image was sent to stdout. In SWIG-Mapscript, > this function has been replaced by ImageObj->save(fn), but fn cannot > be empty anymore. How do I send an ImageObj directly to stdout (i.e. > to the browser)? > > Jan > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From vchatzi at itml.gr Mon Nov 13 00:51:56 2023 From: vchatzi at itml.gr (Vassilis Chatzigiannakis) Date: Mon, 13 Nov 2023 08:51:56 +0000 Subject: [MapServer-users] PHP-Mapscript: write imageObj to stdout In-Reply-To: References: Message-ID: Yes, in php using swig it would be: $oImg = $this->oMap->draw(); echo $oImg->getBytes() -----Original Message----- From: MapServer-users On Behalf Of Sven Schroeter via MapServer-users Sent: Monday, November 13, 2023 10:44 AM To: mapserver-users at lists.osgeo.org Subject: Re: [MapServer-users] PHP-Mapscript: write imageObj to stdout Hi Jan, maybe you need this: ?? ???? ??? //SWIG ?? ???? ??? if($mapscriptSwig) { ?? ???? ??? ??? echo msIO_getStdoutBufferBytes(); ?? ???? ??? }else{ ?? ???? ??? ??? echo ms_iogetStdoutBufferBytes(); ?? ???? ??? } Sven Am 10.11.2023 um 18:59 schrieb Jan Hartmann via MapServer-users: > > Hi, > > In previous versions of PHP-Mapscript there was a function > ImageObj->saveImage(fn), that wrote an ImageObj to a file on disk. > When fn was empty, the image was sent to stdout. In SWIG-Mapscript, > this function has been replaced by ImageObj->save(fn), but fn cannot > be empty anymore. How do I send an ImageObj directly to stdout (i.e. > to the browser)? > > Jan > _______________________________________________ > 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 From j.l.h.hartmann at gmail.com Mon Nov 13 06:45:57 2023 From: j.l.h.hartmann at gmail.com (Jan Hartmann) Date: Mon, 13 Nov 2023 15:45:57 +0100 Subject: [MapServer-users] PHP-Mapscript: write imageObj to stdout In-Reply-To: References: Message-ID: <20863238-f1f1-4903-9e7a-b4df398480b7@gmail.com> Yes, this works. Thanks Vassili and Sven. Is there any difference between getBytes() and msIO_getStdoutBufferBytes()? On 13/11/2023 09:51, Vassilis Chatzigiannakis via MapServer-users wrote: > Yes, in php using swig it would be: > > $oImg = $this->oMap->draw(); > echo $oImg->getBytes() > > -----Original Message----- > From: MapServer-users On Behalf Of Sven Schroeter via MapServer-users > Sent: Monday, November 13, 2023 10:44 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [MapServer-users] PHP-Mapscript: write imageObj to stdout > > Hi Jan, > > maybe you need this: > > ?? ???? ??? //SWIG > ?? ???? ??? if($mapscriptSwig) { > ?? ???? ??? ??? echo msIO_getStdoutBufferBytes(); > ?? ???? ??? }else{ > ?? ???? ??? ??? echo ms_iogetStdoutBufferBytes(); > ?? ???? ??? } > > Sven > > > Am 10.11.2023 um 18:59 schrieb Jan Hartmann via MapServer-users: >> Hi, >> >> In previous versions of PHP-Mapscript there was a function >> ImageObj->saveImage(fn), that wrote an ImageObj to a file on disk. >> When fn was empty, the image was sent to stdout. In SWIG-Mapscript, >> this function has been replaced by ImageObj->save(fn), but fn cannot >> be empty anymore. How do I send an ImageObj directly to stdout (i.e. >> to the browser)? >> >> Jan >> _______________________________________________ >> 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 > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From schroeter at netgis.de Mon Nov 13 07:02:07 2023 From: schroeter at netgis.de (Sven Schroeter) Date: Mon, 13 Nov 2023 16:02:07 +0100 Subject: [MapServer-users] PHP-Mapscript: write imageObj to stdout In-Reply-To: <20863238-f1f1-4903-9e7a-b4df398480b7@gmail.com> References: <20863238-f1f1-4903-9e7a-b4df398480b7@gmail.com> Message-ID: <4e327925-4760-4a64-b5fd-5e0c5acd26e9@netgis.de> msIO_getStdoutBufferBytes is the mapscript function and fetch the current stdout buffer contents as a binary buffer: https://mapserver.org/mapscript/mapscript-api/index.html I think its the same? Sven Am 13.11.2023 um 15:45 schrieb Jan Hartmann: > Yes, this works. Thanks Vassili and Sven. Is there any difference > between getBytes() and msIO_getStdoutBufferBytes()? > > On 13/11/2023 09:51, Vassilis Chatzigiannakis via MapServer-users wrote: >> Yes, in php using swig it would be: >> >> $oImg = $this->oMap->draw(); >> echo $oImg->getBytes() >> >> -----Original Message----- >> From: MapServer-users On >> Behalf Of Sven Schroeter via MapServer-users >> Sent: Monday, November 13, 2023 10:44 AM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [MapServer-users] PHP-Mapscript: write imageObj to stdout >> >> Hi Jan, >> >> maybe you need this: >> >> ? ?? ???? ??? //SWIG >> ? ?? ???? ??? if($mapscriptSwig) { >> ? ?? ???? ??? ??? echo msIO_getStdoutBufferBytes(); >> ? ?? ???? ??? }else{ >> ? ?? ???? ??? ??? echo ms_iogetStdoutBufferBytes(); >> ? ?? ???? ??? } >> >> Sven >> >> >> Am 10.11.2023 um 18:59 schrieb Jan Hartmann via MapServer-users: >>> Hi, >>> >>> In previous versions of PHP-Mapscript there was a function >>> ImageObj->saveImage(fn), that wrote an ImageObj to a file on disk. >>> When fn was empty, the image was sent to stdout. In SWIG-Mapscript, >>> this function has been replaced by ImageObj->save(fn), but fn cannot >>> be empty anymore. How do I send an ImageObj directly to stdout (i.e. >>> to the browser)? >>> >>> Jan >>> _______________________________________________ >>> 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 >> _______________________________________________ >> 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 jukka.rahkonen at maanmittauslaitos.fi Mon Nov 13 13:48:21 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Mon, 13 Nov 2023 21:48:21 +0000 Subject: [MapServer-users] How to cascade data from OGC API Features service? Message-ID: Hi, I tried to make a WMS layer from OGC API Features service but I did not success. This is my best trial so far: I am using Mapserver from MS4W 5.0.0 RC1 I wrote this ORG VRT file (ogcfeat.vrt) OAPIF:https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/ building The GDAL included in MS4W reads the vrt OK with ogrinfo ogcfeat.vrt -al -so --debug on (there are 5 millions polygons so hit Ctrl-C if you are just testing) I wrote a layer that can be at the bottom of this message below. The WMS GetCapabilities show the new layer but GetMaps fail. The log file collects these errors msDrawMap(): Image handling error. Failed to draw layer named 'building'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `building'. File not found or unsupported format. Check server logs. Open failed for OGR connection in layer `building'. Am I missing something from my configuration? My LAYER is like this LAYER NAME "building" STATUS ON CONNECTIONTYPE OGR CONNECTION "c:/ms4w_data/oapif.vrt" DATA "building" TYPE POLYGON # DEBUG 5 UNITS METERS SIZEUNITS PIXELS MAXSCALEDENOM 60000 TOLERANCE 3 TOLERANCEUNITS PIXELS METADATA "wms_title" "OGCFeat-building" "wms_include_items" "all" END #metadata PROJECTION "init=epsg:3067" ##recommended END CLASS NAME "building" STYLE COLOR 200 255 200 OUTLINECOLOR 120 120 120 END # Style END # Class TEMPLATE "empty" ##recommended (enable GetFeatureInfo / can point to valid .html template) END # Layer -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Mon Nov 13 19:37:49 2023 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Mon, 13 Nov 2023 20:37:49 -0700 Subject: [MapServer-users] How to cascade data from OGC API Features service? In-Reply-To: References: Message-ID: Are you sure that you don't just have a typo? Your file is named "*ogcfeat*.vrt" but your CONNECTION "c:/ms4w_data/*oapif*.vrt" I set up a quick test and I haven't gotten a map (it timed out 504 error after several minutes) but I didn't get an error. Maybe you could share a smaller test data set and a reasonable bounding box. My test: http://localhost/cgi-bin/mapserv?map=MAP_TEST&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&LAYERS=building&WIDTH=696&HEIGHT=870&CRS=EPSG:3067&BBOX=-359700,6615190,-359500,6615199&FORMAT=png On Mon, Nov 13, 2023 at 2:48?PM Rahkonen Jukka via MapServer-users < mapserver-users at lists.osgeo.org> wrote: > Hi, > > > > I tried to make a WMS layer from OGC API Features service but I did not > success. This is my best trial so far: > > I am using Mapserver from MS4W 5.0.0 RC1 > I wrote this ORG VRT file (ogcfeat.vrt) > > > > > > > > OAPIF: > https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/ > > > building > > > > > > The GDAL included in MS4W reads the vrt OK with > > ogrinfo ogcfeat.vrt -al -so --debug on > (there are 5 millions polygons so hit Ctrl-C if you are just testing) > > I wrote a layer that can be at the bottom of this message below. The WMS > GetCapabilities show the new layer but GetMaps fail. The log file collects > these errors > > msDrawMap(): Image handling error. Failed to draw layer named 'building'. > > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `building'. File not found or unsupported format. Check server logs. > > Open failed for OGR connection in layer `building'. > > > > Am I missing something from my configuration? My LAYER is like this > > LAYER > > NAME "building" > > STATUS ON > > CONNECTIONTYPE OGR > > CONNECTION "c:/ms4w_data/oapif.vrt" > > DATA "building" > > TYPE POLYGON > > # DEBUG 5 > > UNITS METERS > > SIZEUNITS PIXELS > > MAXSCALEDENOM 60000 > > TOLERANCE 3 > > TOLERANCEUNITS PIXELS > > METADATA > > "wms_title" "OGCFeat-building" > > "wms_include_items" "all" > > END #metadata > > PROJECTION > > "init=epsg:3067" ##recommended > > END > > CLASS > > NAME "building" > > STYLE > > COLOR 200 255 200 > > OUTLINECOLOR 120 120 120 > > END # Style > > END # Class > > TEMPLATE "empty" ##recommended (enable GetFeatureInfo / can point to > valid .html template) > > > > END # Layer > > -Jukka Rahkonen- > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Richard W. Greenwood www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Tue Nov 14 00:08:31 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Tue, 14 Nov 2023 08:08:31 +0000 Subject: [MapServer-users] How to cascade data from OGC API Features service? In-Reply-To: References: Message-ID: Hi, Oh yes, it was a typo. As a user who tries to be standard compliant I had upgraded the name in one place to match with the OGC approved abbreviation ?OGCFeat? instead of the GDAL driver name ?OAPIF?. The MAXSCALEDENOM value 60000 (naturally copy-pasted from some old mapfile) is all too large for that service in areas with lots of buildings. Scale 1:5000 is probably safe everywhere. A EPSG:3067 bbox for testing: BBOX=390723,6671479,392177,6672231 Positive thing is that now also other Mapserver users know that it is possible to use OGCFeat services as source data with OGR connection. Thanks to you and TC Haddad who also found the typo. -Jukka Rahkonen- L?hett?j?: Richard Greenwood L?hetetty: tiistai 14. marraskuuta 2023 5.38 Vastaanottaja: Rahkonen Jukka Kopio: Mapserver-Users (mapserver-users at lists.osgeo.org) Aihe: Re: [MapServer-users] How to cascade data from OGC API Features service? Are you sure that you don't just have a typo? Your file is named "ogcfeat.vrt" but your CONNECTION "c:/ms4w_data/oapif.vrt" I set up a quick test and I haven't gotten a map (it timed out 504 error after several minutes) but I didn't get an error. Maybe you could share a smaller test data set and a reasonable bounding box. My test: http://localhost/cgi-bin/mapserv?map=MAP_TEST&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&LAYERS=building&WIDTH=696&HEIGHT=870&CRS=EPSG:3067&BBOX=-359700,6615190,-359500,6615199&FORMAT=png On Mon, Nov 13, 2023 at 2:48?PM Rahkonen Jukka via MapServer-users > wrote: Hi, I tried to make a WMS layer from OGC API Features service but I did not success. This is my best trial so far: I am using Mapserver from MS4W 5.0.0 RC1 I wrote this ORG VRT file (ogcfeat.vrt) OAPIF:https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/ building The GDAL included in MS4W reads the vrt OK with ogrinfo ogcfeat.vrt -al -so --debug on (there are 5 millions polygons so hit Ctrl-C if you are just testing) I wrote a layer that can be at the bottom of this message below. The WMS GetCapabilities show the new layer but GetMaps fail. The log file collects these errors msDrawMap(): Image handling error. Failed to draw layer named 'building'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `building'. File not found or unsupported format. Check server logs. Open failed for OGR connection in layer `building'. Am I missing something from my configuration? My LAYER is like this LAYER NAME "building" STATUS ON CONNECTIONTYPE OGR CONNECTION "c:/ms4w_data/oapif.vrt" DATA "building" TYPE POLYGON # DEBUG 5 UNITS METERS SIZEUNITS PIXELS MAXSCALEDENOM 60000 TOLERANCE 3 TOLERANCEUNITS PIXELS METADATA "wms_title" "OGCFeat-building" "wms_include_items" "all" END #metadata PROJECTION "init=epsg:3067" ##recommended END CLASS NAME "building" STYLE COLOR 200 255 200 OUTLINECOLOR 120 120 120 END # Style END # Class TEMPLATE "empty" ##recommended (enable GetFeatureInfo / can point to valid .html template) END # Layer -Jukka Rahkonen- _______________________________________________ MapServer-users mailing list MapServer-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard W. Greenwood www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From trygve at aspenes.priv.no Tue Nov 14 01:27:05 2023 From: trygve at aspenes.priv.no (Trygve Aspenes) Date: Tue, 14 Nov 2023 10:27:05 +0100 Subject: [MapServer-users] Is it possible to make a symbol of symbols? Message-ID: <121c1912e2aa006a6c4b77c45adb16a9@aspenes.priv.no> Hi Is it possible to make a symbol of symbols? My use case is wind barbs. I use lines for barbs up to 45kn, but at 50kn and above the 50kn flag is a filled triangle. I try a symbol like this: SYMBOL NAME "wind_barb_50" TYPE VECTOR FILLED TRUE POINTS 26 8.2 2 8.2 4.4 0 6.8 8.2 26 8.2 END END But here the line of the wind barb is not display. An example here https://drive.google.com/file/d/1maC2OqTwWG5H5WtCqbIAxPOmZoQ5Agkt/view?usp=sharing ( for reference a 40kn wind barb is also plotted) The line of the wind barb can be displayed if I set outlinecolor ( to the same color as the color), but then the line is a bit thicker than the wind bards with no 50kn flag. Example of both here https://drive.google.com/file/d/1aAKLg7fVVxB0hCbI4GRxLHI6Z_44MDml/view?usp=sharing Example how it should look https://www.weather.gov/hfo/windbarbinfo I have looked at various variation using a line symbol and a flag symbol using both in the layer. But then I get problems when I rotate the symbols. I also have looked at using offset and anchorpoint for the flag relative to the line. But I can't get it right. So then my idea of have a line symbol and a flag symbol and then join them together in a new combined symbol before putting it in a layer. Any ideas or sections of the manual I have missed? Trygve Aspenes From jukka.rahkonen at maanmittauslaitos.fi Tue Nov 14 01:44:40 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Tue, 14 Nov 2023 09:44:40 +0000 Subject: [MapServer-users] How to cascade data from OGC API Features service? In-Reply-To: References: Message-ID: Hi, MS4W 5.0.0 RC1 contains GDAL version that does not include this enhancement https://github.com/OSGeo/gdal/issues/8522. It means that my Mapserver was reading OGCFeat only 10 features at a time. That gives all too bad impression about the speed of the OGCFeat source. The VRT below works also with older GDAL versions, it is reading a thousand times bigger pages, it is faster, and it does not bloat our server logs. A hint for debuggers: the document https://mapserver.org/optimization/debugging.html#table-of-contentseven is not totally accurate. Even when MS_ERRORFILE is set, some debug data, including the outgoing http requests, go to the Apache error_log. OAPIF:https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/ building 10000 -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Rahkonen Jukka via MapServer-users L?hetetty: tiistai 14. marraskuuta 2023 10.09 Vastaanottaja: Richard Greenwood Kopio: Mapserver-Users (mapserver-users at lists.osgeo.org) Aihe: Re: [MapServer-users] How to cascade data from OGC API Features service? Hi, Oh yes, it was a typo. As a user who tries to be standard compliant I had upgraded the name in one place to match with the OGC approved abbreviation ?OGCFeat? instead of the GDAL driver name ?OAPIF?. The MAXSCALEDENOM value 60000 (naturally copy-pasted from some old mapfile) is all too large for that service in areas with lots of buildings. Scale 1:5000 is probably safe everywhere. A EPSG:3067 bbox for testing: BBOX=390723,6671479,392177,6672231 Positive thing is that now also other Mapserver users know that it is possible to use OGCFeat services as source data with OGR connection. Thanks to you and TC Haddad who also found the typo. -Jukka Rahkonen- L?hett?j?: Richard Greenwood > L?hetetty: tiistai 14. marraskuuta 2023 5.38 Vastaanottaja: Rahkonen Jukka > Kopio: Mapserver-Users (mapserver-users at lists.osgeo.org) > Aihe: Re: [MapServer-users] How to cascade data from OGC API Features service? Are you sure that you don't just have a typo? Your file is named "ogcfeat.vrt" but your CONNECTION "c:/ms4w_data/oapif.vrt" I set up a quick test and I haven't gotten a map (it timed out 504 error after several minutes) but I didn't get an error. Maybe you could share a smaller test data set and a reasonable bounding box. My test: http://localhost/cgi-bin/mapserv?map=MAP_TEST&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&LAYERS=building&WIDTH=696&HEIGHT=870&CRS=EPSG:3067&BBOX=-359700,6615190,-359500,6615199&FORMAT=png On Mon, Nov 13, 2023 at 2:48?PM Rahkonen Jukka via MapServer-users > wrote: Hi, I tried to make a WMS layer from OGC API Features service but I did not success. This is my best trial so far: I am using Mapserver from MS4W 5.0.0 RC1 I wrote this ORG VRT file (ogcfeat.vrt) OAPIF:https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/ building The GDAL included in MS4W reads the vrt OK with ogrinfo ogcfeat.vrt -al -so --debug on (there are 5 millions polygons so hit Ctrl-C if you are just testing) I wrote a layer that can be at the bottom of this message below. The WMS GetCapabilities show the new layer but GetMaps fail. The log file collects these errors msDrawMap(): Image handling error. Failed to draw layer named 'building'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `building'. File not found or unsupported format. Check server logs. Open failed for OGR connection in layer `building'. Am I missing something from my configuration? My LAYER is like this LAYER NAME "building" STATUS ON CONNECTIONTYPE OGR CONNECTION "c:/ms4w_data/oapif.vrt" DATA "building" TYPE POLYGON # DEBUG 5 UNITS METERS SIZEUNITS PIXELS MAXSCALEDENOM 60000 TOLERANCE 3 TOLERANCEUNITS PIXELS METADATA "wms_title" "OGCFeat-building" "wms_include_items" "all" END #metadata PROJECTION "init=epsg:3067" ##recommended END CLASS NAME "building" STYLE COLOR 200 255 200 OUTLINECOLOR 120 120 120 END # Style END # Class TEMPLATE "empty" ##recommended (enable GetFeatureInfo / can point to valid .html template) END # Layer -Jukka Rahkonen- _______________________________________________ MapServer-users mailing list MapServer-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard W. Greenwood www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From benedek.petrovicz at gmail.com Tue Nov 14 01:54:46 2023 From: benedek.petrovicz at gmail.com (Benedek Petrovicz) Date: Tue, 14 Nov 2023 10:54:46 +0100 Subject: [MapServer-users] How to run MapScript from C#? Message-ID: Hi! Is there anyone who has a working C# project with MapScript? I'm trying to use the SWIG generated DLL from the gisinternals build, but I cannot make it work. I read the SWIG documents on mapserver.org, but couldn't figure it out. Any help would be much appreciated! Thank you! Petrovicz -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at gmail.com Tue Nov 14 08:34:37 2023 From: j.l.h.hartmann at gmail.com (Jan Hartmann) Date: Tue, 14 Nov 2023 17:34:37 +0100 Subject: [MapServer-users] How to cascade data from OGC API Features service? In-Reply-To: References: Message-ID: <69682554-3e76-4e6c-bda8-e099dede1cf8@gmail.com> Hi Jukka, Sometimes there are problems when the actual filenames in the vrt are relative pathnames. Especially with the new mapscript.php include file. Perhaps you could try that. Jan On 13/11/2023 22:48, Rahkonen Jukka via MapServer-users wrote: > > Hi, > > I tried to make a WMS layer from OGC API Features service but I did > not success. This is my best trial so far: > > I am using Mapserver from MS4W 5.0.0 RC1 > I wrote this ORG VRT file (ogcfeat.vrt) > > > > ??? > > OAPIF:https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/ > > building > > ??? > > > > The GDAL included in MS4W reads the vrt OK with > > ogrinfo ogcfeat.vrt -al -so --debug on > (there are 5 millions polygons so hit Ctrl-C if you are just testing) > > I wrote a layer that can be at the bottom of this message below.? The > WMS GetCapabilities show the new layer but GetMaps fail. The log file > collects these errors > > msDrawMap(): Image handling error. Failed to draw layer named 'building'. > > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `building'. File not found or unsupported format. Check server logs. > > Open failed for OGR connection in layer `building'. > > Am I missing something from my configuration? My LAYER is like this > > LAYER > > ??????? NAME "building" > > ??????? STATUS ON > > ?????? ?CONNECTIONTYPE OGR > > CONNECTION "c:/ms4w_data/oapif.vrt" > > ??????? DATA "building" > > ??????? TYPE POLYGON > > #??????? DEBUG 5 > > ??????? UNITS METERS > > ??????? SIZEUNITS PIXELS > > ?????? MAXSCALEDENOM 60000 > > ?????? TOLERANCE 3 > > ??????? TOLERANCEUNITS PIXELS > > ??????? METADATA > > ??????? "wms_title" "OGCFeat-building" > > "wms_include_items" "all" > > ????????END #metadata > > ??????? PROJECTION > > ????? "init=epsg:3067"?? ##recommended > > END > > CLASS > > ? NAME "building" > > ????? STYLE > > ??????? COLOR 200 255 200 > > ??????? OUTLINECOLOR 120 120 120 > > ????? END # Style > > ??????? END # Class > > ??? TEMPLATE "empty" ##recommended (enable GetFeatureInfo / can point > to valid .html template) > > ?END # Layer > > -Jukka Rahkonen- > > > _______________________________________________ > 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 jukka.rahkonen at maanmittauslaitos.fi Wed Nov 15 02:33:16 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Wed, 15 Nov 2023 10:33:16 +0000 Subject: [MapServer-users] Well-know SLD symbols Message-ID: Hi, The SDL standard defines some well-known symbols: circle, square, triangle, arrow, cross, star, and x. Can I find somewhere the mapfile versions of these symbols? I found circle and star from GitHub https://github.com/MapServer/MapServer/blob/2b263e96d1b44fb74caf20581256c71419da802c/msautotest/sld/data/symbols.map.include#L11 and I also found code that probably generates the well-know symbols https://github.com/MapServer/MapServer/blob/2b263e96d1b44fb74caf20581256c71419da802c/src/mapogcsld.cpp#L48 but that code is rather useless for me. Triangle and cross can be found here https://mapserver.org/mapfile/symbology/examples.html If somebody has ready-made square, arrow, and x and is willing to share them I would be grateful. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From tchaddad at gmail.com Wed Nov 15 03:39:59 2023 From: tchaddad at gmail.com (TC Haddad) Date: Wed, 15 Nov 2023 03:39:59 -0800 Subject: [MapServer-users] Well-know SLD symbols In-Reply-To: References: Message-ID: Hi Jukka, Here are some that I have, hopefully they work for what you are looking for, I never compared to the SLD so I don't know if they match SLD definitions. The arrow for example may not. Tanya ---------------------fwd---------------------------- >> Symbol Name 'square' Type VECTOR FILLED TRUE Points 0 1 0 0 1 0 1 1 0 1 END END Symbol Name 'x' Type VECTOR Points 0 0 1 1 -99 -99 0 1 1 0 END END SYMBOL NAME "arrow" TYPE vector FILLED true POINTS 0 0.4 3 0.4 3 0 5 0.8 3 1.6 3 1.2 0 1.2 0 0.4 END # POINTS ANCHORPOINT 0 0.5 END # SYMBOL On Wed, Nov 15, 2023 at 2:33?AM Rahkonen Jukka via MapServer-users < mapserver-users at lists.osgeo.org> wrote: > Hi, > > > > The SDL standard defines some well-known symbols: circle, square, > triangle, arrow, cross, star, and x. Can I find somewhere the mapfile > versions of these symbols? I found circle and star from GitHub > https://github.com/MapServer/MapServer/blob/2b263e96d1b44fb74caf20581256c71419da802c/msautotest/sld/data/symbols.map.include#L11 > > and I also found code that probably generates the well-know symbols > https://github.com/MapServer/MapServer/blob/2b263e96d1b44fb74caf20581256c71419da802c/src/mapogcsld.cpp#L48 > but that code is rather useless for me. > > > > Triangle and cross can be found here > https://mapserver.org/mapfile/symbology/examples.html If somebody has > ready-made square, arrow, and x and is willing to share them I would be > grateful. > > > > -Jukka Rahkonen- > _______________________________________________ > 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 jukka.rahkonen at maanmittauslaitos.fi Wed Nov 15 03:50:58 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Wed, 15 Nov 2023 11:50:58 +0000 Subject: [MapServer-users] Well-know SLD symbols In-Reply-To: References: Message-ID: Hi, Thank you. The SLD definitions in the standard are given in a literal form: ?The WellKnownName element gives the well-known name of the shape of the mark. Allowed values include at least ?square?, ?circle?, ?triangle?, ?star?, ?cross?, and ?x?, though map servers may draw a different symbol instead if they don't have a shape for all of these. The default WellKnownName is ?square?.? Arrow is not on the list, I think that I copied it from the Geoserver docs. If arrow was on the list and if your symbol looks like an arrow then it would match the SLD definition for sure. -Jukka Rahkonen- L?hett?j?: TC Haddad L?hetetty: keskiviikko 15. marraskuuta 2023 13.40 Vastaanottaja: Rahkonen Jukka Kopio: Mapserver-Users (mapserver-users at lists.osgeo.org) Aihe: Re: [MapServer-users] Well-know SLD symbols Hi Jukka, Here are some that I have, hopefully they work for what you are looking for, I never compared to the SLD so I don't know if they match SLD definitions. The arrow for example may not. Tanya ---------------------fwd---------------------------- >> Symbol Name 'square' Type VECTOR FILLED TRUE Points 0 1 0 0 1 0 1 1 0 1 END END Symbol Name 'x' Type VECTOR Points 0 0 1 1 -99 -99 0 1 1 0 END END SYMBOL NAME "arrow" TYPE vector FILLED true POINTS 0 0.4 3 0.4 3 0 5 0.8 3 1.6 3 1.2 0 1.2 0 0.4 END # POINTS ANCHORPOINT 0 0.5 END # SYMBOL On Wed, Nov 15, 2023 at 2:33?AM Rahkonen Jukka via MapServer-users > wrote: Hi, The SDL standard defines some well-known symbols: circle, square, triangle, arrow, cross, star, and x. Can I find somewhere the mapfile versions of these symbols? I found circle and star from GitHub https://github.com/MapServer/MapServer/blob/2b263e96d1b44fb74caf20581256c71419da802c/msautotest/sld/data/symbols.map.include#L11 and I also found code that probably generates the well-know symbols https://github.com/MapServer/MapServer/blob/2b263e96d1b44fb74caf20581256c71419da802c/src/mapogcsld.cpp#L48 but that code is rather useless for me. Triangle and cross can be found here https://mapserver.org/mapfile/symbology/examples.html If somebody has ready-made square, arrow, and x and is willing to share them I would be grateful. -Jukka Rahkonen- _______________________________________________ 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 mniemyjski at cloudferro.com Wed Nov 15 07:49:21 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Wed, 15 Nov 2023 15:49:21 +0000 Subject: [MapServer-users] internal MapServer scaling Message-ID: Hello, Is there any environmental variable corresponding to the number of internal MapServer scaling (i.e., the number of maximal MapServer processes)? I guess FastCGI is responsible for this. Is it possible to manage it from the Dockerfile? Best, Marcin [https://res.cdn.office.net/assets/bookwithme/misc/CalendarPerson20px.png] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Wed Nov 15 07:52:58 2023 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 15 Nov 2023 15:52:58 +0000 Subject: [MapServer-users] internal MapServer scaling In-Reply-To: References: Message-ID: There is not. You'd do that (if it's possible) at the web server configuration level. From: MapServer-users On Behalf Of Marcin Niemyjski via MapServer-users Sent: Wednesday, November 15, 2023 9:49 AM To: Marcin Niemyjski via MapServer-users Subject: [MapServer-users] internal MapServer scaling This message may be from an external email source. Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center. ________________________________ Hello, Is there any environmental variable corresponding to the number of internal MapServer scaling (i.e., the number of maximal MapServer processes)? I guess FastCGI is responsible for this. Is it possible to manage it from the Dockerfile? Best, Marcin [https://res.cdn.office.net/assets/bookwithme/misc/CalendarPerson20px.png] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed Nov 15 10:59:01 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Wed, 15 Nov 2023 18:59:01 +0000 Subject: [MapServer-users] Who remembers the truth about antialiasing? Message-ID: Hi, When Mapserver started to use AGG renderer everybody thought that antialiasing is not only the strength of the library but also the only way AGG can render. See https://mapserver.org/output/agg.html and https://lists.osgeo.org/pipermail/mapserver-users/2007-September/025467.html. But then some Mapserver users noticed that AGG (and Mapnik) can also do aliased rendering at least for lines. Discussion on the mailing list https://lists.osgeo.org/pipermail/mapserver-users/2017-October/080278.html yielded a GitHub issue https://github.com/MapServer/MapServer/issues/5508 and a commit https://github.com/erik-h11/mapserver/commit/9ca99e763738fba7acaea6089afb5b5b7cd6e699. However, the Mapserver documentation is unclear https://mapserver.org/mapfile/style.html#mapfile-style-antialias. I understand it so that setting antialias has not been functional since 7.0, and in 8.0 the whole keyword was removed. "ANTIALIAS [true|false] Removed in version 8.0: GD support was removed in 7.0 (and this mapfile parameter was removed in 8.0) Should antialiasing be applied to the style. For line rendering only. Default is false." My conclusions at the moment are: * ANTIALIAS true|false does work in STYLE. It affects only lines, but polygon outlines are also lines. The default is TRUE. * ANTIALIAS does not have an effect in other places: LABEL and SYMBOL. They are always antialiased. If that is correct I may have a try with improving the documentation. I started to experiment with antialias because I was not very satisfied with a very simple map that has only lines and labels. For my mind the lines on that map look better without antialiasing. Unfortunately I could not do anything for the labels. Especially dashes turn out light grey and blurry. The font is truetype, Vera, and the text color in the mapfile is pure black. All hints for making labels sharper are welcome. [cid:image001.png at 01DA1805.A8C0ED50] -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 1644 bytes Desc: image001.png URL: From steve.lime at state.mn.us Wed Nov 15 13:16:35 2023 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 15 Nov 2023 21:16:35 +0000 Subject: [MapServer-users] Who remembers the truth about antialiasing? In-Reply-To: References: Message-ID: Looking at the code, the keyword is still in place in 8.0. It is recognized in the STYLE object but is silently ignored inside a LABEL object. I didn't check rendering code specifically to see what true vs false values affected. So, I think your conclusions are correct. From: MapServer-users On Behalf Of Rahkonen Jukka via MapServer-users Sent: Wednesday, November 15, 2023 12:59 PM To: Mapserver-Users (mapserver-users at lists.osgeo.org) Subject: [MapServer-users] Who remembers the truth about antialiasing? Hi, When Mapserver started to use AGG renderer everybody thought that antialiasing is not only the strength of the library but also the only way AGG can render. See https://mapserver.org/output/agg.html and https://lists.osgeo.org/pipermail/mapserver-users/2007-September/025467.html. But then some Mapserver users noticed that AGG (and Mapnik) can also do aliased rendering at least for lines. Discussion on the mailing list https://lists.osgeo.org/pipermail/mapserver-users/2017-October/080278.html yielded a GitHub issue https://github.com/MapServer/MapServer/issues/5508 and a commit https://github.com/erik-h11/mapserver/commit/9ca99e763738fba7acaea6089afb5b5b7cd6e699. However, the Mapserver documentation is unclear https://mapserver.org/mapfile/style.html#mapfile-style-antialias. I understand it so that setting antialias has not been functional since 7.0, and in 8.0 the whole keyword was removed. "ANTIALIAS [true|false] Removed in version 8.0: GD support was removed in 7.0 (and this mapfile parameter was removed in 8.0) Should antialiasing be applied to the style. For line rendering only. Default is false." My conclusions at the moment are: * ANTIALIAS true|false does work in STYLE. It affects only lines, but polygon outlines are also lines. The default is TRUE. * ANTIALIAS does not have an effect in other places: LABEL and SYMBOL. They are always antialiased. If that is correct I may have a try with improving the documentation. I started to experiment with antialias because I was not very satisfied with a very simple map that has only lines and labels. For my mind the lines on that map look better without antialiasing. Unfortunately I could not do anything for the labels. Especially dashes turn out light grey and blurry. The font is truetype, Vera, and the text color in the mapfile is pure black. All hints for making labels sharper are welcome. [cid:image001.png at 01DA17CC.42C69A10] -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 1644 bytes Desc: image001.png URL: From joerg.thomsen at wheregroup.com Thu Nov 16 00:34:44 2023 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=C3=B6rg_Thomsen_=28WhereGroup=29?=) Date: Thu, 16 Nov 2023 09:34:44 +0100 Subject: [MapServer-users] [FOSSGIS-Talk] QGIS Server und Mapbender | Schriftmarkierung nicht richtig In-Reply-To: <99d68f930fe34b5288979636f0f268b4@erftstadt.de> References: <99d68f930fe34b5288979636f0f268b4@erftstadt.de> Message-ID: <2058abfe-fa50-4215-a46d-7508343c64e0@wheregroup.com> Hallo Jens, ich vermute die Signatur wird generell nicht richtig angezeigt, egal in welchem Client Du den WMS einbindest. Das Problem ist beim QGIS Server zu beheben. Und es sieht durchaus so aus, als w?rde der QGIS-Server die ttf mit dem Symbol nicht finden. (-> https://docs.qgis.org/3.28/en/docs/server_manual/config.html#add-fonts-to-your-linux-server) Vielleicht findet sich in er Log-Datei vom QGIS Server ein Hinweis wo die TTFs gesucht werden. Dein zweiter Screenshot zeigt ja QGIS-Desktop, wenn Du das qgz damit ?ffnest, hat das nichts bzw. wenig mit dem QGIS-Server zu tun (man kann in diesem Fall QGIS-Desktop als Editor f?r die QGIS Server Konfigurationsdatei verstehen). Schriften, Symboldateien etc. die in QGIS Desktop benutzt werden, sind nicht zwangsweise dem Server bekannt, er hat eine eigene Konfiguration. Viele Gr??e, J?rg Am 16.11.23 um 09:13 schrieb Cla?en, Jens: > Hallo in die Runde, > > ich habe folgende Problemstellung: > Bei uns ist der QGIS Server und Mapbender im Einsatz. ?ber den QGIS Server stelle ich teilweise unsere Daten als WMS zur Verf?gung um diese in den Mapbender einzubinden. > > In QGIS habe ich f?r unser Artenschutzgebiet eine Schriftmarkierung angelegt. Diese wird auch korrekt dargestellt: https://ibb.co/QnPy3xF > Die Schriftstiele (Fonts) sind auf dem QGIS Server installiert und werden dort auch korrekt angezeigt. > > Im Mapbender wird diese Schriftmarkierung allerdings nicht korrekt angezeigt: https://ibb.co/jkFf4dB > > Wei? eventuell jemand woran dieses Problem liegt? > > F?r Hilfe bedanke ich mich im Voraus! > > Beste Gr??e > > Jens -- Viele Gr??e, J?rg Thomsen ********************************** Where2B Konferenz 2023 14. Dezember 2023 in Bonn und Online https://where2b-conference.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 jendrusk at gmail.com Fri Nov 17 03:43:52 2023 From: jendrusk at gmail.com (=?UTF-8?Q?Andrzej_K=C4=99pys?=) Date: Fri, 17 Nov 2023 12:43:52 +0100 Subject: [MapServer-users] Variables in mapfile Message-ID: <249ba843-9db4-4146-96ef-576704845b54@gmail.com> Hi All I'm trying to deploy mapserver on kubernetes cluster, to keep development separation I'm using few environments, for every of them I've got separated database as a source for the layers. Connection parameters (host/port/user/pass) are common for all solution and stored in configmaps. I'm looking for an option to use this enviromental variables from configmaps in mapfile, like: ? ??? MAP ??????? LAYER ??????????? NAME "ECA" ??????????? STATUS ON ??????????? TYPE POLYGON ??????????? CONNECTIONTYPE POSTGIS ??????????? CONNECTION "host=%PGHOST% dbname=%PGDATABASE% user=%PGUSER% password=%PGPASSWORD% port=%PGPORT%" ??????????? DATA "wkb from (select * from mapserver.special_areas_system where type_id = 1) as subquery using unique id" ??????????? CLASS ??????????????? STYLE ??????????????????? COLOR "#ff960040" ??????????????????? OUTLINECOLOR "#ff9600ff" ??????????????? END ??????????? END ??????? END Is it possible? Or if not - how to deal with such case? Thanks in advance. Andy -- Pozdrawiam Andrzej K?pys skype: jedrus305 tel: 605 997 440 From jukka.rahkonen at maanmittauslaitos.fi Fri Nov 17 05:18:30 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Fri, 17 Nov 2023 13:18:30 +0000 Subject: [MapServer-users] Variables in mapfile In-Reply-To: <249ba843-9db4-4146-96ef-576704845b54@gmail.com> References: <249ba843-9db4-4146-96ef-576704845b54@gmail.com> Message-ID: Hi, That is an old but still relevant idea https://github.com/MapServer/MapServer/issues/408. For your use case it could be enough to store the connection into a text file and read it with INCLUDE https://mapserver.org/mapfile/include.html. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: MapServer-users Puolesta Andrzej Kepys via MapServer-users L?hetetty: perjantai 17. marraskuuta 2023 13.44 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MapServer-users] Variables in mapfile Hi All I'm trying to deploy mapserver on kubernetes cluster, to keep development separation I'm using few environments, for every of them I've got separated database as a source for the layers. Connection parameters (host/port/user/pass) are common for all solution and stored in configmaps. I'm looking for an option to use this enviromental variables from configmaps in mapfile, like: MAP LAYER NAME "ECA" STATUS ON TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "host=%PGHOST% dbname=%PGDATABASE% user=%PGUSER% password=%PGPASSWORD% port=%PGPORT%" DATA "wkb from (select * from mapserver.special_areas_system where type_id = 1) as subquery using unique id" CLASS STYLE COLOR "#ff960040" OUTLINECOLOR "#ff9600ff" END END END Is it possible? Or if not - how to deal with such case? Thanks in advance. Andy -- Pozdrawiam Andrzej K?pys skype: jedrus305 tel: 605 997 440 _______________________________________________ MapServer-users mailing list MapServer-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From mapserver at geoworld.de Thu Nov 23 10:16:14 2023 From: mapserver at geoworld.de (Nicol Hermann) Date: Thu, 23 Nov 2023 19:16:14 +0100 Subject: [MapServer-users] Python MapScript - GEOS Message-ID: <063e414e5f7f5c1254af850fe167e6fac4dfaea7.camel@geoworld.de> Hello all, it there a way to verify that GEOS Support is properly working with Python mapscript. The below buffer method fails but the msGetVersion claims 'SUPPORTS=GEOS'. Anything else im overlooking? Python 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import mapscript >>> pktObj= mapscript.pointObj( 49.9653578, 8.1601308, 100 ) >>> shpObj= pktObj.toShape() >>> shpObjBuffer= shpObj.buffer( 0.0005 ) >>> if shpObjBuffer == mapscript.MS_SUCCESS: ... rectObj = shpObjBuffer['bounds'] ... print( rectObj ) ... else: ... print('Error') ... Error >>> print(mapscript.msGetVersion()) MapServer version 8.0.1 PROJ version 7.2 GDAL version 3.2 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF Thanks for any help Nicol From sethg at geographika.co.uk Thu Nov 23 11:08:59 2023 From: sethg at geographika.co.uk (Seth G) Date: Thu, 23 Nov 2023 20:08:59 +0100 Subject: [MapServer-users] Python MapScript - GEOS In-Reply-To: <063e414e5f7f5c1254af850fe167e6fac4dfaea7.camel@geoworld.de> References: <063e414e5f7f5c1254af850fe167e6fac4dfaea7.camel@geoworld.de> Message-ID: Hi, Testing the code here and the following line: shpObjBuffer = shpObj.buffer( 0.0005 ) returns a valid buffered polygon: >>> shpObjBuffer > >>> shpObjBuffer.toWKT() 'POLYGON ((49.9658578000000020 8.1601307999999992, 49 The buffer method [1] rerturns a new shape, so I'm not sure your check for a True value makes sense in this line: >>>> if shpObjBuffer == mapscript.MS_SUCCESS: Are you sure the buffer isn't working? Seth [1] https://mapserver.org/mapscript/mapscript-api/stub/mapscript.shapeObj.html#mapscript.shapeObj.buffer -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Thu, Nov 23, 2023, at 7:16 PM, Nicol Hermann via MapServer-users wrote: > Hello all, > > it there a way to verify that GEOS Support is properly working with > Python mapscript. > The below buffer method fails but the msGetVersion claims > 'SUPPORTS=GEOS'. Anything else im overlooking? > > > Python 3.9.2 (default, Feb 28 2021, 17:03:44) > [GCC 10.2.1 20210110] on linux > Type "help", "copyright", "credits" or "license" for more information. >>>> import mapscript >>>> pktObj= mapscript.pointObj( 49.9653578, 8.1601308, 100 ) >>>> shpObj= pktObj.toShape() >>>> shpObjBuffer= shpObj.buffer( 0.0005 ) >>>> if shpObjBuffer == mapscript.MS_SUCCESS: > ... rectObj = shpObjBuffer['bounds'] > ... print( rectObj ) > ... else: > ... print('Error') > ... > Error >>>> print(mapscript.msGetVersion()) > MapServer version 8.0.1 PROJ version 7.2 GDAL version 3.2 OUTPUT=PNG > OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=OGCAPI_SERVER SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF > > > Thanks for any help > > Nicol > > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From mapserver at geoworld.de Thu Nov 23 11:49:36 2023 From: mapserver at geoworld.de (Nicol Hermann) Date: Thu, 23 Nov 2023 20:49:36 +0100 Subject: [MapServer-users] Python MapScript - GEOS In-Reply-To: References: <063e414e5f7f5c1254af850fe167e6fac4dfaea7.camel@geoworld.de> Message-ID: <06eab9432e0a3a2c0c6a2c5a77e83ad76cceddf6.camel@geoworld.de> Thanks Seth, You are correct. Buffer works and changing the verification line solved the problem. Many thanks for your help Nicol Am Donnerstag, dem 23.11.2023 um 20:08 +0100 schrieb Seth G: > Hi, > > Testing the code here and the following line: shpObjBuffer = > shpObj.buffer( 0.0005 ) returns a valid buffered polygon: > > > > > shpObjBuffer > 0x000002740979FEA0> > > > > > shpObjBuffer.toWKT() > 'POLYGON ((49.9658578000000020 8.1601307999999992, 49 > > The buffer method [1] rerturns a new shape, so I'm not sure your > check for a True value makes sense in this line: > > > > > > if shpObjBuffer == mapscript.MS_SUCCESS: > > Are you sure the buffer isn't working? > > Seth > > [1] > https://mapserver.org/mapscript/mapscript-api/stub/mapscript.shapeObj.html#mapscript.shapeObj.buffer > > -- > web:https://geographika.net?& https://mapserverstudio.net > twitter: @geographika > > On Thu, Nov 23, 2023, at 7:16 PM, Nicol Hermann via MapServer-users > wrote: > > Hello all, > > > > it there a way to verify that GEOS Support is properly working with > > Python mapscript. > > The below buffer method fails but the msGetVersion claims > > 'SUPPORTS=GEOS'. Anything else im overlooking? > > > > > > Python 3.9.2 (default, Feb 28 2021, 17:03:44) > > [GCC 10.2.1 20210110] on linux > > Type "help", "copyright", "credits" or "license" for more > > information. > > > > > import mapscript > > > > > pktObj= mapscript.pointObj( 49.9653578, 8.1601308, 100 ) > > > > > shpObj= pktObj.toShape() > > > > > shpObjBuffer= shpObj.buffer( 0.0005 ) > > > > > if shpObjBuffer == mapscript.MS_SUCCESS: > > ...??? rectObj = shpObjBuffer['bounds'] > > ...??? print( rectObj ) > > ... else: > > ...??? print('Error') > > ... > > Error > > > > > print(mapscript.msGetVersion()) > > MapServer version 8.0.1 PROJ version 7.2 GDAL version 3.2 > > OUTPUT=PNG > > OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > > SUPPORTS=OGCAPI_SERVER SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS > > INPUT=OGR > > INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF > > > > > > Thanks for any help > > > > Nicol > > > > > > > > _______________________________________________ > > MapServer-users mailing list > > MapServer-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users From foxseo2023 at proton.me Thu Nov 23 22:25:17 2023 From: foxseo2023 at proton.me (foxseo2023) Date: Fri, 24 Nov 2023 06:25:17 +0000 Subject: [MapServer-users] Chatgpt - Mapserver Message-ID: Can you help me with some documentation about mapper? I used Chatgpt but still not successful. Thank you Best regards,https://vking.vn/kien-truc/biet-thu-tan-co-dien/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.j.kobben at utwente.nl Fri Nov 24 01:20:31 2023 From: b.j.kobben at utwente.nl (Kobben, Barend (UT-ITC)) Date: Fri, 24 Nov 2023 09:20:31 +0000 Subject: [MapServer-users] Chatgpt - Mapserver In-Reply-To: References: Message-ID: A classic case of RTFM: https://mapserver.org/documentation.html -- Barend On 24/11/2023, 07:25, "MapServer-users" wrote: Can you help me with some documentation about mapper? I used Chatgpt but still not successful. Thank you Best regards, https://vking.vn/kien-truc/biet-thu-tan-co-dien/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at gmail.com Sun Nov 26 10:38:44 2023 From: j.l.h.hartmann at gmail.com (Jan Hartmann) Date: Sun, 26 Nov 2023 19:38:44 +0100 Subject: [MapServer-users] PHP Mapscript: how to clone layers In-Reply-To: References: Message-ID: Hi, In previous versions of PHP MapScript a new layer was defined as: $l2 = new layerObj($oMap,$l1); $l1 is the base layer from which $l2 is copied. In MapScript SWIG the second parameter has disappeared. $l2 has to be cloned from $l1, and then inserted into the map. With PHP-MapScript this should be: $l2 = $l1->clone(); $oMap->insertLayer($l2); But there is no PHP-MapScript function layerObj::clone. What do I miss? Jan From sethg at geographika.co.uk Sun Nov 26 12:20:53 2023 From: sethg at geographika.co.uk (Seth G) Date: Sun, 26 Nov 2023 21:20:53 +0100 Subject: [MapServer-users] PHP Mapscript: how to clone layers In-Reply-To: References: Message-ID: <9bb1afa9-e906-41ff-bd52-7435d8a96d48@app.fastmail.com> Hi Jan, I'm not a PHP MapScript user but you should be able to use: $l2 = $l1->cloneLayer(); As per the note at the following link - "In the Java & PHP modules this method is named cloneLayer. " https://mapserver.org/mapscript/mapscript-api/stub/mapscript.layerObj.html#mapscript.layerObj.clone I'm guessing there is a clash with the a reserved keyword in PHP so the method needs a different name. Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Sun, Nov 26, 2023, at 7:38 PM, Jan Hartmann via MapServer-users wrote: > Hi, > > In previous versions of PHP MapScript a new layer was defined as: > > $l2 = new layerObj($oMap,$l1); > > $l1 is the base layer from which $l2 is copied. > > In MapScript SWIG the second parameter has disappeared. $l2 has to be > cloned from $l1, and then inserted into the map. With PHP-MapScript this > should be: > > $l2 = $l1->clone(); > $oMap->insertLayer($l2); > > But there is no PHP-MapScript function layerObj::clone. What do I miss? > > Jan > > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From raivo at r-systems.ee Mon Nov 27 02:27:24 2023 From: raivo at r-systems.ee (Raivo Rebane) Date: Mon, 27 Nov 2023 12:27:24 +0200 Subject: [MapServer-users] strrstr error occure Message-ID: <583c80af-ef0f-42f1-8fb0-559e0a197f8b@r-systems.ee> Hi, I ?want to test of use the mapserver, but on insatllation I got errors : /usr/bin/ld: CMakeFiles/cmTC_e57a2.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text+0x14): undefined reference to `strrstr' collect2: error: ld returned 1 exit status make[1]: *** [CMakeFiles/cmTC_e57a2.dir/build.make:87: cmTC_e57a2] Error 1 What's wrong ? Regards, Raivo From even.rouault at spatialys.com Mon Nov 27 04:28:19 2023 From: even.rouault at spatialys.com (Even Rouault) Date: Mon, 27 Nov 2023 13:28:19 +0100 Subject: [MapServer-users] strrstr error occure In-Reply-To: <583c80af-ef0f-42f1-8fb0-559e0a197f8b@r-systems.ee> References: <583c80af-ef0f-42f1-8fb0-559e0a197f8b@r-systems.ee> Message-ID: Hi, > > ?want to test of use the mapserver, but on insatllation I got errors : > > /usr/bin/ld: CMakeFiles/cmTC_e57a2.dir/CheckFunctionExists.c.o: in > function `main': > CheckFunctionExists.c:(.text+0x14): undefined reference to `strrstr' > collect2: error: ld returned 1 exit status > make[1]: *** [CMakeFiles/cmTC_e57a2.dir/build.make:87: cmTC_e57a2] Error 1 > > What's wrong ? Assuming this is not an error when building mapserver itself, but when just running cmake, such errors in CMakeOutput.log or CMakeError.log are totally legitimate. This is just CMake testing which features are available in your environments, and to do so it tries to build some small source files, and compilation errors are expected when the feature is not available. Even -- http://www.spatialys.com My software is free, but my time generally not. From raivo at r-systems.ee Mon Nov 27 07:10:24 2023 From: raivo at r-systems.ee (Raivo Rebane) Date: Mon, 27 Nov 2023 17:10:24 +0200 Subject: [MapServer-users] strrstr error occure In-Reply-To: References: <583c80af-ef0f-42f1-8fb0-559e0a197f8b@r-systems.ee> Message-ID: <00008844-ec8c-49c4-bc65-8c96ca59627b@r-systems.ee> Hi, here is output of cmake : raivo at Hydra:~$ cd mapserver-8.0.1/ raivo at Hydra:~/mapserver-8.0.1$ cd build/ raivo at Hydra:~/mapserver-8.0.1/build$ cmake .. -- Requiring C++11 -- Requiring C++11 - done -- Requiring C99 -- Requiring C99 - done -- Could NOT find ProtobufC (missing: PROTOBUFC_LIBRARY PROTOBUFC_COMPILER PROTOBUFC_INCLUDE_DIR) CMake Error at CMakeLists.txt:93 (message): ? PROTOBUFC library/component/dependency could not be found. ??? HINTS: ??? - disable PROTOBUFC support by adding -DWITH_PROTOBUFC=0 ??? - add the PROTOBUFC install directory to the CMAKE_PREFIX_PATH variable (-DCMAKE_PREFIX_PATH="/path/to/PROTOBUFC-install-dir;/path/to/other/dirs" Call Stack (most recent call first): ? CMakeLists.txt:339 (report_optional_not_found) -- Found Proj 9.4 -- Could NOT find FCGI (missing: FCGI_LIBRARY FCGI_INCLUDE_DIR) CMake Error at CMakeLists.txt:93 (message): ? FCGI library/component/dependency could not be found. ??? HINTS: ??? - disable FCGI support by adding -DWITH_FCGI=0 ??? - add the FCGI install directory to the CMAKE_PREFIX_PATH variable (-DCMAKE_PREFIX_PATH="/path/to/FCGI-install-dir;/path/to/other/dirs" Call Stack (most recent call first): ? CMakeLists.txt:598 (report_optional_not_found) -- * Summary of configured options for this build --? * Mandatory components --?? * GDAL: /usr/local/lib/libgdal.so --?? * PROJ: /usr/local/lib/libproj.so --?? * png: /usr/lib/x86_64-linux-gnu/libpng.so --?? * jpeg: /usr/lib/x86_64-linux-gnu/libjpeg.so --?? * freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so --? * Optional components --?? * GIF: /usr/lib/x86_64-linux-gnu/libgif.so --?? * MYSQL: disabled --?? * FRIBIDI: /usr/lib/x86_64-linux-gnu/libfribidi.so --?? * HARFBUZZ: /usr/lib/x86_64-linux-gnu/libharfbuzz.so --?? * GIF: /usr/lib/x86_64-linux-gnu/libgif.so --?? * CAIRO: /usr/lib/x86_64-linux-gnu/libcairo.so --?? * SVGCAIRO: disabled --?? * RSVG: disabled --?? * CURL: disabled --?? * PIXMAN: disabled --?? * LIBXML2: /usr/lib/x86_64-linux-gnu/libxml2.so --?? * POSTGIS: /usr/lib/libpq.so --?? * GEOS: /usr/local/lib/libgeos_c.so --?? * FastCGI: disabled --?? * PROTOBUFC: disabled --?? * Oracle Spatial: disabled --?? * Exempi XMP: disabled --? * Optional features --?? * WMS SERVER: ENABLED --?? * WFS SERVER: ENABLED --?? * WCS SERVER: ENABLED --?? * SOS SERVER: disabled --?? * OGCAPI SERVER: ENABLED --?? * WMS CLIENT: disabled --?? * WFS CLIENT: disabled --?? * ICONV: ENABLED --?? * Thread-safety support: disabled --?? * KML output: disabled --?? * XML Mapfile support: disabled --? * Mapscripts --?? * Python: disabled --?? * PHPNG: disabled --?? * PERL: disabled --?? * RUBY: disabled --?? * JAVA: disabled --?? * C#: disabled --?? * V8 Javascript: disabled --?? * Apache Module (Experimental): disabled --?? * Python MapScript Annotations: disabled -- -- PROJECT_BINARY_DIR is set to /home/raivo/mapserver-8.0.1/build -- Will install files to /usr/local -- Will install libraries to /usr/local/lib -- Configuring incomplete, errors occurred! See also "/home/raivo/mapserver-8.0.1/build/CMakeFiles/CMakeOutput.log". See also "/home/raivo/mapserver-8.0.1/build/CMakeFiles/CMakeError.log". raivo at Hydra:~/mapserver-8.0.1/build$ Raivo On 27.11.23 14:28, Even Rouault wrote: > Hi, >> >> ?want to test of use the mapserver, but on insatllation I got errors : >> >> /usr/bin/ld: CMakeFiles/cmTC_e57a2.dir/CheckFunctionExists.c.o: in >> function `main': >> CheckFunctionExists.c:(.text+0x14): undefined reference to `strrstr' >> collect2: error: ld returned 1 exit status >> make[1]: *** [CMakeFiles/cmTC_e57a2.dir/build.make:87: cmTC_e57a2] >> Error 1 >> >> What's wrong ? > > Assuming this is not an error when building mapserver itself, but when > just running cmake, such errors in CMakeOutput.log or CMakeError.log > are totally legitimate. This is just CMake testing which features are > available in your environments, and to do so it tries to build some > small source files, and compilation errors are expected when the > feature is not available. > > Even > > From even.rouault at spatialys.com Mon Nov 27 07:16:06 2023 From: even.rouault at spatialys.com (Even Rouault) Date: Mon, 27 Nov 2023 16:16:06 +0100 Subject: [MapServer-users] strrstr error occure In-Reply-To: <00008844-ec8c-49c4-bc65-8c96ca59627b@r-systems.ee> References: <583c80af-ef0f-42f1-8fb0-559e0a197f8b@r-systems.ee> <00008844-ec8c-49c4-bc65-8c96ca59627b@r-systems.ee> Message-ID: You didn't mention which operating system you use. I assume this is Debian or Ubuntu from the reported paths. Have a look at https://github.com/MapServer/MapServer/blob/b43fd4f2a5edb0e1f882ff256c257ad5c5c44930/ci/travis/before_install.sh#L15 for the dependencies you need to install. In your case? from the error messages, what is missing is: protobuf-c-compiler, libprotobuf-c-dev,libfcgi-dev Le 27/11/2023 ? 16:10, Raivo Rebane a ?crit?: > Hi, > > here is output of cmake : > > raivo at Hydra:~$ cd mapserver-8.0.1/ > raivo at Hydra:~/mapserver-8.0.1$ cd build/ > raivo at Hydra:~/mapserver-8.0.1/build$ cmake .. > -- Requiring C++11 > -- Requiring C++11 - done > -- Requiring C99 > -- Requiring C99 - done > -- Could NOT find ProtobufC (missing: PROTOBUFC_LIBRARY > PROTOBUFC_COMPILER PROTOBUFC_INCLUDE_DIR) > CMake Error at CMakeLists.txt:93 (message): > ? PROTOBUFC library/component/dependency could not be found. > > ??? HINTS: > ??? - disable PROTOBUFC support by adding -DWITH_PROTOBUFC=0 > ??? - add the PROTOBUFC install directory to the CMAKE_PREFIX_PATH > variable > (-DCMAKE_PREFIX_PATH="/path/to/PROTOBUFC-install-dir;/path/to/other/dirs" > Call Stack (most recent call first): > ? CMakeLists.txt:339 (report_optional_not_found) > > > -- Found Proj 9.4 > -- Could NOT find FCGI (missing: FCGI_LIBRARY FCGI_INCLUDE_DIR) > CMake Error at CMakeLists.txt:93 (message): > ? FCGI library/component/dependency could not be found. > > ??? HINTS: > ??? - disable FCGI support by adding -DWITH_FCGI=0 > ??? - add the FCGI install directory to the CMAKE_PREFIX_PATH variable > (-DCMAKE_PREFIX_PATH="/path/to/FCGI-install-dir;/path/to/other/dirs" > Call Stack (most recent call first): > ? CMakeLists.txt:598 (report_optional_not_found) > > > -- * Summary of configured options for this build > --? * Mandatory components > --?? * GDAL: /usr/local/lib/libgdal.so > --?? * PROJ: /usr/local/lib/libproj.so > --?? * png: /usr/lib/x86_64-linux-gnu/libpng.so > --?? * jpeg: /usr/lib/x86_64-linux-gnu/libjpeg.so > --?? * freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so > --? * Optional components > --?? * GIF: /usr/lib/x86_64-linux-gnu/libgif.so > --?? * MYSQL: disabled > --?? * FRIBIDI: /usr/lib/x86_64-linux-gnu/libfribidi.so > --?? * HARFBUZZ: /usr/lib/x86_64-linux-gnu/libharfbuzz.so > --?? * GIF: /usr/lib/x86_64-linux-gnu/libgif.so > --?? * CAIRO: /usr/lib/x86_64-linux-gnu/libcairo.so > --?? * SVGCAIRO: disabled > --?? * RSVG: disabled > --?? * CURL: disabled > --?? * PIXMAN: disabled > --?? * LIBXML2: /usr/lib/x86_64-linux-gnu/libxml2.so > --?? * POSTGIS: /usr/lib/libpq.so > --?? * GEOS: /usr/local/lib/libgeos_c.so > --?? * FastCGI: disabled > --?? * PROTOBUFC: disabled > --?? * Oracle Spatial: disabled > --?? * Exempi XMP: disabled > --? * Optional features > --?? * WMS SERVER: ENABLED > --?? * WFS SERVER: ENABLED > --?? * WCS SERVER: ENABLED > --?? * SOS SERVER: disabled > --?? * OGCAPI SERVER: ENABLED > --?? * WMS CLIENT: disabled > --?? * WFS CLIENT: disabled > --?? * ICONV: ENABLED > --?? * Thread-safety support: disabled > --?? * KML output: disabled > --?? * XML Mapfile support: disabled > --? * Mapscripts > --?? * Python: disabled > --?? * PHPNG: disabled > --?? * PERL: disabled > --?? * RUBY: disabled > --?? * JAVA: disabled > --?? * C#: disabled > --?? * V8 Javascript: disabled > --?? * Apache Module (Experimental): disabled > --?? * Python MapScript Annotations: disabled -- http://www.spatialys.com My software is free, but my time generally not. From j.l.h.hartmann at gmail.com Mon Nov 27 08:59:29 2023 From: j.l.h.hartmann at gmail.com (Jan Hartmann) Date: Mon, 27 Nov 2023 17:59:29 +0100 Subject: [MapServer-users] PHP Mapscript: how to clone layers In-Reply-To: <9bb1afa9-e906-41ff-bd52-7435d8a96d48@app.fastmail.com> References: <9bb1afa9-e906-41ff-bd52-7435d8a96d48@app.fastmail.com> Message-ID: Yes, that's it. Thanks, Seth! It was an insidious migration problem. The old way of cloning a layer ($l2 = new layerObj($oMap,$l1);) still works, but ignores the second parameter. So you get a default new layer, with STATUS OFF. I filled every member but that. No wonder the layers didn't turn on. Could this function be made to fail when called with two parameters? On 26/11/2023 21:20, Seth G wrote: > Hi Jan, > > I'm not a PHP MapScript user but you should be able to use: > > $l2 = $l1->cloneLayer(); > > As per the note at the following link - "In the Java & PHP modules this method is named cloneLayer. " > https://mapserver.org/mapscript/mapscript-api/stub/mapscript.layerObj.html#mapscript.layerObj.clone > > I'm guessing there is a clash with the a reserved keyword in PHP so the method needs a different name. > > Seth > > -- > web:https://geographika.net &https://mapserverstudio.net > twitter: @geographika > > On Sun, Nov 26, 2023, at 7:38 PM, Jan Hartmann via MapServer-users wrote: >> Hi, >> >> In previous versions of PHP MapScript a new layer was defined as: >> >> $l2 = new layerObj($oMap,$l1); >> >> $l1 is the base layer from which $l2 is copied. >> >> In MapScript SWIG the second parameter has disappeared. $l2 has to be >> cloned from $l1, and then inserted into the map. With PHP-MapScript this >> should be: >> >> $l2 = $l1->clone(); >> $oMap->insertLayer($l2); >> >> But there is no PHP-MapScript function layerObj::clone. What do I miss? >> >> Jan >> >> >> >> _______________________________________________ >> 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 newrun40 at gmail.com Mon Nov 27 17:00:16 2023 From: newrun40 at gmail.com (=?UTF-8?B?7LWc7KKF7Zi4?=) Date: Tue, 28 Nov 2023 10:00:16 +0900 Subject: [MapServer-users] I want to change Map Message-ID: Hello everyone.! Good morning. I'm Choi and I'm Korean. I'm trying to load and manage a map. 1. I found mapwingis for C# 2. I found video for sample https://www.youtube.com/watch?v=mBu9XgrfZfM In this video, he gets map images with SAS.planet program and supplies maps with ms4w. After, he loaded the maps in C# project with axmap. 3. I did the sample and it works well. 4. It will take about 200 days to get 20 level's maps with SAS.planet program for some area) 5. So, I got new maps about 4TB from https://www.ngii.go.kr/ is Korea's National Geographic Information Institute 6. But, I failed to load the new map in sample c# project // Source code used in video C# project providers.Add(providerid, "map", "http://127.0.0.1/map/z{zoom}/*{y}/{x}*.png", tkTileProjection.SphericalMercator, 0, 13); // Modified Source code providers.Add(providerid, "map", "http://127.0.0.1/map1/z{zoom}/ *{x}/{y}*.png", tkTileProjection.SphericalMercator, 0, 13); 7. After I found some differences. - Sample's map is Google map based EPSG:4326 and file's array is {zoom}{y}{x} and image's size 256*256 pixels - But my new maps are based EPSG:5179 and files array is {zoom}[x]{y} and image's size 512*512 pixels If someone knows the way to load my new maps with ms4w Please, let me know. Thank you! Best regards Choi. -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeter at netgis.de Mon Nov 27 23:16:56 2023 From: schroeter at netgis.de (Sven Schroeter) Date: Tue, 28 Nov 2023 08:16:56 +0100 Subject: [MapServer-users] I want to change Map In-Reply-To: References: Message-ID: Hi, Tile-based maps are provided in a predefined tileset. In the case of Google or OSM, for example, this is usually in EPSG 3857 and is defined in a grid with corresponding resolutions for the different zoom levels (always based on an extent): https://mapserver.org/mapcache/config.html#preconfigured-grids A WMS is usually used as the data source. Of course, you can also do this for self-defined tilesets with other resolutions and extents, as in the case of the Korean institute. With MS4W and the Mapcache software it contains, you can define and create such a tileset yourself. Greetings from Germany Sven Am 28.11.2023 um 02:00 schrieb ??? via MapServer-users: > Hello everyone.! > Good morning. > > I'm Choi and I'm Korean. > I'm trying to load and manage a map. > > 1. I found mapwingis for C# > > 2. I found video for sample > https://www.youtube.com/watch?v=mBu9XgrfZfM > ? ? In this video, he gets map images with SAS.planet program and > supplies maps with ms4w. > ? ? After, he loaded the maps in C# project with axmap. > > 3. I did the sample and it works well. > > 4. It will take about 200 days to get 20 level's maps with SAS.planet > program for some area) > > 5. So, I got new maps about 4TB from https://www.ngii.go.kr/ is > Korea's National Geographic Information Institute > > 6. But, I failed to load the new map in sample c# project > ? ? // Source code used in video C# project > ? ? providers.Add(providerid, "map", "http://127.0.0.1/map/z{zoom}/ > *{y}/{x}*.png", > tkTileProjection.SphericalMercator, 0, 13); > > ? ? // Modified Source code > ? ? providers.Add(providerid, "map", "http://127.0.0.1/map1/z{zoom}/ > *{x}/{y}*.png", > tkTileProjection.SphericalMercator, 0, 13); > > > 7. After?I found some differences. > > ? ? - Sample's map is Google map based EPSG:4326 and file's array is > {zoom}{y}{x} and image's?size 256*256 pixels > > ? ? - But my new maps are based EPSG:5179 and files array is > {zoom}[x]{y} and image's size > 512*512 pixels > > If someone knows the way to load my new maps with ms4w > Please, let me know. > > Thank you! > > Best regards > Choi. > > > > > _______________________________________________ > 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 mniemyjski at cloudferro.com Tue Nov 28 06:32:29 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Tue, 28 Nov 2023 14:32:29 +0000 Subject: [MapServer-users] filtering the data based on postgis attributes Message-ID: Hello, I would like to define several dimensions for filtering my WMS (Web Map Service). They are based on a PostGIS table from which the service is exposed. Here lies my problem because among the required information to expose, I need to provide the following to the map server: * wms_dimensionlist: (Mandatory) * wms_[dimensionname]_item: (Mandatory) * wms_[dimensionname]_units: (Mandatory) * wms_[dimensionname]_extent: (Mandatory) * wms_[dimensionname]_default: (Optional) My issue arises because I want to filter my data based on the "product_id" column containing a string. The table is large, so it's not possible to provide all the ID values to "wms_productid_extent." So, I thought about using https://mapserver.org/cgi/runsub.html#table-of-contents, but the problem arises with the implementation in the query. I would like to lead to a situation where if I don't provide any filtering parameters (product_id, cloud_cover), the entire data set is returned. I do not want to use this: DATA 'geometry from (select * from mrc order by maxcc desc) where pid = '%pid%' as subquerry using unique unique_id using srid=3857' because if I do not provide pid, my query wiill not work. So, to summarize I'm looking for something like this: DATA 'geometry from (select * from mrc order by maxcc desc) as subquerry using unique unique_id using srid=3857' VALIDATION 'maxCC' '^[0-9](1, 3)$' 'tile' '^.{6}$' 'pid' '^.{65}$' END No default values (except time), if none is provided Mapserver does not filter the data (except time). Best, Marcin [https://res.cdn.office.net/assets/bookwithme/misc/CalendarPerson20px.png] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Tue Nov 28 08:17:34 2023 From: sethg at geographika.co.uk (Seth G) Date: Tue, 28 Nov 2023 17:17:34 +0100 Subject: [MapServer-users] filtering the data based on postgis attributes In-Reply-To: References: Message-ID: <9d60fd93-6849-4e22-9fe4-4e08bcb8e92e@app.fastmail.com> Hi Marcin, In these cases previously I've used a SQL trick to implement this, by setting a default value for the parameter (of a non-existent ID) and adding an OR clause to the SQL. E.g; VALIDATION "default_pid" "-1" .. WHERE (pid = %pid% OR %pid% = -1) If no value is provided then the SQL will be WHERE (pid = -1 OR -1 = -1) which will always return True so all records will return. Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Tue, Nov 28, 2023, at 3:32 PM, Marcin Niemyjski via MapServer-users wrote: > Hello, > I would like to define several dimensions for filtering my WMS (Web Map Service). They are based on a PostGIS table from which the service is exposed. Here lies my problem because among the required information to expose, I need to provide the following to the map server: > > ? wms_dimensionlist: (Mandatory) > ? wms_[dimensionname]_item: (Mandatory) > ? wms_[dimensionname]_units: (Mandatory) > ? wms_[dimensionname]_extent: (Mandatory) > ? wms_[dimensionname]_default: (Optional) > My issue arises because I want to filter my data based on the "product_id" column containing a string. The table is large, so it's not possible to provide all the ID values to "wms_productid_extent." > > So, I thought about using https://mapserver.org/cgi/runsub.html#table-of-contents, but the problem arises with the implementation in the query. I would like to lead to a situation where if I don't provide any filtering parameters (product_id, cloud_cover), the entire data set is returned. > > I do not want to use this: > DATA 'geometry from (select * from mrc order by maxcc desc) where pid = '%pid%' as subquerry using unique unique_id using srid=3857' > because if I do not provide pid, my query wiill not work. > > > > So, to summarize I'm looking for something like this: > > DATA 'geometry from (select * from mrc order by maxcc desc) as subquerry using unique unique_id using srid=3857' > > VALIDATION > 'maxCC' '^[0-9](1, 3)$' > 'tile' '^.{6}$' > 'pid' '^.{65}$' > END > > No default values (except time), if none is provided Mapserver does not filter the data (except time). > > 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: From mniemyjski at cloudferro.com Wed Nov 29 00:42:25 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Wed, 29 Nov 2023 08:42:25 +0000 Subject: [MapServer-users] STAC catalogue as a tile-index in Mapserver Message-ID: Hello, can I use STAC catalogue as a tile-index? Is it possible? Underneath STAC there's Postgis table containing data. Is it possible to use it that way? I think that gdal already supports STAC? Best, Marcin [https://res.cdn.office.net/assets/bookwithme/misc/CalendarPerson20px.png] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Thu Nov 30 06:11:08 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Thu, 30 Nov 2023 14:11:08 +0000 Subject: [MapServer-users] jsonb attribute as a tileitem in mapserver Message-ID: Hello, Because my postgres table started to get bigger with every new column, I decided to try out the jsonb type column, namely I tried using jsonb attribute as a tileitem within tileindex this way: TILEITEM "location->>'10m'" where jsonb looks like this: { "10m": "/vsicurl/...", "20m": "/vsicurl/...", "30m": "/vsicurl/..." } but all I get is: [warn] [pid 15] mod_fcgid: stderr: msPostGISLayerGetItems(): Query error. Error executing SQL. Check server logs. Is there any way of using jsonb as a location attribute equivalent? Best, Marcin [https://res.cdn.office.net/assets/bookwithme/misc/CalendarPerson20px.png] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: