From pe_lord at yahoo.ca Mon May 1 12:49:50 2017 From: pe_lord at yahoo.ca (pe_lord) Date: Mon, 1 May 2017 12:49:50 -0700 (MST) Subject: [mapserver-users] Multi template In-Reply-To: References: <1492520742623-5317599.post@n6.nabble.com> <1492534338162-5317655.post@n6.nabble.com> <1492543876608-5317677.post@n6.nabble.com> <1493293693420-5318595.post@n6.nabble.com> Message-ID: <1493668190397-5318988.post@n6.nabble.com> I'm trying to setup these "DRIVER 'TEMPLATE'" Few more questions! 1- What is the goal/difference of FORMATOPTION "FILE=...." vs FORMATOPTION 'ATTACHMENT=...' ? 2- How to not all redirect my query on the same template (json or html). I've tried for an other layer, my Driver template is used instead of the one call into the layer section? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Multi-template-tp5317599p5318988.html Sent from the Mapserver - User mailing list archive at Nabble.com. From steve.lime at state.mn.us Mon May 1 13:01:02 2017 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 1 May 2017 20:01:02 +0000 Subject: [mapserver-users] Multi template In-Reply-To: <1493668190397-5318988.post@n6.nabble.com> References: <1492520742623-5317599.post@n6.nabble.com> <1492534338162-5317655.post@n6.nabble.com> <1492543876608-5317677.post@n6.nabble.com> <1493293693420-5318595.post@n6.nabble.com> <1493668190397-5318988.post@n6.nabble.com> Message-ID: FORMATOPTION "FILE=...." defines the actual MapServer template to use so it's required. FORMATOPTION 'ATTACHMENT=...' sets an HTTP header value that effectively names the file being returned. That's useful when folks save the response to a file otherwise you see long names like "mapserver?my.map&...". It's not required and is more of a convenience configuration option for your users. With the mapserv CGI you change template with the qformat parameter. For example, "http://yoursite.com/cgi-bin/mapserv?map=my.map&mode=nquery&mapext=...&qformat=json" would use whatever format is named "json". Just switch that value to get another format. For WMS I believe you have to pass the mime-type using the FORMAT parameter. WFS probably supports something similar... Steve -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of pe_lord Sent: Monday, May 01, 2017 2:50 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Multi template I'm trying to setup these "DRIVER 'TEMPLATE'" Few more questions! 1- What is the goal/difference of FORMATOPTION "FILE=...." vs FORMATOPTION 'ATTACHMENT=...' ? 2- How to not all redirect my query on the same template (json or html). I've tried for an other layer, my Driver template is used instead of the one call into the layer section? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Multi-template-tp5317599p5318988.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Mon May 1 14:18:41 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 1 May 2017 23:18:41 +0200 Subject: [mapserver-users] What dependency for SVG symbols Message-ID: Hi, In the docs of Mapserver, at page http://www.mapserver.org/mapfile/symbol.html is written: svg: scalable vector graphics (SVG) symbol. Requires the libsvg-cairo library. But If I set the libsvg-cairo in compile setting the make report me that this setting is not acceptable with the -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From aperi2007 at gmail.com Mon May 1 14:21:49 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 1 May 2017 23:21:49 +0200 Subject: [mapserver-users] What dependency for SVG symbols Message-ID: Hi, In the docs at page http://www.mapserver.org/mapfile/symbol.html is written: svg: scalable vector graphics (SVG) symbol. Requires the libsvg-cairo library. But if I set the libsvg-cairo lib the make report me an error: CMake Error at CMakeLists.txt:565 (message): WITH_SVGCAIRO cannot be enabled with WITH_RSVG So my question is if the RSVG is sufficient to use the SVG symbols Many thx. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From aperi2007 at gmail.com Mon May 1 15:16:34 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 2 May 2017 00:16:34 +0200 Subject: [mapserver-users] What dependency for SVG symbols In-Reply-To: References: Message-ID: Hi, I testedthe svg work correctly using the RSVG. So is wrong the documentation. Should I open a ticket ? 2017-05-01 23:21 GMT+02:00 Andrea Peri : > Hi, > In the docs at page > http://www.mapserver.org/mapfile/symbol.html > is written: > > svg: scalable vector graphics (SVG) symbol. Requires the libsvg-cairo library. > > But if I set the libsvg-cairo lib > the make report me an error: > > CMake Error at CMakeLists.txt:565 (message): > WITH_SVGCAIRO cannot be enabled with WITH_RSVG > > So my question is if the RSVG is sufficient to use the SVG symbols > > Many thx. > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From jmckenna at gatewaygeomatics.com Mon May 1 16:14:40 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 1 May 2017 19:14:40 -0400 Subject: [mapserver-users] What dependency for SVG symbols In-Reply-To: References: Message-ID: <56b1ea27-c817-58f9-a55c-35a2182fafb6@gatewaygeomatics.com> On 2017-05-01 6:16 PM, Andrea Peri wrote: > Hi, > I testedthe svg work correctly using the RSVG. > So is wrong the documentation. > > Should I open a ticket ? > > Yes please, inside the /mapserver/docs/ repository. (for MS4W I recently built libsvg and libsvg-cairo, but not RSVG) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From aperi2007 at gmail.com Mon May 1 23:01:45 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 2 May 2017 08:01:45 +0200 Subject: [mapserver-users] What dependency for SVG symbols In-Reply-To: <56b1ea27-c817-58f9-a55c-35a2182fafb6@gatewaygeomatics.com> References: <56b1ea27-c817-58f9-a55c-35a2182fafb6@gatewaygeomatics.com> Message-ID: Hi Jeff, issue the ticket. I like to know from you what you guess is preferrable to use for SVG symbols , the Lib-cairo or the RSVG. Thx. 2017-05-02 1:14 GMT+02:00 Jeff McKenna : > On 2017-05-01 6:16 PM, Andrea Peri wrote: >> >> Hi, >> I testedthe svg work correctly using the RSVG. >> So is wrong the documentation. >> >> Should I open a ticket ? >> >> > > Yes please, inside the /mapserver/docs/ repository. (for MS4W I recently > built libsvg and libsvg-cairo, but not RSVG) -jeff > > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From sushrut.shivaswamy at gmail.com Tue May 2 04:44:10 2017 From: sushrut.shivaswamy at gmail.com (Sushrut Shivaswamy) Date: Tue, 2 May 2017 17:14:10 +0530 Subject: [mapserver-users] POST support for GetMap requests Message-ID: Hey, I have a requirement to style a vector layer without polluting the layer definition in the map file with classobjects and such. The method I have adopted is to use the SLD_Body parameter of a WMS GetMap request to receive the styled images. This has worked so far but now the size of the SLD has grown so much that exceeds the maximum number of characters permitted in a url. So I can no longer send my SLD as a part of the GET request. My SLD request till now was as follows *http://localhost:8000/ cgi-bin/mapserv?service=wms&request=GetMap&version=1.0.0&layers=namespace:layer&sld_body=sld_as_string..* To overcome this problem I believe POST rquests are a good solution since the SLD can then be sent as a part of the request body. However, I am unable to execute a POST GetMap request. The request body is as follows. world -13024 -5550 image/png 64 64 On sending this POST request to mapserver I get the error *msCalculateScale(): General error message. Invalid image width or height.* Even though the width and height has been specified in the XML. The above XML works with Geoserver. Does Mapserver support POST GetMap requests? Regards, Sushrut Shivaswamy -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.wagstaff at lineone.net Tue May 2 05:17:18 2017 From: steve.wagstaff at lineone.net (Steve Wagstaff) Date: Tue, 2 May 2017 13:17:18 +0100 Subject: [mapserver-users] PropertyIsLIke WFS filter with SQL Server Message-ID: <00ea01d2c33e$0b021440$21063cc0$@lineone.net> Hi We have just upgraded to MS 7.04 from 6.4 (64bit on Win 2012/IIS8) and are having an issue with the PropertyIsLike WFS filter - but only when we use it against SQL Server data. If we issue a filter as so: &filter=ADDRESS*57 high * ..I get a very long running query which eventually returns some records (but not the correct ones) - it appears to be doing a select all with no where clause. I get this in the MapServer log files - which looks like MapServer cannot from a query for SQL server with Like. [Tue May 02 10:52:27 2017].755000 msWFSParseRequest(): WFS post request: ADDRESS*57 high* [Tue May 02 10:52:27 2017].755000 FLTLayerApplyPlainFilterToLayer(): ("[ADDRESS]" ~* ".*57 high.*"), rect=510500.000000104,165499.999998641,539172.000000336,194171.999999644 [Tue May 02 10:52:27 2017].755000 Filter could not be translated to OGR filter [Tue May 02 10:52:53 2017].380000 mapserv request processing time (msLoadMap not incl.): 25.625s If I use a PropertyIsEqualTo filter I have no problem. If I use the PropertyIsLike against the same data exported to a shape file again it works fine. The exact same filters work fine 6.4. Any help/pointers much appreciated! GDAL with the 7.04 is 2.1.03 (all from gis internals) Steve W -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Tue May 2 05:36:54 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 2 May 2017 14:36:54 +0200 Subject: [mapserver-users] Allow request in http and https Message-ID: Hi, I need to set a mapserver wms to responde both on an http url and on an https url. I try seting two time the wms_onlineresource value: "wms_onlineresource" "http://my-server/...." "wms_onlineresource" "https://my-server/...." But the getcapabilites response oonly the second value. Is possible to set two url in the wms_onlineresource ? Many thx. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From steve.lime at state.mn.us Tue May 2 06:16:34 2017 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 2 May 2017 13:16:34 +0000 Subject: [mapserver-users] Allow request in http and https In-Reply-To: References: Message-ID: Can you use? "wms_onlineresource" "//my-server/...." Steve ________________________________ From: mapserver-users on behalf of Andrea Peri Sent: Tuesday, May 2, 2017 7:36:54 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Allow request in http and https Hi, I need to set a mapserver wms to responde both on an http url and on an https url. I try seting two time the wms_onlineresource value: "wms_onlineresource" "http://my-server/...." "wms_onlineresource" "https://my-server/...." But the getcapabilites response oonly the second value. Is possible to set two url in the wms_onlineresource ? Many thx. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ 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 Tue May 2 07:38:38 2017 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 2 May 2017 14:38:38 +0000 Subject: [mapserver-users] Allow request in http and https Message-ID: <5341624a75674aad870b10b5f8c2a209@C119S212VM022.msvyvi.vaha.local> Hi, By looking at the WMS 1.3.0 standard OnlineResource is is sequence and I can't see anywhere maxOccurs="unbounded". I am not sure but doesn't it mean that there must be exactly one OnlineResource? I used https://www.w3schools.com/xml/el_sequence.asp as reference and snippet from WMS 1.3.0 GetCapabilities schema is here: The URL prefix for the HTTP "Get" request method. -Jukka Rahkonen- -----Alkuper?inen viesti----- Andrea Peri wrote: [mapserver-users] Allow request in http and https Hi, I need to set a mapserver wms to responde both on an http url and on an https url. I try seting two time the wms_onlineresource value: "wms_onlineresource" "http://my-server/...." "wms_onlineresource" "https://my-server/...." But the getcapabilites response oonly the second value. Is possible to set two url in the wms_onlineresource ? Many thx. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From tom.kralidis at canada.ca Tue May 2 07:42:30 2017 From: tom.kralidis at canada.ca (Kralidis, Tom (EC)) Date: Tue, 2 May 2017 14:42:30 +0000 Subject: [mapserver-users] Allow request in http and https In-Reply-To: <5341624a75674aad870b10b5f8c2a209@C119S212VM022.msvyvi.vaha.local> References: <5341624a75674aad870b10b5f8c2a209@C119S212VM022.msvyvi.vaha.local> Message-ID: Correct, wms:OnlineResource is allowed once and only once [1]. ..Tom [1] http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd > -----Original Message----- > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On > Behalf Of Rahkonen Jukka (MML) > Sent: 02 May 2017 10:39 > To: Andrea Peri; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Allow request in http and https > > Hi, > > By looking at the WMS 1.3.0 standard OnlineResource is is sequence and I can't > see anywhere maxOccurs="unbounded". I am not sure but doesn't it mean that > there must be exactly one OnlineResource? > > I used https://www.w3schools.com/xml/el_sequence.asp as reference and > snippet from WMS 1.3.0 GetCapabilities schema is here: > > > > > The URL prefix for the HTTP "Get" request method. > > > > > > > > > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > Andrea Peri wrote: > [mapserver-users] Allow request in http and https > > Hi, > I need to set a mapserver wms to responde both on an http url and on an https > url. > > I try seting two time the > wms_onlineresource value: > > "wms_onlineresource" "http://my-server/...." > "wms_onlineresource" "https://my-server/...." > > But the getcapabilites response oonly the second value. > > Is possible to set two url in the wms_onlineresource ? > > Many thx. > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at maanmittauslaitos.fi Tue May 2 07:50:12 2017 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 2 May 2017 14:50:12 +0000 Subject: [mapserver-users] Allow request in http and https Message-ID: <82a8f3f801bb4a4cbbf9ba362ca8681c@C119S212VM022.msvyvi.vaha.local> Hi, Actually your Mapserver will respond both to http and https requests if your network let them both come through. OnlineResourse has no effect at all for Mapserver, you can set it to http://foo at bar if you wish. But WMS clients may have difficulties if they really interpret the GetMap URL and use it for further operations. QGIS and OpenJUMP have an override for using the same base URL that was used for doing GetCapabililies and that might suit for your case. OpenLayers, Leaflet etc. don't even parse GetCapabilities and http://foo at bar is totally OK for them. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Andrea Peri L?hetetty: 2. toukokuuta 2017 15:37 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Allow request in http and https Hi, I need to set a mapserver wms to responde both on an http url and on an https url. I try seting two time the wms_onlineresource value: "wms_onlineresource" "http://my-server/...." "wms_onlineresource" "https://my-server/...." But the getcapabilites response oonly the second value. Is possible to set two url in the wms_onlineresource ? Many thx. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Tue May 2 10:03:15 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 2 May 2017 19:03:15 +0200 Subject: [mapserver-users] Allow request in http and https In-Reply-To: References: Message-ID: I don't know, but I will try it. :) Thx. A. 2017-05-02 15:16 GMT+02:00 Lime, Steve D (MNIT) : > Can you use? > > > "wms_onlineresource" "//my-server/...." > > > Steve > > ________________________________ > From: mapserver-users on behalf of > Andrea Peri > Sent: Tuesday, May 2, 2017 7:36:54 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Allow request in http and https > > Hi, > I need to set a mapserver wms to responde both on an http url and on > an https url. > > I try seting two time the > wms_onlineresource value: > > "wms_onlineresource" "http://my-server/...." > "wms_onlineresource" "https://my-server/...." > > But the getcapabilites response oonly the second value. > > Is possible to set two url in the wms_onlineresource ? > > Many thx. > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From aperi2007 at gmail.com Tue May 2 10:14:02 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 2 May 2017 19:14:02 +0200 Subject: [mapserver-users] Allow request in http and https In-Reply-To: <82a8f3f801bb4a4cbbf9ba362ca8681c@C119S212VM022.msvyvi.vaha.local> References: <82a8f3f801bb4a4cbbf9ba362ca8681c@C119S212VM022.msvyvi.vaha.local> Message-ID: Hi Jukka, my trouble come from a webapplication using geotools lbrary. Seem that the geotools when try to connect to a WFS server (and I guess also to the WMS) start with a getcapabilities request and remap the getmap using it. We have many portal using http. Now there is a new portal using https, and it should access to the same wms services. So I have a portal using https that is using also http protocol. As I understand the web browser refuse to allow an http request when the father page is coming from an https request blocking them. A. 2017-05-02 16:50 GMT+02:00 Rahkonen Jukka (MML) : > Hi, > > Actually your Mapserver will respond both to http and https requests if your network let them both come through. OnlineResourse has no effect at all for Mapserver, you can set it to http://foo at bar if you wish. But WMS clients may have difficulties if they really interpret the GetMap URL and use it for further operations. QGIS and OpenJUMP have an override for using the same base URL that was used for doing GetCapabililies and that might suit for your case. OpenLayers, Leaflet etc. don't even parse GetCapabilities and http://foo at bar is totally OK for them. > > -Jukka- > > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Andrea Peri > L?hetetty: 2. toukokuuta 2017 15:37 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Allow request in http and https > > Hi, > I need to set a mapserver wms to responde both on an http url and on an https url. > > I try seting two time the > wms_onlineresource value: > > "wms_onlineresource" "http://my-server/...." > "wms_onlineresource" "https://my-server/...." > > But the getcapabilites response oonly the second value. > > Is possible to set two url in the wms_onlineresource ? > > Many thx. > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From richard.greenwood at gmail.com Tue May 2 12:14:25 2017 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 2 May 2017 13:14:25 -0600 Subject: [mapserver-users] Allow request in http and https In-Reply-To: References: <82a8f3f801bb4a4cbbf9ba362ca8681c@C119S212VM022.msvyvi.vaha.local> Message-ID: If you really have to have two different wms_onlineresource and if Steve's suggestion to leave out the protocol didn't work, then you could create two ows URLs and use the map file's INCLUDE directive to refer to the same map file just using different wms_onlineresource in the two. On Tue, May 2, 2017 at 11:14 AM, Andrea Peri wrote: > Hi Jukka, > my trouble come from a webapplication using geotools lbrary. > Seem that the geotools when try to connect to a WFS server (and I > guess also to the WMS) > start with a getcapabilities request and remap the getmap using it. > > > We have many portal using http. > Now there is a new portal using https, > and it should access to the same wms services. > > So I have a portal using https that is using also http protocol. > As I understand the web browser refuse to allow an http request when > the father page is coming from an https request blocking them. > > A. > > > 2017-05-02 16:50 GMT+02:00 Rahkonen Jukka (MML) > : > > Hi, > > > > Actually your Mapserver will respond both to http and https requests if > your network let them both come through. OnlineResourse has no effect at > all for Mapserver, you can set it to http://foo at bar if you wish. But WMS > clients may have difficulties if they really interpret the GetMap URL and > use it for further operations. QGIS and OpenJUMP have an override for using > the same base URL that was used for doing GetCapabililies and that might > suit for your case. OpenLayers, Leaflet etc. don't even parse > GetCapabilities and http://foo at bar is totally OK for them. > > > > -Jukka- > > > > > > > > -----Alkuper?inen viesti----- > > L?hett?j?: mapserver-users [mailto:mapserver-users- > bounces at lists.osgeo.org] Puolesta Andrea Peri > > L?hetetty: 2. toukokuuta 2017 15:37 > > Vastaanottaja: mapserver-users at lists.osgeo.org > > Aihe: [mapserver-users] Allow request in http and https > > > > Hi, > > I need to set a mapserver wms to responde both on an http url and on an > https url. > > > > I try seting two time the > > wms_onlineresource value: > > > > "wms_onlineresource" "http://my-server/...." > > "wms_onlineresource" "https://my-server/...." > > > > But the getcapabilites response oonly the second value. > > > > Is possible to set two url in the wms_onlineresource ? > > > > Many thx. > > > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Tue May 2 15:26:03 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 3 May 2017 00:26:03 +0200 Subject: [mapserver-users] Allow request in http and https In-Reply-To: References: <82a8f3f801bb4a4cbbf9ba362ca8681c@C119S212VM022.msvyvi.vaha.local> Message-ID: mmm... Perhaps for the resource-online url could be better a setting like: "ows_resourceonline" "auto" Where "auto" mean that the mapserver retrieve the url (and the protocol used) from the request url of the getcapability request. This was the better solution. Infact if the client request on an https protocol it will return a capability files with all the request in https. And if the client request using an http protocol it will return a capability with http protocol. 2017-05-02 21:14 GMT+02:00 Richard Greenwood : > If you really have to have two different wms_onlineresource and if Steve's > suggestion to leave out the protocol didn't work, then you could create two > ows URLs and use the map file's INCLUDE directive to refer to the same map > file just using different wms_onlineresource in the two. > > On Tue, May 2, 2017 at 11:14 AM, Andrea Peri wrote: >> >> Hi Jukka, >> my trouble come from a webapplication using geotools lbrary. >> Seem that the geotools when try to connect to a WFS server (and I >> guess also to the WMS) >> start with a getcapabilities request and remap the getmap using it. >> >> >> We have many portal using http. >> Now there is a new portal using https, >> and it should access to the same wms services. >> >> So I have a portal using https that is using also http protocol. >> As I understand the web browser refuse to allow an http request when >> the father page is coming from an https request blocking them. >> >> A. >> >> >> 2017-05-02 16:50 GMT+02:00 Rahkonen Jukka (MML) >> : >> > Hi, >> > >> > Actually your Mapserver will respond both to http and https requests if >> > your network let them both come through. OnlineResourse has no effect at all >> > for Mapserver, you can set it to http://foo at bar if you wish. But WMS clients >> > may have difficulties if they really interpret the GetMap URL and use it for >> > further operations. QGIS and OpenJUMP have an override for using the same >> > base URL that was used for doing GetCapabililies and that might suit for >> > your case. OpenLayers, Leaflet etc. don't even parse GetCapabilities and >> > http://foo at bar is totally OK for them. >> > >> > -Jukka- >> > >> > >> > >> > -----Alkuper?inen viesti----- >> > L?hett?j?: mapserver-users >> > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Andrea Peri >> > L?hetetty: 2. toukokuuta 2017 15:37 >> > Vastaanottaja: mapserver-users at lists.osgeo.org >> > Aihe: [mapserver-users] Allow request in http and https >> > >> > Hi, >> > I need to set a mapserver wms to responde both on an http url and on an >> > https url. >> > >> > I try seting two time the >> > wms_onlineresource value: >> > >> > "wms_onlineresource" "http://my-server/...." >> > "wms_onlineresource" "https://my-server/...." >> > >> > But the getcapabilites response oonly the second value. >> > >> > Is possible to set two url in the wms_onlineresource ? >> > >> > Many thx. >> > >> > >> > -- >> > ----------------- >> > Andrea Peri >> > . . . . . . . . . >> > qwerty ????? >> > ----------------- >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From tom.kralidis at canada.ca Tue May 2 16:31:48 2017 From: tom.kralidis at canada.ca (Kralidis, Tom (EC)) Date: Tue, 2 May 2017 23:31:48 +0000 Subject: [mapserver-users] Allow request in http and https In-Reply-To: References: <82a8f3f801bb4a4cbbf9ba362ca8681c@C119S212VM022.msvyvi.vaha.local> Message-ID: <89d40075241648b6a0dc8b004ec869d4@PEVDACDEXC020.birch.int.bell.ca> What happens when you do _not_ set ows_onlineresource? I think MapServer will automagically determine the URL? > -----Original Message----- > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On > Behalf Of Andrea Peri > Sent: 02 May 2017 18:26 > To: Richard Greenwood > Cc: Mapserver-Users (mapserver-users at lists.osgeo.org) > Subject: Re: [mapserver-users] Allow request in http and https > > mmm... > > Perhaps for the resource-online url could be better a setting like: > > "ows_resourceonline" "auto" > > Where "auto" mean that the mapserver retrieve the url (and the protocol used) > from the request url of the getcapability request. > > This was the better solution. > Infact if the client request on an https protocol it will return a capability files > with all the request in https. > And if the client request using an http protocol it will return a capability with > http protocol. > > > > 2017-05-02 21:14 GMT+02:00 Richard Greenwood > : > > If you really have to have two different wms_onlineresource and if > > Steve's suggestion to leave out the protocol didn't work, then you > > could create two ows URLs and use the map file's INCLUDE directive to > > refer to the same map file just using different wms_onlineresource in the > two. > > > > On Tue, May 2, 2017 at 11:14 AM, Andrea Peri > wrote: > >> > >> Hi Jukka, > >> my trouble come from a webapplication using geotools lbrary. > >> Seem that the geotools when try to connect to a WFS server (and I > >> guess also to the WMS) start with a getcapabilities request and remap > >> the getmap using it. > >> > >> > >> We have many portal using http. > >> Now there is a new portal using https, and it should access to the > >> same wms services. > >> > >> So I have a portal using https that is using also http protocol. > >> As I understand the web browser refuse to allow an http request when > >> the father page is coming from an https request blocking them. > >> > >> A. > >> > >> > >> 2017-05-02 16:50 GMT+02:00 Rahkonen Jukka (MML) > >> : > >> > Hi, > >> > > >> > Actually your Mapserver will respond both to http and https > >> > requests if your network let them both come through. OnlineResourse > >> > has no effect at all for Mapserver, you can set it to > >> > http://foo at bar if you wish. But WMS clients may have difficulties > >> > if they really interpret the GetMap URL and use it for further > >> > operations. QGIS and OpenJUMP have an override for using the same > >> > base URL that was used for doing GetCapabililies and that might > >> > suit for your case. OpenLayers, Leaflet etc. don't even parse > GetCapabilities and http://foo at bar is totally OK for them. > >> > > >> > -Jukka- > >> > > >> > > >> > > >> > -----Alkuper?inen viesti----- > >> > L?hett?j?: mapserver-users > >> > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Andrea > >> > Peri > >> > L?hetetty: 2. toukokuuta 2017 15:37 > >> > Vastaanottaja: mapserver-users at lists.osgeo.org > >> > Aihe: [mapserver-users] Allow request in http and https > >> > > >> > Hi, > >> > I need to set a mapserver wms to responde both on an http url and > >> > on an https url. > >> > > >> > I try seting two time the > >> > wms_onlineresource value: > >> > > >> > "wms_onlineresource" "http://my-server/...." > >> > "wms_onlineresource" "https://my-server/...." > >> > > >> > But the getcapabilites response oonly the second value. > >> > > >> > Is possible to set two url in the wms_onlineresource ? > >> > > >> > Many thx. > >> > > >> > > >> > -- > >> > ----------------- > >> > Andrea Peri > >> > . . . . . . . . . > >> > qwerty ????? > >> > ----------------- > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > https://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > >> > >> -- > >> ----------------- > >> Andrea Peri > >> . . . . . . . . . > >> qwerty ????? > >> ----------------- > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > -- > > Richard W. Greenwood, PLS > > www.greenwoodmap.com > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Tue May 2 22:34:39 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 3 May 2017 07:34:39 +0200 Subject: [mapserver-users] Allow request in http and https In-Reply-To: References: Message-ID: Hi Steve, thx for hint, I tested it, but unfortunatelly it not work well. It seem dont work well with qgis 2.18. The getcapabilities work, but when try to retrieve maps using getmap , it don't work. of course it work if I check ignore getmap url, but not all the users of our wmss know this option and are so skilled to understand what is happening. 2017-05-02 15:16 GMT+02:00 Lime, Steve D (MNIT) : > Can you use? > > > "wms_onlineresource" "//my-server/...." > > > Steve > > ________________________________ > From: mapserver-users on behalf of > Andrea Peri > Sent: Tuesday, May 2, 2017 7:36:54 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Allow request in http and https > > Hi, > I need to set a mapserver wms to responde both on an http url and on > an https url. > > I try seting two time the > wms_onlineresource value: > > "wms_onlineresource" "http://my-server/...." > "wms_onlineresource" "https://my-server/...." > > But the getcapabilites response oonly the second value. > > Is possible to set two url in the wms_onlineresource ? > > Many thx. > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From aperi2007 at gmail.com Tue May 2 22:47:21 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 3 May 2017 07:47:21 +0200 Subject: [mapserver-users] Allow request in http and https In-Reply-To: <89d40075241648b6a0dc8b004ec869d4@PEVDACDEXC020.birch.int.bell.ca> References: <82a8f3f801bb4a4cbbf9ba362ca8681c@C119S212VM022.msvyvi.vaha.local> <89d40075241648b6a0dc8b004ec869d4@PEVDACDEXC020.birch.int.bell.ca> Message-ID: Hi Tom, thx for hint. I forgot totally tht the onlineresource mapffile parameter was otionally. Removeing it , the system work as I need. Infact the mapserver retrieve the url from the request url. Before of all I notice that the mapserver use before the "wms_service_onlineresource" and if it is not available use the "wms_onlineresource". So I remove both and effectivelly the mapserver produce automatically the url. It is what I need to support our two kind of portals protocols (http and https) I notice only one residual problem. In the wms_onlineresource parameter we put some extra parameter: like (for example) the map_resolution parameter "wms_onlineresource" "http://myserver.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsambamm&map_resolution=91&" we need it to increase the resolution of all the getmap request of the qgis clients. removing the wms_onlineresource mean that the getmap requests are all resolved using the resolution 74dpi and this mean a lower quality level. The perfect solution so will be to hvae a postfix parameter to define an append string for the urls. Something like this: "wms_onlineresource_postfix" "&map_resolution=91&" to have a result URL with added the string defined in the wms_onlineresource. http://myserver.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsambamm&map_resolution=91& A. 2017-05-03 1:31 GMT+02:00 Kralidis, Tom (EC) : > What happens when you do _not_ set ows_onlineresource? I think MapServer > will automagically determine the URL? > > > >> -----Original Message----- >> From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On >> Behalf Of Andrea Peri >> Sent: 02 May 2017 18:26 >> To: Richard Greenwood >> Cc: Mapserver-Users (mapserver-users at lists.osgeo.org) >> Subject: Re: [mapserver-users] Allow request in http and https >> >> mmm... >> >> Perhaps for the resource-online url could be better a setting like: >> >> "ows_resourceonline" "auto" >> >> Where "auto" mean that the mapserver retrieve the url (and the protocol used) >> from the request url of the getcapability request. >> >> This was the better solution. >> Infact if the client request on an https protocol it will return a capability files >> with all the request in https. >> And if the client request using an http protocol it will return a capability with >> http protocol. >> >> >> >> 2017-05-02 21:14 GMT+02:00 Richard Greenwood >> : >> > If you really have to have two different wms_onlineresource and if >> > Steve's suggestion to leave out the protocol didn't work, then you >> > could create two ows URLs and use the map file's INCLUDE directive to >> > refer to the same map file just using different wms_onlineresource in the >> two. >> > >> > On Tue, May 2, 2017 at 11:14 AM, Andrea Peri >> wrote: >> >> >> >> Hi Jukka, >> >> my trouble come from a webapplication using geotools lbrary. >> >> Seem that the geotools when try to connect to a WFS server (and I >> >> guess also to the WMS) start with a getcapabilities request and remap >> >> the getmap using it. >> >> >> >> >> >> We have many portal using http. >> >> Now there is a new portal using https, and it should access to the >> >> same wms services. >> >> >> >> So I have a portal using https that is using also http protocol. >> >> As I understand the web browser refuse to allow an http request when >> >> the father page is coming from an https request blocking them. >> >> >> >> A. >> >> >> >> >> >> 2017-05-02 16:50 GMT+02:00 Rahkonen Jukka (MML) >> >> : >> >> > Hi, >> >> > >> >> > Actually your Mapserver will respond both to http and https >> >> > requests if your network let them both come through. OnlineResourse >> >> > has no effect at all for Mapserver, you can set it to >> >> > http://foo at bar if you wish. But WMS clients may have difficulties >> >> > if they really interpret the GetMap URL and use it for further >> >> > operations. QGIS and OpenJUMP have an override for using the same >> >> > base URL that was used for doing GetCapabililies and that might >> >> > suit for your case. OpenLayers, Leaflet etc. don't even parse >> GetCapabilities and http://foo at bar is totally OK for them. >> >> > >> >> > -Jukka- >> >> > >> >> > >> >> > >> >> > -----Alkuper?inen viesti----- >> >> > L?hett?j?: mapserver-users >> >> > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Andrea >> >> > Peri >> >> > L?hetetty: 2. toukokuuta 2017 15:37 >> >> > Vastaanottaja: mapserver-users at lists.osgeo.org >> >> > Aihe: [mapserver-users] Allow request in http and https >> >> > >> >> > Hi, >> >> > I need to set a mapserver wms to responde both on an http url and >> >> > on an https url. >> >> > >> >> > I try seting two time the >> >> > wms_onlineresource value: >> >> > >> >> > "wms_onlineresource" "http://my-server/...." >> >> > "wms_onlineresource" "https://my-server/...." >> >> > >> >> > But the getcapabilites response oonly the second value. >> >> > >> >> > Is possible to set two url in the wms_onlineresource ? >> >> > >> >> > Many thx. >> >> > >> >> > >> >> > -- >> >> > ----------------- >> >> > Andrea Peri >> >> > . . . . . . . . . >> >> > qwerty ????? >> >> > ----------------- >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > mapserver-users at lists.osgeo.org >> >> > https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> >> >> -- >> >> ----------------- >> >> Andrea Peri >> >> . . . . . . . . . >> >> qwerty ????? >> >> ----------------- >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> > >> > >> > -- >> > Richard W. Greenwood, PLS >> > www.greenwoodmap.com >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From jukka.rahkonen at maanmittauslaitos.fi Wed May 3 06:12:10 2017 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 3 May 2017 13:12:10 +0000 Subject: [mapserver-users] Default GeoTIFF imagemode in WCS 2.0.1 Message-ID: <6e6cc82e7cc64a83af9547d865a6190d@C119S212VM022.msvyvi.vaha.local> Hi, Documentation http://www.mapserver.org/ogc/wcs_server.html claims that the default value of "wcs_imagemode" is FLOAT32: If no default and specific values are given for the interval or significant figures metadata field, the a default is generated from the "imagemode" field, which itself defaults to FLOAT32. I have been playing a bit with 4 band RGB-NIR images and after some tests and thinking I have now a feeling that Mapserver does not behave as documented. With no self-written outputformat it looks like the image/tiff is using IMAGEMODE RGB, and also that setting the "wcs_imagemode" in metadata has no effect at all. See https://github.com/mapserver/mapserver/issues/5415 for more details. If there happens to be just some small typo in the code it would be nice to get is fixed before Mapserver 7.0.5 release. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed May 3 06:49:15 2017 From: Steve.Toutant at inspq.qc.ca (Steve Toutant) Date: Wed, 3 May 2017 09:49:15 -0400 Subject: [mapserver-users] Allow request in http and https In-Reply-To: References: <82a8f3f801bb4a4cbbf9ba362ca8681c@C119S212VM022.msvyvi.vaha.local> <89d40075241648b6a0dc8b004ec869d4@PEVDACDEXC020.birch.int.bell.ca> Message-ID: Setting the default resolution at the map level in the mapfile would do that? http://mapserver.org/mapfile/map.html RESOLUTION default is 72 De : Andrea Peri A : "Kralidis, Tom (EC)" Cc : "Mapserver-Users \(mapserver-users at lists.osgeo.org\)" Date : 2017-05-03 01:47 Objet : Re: [mapserver-users] Allow request in http and https Envoy? par : "mapserver-users" Hi Tom, thx for hint. I forgot totally tht the onlineresource mapffile parameter was otionally. Removeing it , the system work as I need. Infact the mapserver retrieve the url from the request url. Before of all I notice that the mapserver use before the "wms_service_onlineresource" and if it is not available use the "wms_onlineresource". So I remove both and effectivelly the mapserver produce automatically the url. It is what I need to support our two kind of portals protocols (http and https) I notice only one residual problem. In the wms_onlineresource parameter we put some extra parameter: like (for example) the map_resolution parameter "wms_onlineresource" " http://myserver.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsambamm&map_resolution=91& " we need it to increase the resolution of all the getmap request of the qgis clients. removing the wms_onlineresource mean that the getmap requests are all resolved using the resolution 74dpi and this mean a lower quality level. The perfect solution so will be to hvae a postfix parameter to define an append string for the urls. Something like this: "wms_onlineresource_postfix" "&map_resolution=91&" to have a result URL with added the string defined in the wms_onlineresource. http://myserver.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsambamm&map_resolution=91& A. 2017-05-03 1:31 GMT+02:00 Kralidis, Tom (EC) : > What happens when you do _not_ set ows_onlineresource? I think MapServer > will automagically determine the URL? > > > >> -----Original Message----- >> From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On >> Behalf Of Andrea Peri >> Sent: 02 May 2017 18:26 >> To: Richard Greenwood >> Cc: Mapserver-Users (mapserver-users at lists.osgeo.org) >> Subject: Re: [mapserver-users] Allow request in http and https >> >> mmm... >> >> Perhaps for the resource-online url could be better a setting like: >> >> "ows_resourceonline" "auto" >> >> Where "auto" mean that the mapserver retrieve the url (and the protocol used) >> from the request url of the getcapability request. >> >> This was the better solution. >> Infact if the client request on an https protocol it will return a capability files >> with all the request in https. >> And if the client request using an http protocol it will return a capability with >> http protocol. >> >> >> >> 2017-05-02 21:14 GMT+02:00 Richard Greenwood >> : >> > If you really have to have two different wms_onlineresource and if >> > Steve's suggestion to leave out the protocol didn't work, then you >> > could create two ows URLs and use the map file's INCLUDE directive to >> > refer to the same map file just using different wms_onlineresource in the >> two. >> > >> > On Tue, May 2, 2017 at 11:14 AM, Andrea Peri >> wrote: >> >> >> >> Hi Jukka, >> >> my trouble come from a webapplication using geotools lbrary. >> >> Seem that the geotools when try to connect to a WFS server (and I >> >> guess also to the WMS) start with a getcapabilities request and remap >> >> the getmap using it. >> >> >> >> >> >> We have many portal using http. >> >> Now there is a new portal using https, and it should access to the >> >> same wms services. >> >> >> >> So I have a portal using https that is using also http protocol. >> >> As I understand the web browser refuse to allow an http request when >> >> the father page is coming from an https request blocking them. >> >> >> >> A. >> >> >> >> >> >> 2017-05-02 16:50 GMT+02:00 Rahkonen Jukka (MML) >> >> : >> >> > Hi, >> >> > >> >> > Actually your Mapserver will respond both to http and https >> >> > requests if your network let them both come through. OnlineResourse >> >> > has no effect at all for Mapserver, you can set it to >> >> > http://foo at bar if you wish. But WMS clients may have difficulties >> >> > if they really interpret the GetMap URL and use it for further >> >> > operations. QGIS and OpenJUMP have an override for using the same >> >> > base URL that was used for doing GetCapabililies and that might >> >> > suit for your case. OpenLayers, Leaflet etc. don't even parse >> GetCapabilities and http://foo at bar is totally OK for them. >> >> > >> >> > -Jukka- >> >> > >> >> > >> >> > >> >> > -----Alkuper?inen viesti----- >> >> > L?hett?j?: mapserver-users >> >> > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Andrea >> >> > Peri >> >> > L?hetetty: 2. toukokuuta 2017 15:37 >> >> > Vastaanottaja: mapserver-users at lists.osgeo.org >> >> > Aihe: [mapserver-users] Allow request in http and https >> >> > >> >> > Hi, >> >> > I need to set a mapserver wms to responde both on an http url and >> >> > on an https url. >> >> > >> >> > I try seting two time the >> >> > wms_onlineresource value: >> >> > >> >> > "wms_onlineresource" "http://my-server/...." >> >> > "wms_onlineresource" "https://my-server/...." >> >> > >> >> > But the getcapabilites response oonly the second value. >> >> > >> >> > Is possible to set two url in the wms_onlineresource ? >> >> > >> >> > Many thx. >> >> > >> >> > >> >> > -- >> >> > ----------------- >> >> > Andrea Peri >> >> > . . . . . . . . . >> >> > qwerty ????? >> >> > ----------------- >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > mapserver-users at lists.osgeo.org >> >> > https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> >> >> -- >> >> ----------------- >> >> Andrea Peri >> >> . . . . . . . . . >> >> qwerty ????? >> >> ----------------- >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> > >> > >> > -- >> > Richard W. Greenwood, PLS >> > www.greenwoodmap.com >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ 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 richard.greenwood at gmail.com Wed May 3 08:57:13 2017 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 3 May 2017 09:57:13 -0600 Subject: [mapserver-users] POST support for GetMap requests In-Reply-To: References: Message-ID: This might help: https://gis.stackexchange.com/questions/232215/mapserver-wms-http-post-requests As mentioned in one of the answers I was able to do a GetMap request via POST using key=value. I did not try with XML. Rich On Tue, May 2, 2017 at 5:44 AM, Sushrut Shivaswamy < sushrut.shivaswamy at gmail.com> wrote: > Hey, > > I have a requirement to style a vector layer without polluting the layer > definition > in the map file with classobjects and such. > The method I have adopted is to use the SLD_Body parameter of a WMS GetMap > request > to receive the styled images. > This has worked so far but now the size of the SLD has grown so much that > exceeds the maximum number of characters permitted in a url. > So I can no longer send my SLD as a part of the GET request. > My SLD request till now was as follows > > *http://localhost:8000/ > cgi-bin/mapserv?service=wms&request=GetMap&version=1.0.0&layers=namespace:layer&sld_body=sld_as_string..* > > > To overcome this problem I believe POST rquests are a good solution since > the SLD can then be sent as a part of the request body. > > However, I am unable to execute a POST GetMap request. > > The request body is as follows. > > > xmlns:gml="http://www.opengis.net/gml" > version="1.3.0" service="WMS"> > > > world > > > > -13024 > -5550 > > > image/png > > 64 > 64 > > > > > > On sending this POST request to mapserver I get the error > *msCalculateScale(): General error message. Invalid image width or height.* > > Even though the width and height has been specified in the XML. > The above XML works with Geoserver. > Does Mapserver support POST GetMap requests? > > Regards, > Sushrut Shivaswamy > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kajod4u at yahoo.com Thu May 4 02:20:32 2017 From: kajod4u at yahoo.com (Kajod Sharma) Date: Thu, 4 May 2017 09:20:32 +0000 (UTC) Subject: [mapserver-users] Issue in using MapServer WFS Filter In-Reply-To: <1744810069.216296.1493287793131@mail.yahoo.com> References: <861495415.1625682.1493214164014.ref@mail.yahoo.com> <861495415.1625682.1493214164014@mail.yahoo.com> <1493236658858.48863@maanmittauslaitos.fi> <1744810069.216296.1493287793131@mail.yahoo.com> Message-ID: <762221262.2817836.1493889632144@mail.yahoo.com> Hi, Still no much progress on it, is there anyone who faced the similar problem and got the solution? Thanks. ?Regards, Kajod From: Kajod Sharma To: Rahkonen Jukka (MML) ; Jeff McKenna ; "mapserver-users at lists.osgeo.org" Sent: Thursday, 27 April 2017 11:09 AM Subject: Re: [mapserver-users] Issue in using MapServer WFS Filter Thanks for valuable response. I tried the solution suggested by you with putting NO for wfs_use_default_extent_for_getfeature. But still I can see default spatial filter in query. I even tried with passing BBOX (which I don't want) in filter, but it's taking the default one...it's wierd :( I'll try to get SQL for sample data and will share if I can. Thanks. Regards, Kajod From: Rahkonen Jukka (MML) To: Jeff McKenna ; "mapserver-users at lists.osgeo.org" Sent: Wednesday, 26 April 2017 8:57 PM Subject: Re: [mapserver-users] Issue in using MapServer WFS Filter Hi, When it comes to extra spatial filter, there is a brand new metadata item for switching it off. See http://mapserver.org/ogc/wfs_server.html wfs_use_default_extent_for_getfeature ? ? (Optional, since MapServer 7.0.4) Whether the MAP.EXTENT should be used in request to datasources in the absence of other spatial filter. This is the default behaviour, but this might affect performance in some use cases. In those cases, setting this item to NO will avoid he default spatial filter to be appended to the request. This is only implemented for OGR datasources. However, with PostGIS the && query is fast. The weird part in your log wkb_geometry && ST_GeomFromText('POLYGON((-0.999462804873474 -1.00102606014116,-0.999462804873474 -1.00102606014116,-0.999462804873474 -1.00102606014116,-0.999462804873474 -1.00102606014116,-0.999462804873474 -1.00102606014116)) means that the layer extent is not set correctly or Mapserver can't get is correctly from PostGIS which means data error on that side. For sure using the non-existing keyword wfs_boundingbox is not right. See what can be used from http://mapserver.org/ogc/wfs_server.html. When you play with spatial filters I recommend to start by using the native SRS for the feature type in filters. Non-native SRS in filter should be transformed by the server but it is error prone. Your filter is also also a little bit fuzzy. gml:coordinates belongs to GML2 and was removed from GML2. But you are using service version 2.0 that defaults to GML3. Is the meaning that your filter is GML2 or GML3? That is a big difference because in the first case the axis order of EPSG:4326 coordinates is longitude-latitude but in the latter it is latitude-longitude. Do you search near the equator or from somewhere in Europe? wkb_Geometry ? ? 0.112034,53.567972 ? One more thing, "wfs_srs" metadata takes only one SRS, not a list. If you send SQL for CREATE TABLE and for inserting one polygon into the table, and WFS filter you are using in your trials I thing I could find some time for testing. -Jukka Rahkonen- ________________________________________ Jeff McKenna? wrote: Re: [mapserver-users] Issue in using MapServer WFS Filter Hi Kajod, If you are using PostGIS, then I would set the 'wfs_extent' metadata at the layer level of the mapfile (it looks like you tried that, with an odd 'wfs_boundingbox' parameter): please review the syntax of the wfs_extent parameter at http://www.mapserver.org/ogc/wfs_server.html#layer-object Then, next step is always to execute a GetCapabilities request and go through that response and make sure there are no "WARNING" messages, and make the changes in the mapfile to remove those warnings if necessary... -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-04-26 10:42 AM, Kajod Sharma wrote: > Hi, > > Greetings! > > I hope this is a right platform to discuss my query regarding FILTER > applied on MapServer WFS. > > I'm new in this area and exploring some features of MapServer. I want to > use GetFeature request of WFS to get features applied on any location on > map. I'm using "MapServer version 7.0.4 (MS4W 3.2.1)" and trying to > apply filter "Contains" for it. > > I can see two problems when it applies Filter query on PostGIS: > > 1. It looks it adds an extra default geospatial filter in it while > making a query to PostGIS. This default spatial filter is not stopping > to return any result from PostGIS. Is there any way to exclude this > default filter? > 2. It seems Contains coordinates are not transformed properly according > to SRS of data in PostGIS. > > I've tries with different projection in map file and request message > with no success. > > Supporting data to give your input on my queries: > > WFS request > ************************* > Formatted Version: > > http://localhost/cgi-bin/mapserv.exe? > service=WFS& > map=C:/Data/MapServerWFSSample.map& > request=GetFeature& > version=2.0.0& > typeName=SampleLayer& > FILTER= xmlns:gml="http://www.opengis.net/gml" > xmlns:ms="http://mapserver.gis.umn.edu/mapserver"> >? <*Contains*> >? ? wkb_Geometry >? ? >? ? ? 0.112034,53.567972 >? ? >? > > ************************* > > PostGIS query [Could see in log file]: > ************************* > msPostGISLayerWhichShapes query: select > "Attribute1","Attribute2","Attribute3",encode(ST_AsBinary(ST_Force2D("wkb_geometry"),'NDR'),'hex') > as geom from SampleGeoDataTable where */wkb_geometry && > ST_GeomFromText('POLYGON((-0.999462804873474 > -1.00102606014116,-0.999462804873474 > -1.00102606014116,-0.999462804873474 > -1.00102606014116,-0.999462804873474 > -1.00102606014116,-0.999462804873474 > -1.00102606014116))',find_srid('','SampleGeoDataTable','wkb_geometry'))/* and > (st_contains(wkb_geometry,ST_GeomFromText('POINT > (*/7853690.3631838141000000 -5506204.5232773330000000/*)')) = TRUE) > ************************* > > Similar WFS query to GeoServer works perfectly. > > It would be very helpful if someone can help me on it. Thanks a lot in > advance. > > Map File looks like: > > ************************************************** > MAP >? NAME "Sample_WMS" >? CONFIG "PROJ_LIB" "C:\ms4w\proj\nad" >? CONFIG "MS_ERRORFILE" "C:/Data/ms_tmp/ms_error.txt" >? CONFIG "CPL_DEBUG" "ON" >? CONFIG "PROJ_DEBUG" "ON" >? STATUS ON >? PROJECTION >? ? "init=epsg:27700" >? END > >? WEB >? ? IMAGEPATH "C:/Data/ms_tmp/" >? ? IMAGEURL "/ms_tmp/" >? ? METADATA >? ? "wfs_enable_request" "*" >? ? "wfs_title"? ? ? ? "My Global Map WFS Server" >? ? "wfs_srs"? ? ? ? ? "EPSG:4326 EPSG:900913 EPSG:27700" >? ? "wfs_boundingbox"? ? "EPSG:27700 749.099975585938 -90036.5 > 660460.875 1227306.5" >? ? END >? END > >? LAYER >? ? NAME "SampleLayer" >? ? STATUS DEFAULT >? ? TYPE POLYGON >? ? PROJECTION >? ? "init=epsg:27700" >? ? END >? ? CONNECTIONTYPE POSTGIS >? ? CONNECTION "host=localhost port=5432 dbname=SampleGeoDataTable > user=postgres password=hahaha" >? ? DATA "wkb_geometry from SampleLayer" >? ? CLASS >? ? ? STYLE >? ? ? COLOR? ? ? 0 100 255 >? ? ? OUTLINECOLOR 0 0 0 >? ? ? END >? ? END > >? ? METADATA >? ? "wfs_enable_request" "*" >? ? "wfs_title"? ? ? ? "Sample WFS" >? ? "wfs_srs"? ? ? ? ? "EPSG:27700 EPSG:4326 EPSG:900913" >? ? "wfs_boundingbox"? ? "EPSG:27700 749.099975585938 -90036.5 > 660460.875 1227306.5" >? ? "gml_include_items" "all" >? ? END >? END > END > ************************************************** > > Regards, > Kajod > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Thu May 4 12:02:35 2017 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Thu, 4 May 2017 19:02:35 +0000 Subject: [mapserver-users] Issue in using MapServer WFS Filter In-Reply-To: <762221262.2817836.1493889632144@mail.yahoo.com> References: <861495415.1625682.1493214164014.ref@mail.yahoo.com> <861495415.1625682.1493214164014@mail.yahoo.com> <1493236658858.48863@maanmittauslaitos.fi> <1744810069.216296.1493287793131@mail.yahoo.com>, <762221262.2817836.1493889632144@mail.yahoo.com> Message-ID: <1493924556667.70341@maanmittauslaitos.fi> Hi, I saved the states.shp file from the demo data directory that installs with GeoServer into PostGIS. This query finds Kansas: http://localhost:8060/cgi-bin/mapserv.exe?service=WFS&map=c:\ms4w_data\apps\states_pg.map&request=GetFeature&version=2.0.0&typeNames=ms:states_pg&FILTER=%3CFilter%3E%3CContains%3E%3CPropertyName%3EmsGeometry%3C/PropertyName%3E%3Cgml:Point%20srsName=%22urn:ogc:def:crs:EPSG::4326%22%3E%3Cgml:coordinates%3E40,-100%3C/gml:coordinates%3E%3C/gml:Point%3E%3C/Contains%3E%3C/Filter%3E The SQL does contain the && comparison but is is not harmful. My mapfile: MAP NAME "testname" SIZE 800 800 EXTENT -180 -90 180 90 UNITS DD IMAGECOLOR 20 250 250 SHAPEPATH "c:\ms4w\tmp" IMAGETYPE "png" OUTPUTFORMAT NAME "geojson" DRIVER "OGR/GEOJSON" MIMETYPE "application/json; subtype=geojson" FORMATOPTION "STORAGE=stream" FORMATOPTION "FORM=SIMPLE" END WEB METADATA "ows_enable_request" "*" "wms_bbox_extended" "true" "wfs_return_srs_as_urn" "true" "ows_srs" "CRS:84 EPSG:4326 EPSG:32634 EPSG:3857 EPSG:2923" "wms_title" "MS 6.1.1 WMS from Spatialite" "wfs_title" "MS 6.1.1 WFS from Spatialite" "wfs_abstract" "????" "wfs_onlineresource" "http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w\apps\wms-wfs.map" # "wfs_use_default_extent_for_getfeature" "no" END END DEBUG 10 CONFIG "PROJ_LIB" "C:/ms4w/proj/nad" CONFIG "CPL_DEBUG" "ON" CONFIG "SQLITE_LIST_ALL_TABLES" "TRUE" CONFIG "MS_ERRORFILE" "c:/ms4w/tmp/debug.txt" PROJECTION "init=epsg:4326" END LAYER NAME "states_pg" STATUS DEFAULT CONNECTIONTYPE POSTGIS CONNECTION "dbname=xxx user=yyy" DATA "geom from states using unique gid using srid=4326" PROCESSING "CLOSE_CONNECTION=DEFER" TYPE POLYGON STATUS ON PROJECTION "init=epsg:4326" END OPACITY 50 METADATA "ows_title" "states_pg" ##REQUIRED "wfs_srs" "EPSG:4326" ## REQUIRED "gml_include_items" "all" ## Optional (serves all attributes for layer) # "gml_exclude_items" "STATE_NAME" "gml_featureid" "gid" ## REQUIRED "gml_types" "auto" "wfs_getfeature_formatlist" "geojson" END CLASS STYLE COLOR 100 200 100 OUTLINECOLOR 0 0 0 END LABEL COLOR 150 150 150 OUTLINECOLOR 255 255 255 TYPE bitmap SIZE small POSITION UL #TEXT "[STATE_FIPS]" PARTIALS FALSE END LABEL COLOR 150 150 150 OUTLINECOLOR 255 255 255 TYPE bitmap SIZE small POSITION LL #TEXT "[STATE_NAME]" PARTIALS FALSE END END END END -Jukka Rahkonen- ________________________________ L?hett?j?: Kajod Sharma L?hetetty: 4. toukokuuta 2017 12:20 Vastaanottaja: Rahkonen Jukka (MML); Jeff McKenna; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Issue in using MapServer WFS Filter Hi, Still no much progress on it, is there anyone who faced the similar problem and got the solution? Thanks. Regards, Kajod ________________________________ From: Kajod Sharma To: Rahkonen Jukka (MML) ; Jeff McKenna ; "mapserver-users at lists.osgeo.org" Sent: Thursday, 27 April 2017 11:09 AM Subject: Re: [mapserver-users] Issue in using MapServer WFS Filter Thanks for valuable response. I tried the solution suggested by you with putting NO for wfs_use_default_extent_for_getfeature. But still I can see default spatial filter in query. I even tried with passing BBOX (which I don't want) in filter, but it's taking the default one...it's wierd :( I'll try to get SQL for sample data and will share if I can. Thanks. Regards, Kajod ________________________________ From: Rahkonen Jukka (MML) To: Jeff McKenna ; "mapserver-users at lists.osgeo.org" Sent: Wednesday, 26 April 2017 8:57 PM Subject: Re: [mapserver-users] Issue in using MapServer WFS Filter Hi, When it comes to extra spatial filter, there is a brand new metadata item for switching it off. See http://mapserver.org/ogc/wfs_server.html wfs_use_default_extent_for_getfeature (Optional, since MapServer 7.0.4) Whether the MAP.EXTENT should be used in request to datasources in the absence of other spatial filter. This is the default behaviour, but this might affect performance in some use cases. In those cases, setting this item to NO will avoid he default spatial filter to be appended to the request. This is only implemented for OGR datasources. However, with PostGIS the && query is fast. The weird part in your log wkb_geometry && ST_GeomFromText('POLYGON((-0.999462804873474 -1.00102606014116,-0.999462804873474 -1.00102606014116,-0.999462804873474 -1.00102606014116,-0.999462804873474 -1.00102606014116,-0.999462804873474 -1.00102606014116)) means that the layer extent is not set correctly or Mapserver can't get is correctly from PostGIS which means data error on that side. For sure using the non-existing keyword wfs_boundingbox is not right. See what can be used from http://mapserver.org/ogc/wfs_server.html. When you play with spatial filters I recommend to start by using the native SRS for the feature type in filters. Non-native SRS in filter should be transformed by the server but it is error prone. Your filter is also also a little bit fuzzy. gml:coordinates belongs to GML2 and was removed from GML2. But you are using service version 2.0 that defaults to GML3. Is the meaning that your filter is GML2 or GML3? That is a big difference because in the first case the axis order of EPSG:4326 coordinates is longitude-latitude but in the latter it is latitude-longitude. Do you search near the equator or from somewhere in Europe? wkb_Geometry 0.112034,53.567972 One more thing, "wfs_srs" metadata takes only one SRS, not a list. If you send SQL for CREATE TABLE and for inserting one polygon into the table, and WFS filter you are using in your trials I thing I could find some time for testing. -Jukka Rahkonen- ________________________________________ Jeff McKenna wrote: Re: [mapserver-users] Issue in using MapServer WFS Filter Hi Kajod, If you are using PostGIS, then I would set the 'wfs_extent' metadata at the layer level of the mapfile (it looks like you tried that, with an odd 'wfs_boundingbox' parameter): please review the syntax of the wfs_extent parameter at http://www.mapserver.org/ogc/wfs_server.html#layer-object Then, next step is always to execute a GetCapabilities request and go through that response and make sure there are no "WARNING" messages, and make the changes in the mapfile to remove those warnings if necessary... -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-04-26 10:42 AM, Kajod Sharma wrote: > Hi, > > Greetings! > > I hope this is a right platform to discuss my query regarding FILTER > applied on MapServer WFS. > > I'm new in this area and exploring some features of MapServer. I want to > use GetFeature request of WFS to get features applied on any location on > map. I'm using "MapServer version 7.0.4 (MS4W 3.2.1)" and trying to > apply filter "Contains" for it. > > I can see two problems when it applies Filter query on PostGIS: > > 1. It looks it adds an extra default geospatial filter in it while > making a query to PostGIS. This default spatial filter is not stopping > to return any result from PostGIS. Is there any way to exclude this > default filter? > 2. It seems Contains coordinates are not transformed properly according > to SRS of data in PostGIS. > > I've tries with different projection in map file and request message > with no success. > > Supporting data to give your input on my queries: > > WFS request > ************************* > Formatted Version: > > http://localhost/cgi-bin/mapserv.exe? > service=WFS& > map=C:/Data/MapServerWFSSample.map& > request=GetFeature& > version=2.0.0& > typeName=SampleLayer& > FILTER= xmlns:gml="http://www.opengis.net/gml" > xmlns:ms="http://mapserver.gis.umn.edu/mapserver"> > <*Contains*> > wkb_Geometry > > 0.112034,53.567972 > > > > ************************* > > PostGIS query [Could see in log file]: > ************************* > msPostGISLayerWhichShapes query: select > "Attribute1","Attribute2","Attribute3",encode(ST_AsBinary(ST_Force2D("wkb_geometry"),'NDR'),'hex') > as geom from SampleGeoDataTable where */wkb_geometry && > ST_GeomFromText('POLYGON((-0.999462804873474 > -1.00102606014116,-0.999462804873474 > -1.00102606014116,-0.999462804873474 > -1.00102606014116,-0.999462804873474 > -1.00102606014116,-0.999462804873474 > -1.00102606014116))',find_srid('','SampleGeoDataTable','wkb_geometry'))/* and > (st_contains(wkb_geometry,ST_GeomFromText('POINT > (*/7853690.3631838141000000 -5506204.5232773330000000/*)')) = TRUE) > ************************* > > Similar WFS query to GeoServer works perfectly. > > It would be very helpful if someone can help me on it. Thanks a lot in > advance. > > Map File looks like: > > ************************************************** > MAP > NAME "Sample_WMS" > CONFIG "PROJ_LIB" "C:\ms4w\proj\nad" > CONFIG "MS_ERRORFILE" "C:/Data/ms_tmp/ms_error.txt" > CONFIG "CPL_DEBUG" "ON" > CONFIG "PROJ_DEBUG" "ON" > STATUS ON > PROJECTION > "init=epsg:27700" > END > > WEB > IMAGEPATH "C:/Data/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wfs_enable_request" "*" > "wfs_title" "My Global Map WFS Server" > "wfs_srs" "EPSG:4326 EPSG:900913 EPSG:27700" > "wfs_boundingbox" "EPSG:27700 749.099975585938 -90036.5 > 660460.875 1227306.5" > END > END > > LAYER > NAME "SampleLayer" > STATUS DEFAULT > TYPE POLYGON > PROJECTION > "init=epsg:27700" > END > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost port=5432 dbname=SampleGeoDataTable > user=postgres password=hahaha" > DATA "wkb_geometry from SampleLayer" > CLASS > STYLE > COLOR 0 100 255 > OUTLINECOLOR 0 0 0 > END > END > > METADATA > "wfs_enable_request" "*" > "wfs_title" "Sample WFS" > "wfs_srs" "EPSG:27700 EPSG:4326 EPSG:900913" > "wfs_boundingbox" "EPSG:27700 749.099975585938 -90036.5 > 660460.875 1227306.5" > "gml_include_items" "all" > END > END > END > ************************************************** > > Regards, > Kajod > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From kajod4u at yahoo.com Fri May 5 07:54:10 2017 From: kajod4u at yahoo.com (Kajod Sharma) Date: Fri, 5 May 2017 14:54:10 +0000 (UTC) Subject: [mapserver-users] Issue in using MapServer WFS Filter In-Reply-To: <2112106686.4150780.1493993589353@mail.yahoo.com> References: <861495415.1625682.1493214164014.ref@mail.yahoo.com> <861495415.1625682.1493214164014@mail.yahoo.com> <1493236658858.48863@maanmittauslaitos.fi> <1744810069.216296.1493287793131@mail.yahoo.com> <762221262.2817836.1493889632144@mail.yahoo.com> <1493924556667.70341@maanmittauslaitos.fi> <2112106686.4150780.1493993589353@mail.yahoo.com> Message-ID: <903526195.4160149.1493996050141@mail.yahoo.com> Hi Jukka Rahkonen, Thanks a lot for your help and doing this exercise. I really appreciate it, it's really nice group to get/share inputs on any issue on MapServer. Well I've found the solution now. I was missing EXTENT parameter in map file. After adding it according to source data, it started working. Thanks a lot Jukka. Just want to mention a point here, it still has a default spatial filter in PostGIS query, but this time with correct coordinates according to EXTENT defined in map file. Thanks again to all. Have a nice weekend! Cheers! Regards, Kajod From: Rahkonen Jukka (MML) To: Jeff McKenna ; "mapserver-users at lists.osgeo.org" ; Kajod Sharma Sent: Thursday, 4 May 2017 8:02 PM Subject: Re: [mapserver-users] Issue in using MapServer WFS Filter #yiv6196364185 --P{margin-top:0;margin-bottom:0;}#yiv6196364185 Hi, I saved the states.shp file from the demo data directory that installs with GeoServer into PostGIS. This query finds Kansas: http://localhost:8060/cgi-bin/mapserv.exe?service=WFS&map=c:\ms4w_data\apps\states_pg.map&request=GetFeature&version=2.0.0&typeNames=ms:states_pg&FILTER=%3CFilter%3E%3CContains%3E%3CPropertyName%3EmsGeometry%3C/PropertyName%3E%3Cgml:Point%20srsName=%22urn:ogc:def:crs:EPSG::4326%22%3E%3Cgml:coordinates%3E40,-100%3C/gml:coordinates%3E%3C/gml:Point%3E%3C/Contains%3E%3C/Filter%3E The SQL does contain the && comparison but is is not harmful. My mapfile: MAP NAME "testname" SIZE 800 800 EXTENT -180 -90 180 90 UNITS DD IMAGECOLOR 20 250 250 SHAPEPATH "c:\ms4w\tmp" IMAGETYPE "png" OUTPUTFORMAT ? NAME "geojson" ? DRIVER "OGR/GEOJSON" ? MIMETYPE "application/json; subtype=geojson" ? FORMATOPTION "STORAGE=stream" ? FORMATOPTION "FORM=SIMPLE" END WEB ??? METADATA ??????? "ows_enable_request" "*" ??????? "wms_bbox_extended" "true" ??????? "wfs_return_srs_as_urn" "true" ??????? "ows_srs" "CRS:84 EPSG:4326 EPSG:32634 EPSG:3857 EPSG:2923" ??????? "wms_title" "MS 6.1.1 WMS from Spatialite" ??????? "wfs_title" "MS 6.1.1 WFS from Spatialite" ??????? "wfs_abstract" "????" ??????? "wfs_onlineresource" "http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w\apps\wms-wfs.map" ?????? # "wfs_use_default_extent_for_getfeature" "no" ???? END END DEBUG 10 CONFIG "PROJ_LIB" "C:/ms4w/proj/nad" CONFIG "CPL_DEBUG" "ON" CONFIG "SQLITE_LIST_ALL_TABLES" "TRUE" CONFIG "MS_ERRORFILE" "c:/ms4w/tmp/debug.txt" PROJECTION "init=epsg:4326" END LAYER NAME "states_pg" STATUS DEFAULT CONNECTIONTYPE POSTGIS CONNECTION "dbname=xxx user=yyy" DATA "geom from states using unique gid using srid=4326" PROCESSING "CLOSE_CONNECTION=DEFER" TYPE POLYGON ??? STATUS ON ??? PROJECTION ??????? "init=epsg:4326" ??? END ??????????? OPACITY 50 ?METADATA ????? "ows_title"???????? "states_pg" ##REQUIRED ????? "wfs_srs"?????????? "EPSG:4326" ## REQUIRED ????? "gml_include_items" "all" ## Optional (serves all attributes for layer) ???? # "gml_exclude_items" "STATE_NAME" ????? "gml_featureid"???? "gid" ## REQUIRED ????? "gml_types" "auto" ????? "wfs_getfeature_formatlist" "geojson" ?END ??? CLASS ??????? STYLE ??????????? COLOR 100 200 100 ??????????? OUTLINECOLOR 0 0 0 ??????? END ?LABEL ??? COLOR? 150 150 150 ??? OUTLINECOLOR 255 255 255 ??? TYPE bitmap ??? SIZE small ??? POSITION UL ??? #TEXT "[STATE_FIPS]" ??? PARTIALS FALSE ??? END?? ? ? LABEL ??? COLOR? 150 150 150 ??? OUTLINECOLOR 255 255 255 ??? TYPE bitmap ??? SIZE small ??? POSITION LL ??? #TEXT "[STATE_NAME]" ??? PARTIALS FALSE ??? END???? ? ??? END END END -Jukka Rahkonen- <<<<< trimmed message >>>>> On 2017-04-26 10:42 AM, Kajod Sharma wrote: > Hi, > > Greetings! > > I hope this is a right platform to discuss my query regarding FILTER > applied on MapServer WFS. > > I'm new in this area and exploring some features of MapServer. I want to > use GetFeature request of WFS to get features applied on any location on > map. I'm using "MapServer version 7.0.4 (MS4W 3.2.1)" and trying to > apply filter "Contains" for it. > > I can see two problems when it applies Filter query on PostGIS: > > 1. It looks it adds an extra default geospatial filter in it while > making a query to PostGIS. This default spatial filter is not stopping > to return any result from PostGIS. Is there any way to exclude this > default filter? > 2. It seems Contains coordinates are not transformed properly according > to SRS of data in PostGIS. > > I've tries with different projection in map file and request message > with no success. > > Supporting data to give your input on my queries: > > WFS request > ************************* > Formatted Version: > > http://localhost/cgi-bin/mapserv.exe? > service=WFS& > map=C:/Data/MapServerWFSSample.map& > request=GetFeature& > version=2.0.0& > typeName=SampleLayer& > FILTER= xmlns:gml="http://www.opengis.net/gml" > xmlns:ms="http://mapserver.gis.umn.edu/mapserver"> >? <*Contains*> >? ? wkb_Geometry >? ? >? ? ? 0.112034,53.567972 >? ? >? > > ************************* > > PostGIS query [Could see in log file]: > ************************* > msPostGISLayerWhichShapes query: select > "Attribute1","Attribute2","Attribute3",encode(ST_AsBinary(ST_Force2D("wkb_geometry"),'NDR'),'hex') > as geom from SampleGeoDataTable where */wkb_geometry && > ST_GeomFromText('POLYGON((-0.999462804873474 > -1.00102606014116,-0.999462804873474 > -1.00102606014116,-0.999462804873474 > -1.00102606014116,-0.999462804873474 > -1.00102606014116,-0.999462804873474 > -1.00102606014116))',find_srid('','SampleGeoDataTable','wkb_geometry'))/* and > (st_contains(wkb_geometry,ST_GeomFromText('POINT > (*/7853690.3631838141000000 -5506204.5232773330000000/*)')) = TRUE) > ************************* > > Similar WFS query to GeoServer works perfectly. > > It would be very helpful if someone can help me on it. Thanks a lot in > advance. > > Map File looks like: > > ************************************************** > MAP >? NAME "Sample_WMS" >? CONFIG "PROJ_LIB" "C:\ms4w\proj\nad" >? CONFIG "MS_ERRORFILE" "C:/Data/ms_tmp/ms_error.txt" >? CONFIG "CPL_DEBUG" "ON" >? CONFIG "PROJ_DEBUG" "ON" >? STATUS ON >? PROJECTION >? ? "init=epsg:27700" >? END > >? WEB >? ? IMAGEPATH "C:/Data/ms_tmp/" >? ? IMAGEURL "/ms_tmp/" >? ? METADATA >? ? "wfs_enable_request" "*" >? ? "wfs_title"? ? ? ? "My Global Map WFS Server" >? ? "wfs_srs"? ? ? ? ? "EPSG:4326 EPSG:900913 EPSG:27700" >? ? "wfs_boundingbox"? ? "EPSG:27700 749.099975585938 -90036.5 > 660460.875 1227306.5" >? ? END >? END > >? LAYER >? ? NAME "SampleLayer" >? ? STATUS DEFAULT >? ? TYPE POLYGON >? ? PROJECTION >? ? "init=epsg:27700" >? ? END >? ? CONNECTIONTYPE POSTGIS >? ? CONNECTION "host=localhost port=5432 dbname=SampleGeoDataTable > user=postgres password=hahaha" >? ? DATA "wkb_geometry from SampleLayer" >? ? CLASS >? ? ? STYLE >? ? ? COLOR? ? ? 0 100 255 >? ? ? OUTLINECOLOR 0 0 0 >? ? ? END >? ? END > >? ? METADATA >? ? "wfs_enable_request" "*" >? ? "wfs_title"? ? ? ? "Sample WFS" >? ? "wfs_srs"? ? ? ? ? "EPSG:27700 EPSG:4326 EPSG:900913" >? ? "wfs_boundingbox"? ? "EPSG:27700 749.099975585938 -90036.5 > 660460.875 1227306.5" >? ? "gml_include_items" "all" >? ? END >? END > END > ************************************************** > > Regards, > Kajod > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From traviskirstine at gmail.com Tue May 9 07:38:02 2017 From: traviskirstine at gmail.com (Travis Kirstine) Date: Tue, 9 May 2017 10:38:02 -0400 Subject: [mapserver-users] calculating min / max scaledenom based on projection Message-ID: Hi all, We've been using mapserver as a WMS server and need to determine (outside of mapserver) if a requested image contains layers defined in the getmap request based on the layers min/maxscaledenom setting in the mapfile. If a request to the WMS is in the MAP SRS then we simply calculate the image scale using a method like the one used in the mapscale.c msCalculateScale and compare it to the MaxScaleDenom defined in the GetCapabilities and everything works as expected. The issue we have is that if the WMS GetMap SRS projection does not match the native projection of the layer the maxscaledenom will vary. For example if the layers is in web mercator projection and has a maxscaledenom of 25000 but the request is made in EPSG:4326 geographic the layer will not be drawn above a scale of ~ 1:16000 in QGIS. How can I calculate what 25000 equals for other SRSs? How does mapserver calculate the min/max scaledenom for various projections / units? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue May 9 14:26:34 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 9 May 2017 18:26:34 -0300 Subject: [mapserver-users] maintenance version 7.0.5 released Message-ID: The maintenance release of MapServer 7.0.5 is now available for download: http://mapserver.org/download.html For a list of the many changes please see the changelog: http://mapserver.org/development/changelog/changelog-7-0.html#changelog-7-0-5 Thank you to all of the users, developers, documenters, and packagers for sharing the passion for such a great project. -- The MapServer Team From pe_lord at yahoo.ca Thu May 11 10:35:36 2017 From: pe_lord at yahoo.ca (pe_lord) Date: Thu, 11 May 2017 10:35:36 -0700 (MST) Subject: [mapserver-users] Multi template In-Reply-To: References: <1492520742623-5317599.post@n6.nabble.com> <1492534338162-5317655.post@n6.nabble.com> <1492543876608-5317677.post@n6.nabble.com> <1493293693420-5318595.post@n6.nabble.com> Message-ID: <1494524136059-5320221.post@n6.nabble.com> But how to control the layer to use. In the case where my templates varies for each layer. Do I have to call an new name at each call like this? LAYER1 call looks like : ...&INFO_FORMAT=application/json1 LAYER2 call looks like : ...&INFO_FORMAT=application/json2 OUTPUTFORMAT NAME 'json1' DRIVER TEMPLATE MIMETYPE 'application/json1; subtype=geojson' TEMPLATE 'templ1.js' END OUTPUTFORMAT NAME 'json2' DRIVER TEMPLATE MIMETYPE 'application/json2; subtype=geojson' TEMPLATE 'templ2.js' END I don't understant how to control the template calling and redirection to the right template. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Multi-template-tp5317599p5320221.html Sent from the Mapserver - User mailing list archive at Nabble.com. From steve.lime at state.mn.us Thu May 11 11:31:23 2017 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 11 May 2017 18:31:23 +0000 Subject: [mapserver-users] Multi template In-Reply-To: <1494524136059-5320221.post@n6.nabble.com> References: <1492520742623-5317599.post@n6.nabble.com> <1492534338162-5317655.post@n6.nabble.com> <1492543876608-5317677.post@n6.nabble.com> <1493293693420-5318595.post@n6.nabble.com> <1494524136059-5320221.post@n6.nabble.com> Message-ID: Multiple layers can be referenced in a single template. I pasted in a particularly nasty one below that we use for returning JSON based on a map click for about 30 layers. Any time you see [resultset? that?s a different layer. If a layer isn?t present in a query result then it is omitted from the template processing. You can use template includes to bring a bit of organization to this sort of chaos, for example [include src="templates/json/lake.js"] where the path is relative to location of the parent mapfile. Steve // MapServer Template {'result':{ [resultset layer="state"][feature] 'state':'MN',[/feature][/resultset] [resultset layer="county"][feature] 'county': { 'name': '[CTY_NAME]', 'id': [COUN], 'fips': '[CTY_FIPS]' },[/feature][/resultset] [resultset layer="municipality"][feature] 'municipality': { 'name': '[MUNI_NAME]', 'fips': '[FIPS]' },[/feature][/resultset] 'pls': { [resultset layer="pls"][feature] 'township': [TOWN], 'range': [RANG], 'direction': [RDIR], 'section': [SECT], [/feature][/resultset] [resultset layer="pls.forty"][feature] 'forty': [item escape="none" name="fort_desc" pattern="^[A-Z]{4}$" nullformat="null" format="'$value'"][/feature][/resultset] }, [resultset layer="usgs024k"][feature] 'usgs024k': '[TILE_NAME]',[/feature][/resultset] [resultset layer="usgs100k"][feature] 'usgs100k': '[TILE_NAME]',[/feature][/resultset] [resultset layer="usgs250k"][feature] 'usgs250k': '[TILE_NAME]',[/feature][/resultset] [resultset layer="elevation"][feature] 'elevation': [item name="value_0"],[/feature][/resultset] 'other_public_land': { [resultset layer="other_public_land.forestry"][feature]'admin': 'DNR Forestry'[/feature][/resultset] }, [resultset layer="state_park"][feature] 'state_park':{ 'name':'[item name="unit_name"] [item name="unit_type"]', 'id':'[item name="pgrm_proje" lc="true"]', 'url':'http://www.dnr.state.mn.us[website_2]' },[/feature][/resultset] [resultset layer="state_trail"][feature] 'state_trail':{ 'name':'[item name="trail_name"]', 'id':'[item name="prgm_prj" lc="true"]', 'url':'http://[website_2]' },[/feature][/resultset] [resultset layer="state_water_trail"][feature] 'state_water_trail':{ 'name':'[item name="trail_name"] State Water Trail', 'id':'[item name="prgm_prj" lc="true"]', 'url':'http://www.dnr.state.mn.us[website_3]' },[/feature][/resultset] [resultset layer="state_forest"][feature] 'state_forest':{ 'name':'[item name="unit_name"] State Forest', 'id':'[item name="pgrm_proje" lc="true"]', 'url':'http://www.dnr.state.mn.us[website_2]' },[/feature][/resultset] [resultset layer="wma"][feature] 'wma':{ 'name':'[item name="unit_name"][item name="subunit_name" pattern="." format=": $value"]', 'id':'[item name="uniqueid" lc="true"]', 'url':'http://www.dnr.state.mn.us/wmas/detail_report.html?id=[item name="uniqueid"]' },[/feature][/resultset] [resultset layer="ama"][feature] 'ama':{ 'name':'[item name="unit_name"]', 'id':'[item name="uniqueid" lc="true"]' },[/feature][/resultset] [resultset layer="sna"][feature] 'sna':{ 'name':'[item name="site_name"]', 'id':'[item name="bremcode" lc="true"]', 'url':'http://www.dnr.state.mn.us/snas/detail.html?id=[item name="bremcode" lc=true]' },[/feature][/resultset] [resultset layer="wia"][feature] 'wia':{ 'name':'[item name="map_title"]', 'id':'[item name="wia_id" lc="true"]', 'url':'http://files.dnr.state.mn.us/destinations/wias/detailmaps/[item name="wia_pdf"]' },[/feature][/resultset] [resultset layer="lake"][feature] 'lake':{ 'name':'[LAKE_NAME]', 'id':'[DOWLKNUM]' },[/feature][/resultset] [resultset layer="water_access"][feature] 'water_access':{ 'name':'[item name="fac_name"]', 'id':'[item name="uniquekey" lc="true"]', 'url':'http://www.dnr.state.mn.us/maps/compass/pwa.html?map=COMPASS_MAPFILE&mode=indexquery&shapeindex=[shpidx]&qlayer=shor_waspt3_query' },[/feature][/resultset] [resultset layer="hwt"][feature] 'hwt':{ 'name':'[item name="trail_name"]', 'id':'hwt[item name="pdfmap_" lc="true"]', 'url':'http://files.dnr.state.mn.us/hunting/hwt/[item name="pdf_file"]' },[/feature][/resultset] [resultset layer="conservation_officers"]'conservation_officers':[ [feature trimlast=","]{ 'area':'[item name="station_na"] Enforcement Area', 'name':'[item name="of_name"]', 'phone':'[item name="phone"]', 'radio_call':'[item name="radio_call"]' },[/feature] ],[/resultset] 'point':{ 'epsg:26915': [[mapx], [mapy]], 'epsg:4326': [[maplon], [maplat]] } }} -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of pe_lord Sent: Thursday, May 11, 2017 12:36 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Multi template But how to control the layer to use. In the case where my templates varies for each layer. Do I have to call an new name at each call like this? LAYER1 call looks like : ...&INFO_FORMAT=application/json1 LAYER2 call looks like : ...&INFO_FORMAT=application/json2 OUTPUTFORMAT NAME 'json1' DRIVER TEMPLATE MIMETYPE 'application/json1; subtype=geojson' TEMPLATE 'templ1.js' END OUTPUTFORMAT NAME 'json2' DRIVER TEMPLATE MIMETYPE 'application/json2; subtype=geojson' TEMPLATE 'templ2.js' END I don't understant how to control the template calling and redirection to the right template. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Multi-template-tp5317599p5320221.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu May 11 13:21:32 2017 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 11 May 2017 20:21:32 +0000 Subject: [mapserver-users] calculating min / max scaledenom based on projection In-Reply-To: References: Message-ID: Scale should be SRS independent in most cases shouldn?t it? The exception being something like epsg:4326 where ground distance varies by latitude. With epsg:4326 MapServer has two options: - The default is using a constant decimal degrees to inches value, I think it?s based at the equator (for better or worse). - There?s a compile-time option called ENABLE_VARIABLE_INCHES_PER_DEGREE that will use a value computed from the latitude at the center of a view. Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Travis Kirstine Sent: Tuesday, May 09, 2017 9:38 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] calculating min / max scaledenom based on projection Hi all, We've been using mapserver as a WMS server and need to determine (outside of mapserver) if a requested image contains layers defined in the getmap request based on the layers min/maxscaledenom setting in the mapfile. If a request to the WMS is in the MAP SRS then we simply calculate the image scale using a method like the one used in the mapscale.c msCalculateScale and compare it to the MaxScaleDenom defined in the GetCapabilities and everything works as expected. The issue we have is that if the WMS GetMap SRS projection does not match the native projection of the layer the maxscaledenom will vary. For example if the layers is in web mercator projection and has a maxscaledenom of 25000 but the request is made in EPSG:4326 geographic the layer will not be drawn above a scale of ~ 1:16000 in QGIS. How can I calculate what 25000 equals for other SRSs? How does mapserver calculate the min/max scaledenom for various projections / units? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave at phased.co.uk Wed May 17 08:13:03 2017 From: dave at phased.co.uk (Dave Barter) Date: Wed, 17 May 2017 16:13:03 +0100 Subject: [mapserver-users] Creating a ZXY tileset via mapcache Message-ID: <7D260AB6-47AE-4B6B-9A2B-4649B1D4C871@phased.co.uk> Can anyone help with this:- https://gis.stackexchange.com/questions/240740/mapcache-template-or-grid-directive Thanks Dave Barter dave at phased.co.uk @citizenfishy www.phased.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed May 17 08:33:56 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 17 May 2017 12:33:56 -0300 Subject: [mapserver-users] Creating a ZXY tileset via mapcache In-Reply-To: <7D260AB6-47AE-4B6B-9A2B-4649B1D4C871@phased.co.uk> References: <7D260AB6-47AE-4B6B-9A2B-4649B1D4C871@phased.co.uk> Message-ID: <8a8653af-6d52-5323-c23d-63575ce8860c@gatewaygeomatics.com> On 2017-05-17 12:13 PM, Dave Barter wrote: > Can anyone help with this:- > > https://gis.stackexchange.com/questions/240740/mapcache-template-or-grid-directive > > Thanks > > Dave Barter > dave at phased.co.uk > @citizenfishy > www.phased.co.uk > > I'm wondering why you would cross-post the same question, minutes after one another, so that so many people on different networks are affected, duplicating efforts? Please do not do this. Thanks, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Wed May 17 08:48:15 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 17 May 2017 12:48:15 -0300 Subject: [mapserver-users] General advice on mailing lists Message-ID: <6ed07cf0-892c-8be9-b8fd-5a40b860d985@gatewaygeomatics.com> Some helpful hints to always remember (most of this message is automatically sent by me, as the list admin, to users with held messages, but it's still good to review openly here): Cross-posting ------------- Please do not cross-post the same message on several different networks (StackExchange, mapserver-users, etc) as this duplicates efforts and frustrates the great volunteers of the MapServer community. This is poor Open Source karma. Avoid getting your message Held Automatically --------------------------------------------- When sending messages to mailing lists, always be sure to not attach anything, like images or files, as mailing lists often reject these. The mapserver-users list has a small size limit for messages, and, if you paste source code or an image, likely the person trying to respond to your message cannot because the response will go over the size limit. So, a good rule on a mailing list is to *never attach images or source code*. Attaching Images ---------------- If you need to include an image, always use an external service such as http://pasteboard.co/ and include that link in your message Pasting Source Code ------------------- If you need to include long text such as source code, always use an external service such as http://pastebin.com/ and include that link in your message. Helping Others -------------- For good Open Source karma, help other MapServer users by answering questions, and not only asking your own. Sharing goes both ways. There are likely more tips, but those are the ones that are sent out often by the list admin (me, ha). Thanks everyone, and happy MapServing. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From sethg at geographika.co.uk Wed May 17 15:31:43 2017 From: sethg at geographika.co.uk (Seth G) Date: Thu, 18 May 2017 00:31:43 +0200 Subject: [mapserver-users] Diagonal Point Fill Message-ID: <20de64b3-fb0b-2856-e932-a85fd02c170a@geographika.co.uk> Hi list, Is the recommended way to create a diagonal point fill such as http://www.mapserver.org/_images/diagonal-area-symbol.png to use a pixmap fill? This doesn't allow configuring size and color through STYLEs. The page at http://www.mapserver.org/mapfile/symbology/construction.html provides a vector symbol (coords below), but it is long/complex (with a central circle and a quarter in each corner), and isn't easy to change spacing between the points. The circle edges are also slightly jagged. SYMBOL NAME "diag_dots" TYPE vector FILLED true POINTS # Central circle: 0.7450 0.4500 0.7365 0.5147 0.7115 0.5750 0.6718 0.6268 0.6200 0.6665 0.5597 0.6915 0.4950 0.7000 0.4303 0.6915 0.3700 0.6665 0.3182 0.6268 0.2785 0.5750 0.2535 0.5147 0.2450 0.4500 0.2535 0.3853 0.2785 0.3250 0.3182 0.2732 0.3700 0.2335 0.4303 0.2085 0.4950 0.2000 0.5597 0.2085 0.6200 0.2335 0.6718 0.2732 0.7115 0.3250 0.7365 0.3853 0.7450 0.4500 -99 -99 0.25 0.0 0.2415 0.0647 0.2165 0.1250 0.1768 0.1768 0.1250 0.2165 0.0647 0.2415 0.0 0.25 0.0 0.0 0.25 0.0 -99 -99 1 0.25 0.9252 0.2415 0.8649 0.2165 0.8132 0.1768 0.7734 0.1250 0.7485 0.0647 0.74 0.0 1 0.0 1 0.25 -99 -99 0.74 1 0.7485 0.9252 0.7734 0.8649 0.8132 0.8132 0.8649 0.7734 0.9252 0.7485 1 0.74 1 1 0.74 1 -99 -99 0.0 0.74 0.0647 0.7485 0.1250 0.7734 0.1768 0.8132 0.2165 0.8649 0.2415 0.9252 0.25 1 0.0 1 0.0 0.74 END END Regards, Seth -- web: http://geographika.co.uk twitter: @geographika From jmckenna at gatewaygeomatics.com Thu May 18 10:59:34 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 18 May 2017 14:59:34 -0300 Subject: [mapserver-users] Join the OSGeo Code Sprint Saturday 22 July 2017 In-Reply-To: <4900432a-28f8-7371-424b-0a39fd551a11@gatewaygeomatics.com> References: <4900432a-28f8-7371-424b-0a39fd551a11@gatewaygeomatics.com> Message-ID: <1ed1eee4-f88b-f0a3-0654-291580eb3987@gatewaygeomatics.com> Hi all, Please join the OSGeo Code Sprint at FOSS4G Europe on Saturday 22 July 2017! There?s always plenty to do ? it?s not all about programming: translation, documentation, packaging, feedback, discussions, testing...it's all super important for a project! If you are interested in participating, please add your project/name in this wiki page : https://wiki.osgeo.org/wiki/FOSS4G-Europe_2017_Code_sprint If you have questions/comments/ideas please let us know, by contacting the Code Sprint Committee at europe-foss4g (at) osgeo (dot) org The Code Sprint Organizing Team is looking forward to see you! From jmckenna at gatewaygeomatics.com Fri May 19 04:42:20 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 19 May 2017 08:42:20 -0300 Subject: [mapserver-users] Please add your site to the Gallery In-Reply-To: <95293234-5dd0-eb1f-b808-d8e523fcc077@gatewaygeomatics.com> References: <95293234-5dd0-eb1f-b808-d8e523fcc077@gatewaygeomatics.com> Message-ID: <9f7775cb-a47b-d974-aea0-548dc9553a40@gatewaygeomatics.com> A reminder for everyone to add your site or OGC services to the MapServer Site Gallery: https://github.com/mapserver/mapserver/wiki/MapServer-Site-Gallery (Carlos Ruiz added a couple this morning, thank you Carlos!) -jeff On 2016-12-14 5:31 PM, Jeff McKenna wrote: > Hello everyone! > > A new MapServer user recently reminded us that we need working examples > of applications (and MapServer-driven WMS/WFS/OWS services) listed on > our map gallery. Please take a minute to add your site and specs > (respecting the syntax and alphabetical order) at: > https://github.com/mapserver/mapserver/wiki/MapServer-Site-Gallery > > Thank you everyone! :) > > -jeff > > > -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From frodewj at gmail.com Mon May 22 03:19:55 2017 From: frodewj at gmail.com (=?UTF-8?Q?Frode_Wiseth_J=C3=B8rgensen?=) Date: Mon, 22 May 2017 12:19:55 +0200 Subject: [mapserver-users] Inspire View Service - WMS and Legend Message-ID: Hi Is there someone who has suggestions regarding multi-language of elements in a legend? Language of a layers title and abstract could be controlled by adding several versions of them in the metadata section but can?t seem to find any similar for CLASS > NAME. Regards, Frode -------------- next part -------------- An HTML attachment was scrubbed... URL: From mvischranka at gmail.com Tue May 23 06:12:53 2017 From: mvischranka at gmail.com (GeoLady) Date: Tue, 23 May 2017 06:12:53 -0700 (MST) Subject: [mapserver-users] OGR connection failed - OCI Message-ID: <1495545173869-5321449.post@n6.nabble.com> Hi, when I test my mapfile (with browser) with a layer 'ULICE' which connect to Oracle Database I have this error: msDrawMap(): Image handling error. Failed to draw layer named 'ULICE'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `ULICE'. File not found or unsupported format. Check server logs. I download MapServer from page http://gisinternals.com. And I take this release-1800-x64-gdal-2-1-3-mapserver-7-0-4.zip. When I do ogrinfo --formats, I have OCI in the list. And when I test database connection with ogrinfo OCI:user/pass at host:port/SID, it is too slow but the connection is successfull. Can someone help, please? http://localhost/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\oratest2.map&mode=map oratest2.map > MAP IMAGETYPE PNG EXTENT -422441 -1246473 -419074 -1245427 SIZE 600 300 FONTSET "D:\MapServer\fonts\font.list" CONFIG "PROJ_LIB" "D:\MapServer\scripts\proj\nad" CONFIG "MS_ERRORFILE" "D:\MapServer\tmp\ms_error.txt" CONFIG "GDAL_DRIVER_PATH" "D:\MapServer\scripts\gdalplugins" CONFIG "CPL_DEBUG" "ON" DEBUG 5 IMAGECOLOR 192 192 192 PROJECTION "init=epsg:2065" END LAYER NAME "ULICE" TYPE LINE STATUS DEFAULT CONNECTION "OCI:user/pass at host:port/SID" CONNECTIONTYPE OGR DATA "GM_U" DEBUG 5 CLASS NAME "Ulice" STYLE COLOR 255 128 0 END # Style END # Class END # Layer END C:\Users\admin>mapserv -v MapServer version 7.0.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETY PE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WM S_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SO S_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GD AL INPUT=SHAPEFILE My environment is > windows server 2012 64bit mapserver 7.0.4 64bit + gdal 2.1.3 instant oracle client 12.1.0.2 64bit oracle database 12.1.0.2 64bit IIS logs do not mention the error, neither Windows Log, neither Oracle Client logs. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/OGR-connection-failed-OCI-tp5321449.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Tue May 23 06:35:06 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 23 May 2017 10:35:06 -0300 Subject: [mapserver-users] OGR connection failed - OCI In-Reply-To: <1495545173869-5321449.post@n6.nabble.com> References: <1495545173869-5321449.post@n6.nabble.com> Message-ID: <0652df16-a215-416d-4aa3-a97d15710dcc@gatewaygeomatics.com> On 2017-05-23 10:12 AM, GeoLady wrote: > Hi, > > when I test my mapfile (with browser) with a layer 'ULICE' which connect to > Oracle Database I have this error: msDrawMap(): Image handling error. Failed > to draw layer named 'ULICE'. msOGRFileOpen(): OGR error. Open failed for OGR > connection in layer `ULICE'. File not found or unsupported format. Check > server logs. > > I download MapServer from page http://gisinternals.com. And I take this > release-1800-x64-gdal-2-1-3-mapserver-7-0-4.zip. > When I do ogrinfo --formats, I have OCI in the list. And when I test > database connection with ogrinfo OCI:user/pass at host:port/SID, it is too slow > but the connection is successfull. > > Can someone help, please? > Your CONNECTION syntax looks very odd to me. Here is what works with MS4W[1] through an OGR connection to Oracle 12c: LAYER ... CONNECTIONTYPE OGR CONNECTION "OCI:username/password at SID" ... END [1] http://ms4w.com -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Tue May 23 06:50:54 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 23 May 2017 10:50:54 -0300 Subject: [mapserver-users] OGR connection failed - OCI In-Reply-To: <0652df16-a215-416d-4aa3-a97d15710dcc@gatewaygeomatics.com> References: <1495545173869-5321449.post@n6.nabble.com> <0652df16-a215-416d-4aa3-a97d15710dcc@gatewaygeomatics.com> Message-ID: On 2017-05-23 10:35 AM, Jeff McKenna wrote: > On 2017-05-23 10:12 AM, GeoLady wrote: >> Hi, >> >> when I test my mapfile (with browser) with a layer 'ULICE' which >> connect to >> Oracle Database I have this error: msDrawMap(): Image handling error. >> Failed >> to draw layer named 'ULICE'. msOGRFileOpen(): OGR error. Open failed >> for OGR >> connection in layer `ULICE'. File not found or unsupported format. Check >> server logs. >> >> I download MapServer from page http://gisinternals.com. And I take this >> release-1800-x64-gdal-2-1-3-mapserver-7-0-4.zip. >> When I do ogrinfo --formats, I have OCI in the list. And when I test >> database connection with ogrinfo OCI:user/pass at host:port/SID, it is >> too slow >> but the connection is successfull. >> >> Can someone help, please? >> > > Your CONNECTION syntax looks very odd to me. Here is what works with > MS4W[1] through an OGR connection to Oracle 12c: > > LAYER > ... > CONNECTIONTYPE OGR > CONNECTION "OCI:username/password at SID" > ... > END > > [1] http://ms4w.com > > Actually I now notice that your syntax is correct for specifying a different host or port ("OCI:username/password at host:port/sevice_name"), but I can't verify that locally. So please ignore my first message. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From mvischranka at gmail.com Tue May 23 07:13:05 2017 From: mvischranka at gmail.com (GeoLady) Date: Tue, 23 May 2017 07:13:05 -0700 (MST) Subject: [mapserver-users] OGR connection failed - OCI In-Reply-To: References: <1495545173869-5321449.post@n6.nabble.com> <0652df16-a215-416d-4aa3-a97d15710dcc@gatewaygeomatics.com> Message-ID: <1495548785439-5321468.post@n6.nabble.com> Hi, thank for your reply. I have tried your connect string format before. For connect string in this format CONNECTION "OCI:username/password at SID" I need TNS_ADMIN defined. Instant oracle client has no tnsnames.ora. I created one: = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = )(Port = )) ) (CONNECT_DATA = (SERVICE_NAME = ) ) ) And I set environment variable> TNS_ADMIN=d:\oracle\instantclient_12_1-x64\network\admin\ ORACLE_HOME=d:\oracle\instantclient_12_1-x64\ When I do ogrinfo OCI:username/password at SID, I get error: C:\Users\admin>ogrinfo OCI:username/password at SID ERROR 1: in ERROR 1: in FAILURE: Unable to open datasource `OCI:username/password at SID' with the following drivers. -> netCDF -> AmigoCloud -> OCI -> PCIDSK .... So I deleted both environment variables and I used connect string format:"OCI:user/pass at host:port/SID" It works with ogrinfo OCI:user/pass at host:port/SID but it doesn't work with MapServer layer. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/OGR-connection-failed-OCI-tp5321449p5321468.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Tue May 23 07:20:37 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 23 May 2017 11:20:37 -0300 Subject: [mapserver-users] OGR connection failed - OCI In-Reply-To: <1495548785439-5321468.post@n6.nabble.com> References: <1495545173869-5321449.post@n6.nabble.com> <0652df16-a215-416d-4aa3-a97d15710dcc@gatewaygeomatics.com> <1495548785439-5321468.post@n6.nabble.com> Message-ID: <0761d417-bc35-510e-8cb0-5a15f0b20655@gatewaygeomatics.com> On 2017-05-23 11:13 AM, GeoLady wrote: > Hi, > > thank for your reply. I have tried your connect string format before. > For connect string in this format CONNECTION "OCI:username/password at SID" I > need TNS_ADMIN defined. > Instant oracle client has no tnsnames.ora. I created one: > = > (DESCRIPTION = > (ADDRESS_LIST = > (ADDRESS = (PROTOCOL = TCP)(Host = )(Port = )) > ) > (CONNECT_DATA = > (SERVICE_NAME = ) > ) > ) > > And I set environment variable> > TNS_ADMIN=d:\oracle\instantclient_12_1-x64\network\admin\ > ORACLE_HOME=d:\oracle\instantclient_12_1-x64\ > > When I do ogrinfo OCI:username/password at SID, I get error: > > C:\Users\admin>ogrinfo OCI:username/password at SID > ERROR 1: in > ERROR 1: in > FAILURE: > Unable to open datasource `OCI:username/password at SID' with the following > drivers. > -> netCDF > -> AmigoCloud > -> OCI > -> PCIDSK > .... > > So I deleted both environment variables and I used connect string > format:"OCI:user/pass at host:port/SID" > It works with ogrinfo OCI:user/pass at host:port/SID but it doesn't work with > MapServer layer. > > > Please see my previous message, I believe your initial syntax is correct (sorry for my initial confusion). It sounds to me like your web server is not loading that OGR dll. For something working, you can try MS4W locally and then replicate that in another web server environment, as it has good documented steps for connecting to Oracle at http://ms4w.com/README_INSTALL.html#steps-to-enable-oracle-10g-or-11g-or-12c-support-in-ms4w -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From mvischranka at gmail.com Tue May 23 07:31:54 2017 From: mvischranka at gmail.com (GeoLady) Date: Tue, 23 May 2017 07:31:54 -0700 (MST) Subject: [mapserver-users] OGR connection failed - OCI In-Reply-To: <0761d417-bc35-510e-8cb0-5a15f0b20655@gatewaygeomatics.com> References: <1495545173869-5321449.post@n6.nabble.com> <0652df16-a215-416d-4aa3-a97d15710dcc@gatewaygeomatics.com> <1495548785439-5321468.post@n6.nabble.com> <0761d417-bc35-510e-8cb0-5a15f0b20655@gatewaygeomatics.com> Message-ID: <1495549914751-5321473.post@n6.nabble.com> Hi, thank for your tip. But I need MapServer 64bit and there is http://ms4w.com/download.html 32bit package. Or am I wrong ? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/OGR-connection-failed-OCI-tp5321449p5321473.html Sent from the Mapserver - User mailing list archive at Nabble.com. From trondmm-mapserver+2017 at crusaders.no Tue May 23 07:42:57 2017 From: trondmm-mapserver+2017 at crusaders.no (Trond Michelsen) Date: Tue, 23 May 2017 16:42:57 +0200 Subject: [mapserver-users] Reprojection issues Message-ID: <20170523144257.GC29040@crusaders.no> Hi. I'm using mapserver 7.0.0, and I have a problem with reprojecting from EPSG:32632 (UTM32N) to EPSG:32661 (Polar Stereographic - North Pole). The extent of my layer (in epsg:32632) is 299995,6490195,409805,6600005. If I set wms_bbox_extended to "true" in the mapfile, mapserver reports this bbox for epsg:32661: 2330270,-1566870,2464140,-1433000 My layer definition is: LAYER NAME "test" TYPE POLYGON STATUS ON EXTENT 299995 6490195 409805 6600005 PROJECTION "init=epsg:32632" END FEATURE POINTS 299995 6600005 299995 6490195 409805 6490195 409805 6600005 299995 6600005 END END CLASS STYLE OUTLINECOLOR 255 0 0 END END METADATA "wms_title" "Test" "wms_srs" "EPSG:4326 CRS:84 EPSG:32661 EPSG:32632" END END If I request a big area in epsg:32661, like -3000000,-3000000,7000000,7000000, I get a blank image, and the debuglog says: Skipping layer (test) because LAYER.EXTENT does not intersect MAP.EXTENT Test url: http://nbswms.met.no/cgi-bin/mapserv?map=/home/ubuntu/mapfiles/simpletest.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&FORMAT=image/png&SRS=EPSG:32661&BBOX=-3000000,-3000000,7000000,7000000&WIDTH=640&HEIGHT=640&LAYERS=test But, it does intersect, and according to the bounding box mapserver calculated, mapserver should know that it does, too. If I shift the view 2000km, to -1000000,-3000000,9000000,7000000, mapserver happily renders the layer. Test url: http://nbswms.met.no/cgi-bin/mapserv?map=/home/ubuntu/mapfiles/simpletest.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&FORMAT=image/png&SRS=EPSG:32661&BBOX=-1000000,-3000000,9000000,7000000&WIDTH=640&HEIGHT=640&LAYERS=test Any idea what's going on, and what I can do to fix it? -- Trond Michelsen From DShorthouse at mus-nature.ca Tue May 23 08:21:19 2017 From: DShorthouse at mus-nature.ca (David Shorthouse) Date: Tue, 23 May 2017 15:21:19 +0000 Subject: [mapserver-users] Reprojection issues In-Reply-To: <20170523144257.GC29040@crusaders.no> References: <20170523144257.GC29040@crusaders.no> Message-ID: Trond - Reprojecting to polar can be finicky at best. See https://github.com/mapserver/mapserver/issues/5348. The commit here might solve your particular problem: https://github.com/mapserver/mapserver/pull/5360/commits/bbfa86661216c370fa5e4860ca4d4a9efcbc3a7e David On 2017-05-23, 10:42 AM, "mapserver-users on behalf of Trond Michelsen" wrote: >Hi. > >I'm using mapserver 7.0.0, and I have a problem with reprojecting from >EPSG:32632 (UTM32N) to EPSG:32661 (Polar Stereographic - North >Pole). The extent of my layer (in epsg:32632) is >299995,6490195,409805,6600005. If I set wms_bbox_extended to "true" in >the mapfile, mapserver reports this bbox for epsg:32661: >2330270,-1566870,2464140,-1433000 > >My layer definition is: > >LAYER > NAME "test" > TYPE POLYGON > STATUS ON > EXTENT 299995 6490195 409805 6600005 > PROJECTION > "init=epsg:32632" > END > FEATURE > POINTS > 299995 6600005 > 299995 6490195 > 409805 6490195 > 409805 6600005 > 299995 6600005 > END > END > CLASS > STYLE > OUTLINECOLOR 255 0 0 > END > END > METADATA > "wms_title" "Test" > "wms_srs" "EPSG:4326 CRS:84 EPSG:32661 EPSG:32632" > END >END > >If I request a big area in epsg:32661, like >-3000000,-3000000,7000000,7000000, I get a blank image, and the >debuglog says: > >Skipping layer (test) because LAYER.EXTENT does not intersect MAP.EXTENT > >Test url: >http://nbswms.met.no/cgi-bin/mapserv?map=/home/ubuntu/mapfiles/simpletest.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&FORMAT=image/png&SRS=EPSG:32661&BBOX=-3000000,-3000000,7000000,7000000&WIDTH=640&HEIGHT=640&LAYERS=test > >But, it does intersect, and according to the bounding box mapserver >calculated, mapserver should know that it does, too. If I shift the >view 2000km, to -1000000,-3000000,9000000,7000000, mapserver happily >renders the layer. > >Test url: >http://nbswms.met.no/cgi-bin/mapserv?map=/home/ubuntu/mapfiles/simpletest.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&FORMAT=image/png&SRS=EPSG:32661&BBOX=-1000000,-3000000,9000000,7000000&WIDTH=640&HEIGHT=640&LAYERS=test > > >Any idea what's going on, and what I can do to fix it? > >-- >Trond Michelsen >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >https://lists.osgeo.org/mailman/listinfo/mapserver-users From mvischranka at gmail.com Wed May 24 01:13:26 2017 From: mvischranka at gmail.com (GeoLady) Date: Wed, 24 May 2017 01:13:26 -0700 (MST) Subject: [mapserver-users] Fwd: no oracle access with ogr In-Reply-To: <53D0A1B6.1060004@freenet.de> References: <53D0A1B6.1060004@freenet.de> Message-ID: <1495613606887-5321583.post@n6.nabble.com> Hi Dietmar, did you solve your problem in the past - oracle access with ogr ? I have this same error with release-1800-x64-gdal-2-1-3-mapserver-7-0-4. Thank you -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Fwd-no-oracle-access-with-ogr-tp5152954p5321583.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jpass at bgs.ac.uk Thu May 25 00:47:17 2017 From: jpass at bgs.ac.uk (Passmore, James H.) Date: Thu, 25 May 2017 07:47:17 +0000 Subject: [mapserver-users] Please add your site to the Gallery (Jeff McKenna) In-Reply-To: References: Message-ID: Would the OneGeology portal be in scope in the list? data is provided through OGC services, principally WMS. Many of these services are MapServer driven. The original documentation OneGeology cookbook was based on MS4W, and also mentioned other MapServer implementations, but now supports other software. We could potentially list all the MapServer services used in the portal, but don't want to spam the list with services for one 'application'. James ________________________________________ From: mapserver-users on behalf of mapserver-users-request at lists.osgeo.org Sent: 19 May 2017 20:00 To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 112, Issue 16 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Please add your site to the Gallery (Jeff McKenna) ---------------------------------------------------------------------- Message: 1 Date: Fri, 19 May 2017 08:42:20 -0300 From: Jeff McKenna To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Please add your site to the Gallery Message-ID: <9f7775cb-a47b-d974-aea0-548dc9553a40 at gatewaygeomatics.com> Content-Type: text/plain; charset=utf-8; format=flowed A reminder for everyone to add your site or OGC services to the MapServer Site Gallery: https://github.com/mapserver/mapserver/wiki/MapServer-Site-Gallery (Carlos Ruiz added a couple this morning, thank you Carlos!) -jeff On 2016-12-14 5:31 PM, Jeff McKenna wrote: > Hello everyone! > > A new MapServer user recently reminded us that we need working examples > of applications (and MapServer-driven WMS/WFS/OWS services) listed on > our map gallery. Please take a minute to add your site and specs > (respecting the syntax and alphabetical order) at: > https://github.com/mapserver/mapserver/wiki/MapServer-Site-Gallery > > Thank you everyone! :) > > -jeff > > > -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ------------------------------ Subject: Digest Footer _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ End of mapserver-users Digest, Vol 112, Issue 16 ************************************************ ________________________________ This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. ________________________________ From jmckenna at gatewaygeomatics.com Thu May 25 05:35:39 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 25 May 2017 09:35:39 -0300 Subject: [mapserver-users] Please add your site to the Gallery (Jeff McKenna) In-Reply-To: References: Message-ID: <61a32778-a8e4-c7ca-78fb-fcb4fd918d35@gatewaygeomatics.com> The MapServer Site Gallery is for listing applications and WMS/WFS/OGC endpoints served by MapServer. Please do add your MapServer application endpoints on that page (it is not spam). I am getting a lot of questions by software/portal owners, wanting to include their links for their software or portal somewhere - James could you be the champion for a new wiki page, listing your portal and other software/guides? Then you can start a new email thread and occasionally remind them to share their portals and guides. Teamwork :) thanks, -jeff On 2017-05-25 4:47 AM, Passmore, James H. wrote: > Would the OneGeology portal be in scope in the list? > > data is provided through OGC services, principally WMS. Many of these services are MapServer driven. The original documentation OneGeology cookbook was based on MS4W, and also mentioned other MapServer implementations, but now supports other software. > > We could potentially list all the MapServer services used in the portal, but don't want to spam the list with services for one 'application'. > > James > > > ________________________________________ > From: mapserver-users on behalf of mapserver-users-request at lists.osgeo.org > Sent: 19 May 2017 20:00 > To: mapserver-users at lists.osgeo.org > Subject: mapserver-users Digest, Vol 112, Issue 16 > > Send mapserver-users mailing list submissions to > mapserver-users at lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.osgeo.org/mailman/listinfo/mapserver-users > or, via email, send a message with subject or body 'help' to > mapserver-users-request at lists.osgeo.org > > You can reach the person managing the list at > mapserver-users-owner at lists.osgeo.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of mapserver-users digest..." > > > Today's Topics: > > 1. Re: Please add your site to the Gallery (Jeff McKenna) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 19 May 2017 08:42:20 -0300 > From: Jeff McKenna > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Please add your site to the Gallery > Message-ID: > <9f7775cb-a47b-d974-aea0-548dc9553a40 at gatewaygeomatics.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > A reminder for everyone to add your site or OGC services to the > MapServer Site Gallery: > https://github.com/mapserver/mapserver/wiki/MapServer-Site-Gallery > (Carlos Ruiz added a couple this morning, thank you Carlos!) > > -jeff > > > > > > On 2016-12-14 5:31 PM, Jeff McKenna wrote: >> Hello everyone! >> >> A new MapServer user recently reminded us that we need working examples >> of applications (and MapServer-driven WMS/WFS/OWS services) listed on >> our map gallery. Please take a minute to add your site and specs >> (respecting the syntax and alphabetical order) at: >> https://github.com/mapserver/mapserver/wiki/MapServer-Site-Gallery >> >> Thank you everyone! :) >> >> -jeff >> >> >> > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > ------------------------------ > > End of mapserver-users Digest, Vol 112, Issue 16 > ************************************************ > ________________________________ > This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. > ________________________________ > > -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Thu May 25 05:47:43 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 25 May 2017 09:47:43 -0300 Subject: [mapserver-users] Please add your site to the Gallery (Jeff McKenna) In-Reply-To: <61a32778-a8e4-c7ca-78fb-fcb4fd918d35@gatewaygeomatics.com> References: <61a32778-a8e4-c7ca-78fb-fcb4fd918d35@gatewaygeomatics.com> Message-ID: on the other hand, as the page states, the page is 'community driven', so, if you want to add a link please do. There are guidelines for the page, but if the community wants software and guides and portals, please, carry on editing :) thanks. -jeff On 2017-05-25 9:35 AM, Jeff McKenna wrote: > The MapServer Site Gallery is for listing applications and WMS/WFS/OGC > endpoints served by MapServer. Please do add your MapServer application > endpoints on that page (it is not spam). > > I am getting a lot of questions by software/portal owners, wanting to > include their links for their software or portal somewhere - James could > you be the champion for a new wiki page, listing your portal and other > software/guides? Then you can start a new email thread and occasionally > remind them to share their portals and guides. Teamwork :) > > thanks, > > -jeff > > > > On 2017-05-25 4:47 AM, Passmore, James H. wrote: >> Would the OneGeology portal be in scope in the list? >> >> data is provided through OGC services, principally WMS. Many of these >> services are MapServer driven. The original documentation OneGeology >> cookbook was based on MS4W, and also mentioned other MapServer >> implementations, but now supports other software. >> >> We could potentially list all the MapServer services used in the >> portal, but don't want to spam the list with services for one >> 'application'. >> >> James >> >> >> ________________________________________ >> From: mapserver-users on >> behalf of mapserver-users-request at lists.osgeo.org >> >> Sent: 19 May 2017 20:00 >> To: mapserver-users at lists.osgeo.org >> Subject: mapserver-users Digest, Vol 112, Issue 16 >> >> Send mapserver-users mailing list submissions to >> mapserver-users at lists.osgeo.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> or, via email, send a message with subject or body 'help' to >> mapserver-users-request at lists.osgeo.org >> >> You can reach the person managing the list at >> mapserver-users-owner at lists.osgeo.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of mapserver-users digest..." >> >> >> Today's Topics: >> >> 1. Re: Please add your site to the Gallery (Jeff McKenna) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Fri, 19 May 2017 08:42:20 -0300 >> From: Jeff McKenna >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Please add your site to the Gallery >> Message-ID: >> <9f7775cb-a47b-d974-aea0-548dc9553a40 at gatewaygeomatics.com> >> Content-Type: text/plain; charset=utf-8; format=flowed >> >> A reminder for everyone to add your site or OGC services to the >> MapServer Site Gallery: >> https://github.com/mapserver/mapserver/wiki/MapServer-Site-Gallery >> (Carlos Ruiz added a couple this morning, thank you Carlos!) >> >> -jeff >> >> >> >> >> >> On 2016-12-14 5:31 PM, Jeff McKenna wrote: >>> Hello everyone! >>> >>> A new MapServer user recently reminded us that we need working examples >>> of applications (and MapServer-driven WMS/WFS/OWS services) listed on >>> our map gallery. Please take a minute to add your site and specs >>> (respecting the syntax and alphabetical order) at: >>> https://github.com/mapserver/mapserver/wiki/MapServer-Site-Gallery >>> >>> Thank you everyone! :) >>> >>> -jeff >>> >>> >>> >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> >> >> >> >> >> ------------------------------ >> >> Subject: Digest Footer >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> ------------------------------ >> >> End of mapserver-users Digest, Vol 112, Issue 16 >> ************************************************ >> ________________________________ >> This message (and any attachments) is for the recipient only. NERC is >> subject to the Freedom of Information Act 2000 and the contents of >> this email and any reply you make may be disclosed by NERC unless it >> is exempt from release under the Act. Any material supplied to NERC >> may be stored in an electronic records management system. >> ________________________________ >> >> > > -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Robert.Vogt at rcis.com Thu May 25 10:02:06 2017 From: Robert.Vogt at rcis.com (Robert Vogt) Date: Thu, 25 May 2017 17:02:06 +0000 Subject: [mapserver-users] OL3 email Forum Message-ID: <8b2ed27a05294ca58825cf68d26a1f5e@ZNEXCDP2395.ZURMWS.CSCMWS.COM> Sorry for the off topic question, I just figured if anyone would know if there is an OpenLayers Email Forum this group would. -Bob ******************* PLEASE NOTE ******************* This message, along with any attachments, is for the designated recipient(s) only and may contain privileged, proprietary, or otherwise confidential information. If this message has reached you in error, kindly destroy it without review and notify the sender immediately. Any other use of such misdirected e-mail by you is prohibited. Where allowed by local law, electronic communications with Zurich and its affiliates, including e-mail and instant messaging (including content), may be scanned for the purposes of information security and assessment of internal compliance with company policy. From mvischranka at gmail.com Thu May 25 23:48:25 2017 From: mvischranka at gmail.com (GeoLady) Date: Thu, 25 May 2017 23:48:25 -0700 (MST) Subject: [mapserver-users] OGR connection failed - OCI In-Reply-To: <0761d417-bc35-510e-8cb0-5a15f0b20655@gatewaygeomatics.com> References: <1495545173869-5321449.post@n6.nabble.com> <0652df16-a215-416d-4aa3-a97d15710dcc@gatewaygeomatics.com> <1495548785439-5321468.post@n6.nabble.com> <0761d417-bc35-510e-8cb0-5a15f0b20655@gatewaygeomatics.com> Message-ID: <1495781305139-5321900.post@n6.nabble.com> Hi Jeff, I made some progress. I gave the highest permission in IIS for mapserver and I have different error. In my browser I see "this page can't be displayed". This is MS log> [Thu May 25 14:53:20 2017].96000 CGI Request 1 on process 2400 [Thu May 25 14:53:20 2017].96000 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Thu May 25 14:53:20 2017].96000 msDrawMap(): WMS/WFS set-up and query, 0.000s [Thu May 25 14:53:20 2017].112000 msOGRFileOpen(OCI:user/pass at host:port/SID)... [Thu May 25 14:53:20 2017].112000 OGROPen(OCI:user/pass at host:port/SID) [Thu May 25 15:06:55 2017].504000 msConnPoolRegister(ULICE,OCI:user/pass at host:port/SID,000000BFB13E7630) [Thu May 25 15:06:55 2017].520000 msOGRFileWhichShapes: Setting spatial filter to -422441 -1246790.34474124 -419074 -1245109.65525876 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=0, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=1, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=2, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=3, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=4, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=5, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=6, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=7, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=8, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=9, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=10, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=11, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=12, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=13, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=14, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning shape=15, tile=0 [Thu May 25 15:06:55 2017].520000 msOGRFileNextShape: Returning MS_DONE (no more shapes) [Thu May 25 15:06:55 2017].520000 msOGRLayerClose(OCI:user/pass at host:port/SID). [Thu May 25 15:06:55 2017].520000 msOGRFileClose(OCI:user/pass at host:port/SID,64). [Thu May 25 15:06:55 2017].520000 msConnPoolRelease(ULICE,OCI:user/pass at host:port/SID,000000BFB13E7630) [Thu May 25 15:06:55 2017].520000 msConnPoolClose(OCI:user/pass at host:port/SID,000000BFB13E7630) [Thu May 25 15:06:55 2017].520000 msDrawMap(): Layer 0 (ULICE), 815.424s [Thu May 25 15:06:55 2017].520000 msDrawMap(): Drawing Label Cache, 0.000s [Thu May 25 15:06:55 2017].520000 msDrawMap() total time: 815.424s [Thu May 25 15:06:55 2017].535000 msSaveImage(stdout) total time: 0.015s [Thu May 25 15:06:55 2017].535000 mapserv request processing time (msLoadMap not incl.): 815.439s [Thu May 25 15:06:55 2017].535000 msFreeMap(): freeing map at 000000BFB13387E0. [Thu May 25 15:06:55 2017].535000 freeLayer(): freeing layer at 000000BFB1341590. Some other information: my oracle table is registered in sdo_geom_metadata, has spatial index, has srid=2065. I have the same data in shapefile and MS draws a map successfully. Can you help me please ? Thanks a lot. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/OGR-connection-failed-OCI-tp5321449p5321900.html Sent from the Mapserver - User mailing list archive at Nabble.com. From steve.wagstaff at lineone.net Fri May 26 00:23:59 2017 From: steve.wagstaff at lineone.net (SteveWa) Date: Fri, 26 May 2017 00:23:59 -0700 (MST) Subject: [mapserver-users] OGR connection failed - OCI In-Reply-To: <1495781305139-5321900.post@n6.nabble.com> References: <1495545173869-5321449.post@n6.nabble.com> <0652df16-a215-416d-4aa3-a97d15710dcc@gatewaygeomatics.com> <1495548785439-5321468.post@n6.nabble.com> <0761d417-bc35-510e-8cb0-5a15f0b20655@gatewaygeomatics.com> <1495781305139-5321900.post@n6.nabble.com> Message-ID: <1495783439582-5321904.post@n6.nabble.com> IIS/AppPool will need rights to the instant client folder. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/OGR-connection-failed-OCI-tp5321449p5321904.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mvischranka at gmail.com Fri May 26 03:55:24 2017 From: mvischranka at gmail.com (GeoLady) Date: Fri, 26 May 2017 03:55:24 -0700 (MST) Subject: [mapserver-users] OGR connection failed - OCI In-Reply-To: <1495783439582-5321904.post@n6.nabble.com> References: <1495545173869-5321449.post@n6.nabble.com> <0652df16-a215-416d-4aa3-a97d15710dcc@gatewaygeomatics.com> <1495548785439-5321468.post@n6.nabble.com> <0761d417-bc35-510e-8cb0-5a15f0b20655@gatewaygeomatics.com> <1495781305139-5321900.post@n6.nabble.com> <1495783439582-5321904.post@n6.nabble.com> Message-ID: <1495796124942-5321931.post@n6.nabble.com> Hi, thanks SteveWa, it helps that I don't need the highest permission for mapserver in IIS now. But problem was in my IE. Firefox works fine. I see a map ..finally :) -- View this message in context: http://osgeo-org.1560.x6.nabble.com/OGR-connection-failed-OCI-tp5321449p5321931.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Fri May 26 07:32:19 2017 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 26 May 2017 08:32:19 -0600 Subject: [mapserver-users] OL3 email Forum In-Reply-To: <8b2ed27a05294ca58825cf68d26a1f5e@ZNEXCDP2395.ZURMWS.CSCMWS.COM> References: <8b2ed27a05294ca58825cf68d26a1f5e@ZNEXCDP2395.ZURMWS.CSCMWS.COM> Message-ID: Bob, Try: https://groups.google.com/forum/#!forum/openlayers-dev Best Regards, Brent Fraser On 5/25/2017 11:02 AM, Robert Vogt wrote: > Sorry for the off topic question, I just figured if > anyone would know if there is an OpenLayers Email Forum this group would. > > -Bob > > ******************* PLEASE NOTE ******************* > This message, along with any attachments, is for the designated recipient(s) only and may contain privileged, proprietary, or otherwise confidential information. If this message has reached you in error, kindly destroy it without review and notify the sender immediately. Any other use of such misdirected e-mail by you is prohibited. Where allowed by local law, electronic communications with Zurich and its affiliates, including e-mail and instant messaging (including content), may be scanned for the purposes of information security and assessment of internal compliance with company policy. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Sat May 27 05:45:41 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Sat, 27 May 2017 14:45:41 +0200 Subject: [mapserver-users] The SVG symbols are not accepted in a symbolset file Message-ID: Hi, I notice the definition of an SVG SYMBOL is not recognized if inside a SYMBOLSET file. Instead it is accepted and recognize if it is in the mapfile. I try using this definition: SYMBOL NAME "photo" TYPE SVG IMAGE "/path-to-svg-file/macchina-fotografica-blu.svg" END I guess this could be an issue, but I like a confirm before to create it. Thx, Andrea. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From jmckenna at gatewaygeomatics.com Sat May 27 09:23:05 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 27 May 2017 13:23:05 -0300 Subject: [mapserver-users] The SVG symbols are not accepted in a symbolset file In-Reply-To: References: Message-ID: <5abbade2-3dae-d7fd-ede8-f53a02fa2139@gatewaygeomatics.com> On 2017-05-27 9:45 AM, Andrea Peri wrote: > Hi, > I notice the definition of an SVG SYMBOL is not recognized if inside > a SYMBOLSET file. > Instead it is accepted and recognize if it is in the mapfile. > > I try using this definition: > > SYMBOL > NAME "photo" > TYPE SVG > IMAGE "/path-to-svg-file/macchina-fotografica-blu.svg" > END > > I guess this could be an issue, but I like a confirm before to create it. > > Thx, > Andrea. > > Hi Andrea, I confirm that I am able to load SVG symbols that are referenced in the SYMBOLSET file, with MS4W 3.2.1 (MapServer 7.0.4) on Windows. I am pointing to an SVG file relative to the symbsolset, such as: SYMBOL NAME "airport" TYPE SVG IMAGE "airport.svg" END -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From aperi2007 at gmail.com Mon May 29 01:09:21 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 29 May 2017 10:09:21 +0200 Subject: [mapserver-users] A symbol like a string Message-ID: Hi, Reading the documentation I see that is possible to have a symbol like a single character. Like this example: SYMBOL NAME "P" TYPE truetype FONT "arial" CHARACTER "P" END # SYMBOL But is possible to have a symbol with a string of more than 1 char ? Something like this SYMBOL NAME "code_aap" TYPE truetype FONT "arial" CHARACTER "AAP" END # SYMBOL I cannot use a Label because it is not reported in the legend. Thx. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From joerg.thomsen at wheregroup.com Mon May 29 04:25:09 2017 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Mon, 29 May 2017 13:25:09 +0200 Subject: [mapserver-users] A symbol like a string In-Reply-To: References: Message-ID: <6357daaf-f22e-8f2d-02a8-1dc74b28e700@wheregroup.com> Hello Andrea, as I know you can't. But perhaps you could use a label and define a keyimage to be displayed in the legend? J?rg Am 29.05.2017 um 10:09 schrieb Andrea Peri: > Hi, > Reading the documentation I see that is possible to have a > symbol like a single character. > Like this example: > > SYMBOL > NAME "P" > TYPE truetype > FONT "arial" > CHARACTER "P" > END # SYMBOL > > But is possible to have a symbol with a string of more than 1 char ? > > Something like this > > SYMBOL > NAME "code_aap" > TYPE truetype > FONT "arial" > CHARACTER "AAP" > END # SYMBOL > > I cannot use a Label because it is not reported in the legend. > > Thx. > > Viele Gr??e, J?rg Thomsen -- ********************************** AGIT 2017 5.-7. Juli 2017 in Salzburg Besuchen Sie uns an Stand Nr. 31 www.agit.at ********************************** J?rg Thomsen WhereGroup GmbH & Co. KG Gillweg 3 14193 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 89 09 53 21 joerg.thomsen at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From boolean10001 at yahoo.com Mon May 29 08:11:52 2017 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 29 May 2017 15:11:52 +0000 (UTC) Subject: [mapserver-users] A symbol like a string In-Reply-To: References: Message-ID: <1565157586.2416308.1496070712094@mail.yahoo.com> Andrea, If you need very few symbols with several letters, you can generate a PNG file for each and use them as PIXMAP symbols. Cheers From: Andrea Peri To: "mapserver-users at lists.osgeo.org" Sent: Monday, May 29, 2017 3:09 AM Subject: [mapserver-users] A symbol like a string Hi, Reading the documentation I see that is possible to have a symbol like a single character. Like this example: SYMBOL ? NAME "P" ? TYPE truetype ? FONT "arial" ? CHARACTER "P" END # SYMBOL But is possible to have a symbol with a string of more than 1 char ? Something like this SYMBOL ? NAME "code_aap" ? TYPE truetype ? FONT "arial" ? CHARACTER "AAP" END # SYMBOL I cannot use a Label because it is not reported in the legend. Thx. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ 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 osgeo.mailinglist at gmail.com Mon May 29 19:27:45 2017 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Tue, 30 May 2017 04:27:45 +0200 Subject: [mapserver-users] OL3 email Forum In-Reply-To: References: <8b2ed27a05294ca58825cf68d26a1f5e@ZNEXCDP2395.ZURMWS.CSCMWS.COM> Message-ID: Hi, If it's a user question, go to the officially recommended tag at https://stackoverflow.com/questions/tagged/openlayers (From right bottom official page "Ask a question") If it's a dev question about the library development itself, previous recommanded link is the right one. Regards, Thomas Gratier 2017-05-26 16:32 GMT+02:00 Brent Fraser : > Bob, > > Try: > > https://groups.google.com/forum/#!forum/openlayers-dev > > > Best Regards, > Brent Fraser > > > On 5/25/2017 11:02 AM, Robert Vogt wrote: > >> Sorry for the off topic question, I just figured if >> anyone would know if there is an OpenLayers Email Forum this group would. >> >> -Bob >> >> ******************* PLEASE NOTE ******************* >> This message, along with any attachments, is for the designated >> recipient(s) only and may contain privileged, proprietary, or otherwise >> confidential information. If this message has reached you in error, kindly >> destroy it without review and notify the sender immediately. Any other use >> of such misdirected e-mail by you is prohibited. Where allowed by local >> law, electronic communications with Zurich and its affiliates, including >> e-mail and instant messaging (including content), may be scanned for the >> purposes of information security and assessment of internal compliance with >> company policy. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Simon.Schneegans at dlr.de Tue May 30 04:16:43 2017 From: Simon.Schneegans at dlr.de (Simon.Schneegans at dlr.de) Date: Tue, 30 May 2017 11:16:43 +0000 Subject: [mapserver-users] Reprojection error for CONNECTIONTYPE WMS Message-ID: Hi there! I am happily using mapserver to reproject raster data to the HEALPix projection from proj.4. This works pretty well for local raster sources, however I get severe reprojection problems when using an external WMS as source for my layer. I reported this issue on Github (https://github.com/mapserver/mapserver/issues/5437) but was told to ask here for assistance. Instead of copy-pasting the text from the Github issue to this mail, I kindly ask you to refer to this Github issue for further information; there I also included several images illustrating the problem. I am looking forward to get any feedback or input that helps me solving this issue! Thank you very much! Simon -------------------------- Deutsches Zentrum f?r Luft- und Raumfahrt e. V. (DLR) German Aerospace Center Simulation and Software Technology | Software for Space Systems and Interactive Visualization | Lilienthalplatz 7 | 38108 Braunschweig | Germany Simon Schneegans, M. Sc. Telephone +49 531 295-2333 | Telefax +49 531 295-12100 | simon.schneegans at dlr.de DLR.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From mvischranka at gmail.com Tue May 30 04:58:44 2017 From: mvischranka at gmail.com (GeoLady) Date: Tue, 30 May 2017 04:58:44 -0700 (MST) Subject: [mapserver-users] GetCapabilities error Message-ID: <1496145524669-5322278.post@n6.nabble.com> Hi, I have problem with GetCapabilities in WMS in MapServer. I try it in our intranet for now, so 192.168.0.127 is not accesible from internet. I try this url in QGIS or in my browser: http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities But what I get is just the mapserv.exe which gets downloaded every time. And there is this error: GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_BAG.dll using GDALRegister_BAG. GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_FITS.dll using GDALRegister_FITS. GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_GEOR.dll using GDALRegister_GEOR. GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_GMT.dll using GDALRegister_GMT. GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_HDF4.dll using GDALRegister_HDF4. GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_HDF4Image.dll using GDALRegister_HDF4Image. GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_HDF5.dll using GDALRegister_HDF5. GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_HDF5Image.dll using GDALRegister_HDF5Image. GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_KEA.dll using GDALRegister_KEA. GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_MG4Lidar.dll using GDALRegister_MG4Lidar. GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_MrSID.dll using GDALRegister_MrSID. GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_netCDF.dll using GDALRegister_netCDF. GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\ogr_AmigoCloud.dll using RegisterOGRAmigoCloud. GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\ogr_OCI.dll using RegisterOGROCI. GNM: GNMRegisterAllInternal GNM: RegisterGNMFile GNM: RegisterGNMdatabase ]> OGC:WMS Test WMS MVi application/vnd.ogc.wms_xml image/png image/jpeg image/png; mode=8bit application/x-pdf image/svg+xml image/tiff application/vnd.google-earth.kml+xml application/vnd.google-earth.kmz text/html application/vnd.ogc.gml text/plain text/xml image/png image/jpeg image/png; mode=8bit text/xml application/vnd.ogc.se_xml application/vnd.ogc.se_inimage application/vnd.ogc.se_blank MS Test WMS MVi MS EPSG:2065 ulice UlicnaSiet EPSG:2065 When I try this url in my browser, it works fine: http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map& SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=ULICE&STYLES=&SRS=EPSG:2065& BBOX=-422441,-1246473,-419074,-1245427&WIDTH=600&HEIGHT=300&FORMAT=image/png When I try shp2img -m d:\MapServer\map\wmstest.map -o wms.png, it works too. Here is my mapfile: MAP EXTENT -422441 -1246473 -419074 -1245427 SIZE 600 300 FONTSET "D:\MapServer\fonts\font.list" CONFIG "PROJ_LIB" "D:\MapServer\scripts\proj\nad" CONFIG "MS_ERRORFILE" "D:\MapServer\tmp\ms_error.txt" CONFIG "CPL_DEBUG" "ON" CONFIG "PROJ_DEBUG" "ON" DEBUG 5 MAXSIZE 100000 SHAPEPATH "D:\MapServer\data" WEB IMAGEPATH "/MapServer/tmp/" IMAGEURL "/MapServer/tmp/" #TEMPLATE "d:\MapServer\mm.html"# METADATA "wms_title" "Test WMS MVi" "wms_onlineresource" "http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?" "wms_enable_request" "*" "wms_srs" "EPSG:2065" "wms_feature_info_mime_type" "text/html" "wms_format" "image/png" END END PROJECTION "init=epsg:2065" END LAYER NAME ulice DATA ulice STATUS ON TYPE LINE ENCODING "UTF-8" METADATA "wms_title" "UlicnaSiet" "wms_srs" "EPSG:2065" END PROJECTION "init=epsg:2065" END LABELITEM "N_GM_U" CLASS NAME "Uli?n? sie?" STYLE COLOR 255 128 0 END LABEL COLOR 132 31 31 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 STYLE # since to version 6 GEOMTRANSFORM 'labelpnt' COLOR 218 218 218 OFFSET 2 2 END # STYLE END # label END #class END #layer END Can someone help, thanks a lot. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GetCapabilities-error-tp5322278.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joerg.thomsen at wheregroup.com Tue May 30 06:52:00 2017 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Tue, 30 May 2017 15:52:00 +0200 Subject: [mapserver-users] GetCapabilities error In-Reply-To: <1496145524669-5322278.post@n6.nabble.com> References: <1496145524669-5322278.post@n6.nabble.com> Message-ID: <5a5dc1cf-921b-b98e-5d05-4c62ee72e9fd@wheregroup.com> Hi GeoLady, (nice alias) first of all you don't get the mapserv.exe file downloaded, it is the capabilities-doc which is named mapserv.exe by your webserver. I don't know how to to change this, but it shouldn't be the problem. Within the downloaded document, below the gdal-messages, the capabilities-doc begins with >> and it looks good. As the lines >> GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_BAG.dll look like gdal-debug-messages I would try seting >> CONFIG "CPL_DEBUG" "ON" to >> CONFIG "CPL_DEBUG" "Off" (or just delete the line). Regards, J?rg aka MapServerGuy ;) Am 30.05.2017 um 13:58 schrieb GeoLady: > Hi, > > I have problem with GetCapabilities in WMS in MapServer. I try it in our > intranet for now, so 192.168.0.127 is not accesible from internet. > > I try this url in QGIS or in my browser: > http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > But what I get is just the mapserv.exe which gets downloaded every time. And > there is this error: > > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_BAG.dll using > GDALRegister_BAG. > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_FITS.dll using > GDALRegister_FITS. > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_GEOR.dll using > GDALRegister_GEOR. > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_GMT.dll using > GDALRegister_GMT. > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_HDF4.dll using > GDALRegister_HDF4. > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_HDF4Image.dll > using GDALRegister_HDF4Image. > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_HDF5.dll using > GDALRegister_HDF5. > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_HDF5Image.dll > using GDALRegister_HDF5Image. > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_KEA.dll using > GDALRegister_KEA. > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_MG4Lidar.dll > using GDALRegister_MG4Lidar. > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_MrSID.dll > using GDALRegister_MrSID. > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_netCDF.dll > using GDALRegister_netCDF. > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\ogr_AmigoCloud.dll > using RegisterOGRAmigoCloud. > GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\ogr_OCI.dll using > RegisterOGROCI. > GNM: GNMRegisterAllInternal > GNM: RegisterGNMFile > GNM: RegisterGNMdatabase > > "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd" > [ > <!ELEMENT VendorSpecificCapabilities EMPTY> > ]> > > > > > > > OGC:WMS > Test WMS MVi > xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/> > > > > > > > > application/vnd.ogc.wms_xml > > > xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/> > xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/> > > > > > image/png > image/jpeg > image/png; mode=8bit > application/x-pdf > image/svg+xml > image/tiff > application/vnd.google-earth.kml+xml > application/vnd.google-earth.kmz > > > xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/> > xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/> > > > > > text/html > application/vnd.ogc.gml > text/plain > > > xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/> > xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/> > > > > > text/xml > > > xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/> > xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/> > > > > > image/png > image/jpeg > image/png; mode=8bit > > > xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/> > xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/> > > > > > text/xml > > > xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/> > xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/> > > > > > > application/vnd.ogc.se_xml > application/vnd.ogc.se_inimage > application/vnd.ogc.se_blank > > > RemoteWFS="0"/> > > MS > Test WMS MVi > MS > EPSG:2065 > maxy="48.583" /> > minx="-422441" miny="-1.24647e+006" maxx="-419074" > maxy="-1.24543e+006" /> > > ulice > UlicnaSiet > EPSG:2065 > maxy="48.5818" /> > minx="-421400" miny="-1.24648e+006" maxx="-420159" > maxy="-1.24548e+006" /> > > > > > > > > When I try this url in my browser, it works fine: > http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map& > SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=ULICE&STYLES=&SRS=EPSG:2065& > BBOX=-422441,-1246473,-419074,-1245427&WIDTH=600&HEIGHT=300&FORMAT=image/png > > When I try shp2img -m d:\MapServer\map\wmstest.map -o wms.png, it works too. > > Here is my mapfile: > MAP > EXTENT -422441 -1246473 -419074 -1245427 > SIZE 600 300 > FONTSET "D:\MapServer\fonts\font.list" > CONFIG "PROJ_LIB" "D:\MapServer\scripts\proj\nad" > CONFIG "MS_ERRORFILE" "D:\MapServer\tmp\ms_error.txt" > CONFIG "CPL_DEBUG" "ON" > CONFIG "PROJ_DEBUG" "ON" > DEBUG 5 > MAXSIZE 100000 > SHAPEPATH "D:\MapServer\data" > > > WEB > IMAGEPATH "/MapServer/tmp/" > IMAGEURL "/MapServer/tmp/" > #TEMPLATE "d:\MapServer\mm.html"# > METADATA > "wms_title" "Test WMS MVi" > "wms_onlineresource" > "http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?" > "wms_enable_request" "*" > "wms_srs" "EPSG:2065" > "wms_feature_info_mime_type" "text/html" > "wms_format" "image/png" > END > END > > PROJECTION > "init=epsg:2065" > END > > LAYER > NAME ulice > DATA ulice > STATUS ON > TYPE LINE > ENCODING "UTF-8" > METADATA > "wms_title" "UlicnaSiet" > "wms_srs" "EPSG:2065" > END > PROJECTION > "init=epsg:2065" > END > LABELITEM "N_GM_U" > CLASS > NAME "Uli?n? sie?" > STYLE > COLOR 255 128 0 > END > LABEL > COLOR 132 31 31 > TYPE TRUETYPE > FONT arial > SIZE 8 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > STYLE # since to version 6 > GEOMTRANSFORM 'labelpnt' > COLOR 218 218 218 > OFFSET 2 2 > END # STYLE > END # label > END #class > END #layer > END > > Can someone help, thanks a lot. > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/GetCapabilities-error-tp5322278.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- ********************************** AGIT 2017 5.-7. Juli 2017 in Salzburg Besuchen Sie uns an Stand Nr. 31 www.agit.at ********************************** J?rg Thomsen WhereGroup GmbH & Co. KG Gillweg 3 14193 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 89 09 53 21 joerg.thomsen at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From mvischranka at gmail.com Tue May 30 07:07:36 2017 From: mvischranka at gmail.com (GeoLady) Date: Tue, 30 May 2017 07:07:36 -0700 (MST) Subject: [mapserver-users] GetCapabilities error In-Reply-To: <5a5dc1cf-921b-b98e-5d05-4c62ee72e9fd@wheregroup.com> References: <1496145524669-5322278.post@n6.nabble.com> <5a5dc1cf-921b-b98e-5d05-4c62ee72e9fd@wheregroup.com> Message-ID: <1496153256364-5322304.post@n6.nabble.com> Hi, oooh you are right, I made copy/paste in my mapfiles. GetCapabilities works now. Thank you MapServerGuy :) -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GetCapabilities-error-tp5322278p5322304.html Sent from the Mapserver - User mailing list archive at Nabble.com. From eduardo.kanegae at gmail.com Tue May 30 16:56:59 2017 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Tue, 30 May 2017 20:56:59 -0300 Subject: [mapserver-users] WMS - Change color map of a DEM dynamically Message-ID: Hi, I'm running MapServer 7.0.5 with GDAL 2.2.0 (CentOS x64) and have a 6Gb DEM tiff(float32) with overviews. Currently I set up a color ramp in QGIS based on values/colors of some GRASS color tables such as ETOPO2, SRTM and Terrain. Then in mapfile I used a color ramp (colorrange, datarange, rangeitem) coying colors and limit values from QGIS themes. I'd like to let users to dynamically change the WMS raster output using QGIS. Then, it could avoid to duplicating LAYERS declarations such as "dem_srtmtheme", "dem_etopo2theme" and so on. Or this (such as SLD) will be possible only for 8bit rasters and vectors? thanks in advance. Here's the dump(gdalinfo) of my raster file: Driver: GTiff/GeoTIFF Files: /myfile.tif /myfile.tif.ovr Size is 45369, 38050 Coordinate System is: PROJCS["SIRGAS 2000 / UTM zone 23S", GEOGCS["SIRGAS 2000", DATUM["Sistema_de_Referencia_Geocentrico_para_las_AmericaS_2000", SPHEROID["GRS 1980",6378137,298.257222101, AUTHORITY["EPSG","7019"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6674"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4674"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-45], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",10000000], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AXIS["Easting",EAST], AXIS["Northing",NORTH], AUTHORITY["EPSG","31983"]] Origin = (268724.500000000000000,7485552.500000000000000) Pixel Size = (1.000000000000000,-1.000000000000000) Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 268724.500, 7485552.500) ( 47d15' 6.30"W, 22d43'17.44"S) Lower Left ( 268724.500, 7447502.500) ( 47d15'26.74"W, 23d 3'53.89"S) Upper Right ( 314093.500, 7485552.500) ( 46d48'36.78"W, 22d43'37.63"S) Lower Right ( 314093.500, 7447502.500) ( 46d48'53.22"W, 23d 4'14.43"S) Center ( 291409.000, 7466527.500) ( 47d 2' 0.78"W, 22d53'46.41"S) Band 1 Block=45369x1 Type=Float32, ColorInterp=Gray NoData Value=-32768 Overviews: 22685x19025, 11343x9513, 5672x4757, 2836x2379 Eduardo Patto Kanegae http://www.webmapit.com.br | @webmapit -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue May 30 17:09:46 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 30 May 2017 20:09:46 -0400 Subject: [mapserver-users] WMS - Change color map of a DEM dynamically In-Reply-To: References: Message-ID: <882198d5-a941-35af-0838-e4f2e64c6e9e@swoodbridge.com> I don't use QGIS so maybe someone else has some idea how to do what you want with that. I think I might try something along these lines: Create a GDAL VRT file for each theme and add appropriate color tables for them. You might need to write a script to generate the color ramps as color table entries, but once you have them you should be good. The VRT files can all reference the same DEM.tif file so you are only create VRT file for the color tables. Then create appropriate layers in the mapfile each referencing one of the VRT files. Then the user can select the appropriate WMS layer from the mapfile dor the styling they want. -Steve W On 5/30/2017 7:56 PM, Eduardo Kanegae wrote: > Hi, > > I'm running MapServer 7.0.5 with GDAL 2.2.0 (CentOS x64) and have a 6Gb > DEM tiff(float32) with overviews. Currently I set up a color ramp in > QGIS based on values/colors of some GRASS color tables such as ETOPO2, > SRTM and Terrain. > Then in mapfile I used a color ramp (colorrange, datarange, rangeitem) > coying colors and limit values from QGIS themes. > > I'd like to let users to dynamically change the WMS raster output using > QGIS. Then, it could avoid to duplicating LAYERS declarations such as > "dem_srtmtheme", "dem_etopo2theme" and so on. > Or this (such as SLD) will be possible only for 8bit rasters and vectors? > > thanks in advance. > > Here's the dump(gdalinfo) of my raster file: > > Driver: GTiff/GeoTIFF > Files: /myfile.tif > /myfile.tif.ovr > Size is 45369, 38050 > Coordinate System is: > PROJCS["SIRGAS 2000 / UTM zone 23S", > GEOGCS["SIRGAS 2000", > DATUM["Sistema_de_Referencia_Geocentrico_para_las_AmericaS_2000", > SPHEROID["GRS 1980",6378137,298.257222101, > AUTHORITY["EPSG","7019"]], > TOWGS84[0,0,0,0,0,0,0], > AUTHORITY["EPSG","6674"]], > PRIMEM["Greenwich",0, > AUTHORITY["EPSG","8901"]], > UNIT["degree",0.0174532925199433, > AUTHORITY["EPSG","9122"]], > AUTHORITY["EPSG","4674"]], > PROJECTION["Transverse_Mercator"], > PARAMETER["latitude_of_origin",0], > PARAMETER["central_meridian",-45], > PARAMETER["scale_factor",0.9996], > PARAMETER["false_easting",500000], > PARAMETER["false_northing",10000000], > UNIT["metre",1, > AUTHORITY["EPSG","9001"]], > AXIS["Easting",EAST], > AXIS["Northing",NORTH], > AUTHORITY["EPSG","31983"]] > Origin = (268724.500000000000000,7485552.500000000000000) > Pixel Size = (1.000000000000000,-1.000000000000000) > Metadata: > AREA_OR_POINT=Area > Image Structure Metadata: > INTERLEAVE=BAND > Corner Coordinates: > Upper Left ( 268724.500, 7485552.500) ( 47d15' 6.30"W, 22d43'17.44"S) > Lower Left ( 268724.500, 7447502.500) ( 47d15'26.74"W, 23d 3'53.89"S) > Upper Right ( 314093.500, 7485552.500) ( 46d48'36.78"W, 22d43'37.63"S) > Lower Right ( 314093.500, 7447502.500) ( 46d48'53.22"W, 23d 4'14.43"S) > Center ( 291409.000, 7466527.500) ( 47d 2' 0.78"W, 22d53'46.41"S) > Band 1 Block=45369x1 Type=Float32, ColorInterp=Gray > NoData Value=-32768 > Overviews: 22685x19025, 11343x9513, 5672x4757, 2836x2379 > > > Eduardo Patto Kanegae > http://www.webmapit.com.br | @webmapit > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From woodbri at swoodbridge.com Tue May 30 17:14:43 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 30 May 2017 20:14:43 -0400 Subject: [mapserver-users] WMS - Change color map of a DEM dynamically In-Reply-To: <882198d5-a941-35af-0838-e4f2e64c6e9e@swoodbridge.com> References: <882198d5-a941-35af-0838-e4f2e64c6e9e@swoodbridge.com> Message-ID: Here is a good explanation: https://lists.osgeo.org/pipermail/gdal-dev/2014-May/039091.html On 5/30/2017 8:09 PM, Stephen Woodbridge wrote: > I don't use QGIS so maybe someone else has some idea how to do what you > want with that. I think I might try something along these lines: > > Create a GDAL VRT file for each theme and add appropriate color tables > for them. You might need to write a script to generate the color ramps > as color table entries, but once you have them you should be good. > > The VRT files can all reference the same DEM.tif file so you are only > create VRT file for the color tables. > > Then create appropriate layers in the mapfile each referencing one of > the VRT files. Then the user can select the appropriate WMS layer from > the mapfile dor the styling they want. > > -Steve W > > On 5/30/2017 7:56 PM, Eduardo Kanegae wrote: >> Hi, >> >> I'm running MapServer 7.0.5 with GDAL 2.2.0 (CentOS x64) and have a >> 6Gb DEM tiff(float32) with overviews. Currently I set up a color ramp >> in QGIS based on values/colors of some GRASS color tables such as >> ETOPO2, SRTM and Terrain. >> Then in mapfile I used a color ramp (colorrange, datarange, rangeitem) >> coying colors and limit values from QGIS themes. >> >> I'd like to let users to dynamically change the WMS raster output >> using QGIS. Then, it could avoid to duplicating LAYERS declarations >> such as "dem_srtmtheme", "dem_etopo2theme" and so on. >> Or this (such as SLD) will be possible only for 8bit rasters and vectors? >> >> thanks in advance. >> >> Here's the dump(gdalinfo) of my raster file: >> >> Driver: GTiff/GeoTIFF >> Files: /myfile.tif >> /myfile.tif.ovr >> Size is 45369, 38050 >> Coordinate System is: >> PROJCS["SIRGAS 2000 / UTM zone 23S", >> GEOGCS["SIRGAS 2000", >> >> DATUM["Sistema_de_Referencia_Geocentrico_para_las_AmericaS_2000", >> SPHEROID["GRS 1980",6378137,298.257222101, >> AUTHORITY["EPSG","7019"]], >> TOWGS84[0,0,0,0,0,0,0], >> AUTHORITY["EPSG","6674"]], >> PRIMEM["Greenwich",0, >> AUTHORITY["EPSG","8901"]], >> UNIT["degree",0.0174532925199433, >> AUTHORITY["EPSG","9122"]], >> AUTHORITY["EPSG","4674"]], >> PROJECTION["Transverse_Mercator"], >> PARAMETER["latitude_of_origin",0], >> PARAMETER["central_meridian",-45], >> PARAMETER["scale_factor",0.9996], >> PARAMETER["false_easting",500000], >> PARAMETER["false_northing",10000000], >> UNIT["metre",1, >> AUTHORITY["EPSG","9001"]], >> AXIS["Easting",EAST], >> AXIS["Northing",NORTH], >> AUTHORITY["EPSG","31983"]] >> Origin = (268724.500000000000000,7485552.500000000000000) >> Pixel Size = (1.000000000000000,-1.000000000000000) >> Metadata: >> AREA_OR_POINT=Area >> Image Structure Metadata: >> INTERLEAVE=BAND >> Corner Coordinates: >> Upper Left ( 268724.500, 7485552.500) ( 47d15' 6.30"W, 22d43'17.44"S) >> Lower Left ( 268724.500, 7447502.500) ( 47d15'26.74"W, 23d 3'53.89"S) >> Upper Right ( 314093.500, 7485552.500) ( 46d48'36.78"W, 22d43'37.63"S) >> Lower Right ( 314093.500, 7447502.500) ( 46d48'53.22"W, 23d 4'14.43"S) >> Center ( 291409.000, 7466527.500) ( 47d 2' 0.78"W, 22d53'46.41"S) >> Band 1 Block=45369x1 Type=Float32, ColorInterp=Gray >> NoData Value=-32768 >> Overviews: 22685x19025, 11343x9513, 5672x4757, 2836x2379 >> >> >> Eduardo Patto Kanegae >> http://www.webmapit.com.br | @webmapit >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From pe_lord at yahoo.ca Wed May 31 09:41:32 2017 From: pe_lord at yahoo.ca (pe_lord) Date: Wed, 31 May 2017 09:41:32 -0700 (MST) Subject: [mapserver-users] Class maxscaledenom performance Message-ID: <1496248892253-5322521.post@n6.nabble.com> I have a large dataset (7 500 000 polygons) published in a WMS service stored in a PostGIS table (spatial index and attribute index on classitem field). I render this layer between 1 and 100 001. I'm trying to manage my scale by class as Mapfile maxscaledenom to show between 1: 15 000 000 and 1:100 001 the footprint of data (classitem='BBOX') and the data between 1:100 000 and 1:1 Everything working properly. Except for performance. I have tested with a DEBUG 5 to know which element has been evaluated and every element in map has been "checked". Causing this lack of performance. I have also tried union layers but I find it too much time expensive to maintain over a large number of layers. Any hints to solve this problem? Pierre -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Class-maxscaledenom-performance-tp5322521.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Wed May 31 13:40:45 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 31 May 2017 17:40:45 -0300 Subject: [mapserver-users] Class maxscaledenom performance In-Reply-To: <1496248892253-5322521.post@n6.nabble.com> References: <1496248892253-5322521.post@n6.nabble.com> Message-ID: Hi Pierre, This is tricky to debug over email without access to the data, but I'll give you some points as to how I normally tackle such problems: - verify that the issue isn't only limited to WMS, by testing with the shp2img commandline utility (http://mapserver.org/utilities/shp2img.html) - pass it the problem layername, and also the problem extent (I often zoom into the problem area in QGIS, and then click on the "Toggle Extents" button below the map and copy the extent values) shp2img -m my.map -o ttt.png -all_debug 5 -l layername -e minx miny maxx maxy - analyze the response, and look for a "msPostGISLayerWhichShapes query" line, which is actually the query sent to PostGIS by MapServer, such as: select encode(ST_AsBinary(ST_Force2D("wkb_geometry"),'NDR'),'hex') as geom,"ogc_fid" from "layername" where wkb_geometry && ST_GeomFromText('POLYGON((-151.4 57.2675406758448,-151.4 57.4624593241552,-151.14 57.4624593241552,-151.14 57.2675406758448,-151.4 57.2675406758448))',4326) - run that same query directly into PostGIS, through the psql commandline utility. It should return a list of geometries at that exact extent. - also run shp2img to see draw speeds for that layer, such as: shp2img -m my.map -o ttt.png -map_debug 3 -l layername -e minx miny maxx maxy Some other notes: - if you need to debug the WMS command generated by QGIS, get the exact GetMap problem request, and open it in your browser, and analyze the parameters visually in the url : https://github.com/mapserver/mapserver/wiki/Get-the-Raw-WMS-Request-Generated-by-QGIS - follow general good practices: - include an EXTENT parameter for each LAYER (this is often helpful for WMS requests, to database layers) - be sure to set for all database layers: PROCESSING "CLOSE_CONNECTION=DEFER" - be sure to have PostGIS create OIDs by default in your databases (see the "default_with_oids" setting in postgresql.conf) - verify that a "gist" index is set on the geometry column of your problem table in PostGIS (view this by describing that table, in psql command) - verify that the speed issue is not due to a reprojection - maybe also turn off any labels for that layer/class and re-test There are likely other points/tips that I follow, but this a start (it's hard when I don't have access to your data). Hope this helps a little though. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-05-31 1:41 PM, pe_lord wrote: > I have a large dataset (7 500 000 polygons) published in a WMS service stored > in a PostGIS table (spatial index and attribute index on classitem field). I > render this layer between 1 and 100 001. I'm trying to manage my scale by > class as Mapfile maxscaledenom > to show > between 1: 15 000 000 and 1:100 001 the footprint of data (classitem='BBOX') > and the data between 1:100 000 and 1:1 > > Everything working properly. Except for performance. I have tested with a > DEBUG 5 to know which element has been evaluated and every element in map > has been "checked". Causing this lack of performance. > > I have also tried union layers but I find it too much time expensive to > maintain over a large number of layers. > > Any hints to solve this problem? > > Pierre > > > > From jmckenna at gatewaygeomatics.com Wed May 31 13:46:40 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 31 May 2017 17:46:40 -0300 Subject: [mapserver-users] Class maxscaledenom performance In-Reply-To: References: <1496248892253-5322521.post@n6.nabble.com> Message-ID: <763b93a1-8110-7b75-bb00-79d357cc9d02@gatewaygeomatics.com> oh, also be sure to remove all "WARNING" messages from the GetCapabilities response from your WMS service. This is really important for downstream WMS clients, and can save you grief later. Ok, I am sure others will have more advice... Good night from the east coast of Canada! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-05-31 5:40 PM, Jeff McKenna wrote: > Hi Pierre, > > This is tricky to debug over email without access to the data, but I'll > give you some points as to how I normally tackle such problems: > > - verify that the issue isn't only limited to WMS, by testing with the > shp2img commandline utility > (http://mapserver.org/utilities/shp2img.html) > > - pass it the problem layername, and also the problem extent (I often > zoom into the problem area in QGIS, and then click on the "Toggle > Extents" button below the map and copy the extent values) > > shp2img -m my.map -o ttt.png -all_debug 5 -l layername -e minx miny > maxx maxy > > - analyze the response, and look for a "msPostGISLayerWhichShapes query" > line, which is actually the query sent to PostGIS by MapServer, such as: > > select encode(ST_AsBinary(ST_Force2D("wkb_geometry"),'NDR'),'hex') as > geom,"ogc_fid" from "layername" where wkb_geometry && > ST_GeomFromText('POLYGON((-151.4 57.2675406758448,-151.4 > 57.4624593241552,-151.14 57.4624593241552,-151.14 > 57.2675406758448,-151.4 57.2675406758448))',4326) > > - run that same query directly into PostGIS, through the psql > commandline utility. It should return a list of geometries at that > exact extent. > > - also run shp2img to see draw speeds for that layer, such as: > > shp2img -m my.map -o ttt.png -map_debug 3 -l layername -e minx miny > maxx maxy > > > Some other notes: > > - if you need to debug the WMS command generated by QGIS, get the exact > GetMap problem request, and open it in your browser, and analyze the > parameters visually in the url : > https://github.com/mapserver/mapserver/wiki/Get-the-Raw-WMS-Request-Generated-by-QGIS > > > - follow general good practices: > - include an EXTENT parameter for each LAYER (this is often helpful > for WMS requests, to database layers) > > - be sure to set for all database layers: PROCESSING > "CLOSE_CONNECTION=DEFER" > > - be sure to have PostGIS create OIDs by default in your databases > (see the "default_with_oids" setting in postgresql.conf) > > - verify that a "gist" index is set on the geometry column of your > problem table in PostGIS (view this by describing that table, in psql > command) > > - verify that the speed issue is not due to a reprojection > > - maybe also turn off any labels for that layer/class and re-test > > There are likely other points/tips that I follow, but this a start (it's > hard when I don't have access to your data). Hope this helps a little > though. > > -jeff > > From richard.greenwood at gmail.com Wed May 31 19:56:31 2017 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 31 May 2017 20:56:31 -0600 Subject: [mapserver-users] Class maxscaledenom performance In-Reply-To: References: <1496248892253-5322521.post@n6.nabble.com> Message-ID: On Wed, May 31, 2017 at 2:40 PM, Jeff McKenna wrote: > - be sure to have PostGIS create OIDs by default in your databases (see > the "default_with_oids" setting in postgresql.conf) I have not seen that recommendation before. Can you explain why it is beneficial? Thanks, Rich -------------- next part -------------- An HTML attachment was scrubbed... URL: