From damien_mulder at hotmail.com Tue Oct 1 04:26:53 2019 From: damien_mulder at hotmail.com (Damien Mulder) Date: Tue, 1 Oct 2019 11:26:53 +0000 Subject: [mapserver-users] MapServer Rest API Message-ID: Hi all, ? I'm currently looking if it is possible to dynamically create a MapServer configuration, preferably through a REST API.? This was previously discussed in: http://osgeo-org.1560.x6.nabble.com/REST-config-API-td4257211.html.? ? A MapServer Rest API (MRA) does exist on https://github.com/neogeo-technologies/mra, but I can't find much mention of this by other users.? Does anyone have experience using this API?? Or is anyone familiar with another way to dynamically create/update mapserver mapfiles?? ? Kind regards,? Damien Mulder -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Wed Oct 2 03:49:55 2019 From: sethg at geographika.co.uk (Seth G) Date: Wed, 02 Oct 2019 12:49:55 +0200 Subject: [mapserver-users] MapServer Rest API In-Reply-To: References: Message-ID: <1030d78a-ccd8-47fa-ac11-db4224cacdc1@www.fastmail.com> Hi Damien, So the REST API is more for modifying Mapfiles rather than accessing data? The latter looks like it will gradually happen with the implementation of the OGC Features API. See https://github.com/geopython/pygeoapi for an example. I've not heard of https://github.com/neogeo-technologies/mra before. Looks like there was a recent bug fix so maybe still active? I'm unaware of any others. I sometimes make dynamic maps by storing a Python dict object and manipulating it based on requests and using https://mappyfile.readthedocs.io to write back to a Mapfile. Seth -- web:http://geographika.co.uk twitter: @geographika On Tue, Oct 1, 2019, at 1:26 PM, Damien Mulder wrote: > Hi all, > > I'm currently looking if it is possible to dynamically create a MapServer configuration, preferably through a REST API. > This was previously discussed in: http://osgeo-org.1560.x6.nabble.com/REST-config-API-td4257211.html. > > A MapServer Rest API (MRA) does exist on https://github.com/neogeo-technologies/mra, but I can't find much mention of this by other users. > Does anyone have experience using this API? > Or is anyone familiar with another way to dynamically create/update mapserver mapfiles? > > Kind regards, > Damien Mulder > _______________________________________________ > 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 jmckenna at gatewaygeomatics.com Wed Oct 2 06:34:36 2019 From: jmckenna at gatewaygeomatics.com (jmckenna) Date: Wed, 2 Oct 2019 06:34:36 -0700 (MST) Subject: [mapserver-users] Lost the transparency after a SO Update In-Reply-To: References: Message-ID: <1570023276511-0.post@n6.nabble.com> Besides the other tips mentioned, be always aware when upgrading that if the pixman library is enabled in your MapServer build, then OPACITY will fail (since around MapServer 7.0 release). I hit this often when compiling on a new server, it's a good gotchya :) -jeff -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From damien_mulder at hotmail.com Thu Oct 3 02:30:28 2019 From: damien_mulder at hotmail.com (Damien Mulder) Date: Thu, 3 Oct 2019 09:30:28 +0000 Subject: [mapserver-users] MapServer Rest API In-Reply-To: <1030d78a-ccd8-47fa-ac11-db4224cacdc1@www.fastmail.com> References: , <1030d78a-ccd8-47fa-ac11-db4224cacdc1@www.fastmail.com> Message-ID: Hi Seth, ? Thanks for your reply!? Yes, the modification of Mapfiles through an API is what I'm looking for.? We are thinking of replacing GeoServer instances by MapServer.? So the geo-data will be retrieved by using the OGC WMS and WFS-requests.? Currently, we can change configuration through the GeoServer REST API.? I will defintely look into the mappyfile library, to see if we can recreate that functionality.? ? Kind regards,? Damien ________________________________ Van: mapserver-users namens Seth G Verzonden: woensdag 2 oktober 2019 12:49 Aan: mapserver-users at lists.osgeo.org Onderwerp: Re: [mapserver-users] MapServer Rest API Hi Damien, So the REST API is more for modifying Mapfiles rather than accessing data? The latter looks like it will gradually happen with the implementation of the OGC Features API. See https://github.com/geopython/pygeoapi for an example. I've not heard of https://github.com/neogeo-technologies/mra before. Looks like there was a recent bug fix so maybe still active? I'm unaware of any others. I sometimes make dynamic maps by storing a Python dict object and manipulating it based on requests and using https://mappyfile.readthedocs.io to write back to a Mapfile. Seth -- web:http://geographika.co.uk twitter: @geographika On Tue, Oct 1, 2019, at 1:26 PM, Damien Mulder wrote: Hi all, I'm currently looking if it is possible to dynamically create a MapServer configuration, preferably through a REST API. This was previously discussed in: http://osgeo-org.1560.x6.nabble.com/REST-config-API-td4257211.html. A MapServer Rest API (MRA) does exist on https://github.com/neogeo-technologies/mra, but I can't find much mention of this by other users. Does anyone have experience using this API? Or is anyone familiar with another way to dynamically create/update mapserver mapfiles? Kind regards, Damien Mulder _______________________________________________ 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 bob.basques at ci.stpaul.mn.us Mon Oct 7 13:58:53 2019 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 7 Oct 2019 20:58:53 +0000 Subject: [mapserver-users] REMINDER: OSGeo Local Chapter (aka TCMUG) Meeting Message-ID: Hello all, Good turnout this past Wed. at Brunson Pub, especially with the rainy weather. Some nice discussion about what folks have been working on. The next Meeting will be on Oct 9th, the week after the GIS/LIS. Place: Holmans Table Time: 4:30 PM See you there. bobb OSGeo Local Chapter (aka TCMUG) Meeting Scheduled: Oct 9, 2019 at 4:30 PM to 6:00 PM Location: Holman's Table 644 Bayfield St, Saint Paul, MN 55107, United States -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: iCal-20190913-085207.ics Type: text/calendar Size: 1541 bytes Desc: iCal-20190913-085207.ics URL: From joerg.thomsen at wheregroup.com Tue Oct 8 04:23:43 2019 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Tue, 8 Oct 2019 13:23:43 +0200 Subject: [mapserver-users] WFS-Client Version 2.0.0 Message-ID: <0afbe425-d827-49cf-ca74-ba1d2ef3fb14@wheregroup.com> Hi everyone, I am trying to setup a WMS which uses a WFS as datasource. The WFS only works in version 2.0.0 and MapServer tells me > msBuildWFSLayerGetURL(): WFS connection error. MapServer supports only WFS 1.0.0 or 0.0.14 (please verify the version metadata wfs_version) really? What can I do? Regards, J?rg -- *************************** Where2B Konferenz 2019 12. Dezember 2019 in Bonn where2b-conference.com *************************** J?rg Thomsen WhereGroup GmbH Gillweg 3 14193 Berlin Germany Fon: +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 joerg.thomsen at wheregroup.com Tue Oct 8 04:37:52 2019 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Tue, 8 Oct 2019 13:37:52 +0200 Subject: [mapserver-users] WFS-Client Version 2.0.0 In-Reply-To: <0afbe425-d827-49cf-ca74-ba1d2ef3fb14@wheregroup.com> References: <0afbe425-d827-49cf-ca74-ba1d2ef3fb14@wheregroup.com> Message-ID: <8a9bde4e-7b58-4d33-6875-39f308f91b06@wheregroup.com> sorry, I'll have to use an OGR-Connection.... J?rg Am 08.10.19 um 13:23 schrieb J?rg Thomsen (WhereGroup): > Hi everyone, > > I am trying to setup a WMS which uses a WFS as datasource. The WFS only > works in version 2.0.0 and MapServer tells me > >> msBuildWFSLayerGetURL(): WFS connection error. MapServer supports only WFS 1.0.0 or 0.0.14 (please verify the version metadata wfs_version) > > really? What can I do? > > Regards, J?rg > Viele Gr??e, J?rg Thomsen -- *************************** Where2B Konferenz 2019 12. Dezember 2019 in Bonn where2b-conference.com *************************** J?rg Thomsen WhereGroup GmbH Gillweg 3 14193 Berlin Germany Fon: +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 lars.fricke at skendata.de Tue Oct 8 04:42:59 2019 From: lars.fricke at skendata.de (Lars Fricke) Date: Tue, 8 Oct 2019 13:42:59 +0200 Subject: [mapserver-users] WFS-Client Version 2.0.0 In-Reply-To: <0afbe425-d827-49cf-ca74-ba1d2ef3fb14@wheregroup.com> References: <0afbe425-d827-49cf-ca74-ba1d2ef3fb14@wheregroup.com> Message-ID: <01956f24-5958-2d0f-90a5-39a9ab4472f5@skendata.de> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: email_footer_450x80px.jpg Type: image/jpeg Size: 17650 bytes Desc: not available URL: From even.rouault at spatialys.com Tue Oct 8 04:38:15 2019 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 08 Oct 2019 13:38:15 +0200 Subject: [mapserver-users] WFS-Client Version 2.0.0 In-Reply-To: <0afbe425-d827-49cf-ca74-ba1d2ef3fb14@wheregroup.com> References: <0afbe425-d827-49cf-ca74-ba1d2ef3fb14@wheregroup.com> Message-ID: <2293824.z5z8VR4GU1@even-i700> On mardi 8 octobre 2019 13:23:43 CEST J?rg Thomsen (WhereGroup) wrote: > Hi everyone, > > I am trying to setup a WMS which uses a WFS as datasource. The WFS only > works in version 2.0.0 and MapServer tells me > > > msBuildWFSLayerGetURL(): WFS connection error. MapServer supports only WFS > > 1.0.0 or 0.0.14 (please verify the version metadata wfs_version) > really? Yes, as a client > What can I do? You could use the GDAL WFS client, which support WFS 2 https://gdal.org/drivers/vector/wfs.html See https://mapserver.org/input/vector/ogr.html#ogr for general documentation on how to use a OGR datasource In a nutshell, in your LAYER definition: CONNECTIONTYPE OGR CONNECTION "WFS:https://bla" DATA "layer_name" Even -- Spatialys - Geospatial professional services http://www.spatialys.com From joerg.thomsen at wheregroup.com Tue Oct 8 05:38:35 2019 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Tue, 8 Oct 2019 14:38:35 +0200 Subject: [mapserver-users] WFS-Client Version 2.0.0 In-Reply-To: <01956f24-5958-2d0f-90a5-39a9ab4472f5@skendata.de> References: <0afbe425-d827-49cf-ca74-ba1d2ef3fb14@wheregroup.com> <01956f24-5958-2d0f-90a5-39a9ab4472f5@skendata.de> Message-ID: <38f4a48f-63c4-6ec5-c6c3-d7761b0a70b3@wheregroup.com> thanks, Even, for the quick answer. and thanks, Lars, too. I will follow Jeffs instrucions on http://osgeo-org.1560.x6.nabble.com/CONNECTIONTYPE-OGR-is-not-working-after-upgrade-to-mapserver-7-2-2-from-6-4-1-td5400796.html J?rg Am 08.10.19 um 13:42 schrieb Lars Fricke: > Hi J?rg, > > you need to use > CONNECTIONTYPE OGR > > and generate an xml file using > > ogrinfo > > with > CONNECTION "my_generated_definition_file.xml" > > see https://gdal.org/drivers/vector/wfs.html > > Mit freundlichen Gr??en > Lars Fricke > Forschung & Entwicklung > > +49(0)39602-183097 > +49(0)39602-183098 > > SkenData GmbH > M?hlendamm 8B > 18055 Rostock > www.skendata.de > > > Wert14 > > > www.wert14.de > > Gesch?ftsf?hrer: Jon Meis und Sven Jantzen > Amtsgericht Rostock HRB 12937 > > Am 08.10.19 um 13:23 schrieb J?rg Thomsen (WhereGroup): >> Hi everyone, >> >> I am trying to setup a WMS which uses a WFS as datasource. The WFS only >> works in version 2.0.0 and MapServer tells me >> >>> msBuildWFSLayerGetURL(): WFS connection error. MapServer supports only WFS 1.0.0 or 0.0.14 (please verify the version metadata wfs_version) >> really? What can I do? >> >> Regards, J?rg >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- *************************** Where2B Konferenz 2019 12. Dezember 2019 in Bonn where2b-conference.com *************************** J?rg Thomsen WhereGroup GmbH Gillweg 3 14193 Berlin Germany Fon: +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 j.l.h.hartmann at uva.nl Tue Oct 8 05:53:20 2019 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Tue, 8 Oct 2019 14:53:20 +0200 Subject: [mapserver-users] Getting data values from heatmap Message-ID: Hi, Is it possible to get the actual data values from the pixel values of a heatmap? A heatmap is computed by mapping a data range to values between 0 and 255, and then displaying these values based on a color ramp. So what you see is a map with colors ranging from (say) blue to red. BLue are low data values, red high ones. Is it possible to generate a legend with the actual values for these colors? Jan From t.de.kler at amsterdam.nl Wed Oct 9 03:40:50 2019 From: t.de.kler at amsterdam.nl (Kler, Tijs de) Date: Wed, 9 Oct 2019 10:40:50 +0000 Subject: [mapserver-users] Mapserver behind proxyserver Message-ID: <09d5e12d34b948d4bf6aaa1caa32037d@amsterdam.nl> Hey All, I am running a mapserver docker container on port 80 using the following docker image: https://github.com/PDOK/mapserver-wfs-postgis. For deployment i have to run behind a proxyserver based on HAproxy that takes care of ssl encryption. Accessing GetCapabilites (https://acc.dsr.maps.amsterdam.nl/mapserver/wfs?REQUEST=GetCapabilities&SERVICE=wfs) resolves and returns xml with the available layers. The layers however contains url references to port 80: > https://acc.dsr.maps.amsterdam.nl:80/mapserver?request=GetMetadata&layer=Invloedsgebied_Metro How does mapserver build the layer urls? Does it use the request header of the GetCapabilities request to construct it? Or serverside configuration? And if yes, which header fields or environment/config variables are used to construct the layer URL? Cheers, Tijs De gemeente Amsterdam streeft naar optimale dienstverlening en zorgvuldige afhandeling van e-mailverkeer. Als een e-mail niet voor u is bestemd, verzoekt de gemeente u vriendelijk ons van de juiste adressering op de hoogte te stellen en de e-mail te verwijderen zonder de informatie te gebruiken en te delen met anderen. Voor verdere informatie over de rechten op informatie, zie https://www.amsterdam.nl/proclaimer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed Oct 9 05:13:30 2019 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 9 Oct 2019 12:13:30 +0000 Subject: [mapserver-users] Mapserver behind proxyserver Message-ID: Hi, See https://mapserver.org/ogc/wfs_server.html You should have full control on the service URL by having "wfs_service_onlineresource" set in the metadata section. -Jukka Rahkonen- L?hett?j?: mapserver-users Puolesta Kler, Tijs de L?hetetty: keskiviikko 9. lokakuuta 2019 13.41 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Mapserver behind proxyserver Hey All, I am running a mapserver docker container on port 80 using the following docker image: https://github.com/PDOK/mapserver-wfs-postgis. For deployment i have to run behind a proxyserver based on HAproxy that takes care of ssl encryption. Accessing GetCapabilites (https://acc.dsr.maps.amsterdam.nl/mapserver/wfs?REQUEST=GetCapabilities&SERVICE=wfs) resolves and returns xml with the available layers. The layers however contains url references to port 80: > https://acc.dsr.maps.amsterdam.nl:80/mapserver?request=GetMetadata&layer=Invloedsgebied_Metro How does mapserver build the layer urls? Does it use the request header of the GetCapabilities request to construct it? Or serverside configuration? And if yes, which header fields or environment/config variables are used to construct the layer URL? Cheers, Tijs De gemeente Amsterdam streeft naar optimale dienstverlening en zorgvuldige afhandeling van e-mailverkeer. Als een e-mail niet voor u is bestemd, verzoekt de gemeente u vriendelijk ons van de juiste adressering op de hoogte te stellen en de e-mail te verwijderen zonder de informatie te gebruiken en te delen met anderen. Voor verdere informatie over de rechten op informatie, zie https://www.amsterdam.nl/proclaimer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From emacgillavry at hotmail.com Wed Oct 9 07:13:32 2019 From: emacgillavry at hotmail.com (Edward Mac Gillavry) Date: Wed, 9 Oct 2019 14:13:32 +0000 Subject: [mapserver-users] Mapserver behind proxyserver In-Reply-To: <09d5e12d34b948d4bf6aaa1caa32037d@amsterdam.nl> References: <09d5e12d34b948d4bf6aaa1caa32037d@amsterdam.nl> Message-ID: Hi Tijs, That's mainly configurable the MAP metadata and LAYER metadata. Best, Edward ________________________________ From: mapserver-users on behalf of Kler, Tijs de Sent: Wednesday, October 9, 2019 12:40:50 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver behind proxyserver Hey All, I am running a mapserver docker container on port 80 using the following docker image: https://github.com/PDOK/mapserver-wfs-postgis. For deployment i have to run behind a proxyserver based on HAproxy that takes care of ssl encryption. Accessing GetCapabilites (https://acc.dsr.maps.amsterdam.nl/mapserver/wfs?REQUEST=GetCapabilities&SERVICE=wfs) resolves and returns xml with the available layers. The layers however contains url references to port 80: > https://acc.dsr.maps.amsterdam.nl:80/mapserver?request=GetMetadata&layer=Invloedsgebied_Metro How does mapserver build the layer urls? Does it use the request header of the GetCapabilities request to construct it? Or serverside configuration? And if yes, which header fields or environment/config variables are used to construct the layer URL? Cheers, Tijs De gemeente Amsterdam streeft naar optimale dienstverlening en zorgvuldige afhandeling van e-mailverkeer. Als een e-mail niet voor u is bestemd, verzoekt de gemeente u vriendelijk ons van de juiste adressering op de hoogte te stellen en de e-mail te verwijderen zonder de informatie te gebruiken en te delen met anderen. Voor verdere informatie over de rechten op informatie, zie https://www.amsterdam.nl/proclaimer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Oct 14 08:58:22 2019 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 14 Oct 2019 15:58:22 +0000 Subject: [mapserver-users] OSGeo Local Chapter (aka TCMUG) Meeting Message-ID: All, Had a good time at Holmans Table last meeting. pic1 pic2 Lot?s of aircraft stuff to watch while there. We had a good (but loud) spot on the outside patio. The next meeting will be at Dual Citizen Brewery Co., in the Midway area. Should be easier for all you Minneapolis folks to attend. :c) bobb OSGeo Local Chapter (aka TCMUG) Meeting Scheduled: Nov 13, 2019 at 4:30 PM to 6:00 PM Location: Dual Citizen Brewing Co. 725 Raymond Ave, Saint Paul, MN 55114, United States http://www.flatearthbrewing.com/ https://goo.gl/maps/4sXKnj1nn9J2 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: iCal-20191014-105540.ics Type: text/calendar Size: 1645 bytes Desc: iCal-20191014-105540.ics URL: From traviskirstine at gmail.com Tue Oct 15 07:05:54 2019 From: traviskirstine at gmail.com (Travis Kirstine) Date: Tue, 15 Oct 2019 10:05:54 -0400 Subject: [mapserver-users] wms servers html template output Message-ID: Hi all, I'm struggling a bit with using a generic template for html getfeatureinfo requests. Is there a easy way to create a simple html table containing the attribute field names and values for any layer. I don't want to create a separate template for each layer. Thanks There was some mention of this here: http://osgeo-org.1560.x6.nabble.com/Generic-template-for-WMS-GetFeatureInfo-td4227865.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Wed Oct 16 07:37:47 2019 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Wed, 16 Oct 2019 16:37:47 +0200 Subject: [mapserver-users] Doubling of labels on high resolution maps Message-ID: <426a6049-3852-f6e7-2465-ebb8a4f39566@uva.nl> Hi, I'm trying to generate high resolution print maps with QGIS, based on a MapServer WMS layer. When displayed in the regular QGIS application with 72dpi, all looks fine. When using the Print Composer based on the same Mapfile, but with 300dpi, some labels are duplicated (not all). Some duplicates are clipped. The two versions can be seen here: https://maps.hisgis.nl/marken_072dpi.png https://maps.hisgis.nl/marken_300dpi.png Below the Mapfile.? Any idea what goes wrong here? Jan map name Markegrenzen web ? metadata ??? "wms_title" "Markegrenzen" ??? "wms_srs" "EPSG:28992 EPSG:3857" ??? "wms_extent"? "13000 301000 279000 620000" ??? "wms_enable_request" "*" ? end end extent 13000 301000 279000 620000 units meters size 400 400 resolution 300 defresolution 72 projection ? "init=epsg:28992" end z layer ? name Markegrenzen ? status on ? type polygon ? connectiontype postgis ? connection "dbname=ov options='-c search_path=horigheid,public'" ? data " the_geom from ( ??????? select gid,the_geom,naam from markegrenzen ??? ) as foo using unique gid using srid=28992 ? " ? labelitem "naam" ? class ??? style ??????? outlinecolor 255 0 0 ??????? width 1 ??? end ??? label ??????? color 255 0 0 ??????? size 4 ??? end ? end end end -------------- next part -------------- An HTML attachment was scrubbed... URL: From traviskirstine at gmail.com Wed Oct 16 08:23:55 2019 From: traviskirstine at gmail.com (Travis Kirstine) Date: Wed, 16 Oct 2019 11:23:55 -0400 Subject: [mapserver-users] Doubling of labels on high resolution maps In-Reply-To: <426a6049-3852-f6e7-2465-ebb8a4f39566@uva.nl> References: <426a6049-3852-f6e7-2465-ebb8a4f39566@uva.nl> Message-ID: There are a few options you could add to your label but I would start with MINDISTANCE 200 PARTIALS FALSE See https://mapserver.org/mapfile/label.html On Wed, 16 Oct 2019 at 10:37, Jan Hartmann wrote: > Hi, > > I'm trying to generate high resolution print maps with QGIS, based on a > MapServer WMS layer. When displayed in the regular QGIS application with > 72dpi, all looks fine. When using the Print Composer based on the same > Mapfile, but with 300dpi, some labels are duplicated (not all). Some > duplicates are clipped. The two versions can be seen here: > > https://maps.hisgis.nl/marken_072dpi.png > https://maps.hisgis.nl/marken_300dpi.png > > Below the Mapfile. Any idea what goes wrong here? > > Jan > > map > name Markegrenzen > > web > metadata > "wms_title" "Markegrenzen" > "wms_srs" "EPSG:28992 EPSG:3857" > "wms_extent" "13000 301000 279000 620000" > "wms_enable_request" "*" > end > end > > extent 13000 301000 279000 620000 > units meters > size 400 400 > resolution 300 > defresolution 72 > > > projection > "init=epsg:28992" > end > > z > layer > name Markegrenzen > status on > type polygon > connectiontype postgis > connection "dbname=ov options='-c search_path=horigheid,public'" > data " the_geom from ( > select gid,the_geom,naam from markegrenzen > ) as foo using unique gid using srid=28992 > " > labelitem "naam" > class > style > outlinecolor 255 0 0 > width 1 > end > label > color 255 0 0 > size 4 > end > end > end > end > > > _______________________________________________ > 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 Oct 16 08:55:36 2019 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 16 Oct 2019 15:55:36 +0000 Subject: [mapserver-users] Doubling of labels on high resolution maps Message-ID: <8322a18c6a834ff3addf1bc9bae56637@C119S212VM042.msvyvi.vaha.local> Hi, Print composer is probably making tiled requests from WMS. That is compulsory for any bigger maps because the default maxsize on the Mapserver side is 2048x2048 pixels https://mapserver.org/uk/mapfile/map.html. It is easy to increase the maxsize but I do not know if print composer as a client can be aware of that. Partials FALSE may help, but based on the screenshot it is possible that print composer is making requests with some overlap. -Jukka Rahkonen- L?hett?j?: mapserver-users Puolesta Travis Kirstine L?hetetty: keskiviikko 16. lokakuuta 2019 18.24 Vastaanottaja: Jan Hartmann Kopio: MapServer-users Aihe: Re: [mapserver-users] Doubling of labels on high resolution maps There are a few options you could add to your label but I would start with MINDISTANCE 200 PARTIALS FALSE See https://mapserver.org/mapfile/label.html On Wed, 16 Oct 2019 at 10:37, Jan Hartmann > wrote: Hi, I'm trying to generate high resolution print maps with QGIS, based on a MapServer WMS layer. When displayed in the regular QGIS application with 72dpi, all looks fine. When using the Print Composer based on the same Mapfile, but with 300dpi, some labels are duplicated (not all). Some duplicates are clipped. The two versions can be seen here: https://maps.hisgis.nl/marken_072dpi.png https://maps.hisgis.nl/marken_300dpi.png Below the Mapfile. Any idea what goes wrong here? Jan map name Markegrenzen web metadata "wms_title" "Markegrenzen" "wms_srs" "EPSG:28992 EPSG:3857" "wms_extent" "13000 301000 279000 620000" "wms_enable_request" "*" end end extent 13000 301000 279000 620000 units meters size 400 400 resolution 300 defresolution 72 projection "init=epsg:28992" end z layer name Markegrenzen status on type polygon connectiontype postgis connection "dbname=ov options='-c search_path=horigheid,public'" data " the_geom from ( select gid,the_geom,naam from markegrenzen ) as foo using unique gid using srid=28992 " labelitem "naam" class style outlinecolor 255 0 0 width 1 end label color 255 0 0 size 4 end end end end _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Wed Oct 16 09:57:21 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 16 Oct 2019 16:57:21 +0000 Subject: [mapserver-users] wms servers html template output In-Reply-To: References: Message-ID: Hi Travis: I don?t think there is an ?easy? way. I mean you could script template creation so that process does the tedious work for you by looking at the map. You would create a new-style template (see RFC 36) so everything is in one file and then you?d create a single output format reference to that table. If we wanted to support this via MapServer templates I think we?d need to do 3 things: ? Extend the [resultset] tag to support ?layer_pattern? attribute so that it (a regex) could apply to multiple layers (like any/all of them). ? Enhance the [items] and [values] tags to control formatting. Currently those just slam the column names and values together in a delimited string. ? Enhance the [values] tag processing to allow referencing the associated item/column name in the context of formatting. I?d probably also propose compliance with the item-related metadata that is typically used with OGC service outputs to control which items are output? With those changes you could write a template like so: // MapServer Template [resultset layer_pattern="."] [feature] [values format=?]
$item$value
[/feature] [resultset] This would give you an item/value table for any feature for any layer. You could also to more horizontal tables using the [items] tag to output one header row? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Travis Kirstine Sent: Tuesday, October 15, 2019 9:06 AM To: mapserver-users Subject: [mapserver-users] wms servers html template output 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. ________________________________ Hi all, I'm struggling a bit with using a generic template for html getfeatureinfo requests. Is there a easy way to create a simple html table containing the attribute field names and values for any layer. I don't want to create a separate template for each layer. Thanks There was some mention of this here: http://osgeo-org.1560.x6.nabble.com/Generic-template-for-WMS-GetFeatureInfo-td4227865.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Wed Oct 16 10:44:52 2019 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 16 Oct 2019 17:44:52 +0000 Subject: [mapserver-users] wms servers html template output In-Reply-To: References: Message-ID: <96B3FE5C-11D3-41CE-8037-5A7CDBA01D8A@ci.stpaul.mn.us> Travis, We went with a slightly more involved route of caching things locally in a Postgres database. You can automate things to a certain extent with a REST service for example with some clevering automation scripting for example. We had to figure out things like how to handle when attributes changed, etc, but it was doable from a REST service. bobb On Oct 16, 2019, at 11:57 AM, Lime, Steve D (MNIT) > wrote: Think Before You Click: This email originated outside our organization. Hi Travis: I don?t think there is an ?easy? way. I mean you could script template creation so that process does the tedious work for you by looking at the map. You would create a new-style template (see RFC 36) so everything is in one file and then you?d create a single output format reference to that table. If we wanted to support this via MapServer templates I think we?d need to do 3 things: ? Extend the [resultset] tag to support ?layer_pattern? attribute so that it (a regex) could apply to multiple layers (like any/all of them). ? Enhance the [items] and [values] tags to control formatting. Currently those just slam the column names and values together in a delimited string. ? Enhance the [values] tag processing to allow referencing the associated item/column name in the context of formatting. I?d probably also propose compliance with the item-related metadata that is typically used with OGC service outputs to control which items are output? With those changes you could write a template like so: // MapServer Template [resultset layer_pattern="."] [feature] [values format=?]
$item$value
[/feature] [resultset] This would give you an item/value table for any feature for any layer. You could also to more horizontal tables using the [items] tag to output one header row? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Travis Kirstine Sent: Tuesday, October 15, 2019 9:06 AM To: mapserver-users > Subject: [mapserver-users] wms servers html template output 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. ________________________________ Hi all, I'm struggling a bit with using a generic template for html getfeatureinfo requests. Is there a easy way to create a simple html table containing the attribute field names and values for any layer. I don't want to create a separate template for each layer. Thanks There was some mention of this here: http://osgeo-org.1560.x6.nabble.com/Generic-template-for-WMS-GetFeatureInfo-td4227865.html _______________________________________________ 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 matthias_mueller at tu-dresden.de Thu Oct 17 02:11:48 2019 From: matthias_mueller at tu-dresden.de (Matthias =?ISO-8859-1?Q?M=FCller?=) Date: Thu, 17 Oct 2019 11:11:48 +0200 Subject: [mapserver-users] Dynamic wfs_onlineresource Message-ID: <8acb51dbce334e91f6679706fe4f7bc4d446efad.camel@tu-dresden.de> Hi, we are running WFS services with similar mapfiles on different servers. Setting the "wfs_onlineresource" is straight forward, but requires a hard coded host name: First server: WEB METADATA "wfs_title" "myserver" "wfs_onlineresource" "https://server1.org/mapserver?" "wfs_srs" "EPSG:4326" "wfs_enable_request" "*" # necessary END END Second server: WEB METADATA "wfs_title" "myserver" "wfs_onlineresource" "https://server2.org/mapserver?" "wfs_srs" "EPSG:4326" "wfs_enable_request" "*" # necessary END END I there way to let mapserver figure out the hostname from the request and create the appropiate links in the WFS capabilities accordingly? Something like: WEB METADATA "wfs_title" "myserver" "wfs_online resource" "{request protocol and hostname}/mapserver?" "wfs_srs" "EPSG:4326" "wfs_enable_request" "*" # necessary END END -Matthias From yves.jacolin at camptocamp.com Thu Oct 17 02:37:16 2019 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Thu, 17 Oct 2019 11:37:16 +0200 Subject: [mapserver-users] Dynamic wfs_onlineresource In-Reply-To: <8acb51dbce334e91f6679706fe4f7bc4d446efad.camel@tu-dresden.de> References: <8acb51dbce334e91f6679706fe4f7bc4d446efad.camel@tu-dresden.de> Message-ID: Matthias, Just remove the parameter will imply that MapServer will find the correct online resource. Y. Le jeu. 17 oct. 2019 ? 11:35, Matthias M?ller < matthias_mueller at tu-dresden.de> a ?crit : > Hi, > > we are running WFS services with similar mapfiles on different servers. > > Setting the "wfs_onlineresource" is straight forward, but requires a > hard coded host name: > > First server: > WEB > METADATA > "wfs_title" "myserver" > "wfs_onlineresource" "https://server1.org/mapserver?" > "wfs_srs" "EPSG:4326" > "wfs_enable_request" "*" # necessary > END > END > > > Second server: > WEB > METADATA > "wfs_title" "myserver" > "wfs_onlineresource" "https://server2.org/mapserver?" > "wfs_srs" "EPSG:4326" > "wfs_enable_request" "*" # necessary > END > END > > > I there way to let mapserver figure out the hostname from the request > and create the appropiate links in the WFS capabilities accordingly? > > Something like: > > WEB > METADATA > "wfs_title" "myserver" > "wfs_online > resource" "{request protocol and hostname}/mapserver?" > "wfs_srs" > "EPSG:4326" > "wfs_enable_request" "*" # necessary > END > END > > > -Matthias > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Yves Jacolin Training and support manager - Team Manager Camptocamp Tel (France) : +33 4 58 48 20 43 Tel (Switzerland) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 email : yves.jacolin at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthias_mueller at tu-dresden.de Thu Oct 17 04:37:45 2019 From: matthias_mueller at tu-dresden.de (Matthias =?ISO-8859-1?Q?M=FCller?=) Date: Thu, 17 Oct 2019 13:37:45 +0200 Subject: [mapserver-users] Dynamic wfs_onlineresource In-Reply-To: References: <8acb51dbce334e91f6679706fe4f7bc4d446efad.camel@tu-dresden.de> Message-ID: <218d3157c62076b160c14c8664159efdd1be95a6.camel@tu-dresden.de> Yves, thanks for the hint - it works, but produces an ugly URL that exposes the FS-Link of the mapfile to the public: I should have mentioned that a reverse proxy runs in front of Mapserver, that adds the mapfile to the request: location /mapserver { # Add header for CORS requests add_header Access-Control-Allow-Origin *; # Load from /etc/init.d/mapserv fastcgi_pass 127.0.0.1:9999; # Rewrite url to hide mapfile path rewrite ^(/mapserver.*)?(.*)$ $1?map=/opt/service/mapserver/mapfile.map$2 break; include fastcgi_params; fastcgi_param SCRIPT_NAME /usr/bin/mapserv$fastcgi_script_name; } Is there another solution that works in conjunction with my reverse proxy? Many other server products respect proxy headers and substitute the filds of the private internal URL scheme with the corresponding elements of the public URL of the caller. - Matthias Am Donnerstag, den 17.10.2019, 11:37 +0200 schrieb Yves Jacolin: > Matthias, > > Just remove the parameter will imply that MapServer will find the > correct online resource. > > Y. > > Le jeu. 17 oct. 2019 ? 11:35, Matthias M?ller < > matthias_mueller at tu-dresden.de> a ?crit : > > Hi, > > > > we are running WFS services with similar mapfiles on different > > servers. > > > > Setting the "wfs_onlineresource" is straight forward, but requires > > a > > hard coded host name: > > > > First server: > > WEB > > METADATA > > "wfs_title" "myserver" > > "wfs_onlineresource" "https://server1.org/mapserver?" > > "wfs_srs" "EPSG:4326" > > "wfs_enable_request" "*" # necessary > > END > > END > > > > > > Second server: > > WEB > > METADATA > > "wfs_title" "myserver" > > "wfs_onlineresource" "https://server2.org/mapserver?" > > "wfs_srs" "EPSG:4326" > > "wfs_enable_request" "*" # necessary > > END > > END > > > > > > I there way to let mapserver figure out the hostname from the > > request > > and create the appropiate links in the WFS capabilities > > accordingly? > > > > Something like: > > > > WEB > > METADATA > > "wfs_title" "myserver" > > "wfs_online > > resource" "{request protocol and hostname}/mapserver?" > > "wfs_srs" > > "EPSG:4326" > > "wfs_enable_request" "*" # necessary > > END > > END > > > > > > -Matthias > > > > _______________________________________________ > > 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 j.l.h.hartmann at uva.nl Thu Oct 17 07:03:47 2019 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Thu, 17 Oct 2019 16:03:47 +0200 Subject: [mapserver-users] Doubling of labels on high resolution maps In-Reply-To: <8322a18c6a834ff3addf1bc9bae56637@C119S212VM042.msvyvi.vaha.local> References: <8322a18c6a834ff3addf1bc9bae56637@C119S212VM042.msvyvi.vaha.local> Message-ID: No, neither maxsize nor partials works. I guess that's just the way QGIS requests large WMS-images. There is a "tile_metatile_level" configuration directive that should solve this problem: https://mapserver.org/output/tile_mode.html but it does not seem to work for WMS layers. So I used the underlying PostGIS layer in QGIS, and that works OK, of course. Not sure if this is a bug in MapServer, though. Thanks for your help, Jan On 10/16/2019 5:55 PM, Rahkonen Jukka (MML) wrote: > > Hi, > > Print composer is probably making tiled requests from WMS. That is > compulsory for any bigger maps because the default maxsize on the > Mapserver side is 2048x2048 pixels > https://mapserver.org/uk/mapfile/map.html. It is easy to increase the > maxsize but I do not know if print composer as a client can be aware > of that. > > Partials FALSE may help, but based on the screenshot it is possible > that print composer is making requests with some overlap. > > -Jukka Rahkonen- > > *L?hett?j?:*mapserver-users > *Puolesta *Travis Kirstine > *L?hetetty:* keskiviikko 16. lokakuuta 2019 18.24 > *Vastaanottaja:* Jan Hartmann > *Kopio:* MapServer-users > *Aihe:* Re: [mapserver-users] Doubling of labels on high resolution maps > > There are a few options you could add to your label but I would start with > > MINDISTANCE 200 > > PARTIALS FALSE > > See > > https://mapserver.org/mapfile/label.html > > On Wed, 16 Oct 2019 at 10:37, Jan Hartmann > wrote: > > Hi, > > I'm trying to generate high resolution print maps with QGIS, based > on a MapServer WMS layer. When displayed in the regular QGIS > application with 72dpi, all looks fine. When using the Print > Composer based on the same Mapfile, but with 300dpi, some labels > are duplicated (not all). Some duplicates are clipped. The two > versions can be seen here: > > https://maps.hisgis.nl/marken_072dpi.png > https://maps.hisgis.nl/marken_300dpi.png > > Below the Mapfile.? Any idea what goes wrong here? > > Jan > > map > name Markegrenzen > > web > ? metadata > ??? "wms_title" "Markegrenzen" > ??? "wms_srs" "EPSG:28992 EPSG:3857" > ??? "wms_extent"? "13000 301000 279000 620000" > ??? "wms_enable_request" "*" > ? end > end > > extent 13000 301000 279000 620000 > units meters > size 400 400 > resolution 300 > defresolution 72 > > > projection > ? "init=epsg:28992" > end > > z > layer > ? name Markegrenzen > ? status on > ? type polygon > ? connectiontype postgis > ? connection "dbname=ov options='-c search_path=horigheid,public'" > ? data " the_geom from ( > ??????? select gid,the_geom,naam from markegrenzen > ??? ) as foo using unique gid using srid=28992 > ? " > ? labelitem "naam" > ? class > ??? style > ??????? outlinecolor 255 0 0 > ??????? width 1 > ??? end > ??? label > ??????? color 255 0 0 > ??????? size 4 > ??? end > ? end > end > end > > _______________________________________________ > 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 lars.schylberg at blixtmail.se Thu Oct 17 07:19:15 2019 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Thu, 17 Oct 2019 14:19:15 +0000 Subject: [mapserver-users] Doubling of labels on high resolution maps In-Reply-To: References: <8322a18c6a834ff3addf1bc9bae56637@C119S212VM042.msvyvi.vaha.local> Message-ID: Hi, The best way is most likely to set up a WMTS service with mapcache. It handles meta tiling in a more proper way. There are good examples in the mapproxy documentation how to do labels in mapserver. https://mapproxy.org/docs/nightly/labeling.html (https://mapproxy.org/docs/nightly/labeling.html) Mapproxy is anotther good alternative instead of mapcache. Be sure to specify "labelcache_map_edge_buffer" "-10" in the mapfile MAP-WEB data section. You can still run WMS requests from QGIS towards mapcache if You have enabled that in the mapcache config. /Lars S. 17 oktober 2019 kl. 16:04, "Jan Hartmann" )> skrev: No, neither maxsize nor partials works. I guess that's just the way QGIS requests large WMS-images. There is a "tile_metatile_level" configuration directive that should solve this problem: https://mapserver.org/output/tile_mode.html (https://mapserver.org/output/tile_mode.html) but it does not seem to work for WMS layers. So I used the underlying PostGIS layer in QGIS, and that works OK, of course. Not sure if this is a bug in MapServer, though. Thanks for your help, Jan On 10/16/2019 5:55 PM, Rahkonen Jukka (MML) wrote: Hi, Print composer is probably making tiled requests from WMS. That is compulsory for any bigger maps because the default maxsize on the Mapserver side is 2048x2048 pixels https://mapserver.org/uk/mapfile/map.html (https://mapserver.org/uk/mapfile/map.html). It is easy to increase the maxsize but I do not know if print composer as a client can be aware of that. Partials FALSE may help, but based on the screenshot it is possible that print composer is making requests with some overlap. -Jukka Rahkonen- L?hett?j?: mapserver-users (mailto:mapserver-users-bounces at lists.osgeo.org) Puolesta Travis Kirstine L?hetetty: keskiviikko 16. lokakuuta 2019 18.24 Vastaanottaja: Jan Hartmann (mailto:j.l.h.hartmann at uva.nl) Kopio: MapServer-users (mailto:mapserver-users at lists.osgeo.org) Aihe: Re: [mapserver-users] Doubling of labels on high resolution maps There are a few options you could add to your label but I would start with MINDISTANCE 200 PARTIALS FALSE See https://mapserver.org/mapfile/label.html (https://mapserver.org/mapfile/label.html) On Wed, 16 Oct 2019 at 10:37, Jan Hartmann wrote: Hi, I'm trying to generate high resolution print maps with QGIS, based on a MapServer WMS layer. When displayed in the regular QGIS application with 72dpi, all looks fine. When using the Print Composer based on the same Mapfile, but with 300dpi, some labels are duplicated (not all). Some duplicates are clipped. The two versions can be seen here: https://maps.hisgis.nl/marken_072dpi.png (https://maps.hisgis.nl/marken_072dpi.png) https://maps.hisgis.nl/marken_300dpi.png (https://maps.hisgis.nl/marken_300dpi.png) Below the Mapfile. Any idea what goes wrong here? Jan map name Markegrenzen web metadata "wms_title" "Markegrenzen" "wms_srs" "EPSG:28992 EPSG:3857" "wms_extent" "13000 301000 279000 620000" "wms_enable_request" "*" end end extent 13000 301000 279000 620000 units meters size 400 400 resolution 300 defresolution 72 projection "init=epsg:28992" end z layer name Markegrenzen status on type polygon connectiontype postgis connection "dbname=ov options='-c search_path=horigheid,public'" data " the_geom from ( select gid,the_geom,naam from markegrenzen ) as foo using unique gid using srid=28992 " labelitem "naam" class style outlinecolor 255 0 0 width 1 end label color 255 0 0 size 4 end end end end _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org (mailto:mapserver-users at lists.osgeo.org) https://lists.osgeo.org/mailman/listinfo/mapserver-users (https://lists.osgeo.org/mailman/listinfo/mapserver-users) -------------- next part -------------- An HTML attachment was scrubbed... URL: From oliver.schmidt at vermkv.rlp.de Fri Oct 18 04:56:02 2019 From: oliver.schmidt at vermkv.rlp.de (Oliver Schmidt) Date: Fri, 18 Oct 2019 13:56:02 +0200 (CEST) Subject: [mapserver-users] Problem with UNION layer and labelling Message-ID: <1462079727.434864.1571399762850@groupware.vermkv.rlp> Hi list, I tried with MapServer 7.0.4 and 7.4.2 to get labels on an UNION layer. The labels are OK when I loaded the source layer itself into QGIS, but the UNION layer returns an empty picture (using LABELITEM) or the name of the label field including the brackets is placed instead of the data (using TEXT inside LABEL). Furthermore, the variable settings for ANGLE, FONT, SIZE and POSITION don't seem to be handled correctly in the UNION layer. The font size and the position aren't identical to the source layer. Layers with polygons and no labels are drawn correctly! Does anyone got an idea what is going wrong here? One example with just one layer: LAYER NAME "Beschriftung Flurstuecke" CONNECTIONTYPE UNION CONNECTION "bfn" TYPE POINT STATUS ON STYLEITEM "AUTO" EXTENT 250000 5420000 500000 5648000 MAXSCALEDENOM 25000 METADATA wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857" wms_layer_group "/Flurstueck" wms_title "Beschriftung Flurstuecke" END CLASS END PROJECTION "init=epsg:25832" END END ..... LAYER NAME "bfn" # Flurst?cke / Nummern / Beschriftungen CONNECTION "dbname='db' host=host port=5432 user='user'" CONNECTIONTYPE POSTGIS DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung) WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksb?ndig' THEN 'L' WHEN 'rechtsb?ndig' THEN 'R' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Flurst?cke' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer IN ('ax_flurstueck_nummer','ax_flurstueck_zuordnung','ax_flurstueck_zuordnung_pfeil')) AND point IS NOT NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832" EXTENT 250000 5420000 500000 5648000 # LABELITEM "text" MAXSCALEDENOM 5000 METADATA wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857" # wms_layer_group "/Flurst?cke/Nummern" wms_layer_group "/Flurst?cke" # wms_title "Beschriftungen (Punkte)" wms_title "Beschriftungen (Flurst?cke)" # wms_enable_request "* !GetCapabilities" END PROCESSING "CLOSE_CONNECTION=DEFER" PROJECTION "init=epsg:25832" END SIZEUNITS INCHES STATUS ON SYMBOLSCALEDENOM 1000 TYPE POINT UNITS METERS CLASS LABEL ANGLE [drehwinkel_grad] ANTIALIAS TRUE FONT [font_umn] SIZE [size_umn] BUFFER 2 COLOR [color_umn] FORCE TRUE OUTLINECOLOR 255 255 255 OUTLINEWIDTH 2 POSITION [position_umn] PRIORITY 10 TYPE TRUETYPE TEXT '[text]' END END END -- Dipl.-Geogr. Oliver Schmidt LANDESAMT F?R VERMESSUNG UND GEOBASISINFORMATION RHEINLAND-PFALZ Von-Kuhl-Stra?e 49 56070 Koblenz Telefon 0261 492-346 Telefax 0261 492-492 oliver.schmidt at vermkv.rlp.de www.lvermgeo.rlp.de From lars.fricke at skendata.de Sun Oct 20 23:25:33 2019 From: lars.fricke at skendata.de (Lars Fricke) Date: Mon, 21 Oct 2019 08:25:33 +0200 Subject: [mapserver-users] Problem with UNION layer and labelling In-Reply-To: <1462079727.434864.1571399762850@groupware.vermkv.rlp> References: <1462079727.434864.1571399762850@groupware.vermkv.rlp> Message-ID: <04ac05fa-828a-cc24-850f-1d45c0b5a83f@skendata.de> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: email_footer_450x80px.jpg Type: image/jpeg Size: 17650 bytes Desc: not available URL: From schroeter at netgis.de Sun Oct 20 23:57:33 2019 From: schroeter at netgis.de (Sven Schroeter) Date: Mon, 21 Oct 2019 08:57:33 +0200 Subject: [mapserver-users] Problem with UNION layer and labelling In-Reply-To: <1462079727.434864.1571399762850@groupware.vermkv.rlp> References: <1462079727.434864.1571399762850@groupware.vermkv.rlp> Message-ID: <5ccfe295-81d1-a16e-54e7-6f57a664a94a@netgis.de> Hi Oliver, this is a complex SQL statement and I would always store such things in a view on the database. Then you can visually check if all data comes as it should. Otherwise it could be due to the encoding of the data records, I sometimes had problems with it in the past. By the way, you can just ask Armin Retterath in your house, he will find every error ;-) Greetings also to Armin Sven ************************************** NETGIS GbR Benediktinerstr. 32a 54292 Trier Tel.: 0651-1704731 Fax: 0651-1704733 schroeter at netgis.de www.netgis.de Am 18.10.2019 um 13:56 schrieb Oliver Schmidt: > Hi list, > > I tried with MapServer 7.0.4 and 7.4.2 to get labels on an UNION layer. The labels are OK when I loaded the source layer itself into QGIS, but the UNION layer returns an empty picture (using LABELITEM) or the name of the label field including the brackets is placed instead of the data (using TEXT inside LABEL). > Furthermore, the variable settings for ANGLE, FONT, SIZE and POSITION don't seem to be handled correctly in the UNION layer. The font size and the position aren't identical to the source layer. Layers with polygons and no labels are drawn correctly! > > Does anyone got an idea what is going wrong here? One example with just one layer: > > > LAYER NAME "Beschriftung Flurstuecke" > CONNECTIONTYPE UNION > CONNECTION "bfn" > TYPE POINT > STATUS ON > STYLEITEM "AUTO" > EXTENT 250000 5420000 500000 5648000 > MAXSCALEDENOM 25000 > METADATA > wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857" > wms_layer_group "/Flurstueck" > wms_title "Beschriftung Flurstuecke" > END > CLASS END > PROJECTION "init=epsg:25832" END > END > > ..... > > LAYER NAME "bfn" # Flurst?cke / Nummern / Beschriftungen > CONNECTION "dbname='db' host=host port=5432 user='user'" > CONNECTIONTYPE POSTGIS > DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung) WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksb?ndig' THEN 'L' WHEN 'rechtsb?ndig' THEN 'R' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Flurst?cke' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer IN ('ax_flurstueck_nummer','ax_flurstueck_zuordnung','ax_flurstueck_zuordnung_pfeil')) AND point IS NOT NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832" > EXTENT 250000 5420000 500000 5648000 > # LABELITEM "text" > MAXSCALEDENOM 5000 > METADATA > wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857" > # wms_layer_group "/Flurst?cke/Nummern" > wms_layer_group "/Flurst?cke" > # wms_title "Beschriftungen (Punkte)" > wms_title "Beschriftungen (Flurst?cke)" > # wms_enable_request "* !GetCapabilities" > END > PROCESSING "CLOSE_CONNECTION=DEFER" > PROJECTION "init=epsg:25832" END > SIZEUNITS INCHES > STATUS ON > SYMBOLSCALEDENOM 1000 > TYPE POINT > UNITS METERS > CLASS > LABEL > ANGLE [drehwinkel_grad] > ANTIALIAS TRUE > FONT [font_umn] > SIZE [size_umn] > BUFFER 2 > COLOR [color_umn] > FORCE TRUE > OUTLINECOLOR 255 255 255 > OUTLINEWIDTH 2 > POSITION [position_umn] > PRIORITY 10 > TYPE TRUETYPE > TEXT '[text]' > END > END > END > > > -- > Dipl.-Geogr. Oliver Schmidt > > > LANDESAMT F?R VERMESSUNG UND GEOBASISINFORMATION RHEINLAND-PFALZ > > > Von-Kuhl-Stra?e 49 > 56070 Koblenz > Telefon 0261 492-346 > Telefax 0261 492-492 > oliver.schmidt at vermkv.rlp.de > www.lvermgeo.rlp.de > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From oliver.schmidt at vermkv.rlp.de Mon Oct 21 01:38:32 2019 From: oliver.schmidt at vermkv.rlp.de (Oliver Schmidt) Date: Mon, 21 Oct 2019 10:38:32 +0200 (CEST) Subject: [mapserver-users] Problem with UNION layer and labelling In-Reply-To: <5ccfe295-81d1-a16e-54e7-6f57a664a94a@netgis.de> References: <1462079727.434864.1571399762850@groupware.vermkv.rlp> <5ccfe295-81d1-a16e-54e7-6f57a664a94a@netgis.de> Message-ID: <333405963.455035.1571647112526@groupware.vermkv.rlp> Hi Sven, the complex SQL statement is not the problem at all - it works fine when using the non-UNION layer. This mapfile originates from the PostNAS project which is rather complex. I asked Armin already, his office is on my corridor. He doesn't know why it doesn't work and in his opinion there is no error in the mapfile. Perhaps I found a bug here? Thanks also to Lars for your reply. Removing the German Umlaute didn't solve the problem - but you're right that this shouldn't be in used in a mapfile! Greetings, Oliver > Sven Schroeter hat am 21. Oktober 2019 um 08:57 geschrieben: > > > > Hi Oliver, > this is a complex SQL statement and I would always store such things in > a view on the database. Then you can visually check if all data comes as > it should. > Otherwise it could be due to the encoding of the data records, I > sometimes had problems with it in the past. > By the way, you can just ask Armin Retterath in your house, he will find > every error ;-) > Greetings also to Armin > Sven > > ************************************** > NETGIS GbR > Benediktinerstr. 32a > 54292 Trier > Tel.: 0651-1704731 > Fax: 0651-1704733 > schroeter at netgis.de > www.netgis.de > > > Am 18.10.2019 um 13:56 schrieb Oliver Schmidt: > > Hi list, > > > > I tried with MapServer 7.0.4 and 7.4.2 to get labels on an UNION layer. The labels are OK when I loaded the source layer itself into QGIS, but the UNION layer returns an empty picture (using LABELITEM) or the name of the label field including the brackets is placed instead of the data (using TEXT inside LABEL). > > Furthermore, the variable settings for ANGLE, FONT, SIZE and POSITION don't seem to be handled correctly in the UNION layer. The font size and the position aren't identical to the source layer. Layers with polygons and no labels are drawn correctly! > > > > Does anyone got an idea what is going wrong here? One example with just one layer: > > > > > > LAYER NAME "Beschriftung Flurstuecke" > > CONNECTIONTYPE UNION > > CONNECTION "bfn" > > TYPE POINT > > STATUS ON > > STYLEITEM "AUTO" > > EXTENT 250000 5420000 500000 5648000 > > MAXSCALEDENOM 25000 > > METADATA > > wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857" > > wms_layer_group "/Flurstueck" > > wms_title "Beschriftung Flurstuecke" > > END > > CLASS END > > PROJECTION "init=epsg:25832" END > > END > > > > ..... > > > > LAYER NAME "bfn" # Flurst?cke / Nummern / Beschriftungen > > CONNECTION "dbname='db' host=host port=5432 user='user'" > > CONNECTIONTYPE POSTGIS > > DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung) WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksb?ndig' THEN 'L' WHEN 'rechtsb?ndig' THEN 'R' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Flurst?cke' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer IN ('ax_flurstueck_nummer','ax_flurstueck_zuordnung','ax_flurstueck_zuordnung_pfeil')) AND point IS NOT NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832" > > EXTENT 250000 5420000 500000 5648000 > > # LABELITEM "text" > > MAXSCALEDENOM 5000 > > METADATA > > wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857" > > # wms_layer_group "/Flurst?cke/Nummern" > > wms_layer_group "/Flurst?cke" > > # wms_title "Beschriftungen (Punkte)" > > wms_title "Beschriftungen (Flurst?cke)" > > # wms_enable_request "* !GetCapabilities" > > END > > PROCESSING "CLOSE_CONNECTION=DEFER" > > PROJECTION "init=epsg:25832" END > > SIZEUNITS INCHES > > STATUS ON > > SYMBOLSCALEDENOM 1000 > > TYPE POINT > > UNITS METERS > > CLASS > > LABEL > > ANGLE [drehwinkel_grad] > > ANTIALIAS TRUE > > FONT [font_umn] > > SIZE [size_umn] > > BUFFER 2 > > COLOR [color_umn] > > FORCE TRUE > > OUTLINECOLOR 255 255 255 > > OUTLINEWIDTH 2 > > POSITION [position_umn] > > PRIORITY 10 > > TYPE TRUETYPE > > TEXT '[text]' > > END > > END > > END > > > > > > -- > > Dipl.-Geogr. Oliver Schmidt > > > > > > LANDESAMT F?R VERMESSUNG UND GEOBASISINFORMATION RHEINLAND-PFALZ > > > > > > Von-Kuhl-Stra?e 49 > > 56070 Koblenz > > Telefon 0261 492-346 > > Telefax 0261 492-492 > > oliver.schmidt at vermkv.rlp.de > > www.lvermgeo.rlp.de > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > Sehr geehrte Damen und Herren, Mit freundlichen Gr??en Im Auftrag Oliver Schmidt -- Dipl.-Geogr. Oliver Schmidt LANDESAMT F?R VERMESSUNG UND GEOBASISINFORMATION RHEINLAND-PFALZ Von-Kuhl-Stra?e 49 56070 Koblenz Telefon 0261 492-346 Telefax 0261 492-492 oliver.schmidt at vermkv.rlp.de www.lvermgeo.rlp.de From flavio at tydac.ch Tue Oct 22 01:17:12 2019 From: flavio at tydac.ch (Flavio Hendry) Date: Tue, 22 Oct 2019 10:17:12 +0200 Subject: [mapserver-users] PIXMAP Symbols png and jpeg not recongnized In-Reply-To: References: <0680c58d-14d0-4f9b-a28d-6543750c223c@www.fastmail.com> Message-ID: <7b92d7c4-521c-be9f-9f38-639cdd411952@tydac.ch> Hi all Never had a problem with PIXMAP symbols, this is on a new install (tried to recompile several times and several versions, Ubuntu 18.04.3 LTS). We see the following that might cause the problem, any idea??? [ 21%] Building C object CMakeFiles/mapserver.dir/mapsymbol.c.o /tmp/mapserver-7.4.2/mapsymbol.c:52:28: warning: ?JPEGsig? defined but not used [-Wunused-const-variable=] static const unsigned char JPEGsig[3] = {255, 216, 255}; /* FF D8 FF hex */ ^~~~~~~ /tmp/mapserver-7.4.2/mapsymbol.c:51:28: warning: ?PNGsig? defined but not used [-Wunused-const-variable=] static const unsigned char PNGsig[8] = {137, 80, 78, 71, 13, 10, 26, 10}; /* 89 50 4E 47 0D 0A 1A 0A hex */ THX. -- Mit freundlichem Gruss / Best regards Flavio Hendry ---------------------------------------------------------------- TYDAC Inc. - http://www.tydac.ch Swiss Maps - http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Optingenstrasse 27 -- CH-3013 Bern ############ Tel +41 (0)31 368 0180 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 ---------------------------------------------------------------- From steve.lime at state.mn.us Tue Oct 22 12:31:35 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 22 Oct 2019 19:31:35 +0000 Subject: [mapserver-users] PIXMAP Symbols png and jpeg not recongnized In-Reply-To: <7b92d7c4-521c-be9f-9f38-639cdd411952@tydac.ch> References: <0680c58d-14d0-4f9b-a28d-6543750c223c@www.fastmail.com> <7b92d7c4-521c-be9f-9f38-639cdd411952@tydac.ch> Message-ID: The warnings look legit. I did a quick search and neither of those global variables are being used anywhere in the source (PNGsig is actually defined twice in 7.4, once in mapsymbol.c and again in mapogcsld.c). I assume that means they can be removed and/or the warnings can safely be ignored. Perhaps your compiler is just newer and therefore smarter? Are you seeing issues beyond the warnings? --Steve -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Flavio Hendry Sent: Tuesday, October 22, 2019 3:17 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PIXMAP Symbols png and jpeg not recongnized Hi all Never had a problem with PIXMAP symbols, this is on a new install (tried to recompile several times and several versions, Ubuntu 18.04.3 LTS). We see the following that might cause the problem, any idea??? [ 21%] Building C object CMakeFiles/mapserver.dir/mapsymbol.c.o /tmp/mapserver-7.4.2/mapsymbol.c:52:28: warning: ?JPEGsig? defined but not used [-Wunused-const-variable=] static const unsigned char JPEGsig[3] = {255, 216, 255}; /* FF D8 FF hex */ ^~~~~~~ /tmp/mapserver-7.4.2/mapsymbol.c:51:28: warning: ?PNGsig? defined but not used [-Wunused-const-variable=] static const unsigned char PNGsig[8] = {137, 80, 78, 71, 13, 10, 26, 10}; /* 89 50 4E 47 0D 0A 1A 0A hex */ THX. -- Mit freundlichem Gruss / Best regards Flavio Hendry ---------------------------------------------------------------- TYDAC Inc. - https://www.tydac.ch/ Swiss Maps - https://www.mapplus.ch/ ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch ############ TYDAC AG - https://www.tydac.ch #### #### Geographic Information Solutions #### #### Optingenstrasse 27 -- CH-3013 Bern ############ Tel +41 (0)31 368 0180 ---------------------------------------------------------------- Location: https://www.mapplus.ch/?lang=en&srch=solrsearch&name=bern%20optingenstrasse%2027 ---------------------------------------------------------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From James.Gardner at landgate.wa.gov.au Tue Oct 22 22:16:55 2019 From: James.Gardner at landgate.wa.gov.au (James Gardner) Date: Wed, 23 Oct 2019 05:16:55 +0000 Subject: [mapserver-users] Mapserver mapwmslayer on ubuntu18 Message-ID: Hi! I am having some problems using a wms layer on mapserv running on Ubuntu 18... The symptom is that when a getFeatureInfo request is made to the exposed(mapserv) wms, mapserv does not seem to be making a further call to the underlying wms service(the one defined in the connection string)... I believe this might have something to do with incompatibilities between libcurl3 and libcurl4.... I have tried to run mapserv with libcurl3 preloaded, but it depends on a bunch of other libraries, and I couldn't get all of them to load, Any help would be appreciated... Kind regards, James Gardner Disclaimer The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful. This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more visit the Mimecast website. -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at tydac.ch Tue Oct 22 23:31:48 2019 From: flavio at tydac.ch (Flavio Hendry) Date: Wed, 23 Oct 2019 08:31:48 +0200 Subject: [mapserver-users] PIXMAP Symbols png and jpeg not recongnized In-Reply-To: References: <0680c58d-14d0-4f9b-a28d-6543750c223c@www.fastmail.com> <7b92d7c4-521c-be9f-9f38-639cdd411952@tydac.ch> Message-ID: <410b45ff-26ff-81bf-ecb1-ae099ec6e5a8@tydac.ch> Hi Steve Thanks for the answer ... the issue we see, is that png and jpeg do not work as PIXMAP symbols - such as the below throws an error: SYMBOL NAME "cablecar" TYPE PIXMAP IMAGE 'symbols/cablecar.png' END The error it throws: "Image handling error. Failed to draw layer named 'Aerialway Points'." Using TYPE PIXMAP with gif or TYPE SVG works ... We have: - libpng-dev1.6.34 - libjpeg-dev 8c -- Mit freundlichem Gruss / Best regards Flavio Hendry ---------------------------------------------------------------- TYDAC Inc. - http://www.tydac.ch Swiss Maps - http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Optingenstrasse 27 -- CH-3013 Bern ############ Tel +41 (0)31 368 0180 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 ---------------------------------------------------------------- From lars.fricke at skendata.de Tue Oct 22 23:44:23 2019 From: lars.fricke at skendata.de (Lars Fricke) Date: Wed, 23 Oct 2019 08:44:23 +0200 Subject: [mapserver-users] Mapserver mapwmslayer on ubuntu18 In-Reply-To: References: Message-ID: <34a98b46-5832-f498-09c2-69b2a6138322@skendata.de> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: email_footer_450x80px.jpg Type: image/jpeg Size: 17650 bytes Desc: not available URL: From MarkVolz at co.lyon.mn.us Wed Oct 23 07:11:55 2019 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 23 Oct 2019 14:11:55 +0000 Subject: [mapserver-users] Mapcache - Is it possible to have two tilesets share a single cache at particular zoom levels? Message-ID: Hello, I have two similar tilesets configured in Mapcache. One of the tilesets displays a political map at small scales, then changes to an air photo map as the user zooms into the map. The second tileset displays air photos at every zoom level. It would be useful if these tilesets could share a single cache for zoom levels 5-11. This way we could save a significant amount of space on the server. Example #1: Political and Air Photo Basemap: * Zoom level 0-4: Use the cache from the "political map cache" * Zoom level 5-11: Use the cache from the "air photo cache" Air Photo Basemap * Zoom level 0-11: Use the cache from the "air photo cache" Result: * Any tiles at level 5-11, which will take up the majority of the space on the sever will not need to be duplicated between the two tilesets. Please let me know if it is possible to share caches between different tilesets. Thanks! Sincerely, Mark Volz, GISP Lyon County GIS Coordinator -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Wed Oct 23 08:31:19 2019 From: sdlime at gmail.com (Steve Lime) Date: Wed, 23 Oct 2019 10:31:19 -0500 Subject: [mapserver-users] Mapcache - Is it possible to have two tilesets share a single cache at particular zoom levels? In-Reply-To: References: Message-ID: That seems more like a client configuration issue to me. That is, you'd have the two caches (air photos and political) but then configure the client to swap at different zoom levels. For example, with Leaflet you could simply set maxZoom/minZoom map attributes. Here's an example that uses a map (1 tileset) at small scales and then transitions to aerial photos w/overlays (2 tilesets) as the user zooms in: http://maps1.dnr.state.mn.us/test/tiles/switch.html Presumably you can tell MapCache to only generate tiles over certain zoom ranges for each tileset - thus reducing disk space. Perhaps I'm miss interpreting your question though. --Steve On Wed, Oct 23, 2019 at 9:29 AM Mark Volz wrote: > Hello, > > > > I have two similar tilesets configured in Mapcache. One of the tilesets > displays a political map at small scales, then changes to an air photo map > as the user zooms into the map. The second tileset displays air photos at > every zoom level. It would be useful if these tilesets could share a > single cache for zoom levels 5-11. This way we could save a significant > amount of space on the server. > > > > Example #1: > > Political and Air Photo Basemap: > > ? Zoom level 0-4: Use the cache from the ?political map cache? > > ? Zoom level 5-11: Use the cache from the ?air photo cache? > > Air Photo Basemap > > ? Zoom level 0-11: Use the cache from the ?air photo cache? > > Result: > > ? Any tiles at level 5-11, which will take up the majority of the > space on the sever will not need to be duplicated between the two tilesets. > > > > Please let me know if it is possible to share caches between different > tilesets. > > > > Thanks! > > > > Sincerely, > > *Mark Volz, GISP* > > *Lyon County GIS Coordinator* > > > _______________________________________________ > 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 MarkVolz at co.lyon.mn.us Wed Oct 23 10:03:10 2019 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 23 Oct 2019 17:03:10 +0000 Subject: [mapserver-users] Mapcache - Is it possible to have two tilesets share a single cache at particular zoom levels? In-Reply-To: References: Message-ID: Steve, Thank you for your reply. I had also thought about configuring the caches at the client level as you suggest. Unfortunately, I do not have control over all of the potential clients as some outside users might connect to my services via Leaflet, OpenLayers, ArcMap, QGIS, etc. It sounds like my best option is to swap caches as you suggest (the political cache will only have 4 zoom levels), and hope outside users either repeat the same process or only use the air photo cache. Thanks! Sincerely, Mark Volz From: Steve Lime Sent: Wednesday, October 23, 2019 10:31 AM To: Mark Volz Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapcache - Is it possible to have two tilesets share a single cache at particular zoom levels? SWHHS/LYON/LINCOLN COUNTY SECURITY NOTICE: This email originated from an external sender. Exercise caution before clicking on any links or attachments and consider whether you know the sender. For more information please contact IT support. ________________________________ That seems more like a client configuration issue to me. That is, you'd have the two caches (air photos and political) but then configure the client to swap at different zoom levels. For example, with Leaflet you could simply set maxZoom/minZoom map attributes. Here's an example that uses a map (1 tileset) at small scales and then transitions to aerial photos w/overlays (2 tilesets) as the user zooms in: http://maps1.dnr.state.mn.us/test/tiles/switch.html Presumably you can tell MapCache to only generate tiles over certain zoom ranges for each tileset - thus reducing disk space. Perhaps I'm miss interpreting your question though. --Steve On Wed, Oct 23, 2019 at 9:29 AM Mark Volz > wrote: Hello, I have two similar tilesets configured in Mapcache. One of the tilesets displays a political map at small scales, then changes to an air photo map as the user zooms into the map. The second tileset displays air photos at every zoom level. It would be useful if these tilesets could share a single cache for zoom levels 5-11. This way we could save a significant amount of space on the server. Example #1: Political and Air Photo Basemap: ? Zoom level 0-4: Use the cache from the ?political map cache? ? Zoom level 5-11: Use the cache from the ?air photo cache? Air Photo Basemap ? Zoom level 0-11: Use the cache from the ?air photo cache? Result: ? Any tiles at level 5-11, which will take up the majority of the space on the sever will not need to be duplicated between the two tilesets. Please let me know if it is possible to share caches between different tilesets. Thanks! Sincerely, Mark Volz, GISP Lyon County GIS Coordinator _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Wed Oct 23 19:59:14 2019 From: sdlime at gmail.com (Steve Lime) Date: Wed, 23 Oct 2019 21:59:14 -0500 Subject: [mapserver-users] PIXMAP Symbols png and jpeg not recongnized In-Reply-To: <410b45ff-26ff-81bf-ecb1-ae099ec6e5a8@tydac.ch> References: <0680c58d-14d0-4f9b-a28d-6543750c223c@www.fastmail.com> <7b92d7c4-521c-be9f-9f38-639cdd411952@tydac.ch> <410b45ff-26ff-81bf-ecb1-ae099ec6e5a8@tydac.ch> Message-ID: Any chance there are multiple versions of libpng and libjpeg? On Wed, Oct 23, 2019 at 1:31 AM Flavio Hendry wrote: > Hi Steve > > Thanks for the answer ... the issue we see, is that png and jpeg do not > work as PIXMAP symbols - such as the below throws an error: > > SYMBOL > NAME "cablecar" > TYPE PIXMAP > IMAGE 'symbols/cablecar.png' > END > > The error it throws: > "Image handling error. Failed to draw layer named 'Aerialway Points'." > > Using TYPE PIXMAP with gif or TYPE SVG works ... > > We have: > - libpng-dev1.6.34 > - libjpeg-dev 8c > > > -- > Mit freundlichem Gruss / Best regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Inc. - http://www.tydac.ch > Swiss Maps - http://www.mapplus.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Optingenstrasse 27 -- CH-3013 Bern > > ############ Tel +41 (0)31 368 0180 > ---------------------------------------------------------------- > Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 > ---------------------------------------------------------------- > _______________________________________________ > 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 Andreas.Eichner at sid.sachsen.de Thu Oct 24 02:36:46 2019 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Thu, 24 Oct 2019 09:36:46 +0000 Subject: [mapserver-users] Mapcache - Is it possible to have two tilesets share a single cache at particular zoom levels? In-Reply-To: References: Message-ID: <6F331135492B944D90731CE93743D5684E9054EF@FS-EX-DB101.fs.sachsen.de> What about symlinking the level directories? > -----Original Message----- > From: mapserver-users [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Mark Volz > Sent: Wednesday, October 23, 2019 4:12 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Mapcache - Is it possible to have two > tilesets share a single cache at particular zoom levels? > > Hello, > > > > I have two similar tilesets configured in Mapcache. One of the > tilesets displays a political map at small scales, then changes to > an air photo map as the user zooms into the map. The second > tileset displays air photos at every zoom level. It would be > useful if these tilesets could share a single cache for zoom > levels 5-11. This way we could save a significant amount of space > on the server. > > > > Example #1: > > Political and Air Photo Basemap: > > * Zoom level 0-4: Use the cache from the "political map > cache" > > * Zoom level 5-11: Use the cache from the "air photo > cache" > > Air Photo Basemap > > * Zoom level 0-11: Use the cache from the "air photo > cache" > > Result: > > * Any tiles at level 5-11, which will take up the majority > of the space on the sever will not need to be duplicated between > the two tilesets. > > > > Please let me know if it is possible to share caches between > different tilesets. > > > > Thanks! > > > > Sincerely, > > Mark Volz, GISP > > Lyon County GIS Coordinator > > From MarkVolz at co.lyon.mn.us Thu Oct 24 13:34:34 2019 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 24 Oct 2019 20:34:34 +0000 Subject: [mapserver-users] Mapcache - Is it possible to have two tilesets share a single cache at particular zoom levels? Message-ID: Andreas, Good idea. It looks like Windows can create symlinks. I suppose I could try symlinking the cache for levels 5-11. Do you know if I would need to create hard or soft links to do this? Also, I would like to make sure our backup software does not try to backup the actual data twice... Reference: https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/ Thanks! Sincerely, Mark Volz, GISP Lyon County GIS Coordinator 504 Fairgrounds Rd Marshall, MN 56258 Ph:? (507) 532-8218 http://lyonco.org/ http://geomoose.lyonco.org/ >What about symlinking the level directories? > -----Original Message----- > From: mapserver-users [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Mark Volz > Sent: Wednesday, October 23, 2019 4:12 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Mapcache - Is it possible to have two > tilesets share a single cache at particular zoom levels? > > Hello, > > > > I have two similar tilesets configured in Mapcache. One of the > tilesets displays a political map at small scales, then changes to an > air photo map as the user zooms into the map. The second tileset > displays air photos at every zoom level. It would be useful if these > tilesets could share a single cache for zoom levels 5-11. This way we > could save a significant amount of space on the server. > > > > Example #1: > > Political and Air Photo Basemap: > > * Zoom level 0-4: Use the cache from the "political map > cache" > > * Zoom level 5-11: Use the cache from the "air photo > cache" > > Air Photo Basemap > > * Zoom level 0-11: Use the cache from the "air photo > cache" > > Result: > > * Any tiles at level 5-11, which will take up the majority > of the space on the sever will not need to be duplicated between the > two tilesets. > > > > Please let me know if it is possible to share caches between different > tilesets. > > > > Thanks! > > > > Sincerely, > > Mark Volz, GISP > > Lyon County GIS Coordinator > > From sdlime at gmail.com Thu Oct 24 14:50:52 2019 From: sdlime at gmail.com (Steve Lime) Date: Thu, 24 Oct 2019 16:50:52 -0500 Subject: [mapserver-users] Mapcache - Is it possible to have two tilesets share a single cache at particular zoom levels? In-Reply-To: References: Message-ID: You'd still need to configure the political map tileset not to generate tiles in the symlinked folders but to serve tiles from those folders - I don't think that's possible. IMHO it's better to configure your political map tiles to only be available for a specific range of zoom levels and advertise that explicitly. On Thu, Oct 24, 2019 at 3:34 PM Mark Volz wrote: > Andreas, > > Good idea. It looks like Windows can create symlinks. I suppose I could > try symlinking the cache for levels 5-11. Do you know if I would need to > create hard or soft links to do this? Also, I would like to make sure our > backup software does not try to backup the actual data twice... > Reference: > https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/ > > Thanks! > > Sincerely, > Mark Volz, GISP > Lyon County GIS Coordinator > 504 Fairgrounds Rd > Marshall, MN 56258 > Ph: (507) 532-8218 > http://lyonco.org/ > http://geomoose.lyonco.org/ > > > >What about symlinking the level directories? > > > > -----Original Message----- > > From: mapserver-users [mailto:mapserver-users- > > bounces at lists.osgeo.org] On Behalf Of Mark Volz > > Sent: Wednesday, October 23, 2019 4:12 PM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] Mapcache - Is it possible to have two > > tilesets share a single cache at particular zoom levels? > > > > Hello, > > > > > > > > I have two similar tilesets configured in Mapcache. One of the > > tilesets displays a political map at small scales, then changes to an > > air photo map as the user zooms into the map. The second tileset > > displays air photos at every zoom level. It would be useful if these > > tilesets could share a single cache for zoom levels 5-11. This way we > > could save a significant amount of space on the server. > > > > > > > > Example #1: > > > > Political and Air Photo Basemap: > > > > * Zoom level 0-4: Use the cache from the "political map > > cache" > > > > * Zoom level 5-11: Use the cache from the "air photo > > cache" > > > > Air Photo Basemap > > > > * Zoom level 0-11: Use the cache from the "air photo > > cache" > > > > Result: > > > > * Any tiles at level 5-11, which will take up the majority > > of the space on the sever will not need to be duplicated between the > > two tilesets. > > > > > > > > Please let me know if it is possible to share caches between different > > tilesets. > > > > > > > > Thanks! > > > > > > > > Sincerely, > > > > Mark Volz, GISP > > > > Lyon County GIS Coordinator > > > > > _______________________________________________ > 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 Andreas.Eichner at sid.sachsen.de Fri Oct 25 05:23:16 2019 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Fri, 25 Oct 2019 12:23:16 +0000 Subject: [mapserver-users] Mapcache - Is it possible to have two tilesets share a single cache at particular zoom levels? In-Reply-To: References: Message-ID: <6F331135492B944D90731CE93743D5684E9055E1@FS-EX-DB101.fs.sachsen.de> Hmm, seems the Composite-Cache would be the better way to go: https://mapserver.org/mapcache/caches.html#composite-caches In the past symbolic links (aka soft links) worked for me on Linux. But with that tiles might be seeded through multiple caches giving error "unknown error (another thread/process failed to create the tile I was waiting for)" in the logs. So better try a composite cache. > -----Original Message----- > From: mapserver-users [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Mark Volz > Sent: Thursday, October 24, 2019 10:35 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Mapcache - Is it possible to have > two tilesets share a single cache at particular zoom levels? > > Andreas, > > Good idea. It looks like Windows can create symlinks. I suppose > I could try symlinking the cache for levels 5-11. Do you know if > I would need to create hard or soft links to do this? Also, I > would like to make sure our backup software does not try to backup > the actual data twice... > Reference: https://www.howtogeek.com/howto/16226/complete-guide- > to-symbolic-links-symlinks-on-windows-or-linux/ > > Thanks! > > Sincerely, > Mark Volz, GISP > Lyon County GIS Coordinator > 504 Fairgrounds Rd > Marshall, MN 56258 > Ph:? (507) 532-8218 > http://lyonco.org/ > http://geomoose.lyonco.org/ > > > >What about symlinking the level directories? > > > > -----Original Message----- > > From: mapserver-users [mailto:mapserver-users- > > bounces at lists.osgeo.org] On Behalf Of Mark Volz > > Sent: Wednesday, October 23, 2019 4:12 PM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] Mapcache - Is it possible to have two > > tilesets share a single cache at particular zoom levels? > > > > Hello, > > > > > > > > I have two similar tilesets configured in Mapcache. One of the > > tilesets displays a political map at small scales, then changes > to an > > air photo map as the user zooms into the map. The second > tileset > > displays air photos at every zoom level. It would be useful if > these > > tilesets could share a single cache for zoom levels 5-11. This > way we > > could save a significant amount of space on the server. > > > > > > > > Example #1: > > > > Political and Air Photo Basemap: > > > > * Zoom level 0-4: Use the cache from the "political map > > cache" > > > > * Zoom level 5-11: Use the cache from the "air photo > > cache" > > > > Air Photo Basemap > > > > * Zoom level 0-11: Use the cache from the "air photo > > cache" > > > > Result: > > > > * Any tiles at level 5-11, which will take up the > majority > > of the space on the sever will not need to be duplicated between > the > > two tilesets. > > > > > > > > Please let me know if it is possible to share caches between > different > > tilesets. > > > > > > > > Thanks! > > > > > > > > Sincerely, > > > > Mark Volz, GISP > > > > Lyon County GIS Coordinator > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From stefan27 at hotmail.com Fri Oct 25 07:27:36 2019 From: stefan27 at hotmail.com (StefanWebViewer) Date: Fri, 25 Oct 2019 07:27:36 -0700 (MST) Subject: [mapserver-users] Mapserver TabFile Error Message-ID: <1572013656100-0.post@n6.nabble.com> We would like to render a polygon on our mapserver. Everything works wonderfully on our localhost. Now we would like to send the application via external server. Everything works fine on the external server as well. Except that the polygon appears on the map. The polygon is a TabFile. All paths have been updated, adapted and checked several times. In the network analysis comes with the "map" .exe this error: "No query information to decode. QUERY_STRING is set, but empty." Someone an idea what else would have to be adjusted? Thanks a lot! -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From jukka.rahkonen at maanmittauslaitos.fi Fri Oct 25 09:46:47 2019 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Fri, 25 Oct 2019 16:46:47 +0000 Subject: [mapserver-users] Mapserver TabFile Error In-Reply-To: <1572013656100-0.post@n6.nabble.com> References: <1572013656100-0.post@n6.nabble.com> Message-ID: Hi, Please include the request that your application sends for Mapserver. You should find it from the access log of your Apache server if you cannot capture it from the client side. Somehow it feels like your client does not send the &map= parameter, or it you have tried to configure a default mapfile on the server side it did not go right. Test with no mapfile: https://demo.mapserver.org/cgi-bin/mapserv? Test with mapfile pointer included: https://demo.mapserver.org/cgi-bin/mapserv?map=/osgeo/mapserver/msautotest/world/world.map -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users Puolesta StefanWebViewer L?hetetty: perjantai 25. lokakuuta 2019 17.28 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Mapserver TabFile Error We would like to render a polygon on our mapserver. Everything works wonderfully on our localhost. Now we would like to send the application via external server. Everything works fine on the external server as well. Except that the polygon appears on the map. The polygon is a TabFile. All paths have been updated, adapted and checked several times. In the network analysis comes with the "map" .exe this error: "No query information to decode. QUERY_STRING is set, but empty." Someone an idea what else would have to be adjusted? Thanks a lot! -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From James.Gardner at landgate.wa.gov.au Sun Oct 27 19:55:40 2019 From: James.Gardner at landgate.wa.gov.au (James Gardner) Date: Mon, 28 Oct 2019 02:55:40 +0000 Subject: [mapserver-users] Mapserver mapwmslayer on ubuntu18 (Lars Fricke) Message-ID: Hi Lars, Sub Layer In zzz.map <<+++ LAYER CONNECTION "host=**** dbname=**** user=**** password=****" CONNECTIONTYPE POSTGIS DATA "the_geom FROM (select id,the_geom,time) as subquery using unique id" GROUP "layer56_simulation_15044" METADATA "wms_srs" "EPSG:900913" "gml_the_geom_type" "point" "wms_keywordlist" "simulation_id 15044" "gml_include_items" "*" "gml_geometries" "the_geom" "wms_group_title" "/2019-09-27/09:00 - test (ID: 15044)" "wms_title" "*****" END # METADATA NAME "layer55_simulation_15044 " PROCESSING "CLOSE_CONNECTION=DEFER" PROJECTION "init=epsg:900913" END # PROJECTION STATUS ON TEMPLATE "zzzzz.html" TILEITEM "location" TOLERANCE 20 TYPE POINT UNITS METERS END +++ Parent layer <<<+++ LAYER CONNECTION "http://localhost/cgi-bin/mapserv?map=/data/web_projects/mapproxy/docker/ows/zzzz.map&" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:900913 EPSG:4326" "wms_extent" "13048989.6381759 -4108382.56980896 13049321.6706854 -4107853.60807286" "wms_layer_group" "/2019-09-27/09:00 - test (ID: 15044)" "wms_name" "layer56_simulation_15044" "wms_feature_info_mime_type" "text/html" "wms_format" "image/png" "wms_keywordlist" "simulation_id 15044,status complete" "wms_server_version" "1.1.1" "wms_title" "********" END # METADATA NAME "layer56_simulation_15044" PROJECTION "init=epsg:900913" END # PROJECTION STATUS ON TEMPLATE "zzzz.html" TILEITEM "location" TOLERANCE 20 TYPE RASTER UNITS METERS CLASS NAME "*******" STYLE SIZE 20 SYMBOL "********" END # STYLE END # CLASS +++ When I do a getFeatureInfo on the parent layer, it returns nothing, when it should query the sublayer and return something... Thanks JG.. Disclaimer The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful. This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more visit the Mimecast website. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.fricke at skendata.de Mon Oct 28 03:13:09 2019 From: lars.fricke at skendata.de (Lars Fricke) Date: Mon, 28 Oct 2019 11:13:09 +0100 Subject: [mapserver-users] Mapserver mapwmslayer on ubuntu18 (Lars Fricke) In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: email_footer_450x80px.jpg Type: image/jpeg Size: 17650 bytes Desc: not available URL: From kirandziskig at gmail.com Mon Oct 28 12:20:16 2019 From: kirandziskig at gmail.com (gorank) Date: Mon, 28 Oct 2019 12:20:16 -0700 (MST) Subject: [mapserver-users] Problem to show Mapserver WMS on ArcGIS Geoportal Server Message-ID: <1572290416965-0.post@n6.nabble.com> Hi, I created WMS on Mapserver http://makstat.stat.gov.mk:8080/wms/NAS014 This WMS should be shown on ArcGIS Server (Geoportal). On the Geoportal's Viewer the list of layers is visible but there is a problem to show map. Is this problem comes from Mapserver (additional settings on Mapserver nedeed) or some configuration on ArcGIS Geoportal server is nedeed? Thanks, Goran -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From stefan27 at hotmail.com Wed Oct 30 08:01:07 2019 From: stefan27 at hotmail.com (StefanWebViewer) Date: Wed, 30 Oct 2019 08:01:07 -0700 (MST) Subject: [mapserver-users] Copy mapserv.exe problem Message-ID: <1572447667061-0.post@n6.nabble.com> Hey! I had already formulated an entry recently in which I asked for the error message "msCGILoadMap (): Web application error. CGI variable" map "is not set." asked. Now I think I have found a more accurate diagnosis. For our project we need several mapserv.exe, because we present different maps (Mapfiles) to different users. Every time I come up with a new copy of the mapserv.exe this error message follows. Does anyone know this problem? Does something have to be considered when copying this file? Thank you very much! -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From boolean10001 at yahoo.com Wed Oct 30 09:32:51 2019 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Wed, 30 Oct 2019 16:32:51 +0000 (UTC) Subject: [mapserver-users] Copy mapserv.exe problem In-Reply-To: <1572447667061-0.post@n6.nabble.com> References: <1572447667061-0.post@n6.nabble.com> Message-ID: <441934780.4510205.1572453171330@mail.yahoo.com> Stefan, If you have several URLs then you have to assign the map CGI variable based on the URL request, this is done in http.conf (Apache). On Wednesday, October 30, 2019, 9:01:24 AM CST, StefanWebViewer wrote: Hey! I had already formulated an entry recently in which I asked for the error message "msCGILoadMap (): Web application error. CGI variable" map "is not set." asked. Now I think I have found a more accurate diagnosis. For our project we need several mapserv.exe, because we present different maps (Mapfiles) to different users. Every time I come up with a new copy of the mapserv.exe this error message follows. Does anyone know this problem? Does something have to be considered when copying this file? Thank you very much! -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html _______________________________________________ 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 Robert.Sanson at asurequality.com Wed Oct 30 12:52:35 2019 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Wed, 30 Oct 2019 19:52:35 +0000 Subject: [mapserver-users] Copy mapserv.exe problem In-Reply-To: <1572447667061-0.post@n6.nabble.com> References: <1572447667061-0.post@n6.nabble.com> Message-ID: Hi Stefan Is your mapserver on Windows? Once you copy mapserv.exe change its name to the name of your mapfile and then edit httpd.conf and set up Apache redirects for each one Eg. Suppose you had a mapfile map1.map and you copied mapserv.exe to map1.exe, then you could put the following line into httpd.conf: SetEnvIf Request_URI "/cgi-bin/map1?" MS_MAPFILE=/path_to/map1.map Regards Robert -----Original Message----- From: mapserver-users On Behalf Of StefanWebViewer Sent: Thursday, 31 October 2019 4:01 a.m. To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Copy mapserv.exe problem Hey! I had already formulated an entry recently in which I asked for the error message "msCGILoadMap (): Web application error. CGI variable" map "is not set." asked. Now I think I have found a more accurate diagnosis. For our project we need several mapserv.exe, because we present different maps (Mapfiles) to different users. Every time I come up with a new copy of the mapserv.exe this error message follows. Does anyone know this problem? Does something have to be considered when copying this file? Thank you very much! -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From joerg.thomsen at wheregroup.com Thu Oct 31 01:31:38 2019 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Thu, 31 Oct 2019 09:31:38 +0100 Subject: [mapserver-users] two values in runtime-substitution Filter vs. processing native_filter Message-ID: Good morning everyone, we built an application which uses a runtime substitution for the filter string. And we found a different behavior between (the old) Filter and the native_processing filter if two values are parsed. the request http://....?..&key=vaule1,value2 results to 'value1','value2' with the old FILTER () and to 'value1,value2'when using PROCESSING 'NATIVE_FILTER We have to use the PROCESSING 'NATIVE_FILTER, but need as result 'value1','value2', because we want to use it in a sql-query like: value in ('value1','value2'). First question: has anyone an idea how to handle this? We could request http://....?..&key=value1','value2 but that's no nice solution. Second question: is it the wanted behavior or perhaps a bug? J?rg -- *************************** Where2B Konferenz 2019 12. Dezember 2019 in Bonn where2b-conference.com *************************** J?rg Thomsen WhereGroup GmbH Gillweg 3 14193 Berlin Germany Fon: +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 joerg.thomsen at wheregroup.com Thu Oct 31 01:39:30 2019 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Thu, 31 Oct 2019 09:39:30 +0100 Subject: [mapserver-users] Copy mapserv.exe problem In-Reply-To: References: <1572447667061-0.post@n6.nabble.com> Message-ID: hi, Am 30.10.19 um 20:52 schrieb Robert Sanson: > Hi Stefan > > Is your mapserver on Windows? Once you copy mapserv.exe change its name to the name of your mapfile and then edit httpd.conf and set up Apache redirects for each one > > Eg. Suppose you had a mapfile map1.map and you copied mapserv.exe to map1.exe, then you could put the following line into httpd.conf: > > SetEnvIf Request_URI "/cgi-bin/map1?" MS_MAPFILE=/path_to/map1.map you don't need copies of the binary, just create apache rewrite rules like RewriteRule ^/wms1?$ /cgi-bin/mapserv?map=/path_to/map1.map RewriteRule ^/wms2?$ /cgi-bin/mapserv?map=/path_to/map2.map RewriteRule ^/wms3?$ /cgi-bin/mapserv?map=/path_to/map3.map now you can request your wms with http://../cgi-bin/wms1?SERVICE=WMS&... see https://mapserver.org/ogc/wms_server.html#apache-rewrite-rules-using-apache-mod-rewrite J?rg > > Regards > Robert > > -----Original Message----- > From: mapserver-users On Behalf Of StefanWebViewer > Sent: Thursday, 31 October 2019 4:01 a.m. > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Copy mapserv.exe problem > > Hey! > I had already formulated an entry recently in which I asked for the error > message "msCGILoadMap (): Web application error. CGI variable" map "is not > set." asked. > Now I think I have found a more accurate diagnosis. For our project we need > several mapserv.exe, because we present different maps (Mapfiles) to > different users. Every time I come up with a new copy of the mapserv.exe > this error message follows. Does anyone know this problem? Does something > have to be considered when copying this file? Thank you very much! > > > > -- > Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > _______________________________________________ > 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 > Viele Gr??e, J?rg Thomsen -- *************************** Where2B Konferenz 2019 12. Dezember 2019 in Bonn where2b-conference.com *************************** J?rg Thomsen WhereGroup GmbH Gillweg 3 14193 Berlin Germany Fon: +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 jmckenna at gatewaygeomatics.com Thu Oct 31 07:36:49 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 31 Oct 2019 11:36:49 -0300 Subject: [mapserver-users] Copy mapserv.exe problem In-Reply-To: References: <1572447667061-0.post@n6.nabble.com> Message-ID: <6efca88f-c1bd-02c0-d7f0-9d0383be10b7@gatewaygeomatics.com> Hi Robert, If you are using MS4W, you likely already followed the steps at https://mapserver.org/ogc/wms_server.html#apache-setenvif and added the SetEnvIf to the bottom of your local file /ms4w/Apache/conf/httpd.conf Don't forget to also restart Apache after this change, as Administrator (executing /ms4w/apache-restart.bat ) Another hint that I follow always on Windows is to make sure that your path to your mapfile contains no spaces (otherwise you will have grief sometimes, and turn your hair grey). Hope those hints help. -jeff -- Thank you for using MS4W. "MS4W: open doors as well as windows" On 2019-10-31 5:39 AM, J?rg Thomsen (WhereGroup) wrote: > hi, > > Am 30.10.19 um 20:52 schrieb Robert Sanson: >> Hi Stefan >> >> Is your mapserver on Windows? Once you copy mapserv.exe change its name to the name of your mapfile and then edit httpd.conf and set up Apache redirects for each one >> >> Eg. Suppose you had a mapfile map1.map and you copied mapserv.exe to map1.exe, then you could put the following line into httpd.conf: >> >> SetEnvIf Request_URI "/cgi-bin/map1?" MS_MAPFILE=/path_to/map1.map > > you don't need copies of the binary, just create apache rewrite rules like > RewriteRule ^/wms1?$ /cgi-bin/mapserv?map=/path_to/map1.map > RewriteRule ^/wms2?$ /cgi-bin/mapserv?map=/path_to/map2.map > RewriteRule ^/wms3?$ /cgi-bin/mapserv?map=/path_to/map3.map > > now you can request your wms with > > http://../cgi-bin/wms1?SERVICE=WMS&... > > see > https://mapserver.org/ogc/wms_server.html#apache-rewrite-rules-using-apache-mod-rewrite > > J?rg > >> >> Regards >> Robert >> >> -----Original Message----- >> From: mapserver-users On Behalf Of StefanWebViewer >> Sent: Thursday, 31 October 2019 4:01 a.m. >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Copy mapserv.exe problem >> >> Hey! >> I had already formulated an entry recently in which I asked for the error >> message "msCGILoadMap (): Web application error. CGI variable" map "is not >> set." asked. >> Now I think I have found a more accurate diagnosis. For our project we need >> several mapserv.exe, because we present different maps (Mapfiles) to >> different users. Every time I come up with a new copy of the mapserv.exe >> this error message follows. Does anyone know this problem? Does something >> have to be considered when copying this file? Thank you very much! >> >> >> >> -- -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/