From Weisbend at WAPA.GOV Fri May 1 11:53:00 2015 From: Weisbend at WAPA.GOV (Weisbender, Eric) Date: Fri, 1 May 2015 18:53:00 +0000 Subject: [mapserver-users] Keyimage Message-ID: <9FE7B20682D2EE4CB9F40163E1EB4F08332C069B@afovsml1m.WAPA.INT> Hello, I can't find any reference to Keyimage in the MapServer mapfile documentation even when using the search option. Can someone point me to the correct place. Thanks, Eric Weisbender -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri May 1 12:00:44 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 1 May 2015 19:00:44 +0000 Subject: [mapserver-users] Keyimage In-Reply-To: <9FE7B20682D2EE4CB9F40163E1EB4F08332C069B@afovsml1m.WAPA.INT> References: <9FE7B20682D2EE4CB9F40163E1EB4F08332C069B@afovsml1m.WAPA.INT> Message-ID: Hi Eric: That's a CLASS-level property. http://mapserver.org/mapfile/class.html Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Friday, May 01, 2015 1:53 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Keyimage Hello, I can't find any reference to Keyimage in the MapServer mapfile documentation even when using the search option. Can someone point me to the correct place. Thanks, Eric Weisbender -------------- next part -------------- An HTML attachment was scrubbed... URL: From james.evans.4 at us.af.mil Fri May 1 12:05:54 2015 From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE) Date: Fri, 1 May 2015 19:05:54 +0000 Subject: [mapserver-users] URL redirection under IIS Message-ID: <20EA793B1BC710448656BDC9BD25C4A12F8A0AA3@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> Hi, It's been a long time since I set up a mapserver, and I can't find my documentation on how to have the server answer up to a shortened URL. I would like it to respond to: http://servername/radeswms.exe& Instead of: http://servername/mapserver/mapserv.exe?map=c:\mapdata\servmap.map& Can someone remind me how to configure that using URL redirection? I'm on Server 2008 and IIS 7. Thanks, James From Steve.Toutant at inspq.qc.ca Fri May 1 12:11:34 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 1 May 2015 15:11:34 -0400 Subject: [mapserver-users] Mapserver 7 make error Message-ID: I'm compiling MS7 on Centos 6.5. I get an error running make make Scanning dependencies of target mapserver [ 0%] Building C object CMakeFiles/mapserver.dir/fontcache.c.o [ 1%] Building C object CMakeFiles/mapserver.dir/cgiutil.c.o [ 2%] Building C object CMakeFiles/mapserver.dir/mapgeos.c.o [ 2%] Building C object CMakeFiles/mapserver.dir/maporaclespatial.c.o [ 3%] Building C object CMakeFiles/mapserver.dir/mapsearch.c.o [ 4%] Building C object CMakeFiles/mapserver.dir/mapwms.c.o [ 4%] Building C object CMakeFiles/mapserver.dir/classobject.c.o [ 5%] Building C object CMakeFiles/mapserver.dir/mapgml.c.o [ 6%] Building C object CMakeFiles/mapserver.dir/mapoutput.c.o [ 6%] Building C object CMakeFiles/mapserver.dir/mapwmslayer.c.o [ 7%] Building C object CMakeFiles/mapserver.dir/layerobject.c.o [ 8%] Building C object CMakeFiles/mapserver.dir/mapgraticule.c.o [ 8%] Building C object CMakeFiles/mapserver.dir/mapows.c.o [ 9%] Building C object CMakeFiles/mapserver.dir/mapservutil.c.o [ 10%] Building C object CMakeFiles/mapserver.dir/mapxbase.c.o [ 10%] Building C object CMakeFiles/mapserver.dir/maphash.c.o [ 11%] Building C object CMakeFiles/mapserver.dir/mapowscommon.c.o [ 11%] Building C object CMakeFiles/mapserver.dir/mapshape.c.o [ 12%] Building C object CMakeFiles/mapserver.dir/mapxml.c.o [ 13%] Building C object CMakeFiles/mapserver.dir/mapbits.c.o [ 13%] Building C object CMakeFiles/mapserver.dir/maphttp.c.o [ 14%] Building C object CMakeFiles/mapserver.dir/mapparser.c.o [ 15%] Building C object CMakeFiles/mapserver.dir/mapstring.c.o [ 15%] Building C object CMakeFiles/mapserver.dir/mapxmp.c.o [ 16%] Building C object CMakeFiles/mapserver.dir/mapcairo.c.o /opt/geomatique/src/mapserver/mapcairo.c: In function ?ms2cairo_compop?: /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: ?CAIRO_OPERATOR_MULTIPLY? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: (Each undeclared identifier is reported only once /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: for each function it appears in.) /opt/geomatique/src/mapserver/mapcairo.c:811: erreur: ?CAIRO_OPERATOR_SCREEN? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:813: erreur: ?CAIRO_OPERATOR_OVERLAY? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:815: erreur: ?CAIRO_OPERATOR_DARKEN? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:817: erreur: ?CAIRO_OPERATOR_LIGHTEN? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:819: erreur: ?CAIRO_OPERATOR_COLOR_DODGE? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:821: erreur: ?CAIRO_OPERATOR_COLOR_BURN? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:823: erreur: ?CAIRO_OPERATOR_HARD_LIGHT? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:825: erreur: ?CAIRO_OPERATOR_SOFT_LIGHT? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:827: erreur: ?CAIRO_OPERATOR_DIFFERENCE? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:829: erreur: ?CAIRO_OPERATOR_EXCLUSION? undeclared (first use in this function) make[2]: *** [CMakeFiles/mapserver.dir/mapcairo.c.o] Erreur 1 make[1]: *** [CMakeFiles/mapserver.dir/all] Erreur 2 make: *** [all] Erreur 2 I do have cairo and cairo-devel installed (1.8.8-3.1.el6). How can I fix this? Thanks you -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Fri May 1 20:33:14 2015 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Fri, 1 May 2015 21:33:14 -0600 Subject: [mapserver-users] URL redirection under IIS In-Reply-To: <20EA793B1BC710448656BDC9BD25C4A12F8A0AA3@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> References: <20EA793B1BC710448656BDC9BD25C4A12F8A0AA3@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> Message-ID: There is some useful info in http://mapserver.org/ogc/wms_server.html#online-resource-wms especially the MS_MAPFILE environment varaible. You have to reboot Windows to get IIS to read the environment, which isn't too handy. And you don't need the '.exe'. So I think you could pretty easily get it down to http://servername/mapserver/mapserv if you only need one mapfile. I'm not much of an IIS guy so others may have better answers. Rich On Fri, May 1, 2015 at 1:05 PM, EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE wrote: > Hi, > It's been a long time since I set up a mapserver, and I can't find my > documentation on how to have the server answer up to a shortened URL. I > would like it to respond to: > > http://servername/radeswms.exe& > > Instead of: > > http://servername/mapserver/mapserv.exe?map=c:\mapdata\servmap.map& > > Can someone remind me how to configure that using URL redirection? I'm on > Server 2008 and IIS 7. > Thanks, > James > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Sanson at asurequality.com Sun May 3 14:37:47 2015 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Sun, 3 May 2015 21:37:47 +0000 Subject: [mapserver-users] URL redirection under IIS In-Reply-To: <20EA793B1BC710448656BDC9BD25C4A12F8A0AA3@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> References: <20EA793B1BC710448656BDC9BD25C4A12F8A0AA3@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> Message-ID: <3d571f22db1648fc8f6b225fc08b1ce8@OPASAKLPMBX03.nz01a.opaas.net.nz> Hi James The following works for Apache: 1. Copy your mapserv executable (mapserve.exe under Windows in the cgi-bin folder or make a symbolic link under Unix) and give it a different name (eg the name of your map file without the .map extension). 2. Edit your httpd.conf file and include something like the following: SetEnvIf Request_URI "/cgi-bin/mymap?" MS_MAPFILE=/mnt/gisdata/apps/service/mymap.map 3. Restart Apache Then you should be able to use the shorter form. Regards, Robert -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE Sent: Saturday, 2 May 2015 7:06 a.m. To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] URL redirection under IIS Hi, It's been a long time since I set up a mapserver, and I can't find my documentation on how to have the server answer up to a shortened URL. I would like it to respond to: http://servername/radeswms.exe& Instead of: http://servername/mapserver/mapserv.exe?map=c:\mapdata\servmap.map& Can someone remind me how to configure that using URL redirection? I'm on Server 2008 and IIS 7. Thanks, James _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Mon May 4 06:39:58 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 04 May 2015 10:39:58 -0300 Subject: [mapserver-users] URL redirection under IIS In-Reply-To: <3d571f22db1648fc8f6b225fc08b1ce8@OPASAKLPMBX03.nz01a.opaas.net.nz> References: <20EA793B1BC710448656BDC9BD25C4A12F8A0AA3@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <3d571f22db1648fc8f6b225fc08b1ce8@OPASAKLPMBX03.nz01a.opaas.net.nz> Message-ID: <554776AE.5040206@gatewaygeomatics.com> To add to Robert's steps on Windows: For my Apache 2.4 installations on Windows, to allow the script to run without an extension, I always add to httpd.conf: Options +ExecCGI SetHandler cgi-script Require all granted -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2015-05-03 6:37 PM, Robert Sanson wrote: > Hi James > > The following works for Apache: > > 1. Copy your mapserv executable (mapserve.exe under Windows in the cgi-bin folder or make a symbolic link under Unix) and give it a different name (eg the name of your map file without the .map extension). > > 2. Edit your httpd.conf file and include something like the following: > > SetEnvIf Request_URI "/cgi-bin/mymap?" MS_MAPFILE=/mnt/gisdata/apps/service/mymap.map > > 3. Restart Apache > > Then you should be able to use the shorter form. > > Regards, > > Robert > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE > Sent: Saturday, 2 May 2015 7:06 a.m. > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] URL redirection under IIS > > Hi, > It's been a long time since I set up a mapserver, and I can't find my documentation on how to have the server answer up to a shortened URL. I would like it to respond to: > > http://servername/radeswms.exe& > > Instead of: > > http://servername/mapserver/mapserv.exe?map=c:\mapdata\servmap.map& > > Can someone remind me how to configure that using URL redirection? I'm on Server 2008 and IIS 7. > Thanks, > James > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ian.walberg at airborne.aero Mon May 4 08:02:30 2015 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 4 May 2015 15:02:30 +0000 Subject: [mapserver-users] - Mapserver 7 In-Reply-To: References: <1848458972.549896980.1427180815782.JavaMail.root@zimbra34-e6.priv.proxad.net> <1346826171.549898004.1427180851928.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <301B8AEA64C24846BE688A7CFD223FC05B56F8@DAGN09c-e6.exg6.exghost.com> Is there a new planned release date for version 7? Any areas that you need help? Thanks, Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT) Sent: Tuesday, March 24, 2015 9:55 AM To: scott159 at free.fr; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] - Mapserver 7 Another beta should be along soon (within a week?). Feedback/testing has been pretty slow to come thus far... The more of that we get the faster the release process will go. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of scott159 at free.fr Sent: Tuesday, March 24, 2015 2:08 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] - Mapserver 7 Is there a date to next beta or release ? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Mon May 4 08:24:03 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 4 May 2015 15:24:03 +0000 Subject: [mapserver-users] - Mapserver 7 In-Reply-To: <301B8AEA64C24846BE688A7CFD223FC05B56F8@DAGN09c-e6.exg6.exghost.com> References: <1848458972.549896980.1427180815782.JavaMail.root@zimbra34-e6.priv.proxad.net> <1346826171.549898004.1427180851928.JavaMail.root@zimbra34-e6.priv.proxad.net> , <301B8AEA64C24846BE688A7CFD223FC05B56F8@DAGN09c-e6.exg6.exghost.com> Message-ID: There's blocker ticket out there related to WMS time and MSSQL server. I hope to get at it this week. I think when that's handled we can get back on track with a beta2 and then a candidate release. ________________________________________ From: Ian Walberg [ian.walberg at airborne.aero] Sent: Monday, May 04, 2015 10:02 AM To: Lime, Steve D (MNIT); scott159 at free.fr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] - Mapserver 7 Is there a new planned release date for version 7? Any areas that you need help? Thanks, Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT) Sent: Tuesday, March 24, 2015 9:55 AM To: scott159 at free.fr; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] - Mapserver 7 Another beta should be along soon (within a week?). Feedback/testing has been pretty slow to come thus far... The more of that we get the faster the release process will go. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of scott159 at free.fr Sent: Tuesday, March 24, 2015 2:08 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] - Mapserver 7 Is there a date to next beta or release ? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Tue May 5 04:50:30 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 05 May 2015 08:50:30 -0300 Subject: [mapserver-users] permission denied on Trac In-Reply-To: <55425577.6050304@wildintellect.com> References: <5540CDE5.8040007@nmbu.no> <5542104C.8050006@nmbu.no> <55425577.6050304@wildintellect.com> Message-ID: <5548AE86.5090804@gatewaygeomatics.com> Thanks to the OSGeo Systems team our Trac issue is fixed. You can thank them or provide feedback for the changes directly at: http://lists.osgeo.org/pipermail/sac/2015-May/005622.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2015-04-30 1:16 PM, Alex Mandel wrote: > There was a recent upgrade to the Trac server, might have broke > something. We'll look into it for archival purposes. > > Thanks, > Alex > > On 04/30/2015 04:21 AM, H?vard Tveite wrote: >> I can't fix that, but issue 118 has now been fixed on github. >> The correction has not yet made it to mapserver.org. >> >> H?vard >> >> On 29.04.2015 14:44, Richard Greenwood wrote: >>> Thanks. >>> >>> On https://github.com/mapserver/mapserver/issues/2436 there are also >>> three links back to Trac that fail. >>> >>> Rich >>> >>> >>> On Wed, Apr 29, 2015 at 6:26 AM, H?vard Tveite >> > wrote: >>> >>> I have created an issue: >>> https://github.com/mapserver/docs/issues/118 >>> >>> >>> On 29.04.2015 11:41, thomas bonfort wrote: >>> >>> we moved to github a little while ago.... >>> https://github.com/mapserver/mapserver/issues/2436 >>> >>> On 29 April 2015 at 03:36, Richard Greenwood >>> >> > wrote: >>> >>> There is a link on this page >>> http://mapserver.org/mapfile/outputformat.htm >>> to this page http://trac.osgeo.org/mapserver/ticket/2436 >>> but I get a >>> permission denied even when I am logged into Trac. >>> >>> Thanks >>> >>> -- >>> Richard W. Greenwood, PLS >>> www.greenwoodmap.com >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> -- >>> H?vard Tveite >>> Department of Mathematical Sciences and Technology, NMBU >>> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >>> Phone: +47 64965483 Fax: +47 64965401 >>> http://www.nmbu.no/imt/ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> >>> -- >>> Richard W. Greenwood, PLS >>> www.greenwoodmap.com >> From geographika at gmail.com Tue May 5 05:09:11 2015 From: geographika at gmail.com (geographika) Date: Tue, 05 May 2015 14:09:11 +0200 Subject: [mapserver-users] - Mapserver 7 In-Reply-To: References: <1848458972.549896980.1427180815782.JavaMail.root@zimbra34-e6.priv.proxad.net> <1346826171.549898004.1427180851928.JavaMail.root@zimbra34-e6.priv.proxad.net> , <301B8AEA64C24846BE688A7CFD223FC05B56F8@DAGN09c-e6.exg6.exghost.com> Message-ID: <5548B2E7.5090103@gmail.com> Hi Steve / list, I believe it is the issue I reported that is blocking the release. Due to the performance hit of loading all features into MapServer rather than filtering in the database I'll probably need to wait for the SQL Server driver to be updated to update to 7.0. Tamas may get a chance to look at this - so it may not be worth spending too much time on this issue? Regards, Seth On 04/05/2015 17:24, Lime, Steve D (MNIT) wrote: > There's blocker ticket out there related to WMS time and MSSQL server. I hope to get at it this week. I think when that's handled we can get back on track with a beta2 and then a candidate release. > > ________________________________________ > From: Ian Walberg [ian.walberg at airborne.aero] > Sent: Monday, May 04, 2015 10:02 AM > To: Lime, Steve D (MNIT); scott159 at free.fr; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] - Mapserver 7 > > Is there a new planned release date for version 7? > > Any areas that you need help? > > Thanks, Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT) > Sent: Tuesday, March 24, 2015 9:55 AM > To: scott159 at free.fr; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] - Mapserver 7 > > Another beta should be along soon (within a week?). Feedback/testing has been pretty slow to come thus far... The more of that we get the faster the release process will go. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of scott159 at free.fr > Sent: Tuesday, March 24, 2015 2:08 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] - Mapserver 7 > > > Is there a date to next beta or release ? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From szekerest at gmail.com Tue May 5 06:03:13 2015 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 5 May 2015 15:03:13 +0200 Subject: [mapserver-users] - Mapserver 7 In-Reply-To: References: <1848458972.549896980.1427180815782.JavaMail.root@zimbra34-e6.priv.proxad.net> <1346826171.549898004.1427180851928.JavaMail.root@zimbra34-e6.priv.proxad.net> <301B8AEA64C24846BE688A7CFD223FC05B56F8@DAGN09c-e6.exg6.exghost.com> Message-ID: I'll try to fix the mssql issue later in this week. I'd also like to get a couple of enhancements related to the legend/scalebar rendering into MapServer7, like the ability to render the legend and scalebar as SVG symbols. Best regards, Tamas 2015-05-04 17:24 GMT+02:00 Lime, Steve D (MNIT) : > There's blocker ticket out there related to WMS time and MSSQL server. I > hope to get at it this week. I think when that's handled we can get back on > track with a beta2 and then a candidate release. > > ________________________________________ > From: Ian Walberg [ian.walberg at airborne.aero] > Sent: Monday, May 04, 2015 10:02 AM > To: Lime, Steve D (MNIT); scott159 at free.fr; > mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] - Mapserver 7 > > Is there a new planned release date for version 7? > > Any areas that you need help? > > Thanks, Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT) > Sent: Tuesday, March 24, 2015 9:55 AM > To: scott159 at free.fr; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] - Mapserver 7 > > Another beta should be along soon (within a week?). Feedback/testing has > been pretty slow to come thus far... The more of that we get the faster the > release process will go. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] On Behalf Of scott159 at free.fr > Sent: Tuesday, March 24, 2015 2:08 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] - Mapserver 7 > > > Is there a date to next beta or release ? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Tue May 5 06:13:34 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 5 May 2015 09:13:34 -0400 Subject: [mapserver-users] RE Mapserver 7 make error In-Reply-To: References: Message-ID: Any hint on what can I do about that Cairo error when compiling mapserv? Thank you Steve Toutant/INSPQ/SSSS 2015-05-01 15:11 A mapserver-users at lists.osgeo.org cc Objet Mapserver 7 make error I'm compiling MS7 on Centos 6.5. I get an error running make make Scanning dependencies of target mapserver [ 0%] Building C object CMakeFiles/mapserver.dir/fontcache.c.o [ 1%] Building C object CMakeFiles/mapserver.dir/cgiutil.c.o [ 2%] Building C object CMakeFiles/mapserver.dir/mapgeos.c.o [ 2%] Building C object CMakeFiles/mapserver.dir/maporaclespatial.c.o [ 3%] Building C object CMakeFiles/mapserver.dir/mapsearch.c.o [ 4%] Building C object CMakeFiles/mapserver.dir/mapwms.c.o [ 4%] Building C object CMakeFiles/mapserver.dir/classobject.c.o [ 5%] Building C object CMakeFiles/mapserver.dir/mapgml.c.o [ 6%] Building C object CMakeFiles/mapserver.dir/mapoutput.c.o [ 6%] Building C object CMakeFiles/mapserver.dir/mapwmslayer.c.o [ 7%] Building C object CMakeFiles/mapserver.dir/layerobject.c.o [ 8%] Building C object CMakeFiles/mapserver.dir/mapgraticule.c.o [ 8%] Building C object CMakeFiles/mapserver.dir/mapows.c.o [ 9%] Building C object CMakeFiles/mapserver.dir/mapservutil.c.o [ 10%] Building C object CMakeFiles/mapserver.dir/mapxbase.c.o [ 10%] Building C object CMakeFiles/mapserver.dir/maphash.c.o [ 11%] Building C object CMakeFiles/mapserver.dir/mapowscommon.c.o [ 11%] Building C object CMakeFiles/mapserver.dir/mapshape.c.o [ 12%] Building C object CMakeFiles/mapserver.dir/mapxml.c.o [ 13%] Building C object CMakeFiles/mapserver.dir/mapbits.c.o [ 13%] Building C object CMakeFiles/mapserver.dir/maphttp.c.o [ 14%] Building C object CMakeFiles/mapserver.dir/mapparser.c.o [ 15%] Building C object CMakeFiles/mapserver.dir/mapstring.c.o [ 15%] Building C object CMakeFiles/mapserver.dir/mapxmp.c.o [ 16%] Building C object CMakeFiles/mapserver.dir/mapcairo.c.o /opt/geomatique/src/mapserver/mapcairo.c: In function ?ms2cairo_compop?: /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: ?CAIRO_OPERATOR_MULTIPLY? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: (Each undeclared identifier is reported only once /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: for each function it appears in.) /opt/geomatique/src/mapserver/mapcairo.c:811: erreur: ?CAIRO_OPERATOR_SCREEN? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:813: erreur: ?CAIRO_OPERATOR_OVERLAY? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:815: erreur: ?CAIRO_OPERATOR_DARKEN? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:817: erreur: ?CAIRO_OPERATOR_LIGHTEN? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:819: erreur: ?CAIRO_OPERATOR_COLOR_DODGE? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:821: erreur: ?CAIRO_OPERATOR_COLOR_BURN? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:823: erreur: ?CAIRO_OPERATOR_HARD_LIGHT? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:825: erreur: ?CAIRO_OPERATOR_SOFT_LIGHT? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:827: erreur: ?CAIRO_OPERATOR_DIFFERENCE? undeclared (first use in this function) /opt/geomatique/src/mapserver/mapcairo.c:829: erreur: ?CAIRO_OPERATOR_EXCLUSION? undeclared (first use in this function) make[2]: *** [CMakeFiles/mapserver.dir/mapcairo.c.o] Erreur 1 make[1]: *** [CMakeFiles/mapserver.dir/all] Erreur 2 make: *** [all] Erreur 2 I do have cairo and cairo-devel installed (1.8.8-3.1.el6). How can I fix this? Thanks you -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at spatialys.com Tue May 5 06:20:40 2015 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 5 May 2015 15:20:40 +0200 Subject: [mapserver-users] RE Mapserver 7 make error In-Reply-To: References: Message-ID: <201505051520.40429.even.rouault@spatialys.com> Le mardi 05 mai 2015 15:13:34, Steve.Toutant at inspq.qc.ca a ?crit : > Any hint on what can I do about that Cairo error when compiling mapserv? > Thank you Steve, you need to upgrade to a more recent version of cairo. Perhaps 1.10 or 1.12. I think Thomas mentionned to me that it might be possible to use older cairo by using older names for the CAIRO_OPERATOR_xxxx values. I think we discussed that in a github ticket (not sure), but can't find it anymore. Even > > > > > Steve Toutant/INSPQ/SSSS > 2015-05-01 15:11 > > A > mapserver-users at lists.osgeo.org > cc > > Objet > Mapserver 7 make error > > > > > > > > I'm compiling MS7 on Centos 6.5. I get an error running make > > make > > Scanning dependencies of target mapserver > > [ 0%] Building C object CMakeFiles/mapserver.dir/fontcache.c.o > > [ 1%] Building C object CMakeFiles/mapserver.dir/cgiutil.c.o > > [ 2%] Building C object CMakeFiles/mapserver.dir/mapgeos.c.o > > [ 2%] Building C object CMakeFiles/mapserver.dir/maporaclespatial.c.o > > [ 3%] Building C object CMakeFiles/mapserver.dir/mapsearch.c.o > > [ 4%] Building C object CMakeFiles/mapserver.dir/mapwms.c.o > > [ 4%] Building C object CMakeFiles/mapserver.dir/classobject.c.o > > [ 5%] Building C object CMakeFiles/mapserver.dir/mapgml.c.o > > [ 6%] Building C object CMakeFiles/mapserver.dir/mapoutput.c.o > > [ 6%] Building C object CMakeFiles/mapserver.dir/mapwmslayer.c.o > > [ 7%] Building C object CMakeFiles/mapserver.dir/layerobject.c.o > > [ 8%] Building C object CMakeFiles/mapserver.dir/mapgraticule.c.o > > [ 8%] Building C object CMakeFiles/mapserver.dir/mapows.c.o > > [ 9%] Building C object CMakeFiles/mapserver.dir/mapservutil.c.o > > [ 10%] Building C object CMakeFiles/mapserver.dir/mapxbase.c.o > > [ 10%] Building C object CMakeFiles/mapserver.dir/maphash.c.o > > [ 11%] Building C object CMakeFiles/mapserver.dir/mapowscommon.c.o > > [ 11%] Building C object CMakeFiles/mapserver.dir/mapshape.c.o > > [ 12%] Building C object CMakeFiles/mapserver.dir/mapxml.c.o > > [ 13%] Building C object CMakeFiles/mapserver.dir/mapbits.c.o > > [ 13%] Building C object CMakeFiles/mapserver.dir/maphttp.c.o > > [ 14%] Building C object CMakeFiles/mapserver.dir/mapparser.c.o > > [ 15%] Building C object CMakeFiles/mapserver.dir/mapstring.c.o > > [ 15%] Building C object CMakeFiles/mapserver.dir/mapxmp.c.o > > [ 16%] Building C object CMakeFiles/mapserver.dir/mapcairo.c.o > > /opt/geomatique/src/mapserver/mapcairo.c: In function ?ms2cairo_compop?: > > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: > ?CAIRO_OPERATOR_MULTIPLY? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: (Each undeclared > identifier is reported only once > > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: for each function it > appears in.) > > /opt/geomatique/src/mapserver/mapcairo.c:811: erreur: > ?CAIRO_OPERATOR_SCREEN? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:813: erreur: > ?CAIRO_OPERATOR_OVERLAY? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:815: erreur: > ?CAIRO_OPERATOR_DARKEN? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:817: erreur: > ?CAIRO_OPERATOR_LIGHTEN? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:819: erreur: > ?CAIRO_OPERATOR_COLOR_DODGE? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:821: erreur: > ?CAIRO_OPERATOR_COLOR_BURN? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:823: erreur: > ?CAIRO_OPERATOR_HARD_LIGHT? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:825: erreur: > ?CAIRO_OPERATOR_SOFT_LIGHT? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:827: erreur: > ?CAIRO_OPERATOR_DIFFERENCE? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:829: erreur: > ?CAIRO_OPERATOR_EXCLUSION? undeclared (first use in this function) > > make[2]: *** [CMakeFiles/mapserver.dir/mapcairo.c.o] Erreur 1 > > make[1]: *** [CMakeFiles/mapserver.dir/all] Erreur 2 > > make: *** [all] Erreur 2 > > > I do have cairo and cairo-devel installed (1.8.8-3.1.el6). > How can I fix this? > Thanks you -- Spatialys - Geospatial professional services http://www.spatialys.com From jmckenna at gatewaygeomatics.com Tue May 5 06:26:16 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 05 May 2015 10:26:16 -0300 Subject: [mapserver-users] RE Mapserver 7 make error In-Reply-To: References: Message-ID: <5548C4F8.50209@gatewaygeomatics.com> Hi Steve, I do note that I use cairo-1.12.14 for both my MS4W and Ubuntu builds. And I also note that compiling cairo into your MapServer will indeed test your patience and sanity :) Finding the "elusive" and magical version of cairo that works perfectly with GDAL and MapServer and libPoppler is quite fun. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2015-05-05 10:13 AM, Steve.Toutant at inspq.qc.ca wrote: > Any hint on what can I do about that Cairo error when compiling mapserv? > Thank you > > > > > *Steve Toutant/INSPQ/SSSS* > > 2015-05-01 15:11 > > > A > mapserver-users at lists.osgeo.org > cc > > Objet > Mapserver 7 make error > > > > > > > > > > I'm compiling MS7 on Centos 6.5. I get an error running make > > make > Scanning dependencies of target mapserver > [ 0%] Building C object CMakeFiles/mapserver.dir/fontcache.c.o > [ 1%] Building C object CMakeFiles/mapserver.dir/cgiutil.c.o > [ 2%] Building C object CMakeFiles/mapserver.dir/mapgeos.c.o > [ 2%] Building C object CMakeFiles/mapserver.dir/maporaclespatial.c.o > [ 3%] Building C object CMakeFiles/mapserver.dir/mapsearch.c.o > [ 4%] Building C object CMakeFiles/mapserver.dir/mapwms.c.o > [ 4%] Building C object CMakeFiles/mapserver.dir/classobject.c.o > [ 5%] Building C object CMakeFiles/mapserver.dir/mapgml.c.o > [ 6%] Building C object CMakeFiles/mapserver.dir/mapoutput.c.o > [ 6%] Building C object CMakeFiles/mapserver.dir/mapwmslayer.c.o > [ 7%] Building C object CMakeFiles/mapserver.dir/layerobject.c.o > [ 8%] Building C object CMakeFiles/mapserver.dir/mapgraticule.c.o > [ 8%] Building C object CMakeFiles/mapserver.dir/mapows.c.o > [ 9%] Building C object CMakeFiles/mapserver.dir/mapservutil.c.o > [ 10%] Building C object CMakeFiles/mapserver.dir/mapxbase.c.o > [ 10%] Building C object CMakeFiles/mapserver.dir/maphash.c.o > [ 11%] Building C object CMakeFiles/mapserver.dir/mapowscommon.c.o > [ 11%] Building C object CMakeFiles/mapserver.dir/mapshape.c.o > [ 12%] Building C object CMakeFiles/mapserver.dir/mapxml.c.o > [ 13%] Building C object CMakeFiles/mapserver.dir/mapbits.c.o > [ 13%] Building C object CMakeFiles/mapserver.dir/maphttp.c.o > [ 14%] Building C object CMakeFiles/mapserver.dir/mapparser.c.o > [ 15%] Building C object CMakeFiles/mapserver.dir/mapstring.c.o > [ 15%] Building C object CMakeFiles/mapserver.dir/mapxmp.c.o > [ 16%] Building C object CMakeFiles/mapserver.dir/mapcairo.c.o > /opt/geomatique/src/mapserver/mapcairo.c: In function ?ms2cairo_compop?: > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: > ?CAIRO_OPERATOR_MULTIPLY? undeclared (first use in this function) > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: (Each undeclared > identifier is reported only once > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: for each function > it appears in.) > /opt/geomatique/src/mapserver/mapcairo.c:811: erreur: > ?CAIRO_OPERATOR_SCREEN? undeclared (first use in this function) > /opt/geomatique/src/mapserver/mapcairo.c:813: erreur: > ?CAIRO_OPERATOR_OVERLAY? undeclared (first use in this function) > /opt/geomatique/src/mapserver/mapcairo.c:815: erreur: > ?CAIRO_OPERATOR_DARKEN? undeclared (first use in this function) > /opt/geomatique/src/mapserver/mapcairo.c:817: erreur: > ?CAIRO_OPERATOR_LIGHTEN? undeclared (first use in this function) > /opt/geomatique/src/mapserver/mapcairo.c:819: erreur: > ?CAIRO_OPERATOR_COLOR_DODGE? undeclared (first use in this function) > /opt/geomatique/src/mapserver/mapcairo.c:821: erreur: > ?CAIRO_OPERATOR_COLOR_BURN? undeclared (first use in this function) > /opt/geomatique/src/mapserver/mapcairo.c:823: erreur: > ?CAIRO_OPERATOR_HARD_LIGHT? undeclared (first use in this function) > /opt/geomatique/src/mapserver/mapcairo.c:825: erreur: > ?CAIRO_OPERATOR_SOFT_LIGHT? undeclared (first use in this function) > /opt/geomatique/src/mapserver/mapcairo.c:827: erreur: > ?CAIRO_OPERATOR_DIFFERENCE? undeclared (first use in this function) > /opt/geomatique/src/mapserver/mapcairo.c:829: erreur: > ?CAIRO_OPERATOR_EXCLUSION? undeclared (first use in this function) > make[2]: *** [CMakeFiles/mapserver.dir/mapcairo.c.o] Erreur 1 > make[1]: *** [CMakeFiles/mapserver.dir/all] Erreur 2 > make: *** [all] Erreur 2 > > I do have cairo and cairo-devel installed (1.8.8-3.1.el6). > > How can I fix this? > > Thanks you > From even.rouault at spatialys.com Tue May 5 06:33:18 2015 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 5 May 2015 15:33:18 +0200 Subject: [mapserver-users] RE Mapserver 7 make error In-Reply-To: <5548C4F8.50209@gatewaygeomatics.com> References: <5548C4F8.50209@gatewaygeomatics.com> Message-ID: <201505051533.19166.even.rouault@spatialys.com> Le mardi 05 mai 2015 15:26:16, Jeff McKenna a ?crit : > Hi Steve, > > I do note that I use cairo-1.12.14 for both my MS4W and Ubuntu builds. > And I also note that compiling cairo into your MapServer will indeed > test your patience and sanity :) > > Finding the "elusive" and magical version of cairo that works perfectly > with GDAL and MapServer and libPoppler is quite fun. Jeff, GDAL doesn't depend on cairo directly. Poppler might depend on cairo, but I believe it is only an optional dependency (maybe for some utilities or unit tests). I've just checked that my system libpoppler doesn't actually depend on cairo. And pdftoppm doesn't either. So you could probably build poppler without cairo to simplify the dependency equations ;-) Even > > -jeff > > > Any hint on what can I do about that Cairo error when compiling mapserv? > > Thank you > > > > > > > > > > *Steve Toutant/INSPQ/SSSS* > > > > 2015-05-01 15:11 > > > > > > A > > > > mapserver-users at lists.osgeo.org > > > > cc > > > > Objet > > > > Mapserver 7 make error > > > > I'm compiling MS7 on Centos 6.5. I get an error running make > > > > make > > Scanning dependencies of target mapserver > > [ 0%] Building C object CMakeFiles/mapserver.dir/fontcache.c.o > > [ 1%] Building C object CMakeFiles/mapserver.dir/cgiutil.c.o > > [ 2%] Building C object CMakeFiles/mapserver.dir/mapgeos.c.o > > [ 2%] Building C object CMakeFiles/mapserver.dir/maporaclespatial.c.o > > [ 3%] Building C object CMakeFiles/mapserver.dir/mapsearch.c.o > > [ 4%] Building C object CMakeFiles/mapserver.dir/mapwms.c.o > > [ 4%] Building C object CMakeFiles/mapserver.dir/classobject.c.o > > [ 5%] Building C object CMakeFiles/mapserver.dir/mapgml.c.o > > [ 6%] Building C object CMakeFiles/mapserver.dir/mapoutput.c.o > > [ 6%] Building C object CMakeFiles/mapserver.dir/mapwmslayer.c.o > > [ 7%] Building C object CMakeFiles/mapserver.dir/layerobject.c.o > > [ 8%] Building C object CMakeFiles/mapserver.dir/mapgraticule.c.o > > [ 8%] Building C object CMakeFiles/mapserver.dir/mapows.c.o > > [ 9%] Building C object CMakeFiles/mapserver.dir/mapservutil.c.o > > [ 10%] Building C object CMakeFiles/mapserver.dir/mapxbase.c.o > > [ 10%] Building C object CMakeFiles/mapserver.dir/maphash.c.o > > [ 11%] Building C object CMakeFiles/mapserver.dir/mapowscommon.c.o > > [ 11%] Building C object CMakeFiles/mapserver.dir/mapshape.c.o > > [ 12%] Building C object CMakeFiles/mapserver.dir/mapxml.c.o > > [ 13%] Building C object CMakeFiles/mapserver.dir/mapbits.c.o > > [ 13%] Building C object CMakeFiles/mapserver.dir/maphttp.c.o > > [ 14%] Building C object CMakeFiles/mapserver.dir/mapparser.c.o > > [ 15%] Building C object CMakeFiles/mapserver.dir/mapstring.c.o > > [ 15%] Building C object CMakeFiles/mapserver.dir/mapxmp.c.o > > [ 16%] Building C object CMakeFiles/mapserver.dir/mapcairo.c.o > > /opt/geomatique/src/mapserver/mapcairo.c: In function ?ms2cairo_compop?: > > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: > > ?CAIRO_OPERATOR_MULTIPLY? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: (Each undeclared > > identifier is reported only once > > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: for each function > > it appears in.) > > /opt/geomatique/src/mapserver/mapcairo.c:811: erreur: > > ?CAIRO_OPERATOR_SCREEN? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:813: erreur: > > ?CAIRO_OPERATOR_OVERLAY? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:815: erreur: > > ?CAIRO_OPERATOR_DARKEN? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:817: erreur: > > ?CAIRO_OPERATOR_LIGHTEN? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:819: erreur: > > ?CAIRO_OPERATOR_COLOR_DODGE? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:821: erreur: > > ?CAIRO_OPERATOR_COLOR_BURN? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:823: erreur: > > ?CAIRO_OPERATOR_HARD_LIGHT? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:825: erreur: > > ?CAIRO_OPERATOR_SOFT_LIGHT? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:827: erreur: > > ?CAIRO_OPERATOR_DIFFERENCE? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:829: erreur: > > ?CAIRO_OPERATOR_EXCLUSION? undeclared (first use in this function) > > make[2]: *** [CMakeFiles/mapserver.dir/mapcairo.c.o] Erreur 1 > > make[1]: *** [CMakeFiles/mapserver.dir/all] Erreur 2 > > make: *** [all] Erreur 2 > > > > I do have cairo and cairo-devel installed (1.8.8-3.1.el6). > > > > How can I fix this? > > > > Thanks you > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Spatialys - Geospatial professional services http://www.spatialys.com From jmckenna at gatewaygeomatics.com Tue May 5 06:42:47 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 05 May 2015 10:42:47 -0300 Subject: [mapserver-users] RE Mapserver 7 make error In-Reply-To: <201505051533.19166.even.rouault@spatialys.com> References: <5548C4F8.50209@gatewaygeomatics.com> <201505051533.19166.even.rouault@spatialys.com> Message-ID: <5548C8D7.9080803@gatewaygeomatics.com> Hi Even, Wow, thanks so much for that info, I will definitely remove cairo from my GDAL/poppler build steps! :) -jeff On 2015-05-05 10:33 AM, Even Rouault wrote: > Le mardi 05 mai 2015 15:26:16, Jeff McKenna a ?crit : >> Hi Steve, >> >> I do note that I use cairo-1.12.14 for both my MS4W and Ubuntu builds. >> And I also note that compiling cairo into your MapServer will indeed >> test your patience and sanity :) >> >> Finding the "elusive" and magical version of cairo that works perfectly >> with GDAL and MapServer and libPoppler is quite fun. > > Jeff, > > GDAL doesn't depend on cairo directly. Poppler might depend on cairo, but I > believe it is only an optional dependency (maybe for some utilities or unit > tests). I've just checked that my system libpoppler doesn't actually depend on > cairo. And pdftoppm doesn't either. So you could probably build poppler > without cairo to simplify the dependency equations ;-) > > Even > >> >> -jeff >> >>> Any hint on what can I do about that Cairo error when compiling mapserv? >>> Thank you >>> >>> >>> >>> >>> *Steve Toutant/INSPQ/SSSS* >>> >>> 2015-05-01 15:11 >>> >>> >>> A >>> >>> mapserver-users at lists.osgeo.org >>> >>> cc >>> >>> Objet >>> >>> Mapserver 7 make error >>> >>> I'm compiling MS7 on Centos 6.5. I get an error running make >>> >>> make >>> Scanning dependencies of target mapserver >>> [ 0%] Building C object CMakeFiles/mapserver.dir/fontcache.c.o >>> [ 1%] Building C object CMakeFiles/mapserver.dir/cgiutil.c.o >>> [ 2%] Building C object CMakeFiles/mapserver.dir/mapgeos.c.o >>> [ 2%] Building C object CMakeFiles/mapserver.dir/maporaclespatial.c.o >>> [ 3%] Building C object CMakeFiles/mapserver.dir/mapsearch.c.o >>> [ 4%] Building C object CMakeFiles/mapserver.dir/mapwms.c.o >>> [ 4%] Building C object CMakeFiles/mapserver.dir/classobject.c.o >>> [ 5%] Building C object CMakeFiles/mapserver.dir/mapgml.c.o >>> [ 6%] Building C object CMakeFiles/mapserver.dir/mapoutput.c.o >>> [ 6%] Building C object CMakeFiles/mapserver.dir/mapwmslayer.c.o >>> [ 7%] Building C object CMakeFiles/mapserver.dir/layerobject.c.o >>> [ 8%] Building C object CMakeFiles/mapserver.dir/mapgraticule.c.o >>> [ 8%] Building C object CMakeFiles/mapserver.dir/mapows.c.o >>> [ 9%] Building C object CMakeFiles/mapserver.dir/mapservutil.c.o >>> [ 10%] Building C object CMakeFiles/mapserver.dir/mapxbase.c.o >>> [ 10%] Building C object CMakeFiles/mapserver.dir/maphash.c.o >>> [ 11%] Building C object CMakeFiles/mapserver.dir/mapowscommon.c.o >>> [ 11%] Building C object CMakeFiles/mapserver.dir/mapshape.c.o >>> [ 12%] Building C object CMakeFiles/mapserver.dir/mapxml.c.o >>> [ 13%] Building C object CMakeFiles/mapserver.dir/mapbits.c.o >>> [ 13%] Building C object CMakeFiles/mapserver.dir/maphttp.c.o >>> [ 14%] Building C object CMakeFiles/mapserver.dir/mapparser.c.o >>> [ 15%] Building C object CMakeFiles/mapserver.dir/mapstring.c.o >>> [ 15%] Building C object CMakeFiles/mapserver.dir/mapxmp.c.o >>> [ 16%] Building C object CMakeFiles/mapserver.dir/mapcairo.c.o >>> /opt/geomatique/src/mapserver/mapcairo.c: In function ?ms2cairo_compop?: >>> /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: >>> ?CAIRO_OPERATOR_MULTIPLY? undeclared (first use in this function) >>> /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: (Each undeclared >>> identifier is reported only once >>> /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: for each function >>> it appears in.) >>> /opt/geomatique/src/mapserver/mapcairo.c:811: erreur: >>> ?CAIRO_OPERATOR_SCREEN? undeclared (first use in this function) >>> /opt/geomatique/src/mapserver/mapcairo.c:813: erreur: >>> ?CAIRO_OPERATOR_OVERLAY? undeclared (first use in this function) >>> /opt/geomatique/src/mapserver/mapcairo.c:815: erreur: >>> ?CAIRO_OPERATOR_DARKEN? undeclared (first use in this function) >>> /opt/geomatique/src/mapserver/mapcairo.c:817: erreur: >>> ?CAIRO_OPERATOR_LIGHTEN? undeclared (first use in this function) >>> /opt/geomatique/src/mapserver/mapcairo.c:819: erreur: >>> ?CAIRO_OPERATOR_COLOR_DODGE? undeclared (first use in this function) >>> /opt/geomatique/src/mapserver/mapcairo.c:821: erreur: >>> ?CAIRO_OPERATOR_COLOR_BURN? undeclared (first use in this function) >>> /opt/geomatique/src/mapserver/mapcairo.c:823: erreur: >>> ?CAIRO_OPERATOR_HARD_LIGHT? undeclared (first use in this function) >>> /opt/geomatique/src/mapserver/mapcairo.c:825: erreur: >>> ?CAIRO_OPERATOR_SOFT_LIGHT? undeclared (first use in this function) >>> /opt/geomatique/src/mapserver/mapcairo.c:827: erreur: >>> ?CAIRO_OPERATOR_DIFFERENCE? undeclared (first use in this function) >>> /opt/geomatique/src/mapserver/mapcairo.c:829: erreur: >>> ?CAIRO_OPERATOR_EXCLUSION? undeclared (first use in this function) >>> make[2]: *** [CMakeFiles/mapserver.dir/mapcairo.c.o] Erreur 1 >>> make[1]: *** [CMakeFiles/mapserver.dir/all] Erreur 2 >>> make: *** [all] Erreur 2 >>> >>> I do have cairo and cairo-devel installed (1.8.8-3.1.el6). >>> >>> How can I fix this? >>> >>> Thanks you >> From Steve.Toutant at inspq.qc.ca Tue May 5 06:53:51 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 5 May 2015 09:53:51 -0400 Subject: [mapserver-users] RE Mapserver 7 make error In-Reply-To: <201505051520.40429.even.rouault@spatialys.com> References: <201505051520.40429.even.rouault@spatialys.com> Message-ID: Cairo version is 1.8 on my centos6.5 distro, and the system admin won't let me update it Just not using mapserver from the distro was a hard fight.... Even Rouault 2015-05-05 09:20 A mapserver-users at lists.osgeo.org cc Steve.Toutant at inspq.qc.ca Objet Re: [mapserver-users] RE Mapserver 7 make error Le mardi 05 mai 2015 15:13:34, Steve.Toutant at inspq.qc.ca a ?crit : > Any hint on what can I do about that Cairo error when compiling mapserv? > Thank you Steve, you need to upgrade to a more recent version of cairo. Perhaps 1.10 or 1.12. I think Thomas mentionned to me that it might be possible to use older cairo by using older names for the CAIRO_OPERATOR_xxxx values. I think we discussed that in a github ticket (not sure), but can't find it anymore. Even > > > > > Steve Toutant/INSPQ/SSSS > 2015-05-01 15:11 > > A > mapserver-users at lists.osgeo.org > cc > > Objet > Mapserver 7 make error > > > > > > > > I'm compiling MS7 on Centos 6.5. I get an error running make > > make > > Scanning dependencies of target mapserver > > [ 0%] Building C object CMakeFiles/mapserver.dir/fontcache.c.o > > [ 1%] Building C object CMakeFiles/mapserver.dir/cgiutil.c.o > > [ 2%] Building C object CMakeFiles/mapserver.dir/mapgeos.c.o > > [ 2%] Building C object CMakeFiles/mapserver.dir/maporaclespatial.c.o > > [ 3%] Building C object CMakeFiles/mapserver.dir/mapsearch.c.o > > [ 4%] Building C object CMakeFiles/mapserver.dir/mapwms.c.o > > [ 4%] Building C object CMakeFiles/mapserver.dir/classobject.c.o > > [ 5%] Building C object CMakeFiles/mapserver.dir/mapgml.c.o > > [ 6%] Building C object CMakeFiles/mapserver.dir/mapoutput.c.o > > [ 6%] Building C object CMakeFiles/mapserver.dir/mapwmslayer.c.o > > [ 7%] Building C object CMakeFiles/mapserver.dir/layerobject.c.o > > [ 8%] Building C object CMakeFiles/mapserver.dir/mapgraticule.c.o > > [ 8%] Building C object CMakeFiles/mapserver.dir/mapows.c.o > > [ 9%] Building C object CMakeFiles/mapserver.dir/mapservutil.c.o > > [ 10%] Building C object CMakeFiles/mapserver.dir/mapxbase.c.o > > [ 10%] Building C object CMakeFiles/mapserver.dir/maphash.c.o > > [ 11%] Building C object CMakeFiles/mapserver.dir/mapowscommon.c.o > > [ 11%] Building C object CMakeFiles/mapserver.dir/mapshape.c.o > > [ 12%] Building C object CMakeFiles/mapserver.dir/mapxml.c.o > > [ 13%] Building C object CMakeFiles/mapserver.dir/mapbits.c.o > > [ 13%] Building C object CMakeFiles/mapserver.dir/maphttp.c.o > > [ 14%] Building C object CMakeFiles/mapserver.dir/mapparser.c.o > > [ 15%] Building C object CMakeFiles/mapserver.dir/mapstring.c.o > > [ 15%] Building C object CMakeFiles/mapserver.dir/mapxmp.c.o > > [ 16%] Building C object CMakeFiles/mapserver.dir/mapcairo.c.o > > /opt/geomatique/src/mapserver/mapcairo.c: In function ?ms2cairo_compop?: > > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: > ?CAIRO_OPERATOR_MULTIPLY? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: (Each undeclared > identifier is reported only once > > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: for each function it > appears in.) > > /opt/geomatique/src/mapserver/mapcairo.c:811: erreur: > ?CAIRO_OPERATOR_SCREEN? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:813: erreur: > ?CAIRO_OPERATOR_OVERLAY? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:815: erreur: > ?CAIRO_OPERATOR_DARKEN? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:817: erreur: > ?CAIRO_OPERATOR_LIGHTEN? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:819: erreur: > ?CAIRO_OPERATOR_COLOR_DODGE? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:821: erreur: > ?CAIRO_OPERATOR_COLOR_BURN? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:823: erreur: > ?CAIRO_OPERATOR_HARD_LIGHT? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:825: erreur: > ?CAIRO_OPERATOR_SOFT_LIGHT? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:827: erreur: > ?CAIRO_OPERATOR_DIFFERENCE? undeclared (first use in this function) > > /opt/geomatique/src/mapserver/mapcairo.c:829: erreur: > ?CAIRO_OPERATOR_EXCLUSION? undeclared (first use in this function) > > make[2]: *** [CMakeFiles/mapserver.dir/mapcairo.c.o] Erreur 1 > > make[1]: *** [CMakeFiles/mapserver.dir/all] Erreur 2 > > make: *** [all] Erreur 2 > > > I do have cairo and cairo-devel installed (1.8.8-3.1.el6). > How can I fix this? > Thanks you -- Spatialys - Geospatial professional services http://www.spatialys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at spatialys.com Tue May 5 07:04:47 2015 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 5 May 2015 16:04:47 +0200 Subject: [mapserver-users] RE Mapserver 7 make error In-Reply-To: References: <201505051520.40429.even.rouault@spatialys.com> Message-ID: <201505051604.47402.even.rouault@spatialys.com> Le mardi 05 mai 2015 15:53:51, Steve.Toutant at inspq.qc.ca a ?crit : > Cairo version is 1.8 on my centos6.5 distro, and the system admin won't > let me update it > Just not using mapserver from the distro was a hard fight.... Several options : - bribe your sys admin - upgrade to centos 7 - install a centos 7 VM within the centos 6.5 - bundle a more recent cairo alongside with mapserver, in a non system directory - edit mapserver sources to use the older enum values (if that tricks actually works) > > > > > > > Even Rouault > 2015-05-05 09:20 > > A > mapserver-users at lists.osgeo.org > cc > Steve.Toutant at inspq.qc.ca > Objet > Re: [mapserver-users] RE Mapserver 7 make error > > Le mardi 05 mai 2015 15:13:34, Steve.Toutant at inspq.qc.ca a ?crit : > > Any hint on what can I do about that Cairo error when compiling mapserv? > > Thank you > > Steve, > > you need to upgrade to a more recent version of cairo. Perhaps 1.10 or > 1.12. > I think Thomas mentionned to me that it might be possible to use older > cairo > by using older names for the CAIRO_OPERATOR_xxxx values. I think we > discussed > that in a github ticket (not sure), but can't find it anymore. > > Even > > > Steve Toutant/INSPQ/SSSS > > 2015-05-01 15:11 > > > > A > > mapserver-users at lists.osgeo.org > > cc > > > > Objet > > Mapserver 7 make error > > > > > > > > > > > > > > > > I'm compiling MS7 on Centos 6.5. I get an error running make > > > > make > > > > Scanning dependencies of target mapserver > > > > [ 0%] Building C object CMakeFiles/mapserver.dir/fontcache.c.o > > > > [ 1%] Building C object CMakeFiles/mapserver.dir/cgiutil.c.o > > > > [ 2%] Building C object CMakeFiles/mapserver.dir/mapgeos.c.o > > > > [ 2%] Building C object CMakeFiles/mapserver.dir/maporaclespatial.c.o > > > > [ 3%] Building C object CMakeFiles/mapserver.dir/mapsearch.c.o > > > > [ 4%] Building C object CMakeFiles/mapserver.dir/mapwms.c.o > > > > [ 4%] Building C object CMakeFiles/mapserver.dir/classobject.c.o > > > > [ 5%] Building C object CMakeFiles/mapserver.dir/mapgml.c.o > > > > [ 6%] Building C object CMakeFiles/mapserver.dir/mapoutput.c.o > > > > [ 6%] Building C object CMakeFiles/mapserver.dir/mapwmslayer.c.o > > > > [ 7%] Building C object CMakeFiles/mapserver.dir/layerobject.c.o > > > > [ 8%] Building C object CMakeFiles/mapserver.dir/mapgraticule.c.o > > > > [ 8%] Building C object CMakeFiles/mapserver.dir/mapows.c.o > > > > [ 9%] Building C object CMakeFiles/mapserver.dir/mapservutil.c.o > > > > [ 10%] Building C object CMakeFiles/mapserver.dir/mapxbase.c.o > > > > [ 10%] Building C object CMakeFiles/mapserver.dir/maphash.c.o > > > > [ 11%] Building C object CMakeFiles/mapserver.dir/mapowscommon.c.o > > > > [ 11%] Building C object CMakeFiles/mapserver.dir/mapshape.c.o > > > > [ 12%] Building C object CMakeFiles/mapserver.dir/mapxml.c.o > > > > [ 13%] Building C object CMakeFiles/mapserver.dir/mapbits.c.o > > > > [ 13%] Building C object CMakeFiles/mapserver.dir/maphttp.c.o > > > > [ 14%] Building C object CMakeFiles/mapserver.dir/mapparser.c.o > > > > [ 15%] Building C object CMakeFiles/mapserver.dir/mapstring.c.o > > > > [ 15%] Building C object CMakeFiles/mapserver.dir/mapxmp.c.o > > > > [ 16%] Building C object CMakeFiles/mapserver.dir/mapcairo.c.o > > > > /opt/geomatique/src/mapserver/mapcairo.c: In function ?ms2cairo_compop?: > > > > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: > > ?CAIRO_OPERATOR_MULTIPLY? undeclared (first use in this function) > > > > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: (Each undeclared > > identifier is reported only once > > > > /opt/geomatique/src/mapserver/mapcairo.c:809: erreur: for each function > > it > > > appears in.) > > > > /opt/geomatique/src/mapserver/mapcairo.c:811: erreur: > > ?CAIRO_OPERATOR_SCREEN? undeclared (first use in this function) > > > > /opt/geomatique/src/mapserver/mapcairo.c:813: erreur: > > ?CAIRO_OPERATOR_OVERLAY? undeclared (first use in this function) > > > > /opt/geomatique/src/mapserver/mapcairo.c:815: erreur: > > ?CAIRO_OPERATOR_DARKEN? undeclared (first use in this function) > > > > /opt/geomatique/src/mapserver/mapcairo.c:817: erreur: > > ?CAIRO_OPERATOR_LIGHTEN? undeclared (first use in this function) > > > > /opt/geomatique/src/mapserver/mapcairo.c:819: erreur: > > ?CAIRO_OPERATOR_COLOR_DODGE? undeclared (first use in this function) > > > > /opt/geomatique/src/mapserver/mapcairo.c:821: erreur: > > ?CAIRO_OPERATOR_COLOR_BURN? undeclared (first use in this function) > > > > /opt/geomatique/src/mapserver/mapcairo.c:823: erreur: > > ?CAIRO_OPERATOR_HARD_LIGHT? undeclared (first use in this function) > > > > /opt/geomatique/src/mapserver/mapcairo.c:825: erreur: > > ?CAIRO_OPERATOR_SOFT_LIGHT? undeclared (first use in this function) > > > > /opt/geomatique/src/mapserver/mapcairo.c:827: erreur: > > ?CAIRO_OPERATOR_DIFFERENCE? undeclared (first use in this function) > > > > /opt/geomatique/src/mapserver/mapcairo.c:829: erreur: > > ?CAIRO_OPERATOR_EXCLUSION? undeclared (first use in this function) > > > > make[2]: *** [CMakeFiles/mapserver.dir/mapcairo.c.o] Erreur 1 > > > > make[1]: *** [CMakeFiles/mapserver.dir/all] Erreur 2 > > > > make: *** [all] Erreur 2 > > > > > > I do have cairo and cairo-devel installed (1.8.8-3.1.el6). > > How can I fix this? > > Thanks you -- Spatialys - Geospatial professional services http://www.spatialys.com From Steve.Toutant at inspq.qc.ca Tue May 5 12:25:07 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 5 May 2015 15:25:07 -0400 Subject: [mapserver-users] WFS getFeature,maxfeatures using POST Message-ID: It seems that maxFeatures=x is not used when using post request GET http://demo.mapserver.org/cgi-bin/wfs?VERSION=1.1.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&maxFeatures=2 POST (see attached file) curl -X POST -d @msdemo.xml http://demo.mapserver.org/cgi-bin/wfs? --header "Content-Type:text/xml" I tried with MS6.4 and MS7 also. Is it a bug or I don't create the payload correctly? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Tue May 5 12:30:19 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 5 May 2015 15:30:19 -0400 Subject: [mapserver-users] RE WFS getFeature,maxfeatures using POST In-Reply-To: References: Message-ID: ok I got it, maxfeatures goes in getFeature part...not in the query part From Steve.Lime at state.mn.us Wed May 6 11:06:36 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 6 May 2015 18:06:36 +0000 Subject: [mapserver-users] - Mapserver 7 In-Reply-To: References: <1848458972.549896980.1427180815782.JavaMail.root@zimbra34-e6.priv.proxad.net> <1346826171.549898004.1427180851928.JavaMail.root@zimbra34-e6.priv.proxad.net> <301B8AEA64C24846BE688A7CFD223FC05B56F8@DAGN09c-e6.exg6.exghost.com> Message-ID: Excellent. Once those are in place a beta 2 could be cut IMHO? From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, May 05, 2015 8:03 AM To: Lime, Steve D (MNIT) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] - Mapserver 7 I'll try to fix the mssql issue later in this week. I'd also like to get a couple of enhancements related to the legend/scalebar rendering into MapServer7, like the ability to render the legend and scalebar as SVG symbols. Best regards, Tamas 2015-05-04 17:24 GMT+02:00 Lime, Steve D (MNIT) >: There's blocker ticket out there related to WMS time and MSSQL server. I hope to get at it this week. I think when that's handled we can get back on track with a beta2 and then a candidate release. ________________________________________ From: Ian Walberg [ian.walberg at airborne.aero] Sent: Monday, May 04, 2015 10:02 AM To: Lime, Steve D (MNIT); scott159 at free.fr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] - Mapserver 7 Is there a new planned release date for version 7? Any areas that you need help? Thanks, Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT) Sent: Tuesday, March 24, 2015 9:55 AM To: scott159 at free.fr; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] - Mapserver 7 Another beta should be along soon (within a week?). Feedback/testing has been pretty slow to come thus far... The more of that we get the faster the release process will go. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of scott159 at free.fr Sent: Tuesday, March 24, 2015 2:08 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] - Mapserver 7 Is there a date to next beta or release ? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From james.evans.4 at us.af.mil Wed May 6 16:26:33 2015 From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE) Date: Wed, 6 May 2015 23:26:33 +0000 Subject: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 Message-ID: <20EA793B1BC710448656BDC9BD25C4A12F8AADEF@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> Hi, I was previously using IIS 7 on Windows 7, and was running a php script that called the gdal mini drivers to serve up a tiled image set. Now I'm trying to get it to work on Server 2008. For some reason, it does not seem to work. On the IIS log file, I can see the valid request come in, and I can see php calling the mini drivers. I just don't get an image back on the client side. The logs from the working IIS on windows 7 looks just like the logs on the non working Windows Server 2008. It could be some sort of security setting, or a permissions problem. Also, is there something I need to do to enable the gdal mini drivers? It's been about 2 years since I set this up previously and I just don't remember having this problem before. Any hints on how to verify the PHP is working, and how the gdal mini drivers are running would be appreciated. Thanks, James From ahmettemiz88 at gmail.com Thu May 7 01:20:11 2015 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Thu, 7 May 2015 11:20:11 +0300 Subject: [mapserver-users] overviews from Postgis-Raster Message-ID: hello Can you give me a hint about using overviews from Postgis-raster data store ? kind regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Evans at hill.af.mil Thu May 7 04:35:58 2015 From: James.Evans at hill.af.mil (James_in_Utah) Date: Thu, 7 May 2015 04:35:58 -0700 (PDT) Subject: [mapserver-users] URL redirection under IIS In-Reply-To: <554776AE.5040206@gatewaygeomatics.com> References: <20EA793B1BC710448656BDC9BD25C4A12F8A0AA3@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <3d571f22db1648fc8f6b225fc08b1ce8@OPASAKLPMBX03.nz01a.opaas.net.nz> <554776AE.5040206@gatewaygeomatics.com> Message-ID: <1430998558077-5204594.post@n6.nabble.com> Thanks for the replies. I got it working for the most part by downloading and installing the URL Rewrite module for IIS from Microsoft. Using that you create a web.config file with rewrite rules in it. The file goes in the inetpub\wwwroot directory. Funny thin is, the same rules that worked under IIS 7 on Windows 7 don't work under Server 2008. It seems to be much more picky. I remember it being much easier under Apache. Thanks, James -- View this message in context: http://osgeo-org.1560.x6.nabble.com/URL-redirection-under-IIS-tp5203788p5204594.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Thu May 7 04:42:28 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 07 May 2015 08:42:28 -0300 Subject: [mapserver-users] URL redirection under IIS In-Reply-To: <1430998558077-5204594.post@n6.nabble.com> References: <20EA793B1BC710448656BDC9BD25C4A12F8A0AA3@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <3d571f22db1648fc8f6b225fc08b1ce8@OPASAKLPMBX03.nz01a.opaas.net.nz> <554776AE.5040206@gatewaygeomatics.com> <1430998558077-5204594.post@n6.nabble.com> Message-ID: <554B4FA4.5000501@gatewaygeomatics.com> Hi James, If you want some Open Source karma you could write all of your IIS notes as you travel down this path onto the MapServer wiki, for the whole community: https://github.com/mapserver/mapserver/wiki -jeff On 2015-05-07 8:35 AM, James_in_Utah wrote: > Thanks for the replies. I got it working for the most part by downloading > and installing the URL Rewrite module for IIS from Microsoft. Using that > you create a web.config file with rewrite rules in it. The file goes in the > inetpub\wwwroot directory. Funny thin is, the same rules that worked under > IIS 7 on Windows 7 don't work under Server 2008. It seems to be much more > picky. I remember it being much easier under Apache. > Thanks, > James > > > > -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Thu May 7 04:48:07 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 07 May 2015 08:48:07 -0300 Subject: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 In-Reply-To: <20EA793B1BC710448656BDC9BD25C4A12F8AADEF@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> References: <20EA793B1BC710448656BDC9BD25C4A12F8AADEF@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> Message-ID: <554B50F7.2070708@gatewaygeomatics.com> On 2015-05-06 8:26 PM, EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE wrote: > Hi, > I was previously using IIS 7 on Windows 7, and was running a php script that called the gdal mini drivers to serve up a tiled image set. Now I'm trying to get it to work on Server 2008. For some reason, it does not seem to work. On the IIS log file, I can see the valid request come in, and I can see php calling the mini drivers. I just don't get an image back on the client side. The logs from the working IIS on windows 7 looks just like the logs on the non working Windows Server 2008. It could be some sort of security setting, or a permissions problem. Also, is there something I need to do to enable the gdal mini drivers? It's been about 2 years since I set this up previously and I just don't remember having this problem before. Any hints on how to verify the PHP is working, and how the gdal mini drivers are running would be appreciated. > Thanks, > James > I would definitely head to the command prompt on the Windows machine, and then call php.exe through the commandline, passing it your .php file that is supposed to generate your map image, such as: php myscript.php You might also make sure that your test php script shows all errors (I think it can be set directly inside your script with: error_reporting(E_ALL) but I might be wrong on syntax... -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From James.Evans at hill.af.mil Thu May 7 05:10:05 2015 From: James.Evans at hill.af.mil (James_in_Utah) Date: Thu, 7 May 2015 05:10:05 -0700 (PDT) Subject: [mapserver-users] URL redirection under IIS In-Reply-To: <554B4FA4.5000501@gatewaygeomatics.com> References: <20EA793B1BC710448656BDC9BD25C4A12F8A0AA3@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <3d571f22db1648fc8f6b225fc08b1ce8@OPASAKLPMBX03.nz01a.opaas.net.nz> <554776AE.5040206@gatewaygeomatics.com> <1430998558077-5204594.post@n6.nabble.com> <554B4FA4.5000501@gatewaygeomatics.com> Message-ID: <1431000605089-5204607.post@n6.nabble.com> I will do that. It might come in handy for myself when I go through this in another year or two... -- View this message in context: http://osgeo-org.1560.x6.nabble.com/URL-redirection-under-IIS-tp5203788p5204607.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Thu May 7 05:18:27 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 07 May 2015 09:18:27 -0300 Subject: [mapserver-users] overviews from Postgis-Raster In-Reply-To: References: Message-ID: <554B5813.3050206@gatewaygeomatics.com> On 2015-05-07 5:20 AM, Ahmet Temiz wrote: > hello > > Can you give me a hint about using overviews from Postgis-raster data > store ? > > kind regards > > I use PG 9.4.1 with Postgis 2.1.7 on MS4W and Ubuntu, and when I load raster data, to create overviews through the raster2pgsql utility I specify the "-l" switch and a factor, such as "-l 2". That will produce an extra table containing the overviews (if the regular table is "lidar", the overview table will be named "o_2_lidar"). Then I can choose to show either table in MapServer. If I want to show the overview table, I would specify "table=0_2_lidar" inside my DATA statement in the mapfile. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Thu May 7 05:20:02 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 07 May 2015 09:20:02 -0300 Subject: [mapserver-users] URL redirection under IIS In-Reply-To: <1431000605089-5204607.post@n6.nabble.com> References: <20EA793B1BC710448656BDC9BD25C4A12F8A0AA3@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <3d571f22db1648fc8f6b225fc08b1ce8@OPASAKLPMBX03.nz01a.opaas.net.nz> <554776AE.5040206@gatewaygeomatics.com> <1430998558077-5204594.post@n6.nabble.com> <554B4FA4.5000501@gatewaygeomatics.com> <1431000605089-5204607.post@n6.nabble.com> Message-ID: <554B5872.7080803@gatewaygeomatics.com> Bingo, I am constantly referring to my own docs written years ago, everyday :) Thanks James. -jeff On 2015-05-07 9:10 AM, James_in_Utah wrote: > I will do that. It might come in handy for myself when I go through this in > another year or two... > > > -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From David.Fawcett at state.mn.us Thu May 7 08:18:47 2015 From: David.Fawcett at state.mn.us (Fawcett, David (MNIT)) Date: Thu, 7 May 2015 15:18:47 +0000 Subject: [mapserver-users] URL redirection under IIS In-Reply-To: <554B5872.7080803@gatewaygeomatics.com> References: <20EA793B1BC710448656BDC9BD25C4A12F8A0AA3@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <3d571f22db1648fc8f6b225fc08b1ce8@OPASAKLPMBX03.nz01a.opaas.net.nz> <554776AE.5040206@gatewaygeomatics.com> <1430998558077-5204594.post@n6.nabble.com> <554B4FA4.5000501@gatewaygeomatics.com> <1431000605089-5204607.post@n6.nabble.com> <554B5872.7080803@gatewaygeomatics.com> Message-ID: Several times, I have done a search for how to do something in MapServer or PostGIS, and ended up finding one of my old posts to the list... -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Thursday, May 07, 2015 7:20 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] URL redirection under IIS Bingo, I am constantly referring to my own docs written years ago, everyday :) Thanks James. -jeff On 2015-05-07 9:10 AM, James_in_Utah wrote: > I will do that. It might come in handy for myself when I go through > this in another year or two... > > > -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From james.evans.4 at us.af.mil Thu May 7 11:41:26 2015 From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE) Date: Thu, 7 May 2015 18:41:26 +0000 Subject: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 In-Reply-To: <554B50F7.2070708@gatewaygeomatics.com> References: <20EA793B1BC710448656BDC9BD25C4A12F8AADEF@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <554B50F7.2070708@gatewaygeomatics.com> Message-ID: <20EA793B1BC710448656BDC9BD25C4A12F8ABFC8@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> I am making no progress on getting this working. I did add the error_reporting(E_All) to the script, but I don't get any errors. From the IIS log, it looks like the server is getting the request, php must be reading the script and calling the mini driver. It looks like the gdal mini driver is trying to read the base imagery and is failing. Here is a piece of the IIS log: 2015-05-07 17:06:33 10.89.89.44 GET /mapserver/mapserv.exe map=content/servemap.map&service=WMS&request=GetMap&version=1.3&crs=CRS:84&layers=Land_Sea&styles=default&transparent=TRUE&format=image/png&width=512&height=512&bbox=-72.0,18.0,-36.0,54.0 80 - 10.89.89.191 Java/1.7.0_51 200 0 0 1875 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=7&Y=6 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=6&Y=6 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 3221225595 718 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=8&Y=6 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=6&Y=5 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=7&Y=5 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=8&Y=5 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 15 If I try to send the URL from a browser, I get back an error that says this: msDrawMap(): Image handling error. Failed to draw layer named 'Land_Sea'. drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: c:\MapData\Land-Sea.xml, band 1: IReadBlock failed at X offset 9, Y offset 4 I really don't know how to troubleshoot this. The pieces I have to work with are the map file, the layer XML files, for example Land-Sea.xml, the Tile.php script, (which seems to be working), and the tiled image set. These same pieces work great with the same version of Mapserver, from GISInternals, on Windows 7 running IIS 7. I'm thinking that this must be a permissions problem on Windows Server 2008. Any ideas on where to go from here would be appreciated. Thanks, James -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Thursday, May 07, 2015 5:48 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 I would definitely head to the command prompt on the Windows machine, and then call php.exe through the commandline, passing it your .php file that is supposed to generate your map image, such as: php myscript.php You might also make sure that your test php script shows all errors (I think it can be set directly inside your script with: error_reporting(E_ALL) but I might be wrong on syntax... -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From geographika at gmail.com Thu May 7 13:02:21 2015 From: geographika at gmail.com (geographika) Date: Thu, 07 May 2015 22:02:21 +0200 Subject: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 In-Reply-To: <20EA793B1BC710448656BDC9BD25C4A12F8ABFC8@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> References: <20EA793B1BC710448656BDC9BD25C4A12F8AADEF@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <554B50F7.2070708@gatewaygeomatics.com> <20EA793B1BC710448656BDC9BD25C4A12F8ABFC8@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> Message-ID: <554BC4CD.8020001@gmail.com> Hi, Definitely looks like a permissions issue. Try granting read-access on the c:\MapData folder to "IIS AppPool\DefaultAppPool" user - assuming this is the application pool that MapServer and/or PHP is running under using CGI. If that fails try granting "Everyone" read-only access to see if it is permissions. Regards, Seth On 07/05/2015 20:41, EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE wrote: > I am making no progress on getting this working. I did add the error_reporting(E_All) to the script, but I don't get any errors. From the IIS log, it looks like the server is getting the request, php must be reading the script and calling the mini driver. It looks like the gdal mini driver is trying to read the base imagery and is failing. Here is a piece of the IIS log: > > > 2015-05-07 17:06:33 10.89.89.44 GET /mapserver/mapserv.exe map=content/servemap.map&service=WMS&request=GetMap&version=1.3&crs=CRS:84&layers=Land_Sea&styles=default&transparent=TRUE&format=image/png&width=512&height=512&bbox=-72.0,18.0,-36.0,54.0 80 - 10.89.89.191 Java/1.7.0_51 200 0 0 1875 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=7&Y=6 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=6&Y=6 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 3221225595 718 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=8&Y=6 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=6&Y=5 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=7&Y=5 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=8&Y=5 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 15 > > If I try to send the URL from a browser, I get back an error that says this: > > > > > > msDrawMap(): Image handling error. Failed to draw layer named 'Land_Sea'. > drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: c:\MapData\Land-Sea.xml, band 1: IReadBlock failed at X offset 9, Y offset 4 > > > > I really don't know how to troubleshoot this. The pieces I have to work with are the map file, the layer XML files, for example Land-Sea.xml, the Tile.php script, (which seems to be working), and the tiled image set. These same pieces work great with the same version of Mapserver, from GISInternals, on Windows 7 running IIS 7. I'm thinking that this must be a permissions problem on Windows Server 2008. Any ideas on where to go from here would be appreciated. > Thanks, > James > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: Thursday, May 07, 2015 5:48 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 > > > I would definitely head to the command prompt on the Windows machine, and then call php.exe through the commandline, passing it your .php file that is supposed to generate your map image, such as: > > php myscript.php > > You might also make sure that your test php script shows all errors (I think it can be set directly inside your script with: > error_reporting(E_ALL) but I might be wrong on syntax... > > -jeff > > -- > Jeff McKenna > MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From James.Evans at hill.af.mil Thu May 7 19:58:09 2015 From: James.Evans at hill.af.mil (James_in_Utah) Date: Thu, 7 May 2015 19:58:09 -0700 (PDT) Subject: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 In-Reply-To: <554BC4CD.8020001@gmail.com> References: <20EA793B1BC710448656BDC9BD25C4A12F8AADEF@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <554B50F7.2070708@gatewaygeomatics.com> <20EA793B1BC710448656BDC9BD25C4A12F8ABFC8@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <554BC4CD.8020001@gmail.com> Message-ID: <1431053889401-5204752.post@n6.nabble.com> I saw that suggestion at the end of the day, and I quickly set C:\MapData permission to allow "everyone" to have read, and that had no effect. I got the same error. I do think it's a permission issue, maybe just not reading the tiles. I didn't see any IUSR_MachineName type user, or any other IIS type user, so I'm thinking the app pool calling gdal doesn't exist. I have no idea what I'm doing here. This was pretty automatic when I tried it under Windows 7. I guess I'll spend the weekend trying to come up to speed on IIS default users. I won't be back in the office to try anything until Monday, but any suggestions would be welcomed. Thanks, James -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GDal-Mini-drivers-and-php-script-under-IIS-7-on-Windows-Server-2008-tp5204513p5204752.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ahmettemiz88 at gmail.com Fri May 8 01:55:01 2015 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Fri, 8 May 2015 11:55:01 +0300 Subject: [mapserver-users] overviews from Postgis-Raster In-Reply-To: <554B5813.3050206@gatewaygeomatics.com> References: <554B5813.3050206@gatewaygeomatics.com> Message-ID: Thank you, Are overview tables constructed as different layers in mapserver's map file ? if so, I guess: according to zoom level, we choose overview layers or original full resolution map. Am I correct ? please let me know On Thu, May 7, 2015 at 3:18 PM, Jeff McKenna wrote: > On 2015-05-07 5:20 AM, Ahmet Temiz wrote: > >> hello >> >> Can you give me a hint about using overviews from Postgis-raster data >> store ? >> >> kind regards >> >> >> > > I use PG 9.4.1 with Postgis 2.1.7 on MS4W and Ubuntu, and when I load > raster data, to create overviews through the raster2pgsql utility I specify > the "-l" switch and a factor, such as "-l 2". That will produce an extra > table containing the overviews (if the regular table is "lidar", the > overview table will be named "o_2_lidar"). Then I can choose to show > either table in MapServer. If I want to show the overview table, I would > specify "table=0_2_lidar" inside my DATA statement in the mapfile. > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From irineu at rassystem.com.br Fri May 8 12:40:11 2015 From: irineu at rassystem.com.br (Irineu Ruiz) Date: Fri, 8 May 2015 16:40:11 -0300 Subject: [mapserver-users] Mapserver Dynamic Heatmap in Google Maps Message-ID: Hi everybody, I hava a doubt. We use Mapserver + Postgresql + Google Maps in our web system to show differents customized layers to ours users. I see the new feature in Mapserver 7 ( http://mapserver.org/development/rfc/ms-rfc-108.html) for heatmap. This new feature works fine in Google Maps Layers with tiles? Thanks! -- [image: E-mail] *Irineu Ruiz* Rua Helena, 275 - 12? Andar - Vila Ol?mpia 04552-050 - S?o Paulo - SP ? (011) 2667-0708 www.rassystem.com.br ? *irineu at rassystem.com.br * -------------- next part -------------- An HTML attachment was scrubbed... URL: From geographika at gmail.com Mon May 11 05:21:07 2015 From: geographika at gmail.com (geographika) Date: Mon, 11 May 2015 14:21:07 +0200 Subject: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 In-Reply-To: <1431053889401-5204752.post@n6.nabble.com> References: <20EA793B1BC710448656BDC9BD25C4A12F8AADEF@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <554B50F7.2070708@gatewaygeomatics.com> <20EA793B1BC710448656BDC9BD25C4A12F8ABFC8@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <554BC4CD.8020001@gmail.com> <1431053889401-5204752.post@n6.nabble.com> Message-ID: <55509EB3.7040902@gmail.com> The "Everyone" group doesn't actually included everyone - and not IIS users. If you haven't created your own application pools, or set up impersonation, then they will be using an account named: "IIS AppPool\DefaultAppPool" If you enter this in the security permissions tab is should become underlined to show it exists. On 08/05/2015 04:58, James_in_Utah wrote: > I saw that suggestion at the end of the day, and I quickly set C:\MapData > permission to allow "everyone" to have read, and that had no effect. I got > the same error. I do think it's a permission issue, maybe just not reading > the tiles. I didn't see any IUSR_MachineName type user, or any other IIS > type user, so I'm thinking the app pool calling gdal doesn't exist. I have > no idea what I'm doing here. This was pretty automatic when I tried it > under Windows 7. I guess I'll spend the weekend trying to come up to speed > on IIS default users. I won't be back in the office to try anything until > Monday, but any suggestions would be welcomed. > Thanks, > James > > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/GDal-Mini-drivers-and-php-script-under-IIS-7-on-Windows-Server-2008-tp5204513p5204752.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From james.evans.4 at us.af.mil Mon May 11 11:01:35 2015 From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE) Date: Mon, 11 May 2015 18:01:35 +0000 Subject: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 In-Reply-To: <554BC4CD.8020001@gmail.com> References: <20EA793B1BC710448656BDC9BD25C4A12F8AADEF@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <554B50F7.2070708@gatewaygeomatics.com> <20EA793B1BC710448656BDC9BD25C4A12F8ABFC8@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <554BC4CD.8020001@gmail.com> Message-ID: <20EA793B1BC710448656BDC9BD25C4A12F8AD562@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> Still no resolution to this issue. I gave the DefaultAppPool user Full Control over the MapData directory. No help. I then set Full Control of MapData to "Everyone". Still no help. I did figure out that Windows Server 2008 R2 doesn't come with the MS C++ Redistributables by default. I installed those and now I can run the PHP script from the command line. I still can't make URL request to the mapserver requesting anything from the GDAL WW Minidriver though. Below are the IIS log and Mapserver log entry. Any additional suggestions on how to troubleshoot this would be greatly appreciated. Here are the logs from IIS: 2015-05-11 16:36:44 10.89.89.44 GET /mapserver/mapserv.exe map=content/servemap.map&service=WMS&request=GetMap&version=1.3&crs=CRS:84&layers=WAC_2014&styles=default&transparent=TRUE&format=image/png&width=512&height=512&bbox=72.0,22.5,74.25,24.75 80 - 10.89.89.74 Java/1.7.0_51 200 0 0 62 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=223&Y=101 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=224&Y=101 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=225&Y=101 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=226&Y=101 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=223&Y=100 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=224&Y=100 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=225&Y=100 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=226&Y=100 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=223&Y=99 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=224&Y=99 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=225&Y=99 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=226&Y=99 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 Here's what happens in the Mapserver Log: [Mon May 11 10:36:44 2015].62000 msDrawRasterLayerLow(WAC_2014): entering. [Mon May 11 10:36:44 2015].62000 msDrawRasterLayerLow(WAC_2014): Filename is: c:\MapData\WAC_2014.xml [Mon May 11 10:36:44 2015].62000 msDrawRasterLayerLow(WAC_2014): Path is: c:\MapData\WAC_2014.xml [Mon May 11 10:36:44 2015].62000 msResampleGDALToMap in effect: cellsize = 0.002197 [Mon May 11 10:36:44 2015].62000 msDrawGDAL(WAC_2014): using RAW_WINDOW=114687 29695 1026 1026, dst=0,0,1026,1026 [Mon May 11 10:36:44 2015].62000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,0 [Mon May 11 10:36:44 2015].78000 drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: GetBlockRef failed at X block offset 223, Y block offset 57 [Mon May 11 10:36:44 2015].78000 msDrawMap(): Image handling error. Failed to draw layer named 'WAC_2014'. [Mon May 11 10:36:44 2015].78000 freeLayer(): freeing layer at 000000000043D5C0. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of geographika Sent: Thursday, May 07, 2015 2:02 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 Hi, Definitely looks like a permissions issue. Try granting read-access on the c:\MapData folder to "IIS AppPool\DefaultAppPool" user - assuming this is the application pool that MapServer and/or PHP is running under using CGI. If that fails try granting "Everyone" read-only access to see if it is permissions. Regards, Seth On 07/05/2015 20:41, EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE wrote: > I am making no progress on getting this working. I did add the error_reporting(E_All) to the script, but I don't get any errors. From the IIS log, it looks like the server is getting the request, php must be reading the script and calling the mini driver. It looks like the gdal mini driver is trying to read the base imagery and is failing. Here is a piece of the IIS log: > > > 2015-05-07 17:06:33 10.89.89.44 GET /mapserver/mapserv.exe > map=content/servemap.map&service=WMS&request=GetMap&version=1.3&crs=CR > S:84&layers=Land_Sea&styles=default&transparent=TRUE&format=image/png& > width=512&height=512&bbox=-72.0,18.0,-36.0,54.0 80 - 10.89.89.191 > Java/1.7.0_51 200 0 0 1875 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > T=Land-Sea&L=1&X=7&Y=6 80 - 127.0.0.1 > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > T=Land-Sea&L=1&X=6&Y=6 80 - 127.0.0.1 > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 3221225595 > 718 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > T=Land-Sea&L=1&X=8&Y=6 80 - 127.0.0.1 > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > T=Land-Sea&L=1&X=6&Y=5 80 - 127.0.0.1 > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > T=Land-Sea&L=1&X=7&Y=5 80 - 127.0.0.1 > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > T=Land-Sea&L=1&X=8&Y=5 80 - 127.0.0.1 > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 > 15 > > If I try to send the URL from a browser, I get back an error that says this: > > ServiceExceptionReport SYSTEM > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > msDrawMap(): Image handling error. Failed to draw layer named 'Land_Sea'. > drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: > c:\MapData\Land-Sea.xml, band 1: IReadBlock failed at X offset 9, Y > offset 4 > > I really don't know how to troubleshoot this. The pieces I have to work with are the map file, the layer XML files, for example Land-Sea.xml, the Tile.php script, (which seems to be working), and the tiled image set. These same pieces work great with the same version of Mapserver, from GISInternals, on Windows 7 running IIS 7. I'm thinking that this must be a permissions problem on Windows Server 2008. Any ideas on where to go from here would be appreciated. > Thanks, > James > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff > McKenna > Sent: Thursday, May 07, 2015 5:48 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GDal Mini drivers and php script under > IIS 7 on Windows Server 2008 > > > I would definitely head to the command prompt on the Windows machine, and then call php.exe through the commandline, passing it your .php file that is supposed to generate your map image, such as: > > php myscript.php > > You might also make sure that your test php script shows all errors (I think it can be set directly inside your script with: > error_reporting(E_ALL) but I might be wrong on syntax... > > -jeff > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Mon May 11 15:39:05 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 11 May 2015 22:39:05 +0000 Subject: [mapserver-users] Mapserver Dynamic Heatmap in Google Maps In-Reply-To: References: Message-ID: Within the that need special attention when tiling, specifically KERNELDENSITY_COMPUTE_BORDERS and KERNELDENSITY_NORMALIZATION. Did you see those? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Irineu Ruiz Sent: Friday, May 08, 2015 2:40 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver Dynamic Heatmap in Google Maps Hi everybody, I hava a doubt. We use Mapserver + Postgresql + Google Maps in our web system to show differents customized layers to ours users. I see the new feature in Mapserver 7 (http://mapserver.org/development/rfc/ms-rfc-108.html) for heatmap. This new feature works fine in Google Maps Layers with tiles? Thanks! -- [E-mail] Irineu Ruiz Rua Helena, 275 - 12? Andar - Vila Ol?mpia 04552-050 - S?o Paulo - SP ? (011) 2667-0708 www.rassystem.com.br ? irineu at rassystem.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From james.evans.4 at us.af.mil Mon May 11 15:46:00 2015 From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE) Date: Mon, 11 May 2015 22:46:00 +0000 Subject: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 In-Reply-To: <20EA793B1BC710448656BDC9BD25C4A12F8AD562@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> References: <20EA793B1BC710448656BDC9BD25C4A12F8AADEF@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <554B50F7.2070708@gatewaygeomatics.com> <20EA793B1BC710448656BDC9BD25C4A12F8ABFC8@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <554BC4CD.8020001@gmail.com> <20EA793B1BC710448656BDC9BD25C4A12F8AD562@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> Message-ID: <20EA793B1BC710448656BDC9BD25C4A12F8AD6DD@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> I think I have isolated the problem to GDAL. When I just try running a gdal_translate, it fails to create the output file. Here is what happens from the command prompt: C:\MapData>gdal_translate -of JPEG -outsize 512 512 land-sea.xml test.jpg Input file size is 20480, 10240 0ERROR 1: GDALWMS: Unable to download block 0, 0. URL: http://localhost/mapserver/content/tile.php?T=Land-Sea&L=0&X=0&Y=4 HTTP status code: 200, error: (null). ERROR 1: land-sea.xml, band 1: IReadBlock failed at X offset 0, Y offset 0 I'm not sure how to solve this. I would think it is a permissions problem, but maybe a missing environment variable or something? At least I do have a working system at home to help troubleshoot this. Any help would be appreciated. Thanks, James -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE Sent: Monday, May 11, 2015 12:02 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 Still no resolution to this issue. I gave the DefaultAppPool user Full Control over the MapData directory. No help. I then set Full Control of MapData to "Everyone". Still no help. I did figure out that Windows Server 2008 R2 doesn't come with the MS C++ Redistributables by default. I installed those and now I can run the PHP script from the command line. I still can't make URL request to the mapserver requesting anything from the GDAL WW Minidriver though. Below are the IIS log and Mapserver log entry. Any additional suggestions on how to troubleshoot this would be greatly appreciated. Here are the logs from IIS: 2015-05-11 16:36:44 10.89.89.44 GET /mapserver/mapserv.exe map=content/servemap.map&service=WMS&request=GetMap&version=1.3&crs=CRS:84&layers=WAC_2014&styles=default&transparent=TRUE&format=image/png&width=512&height=512&bbox=72.0,22.5,74.25,24.75 80 - 10.89.89.74 Java/1.7.0_51 200 0 0 62 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=223&Y=101 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=224&Y=101 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=225&Y=101 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=226&Y=101 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=223&Y=100 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=224&Y=100 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=225&Y=100 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=226&Y=100 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=223&Y=99 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=224&Y=99 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=225&Y=99 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php T=WAC_2014&L=5&X=226&Y=99 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 403 1 5 0 Here's what happens in the Mapserver Log: [Mon May 11 10:36:44 2015].62000 msDrawRasterLayerLow(WAC_2014): entering. [Mon May 11 10:36:44 2015].62000 msDrawRasterLayerLow(WAC_2014): Filename is: c:\MapData\WAC_2014.xml [Mon May 11 10:36:44 2015].62000 msDrawRasterLayerLow(WAC_2014): Path is: c:\MapData\WAC_2014.xml [Mon May 11 10:36:44 2015].62000 msResampleGDALToMap in effect: cellsize = 0.002197 [Mon May 11 10:36:44 2015].62000 msDrawGDAL(WAC_2014): using RAW_WINDOW=114687 29695 1026 1026, dst=0,0,1026,1026 [Mon May 11 10:36:44 2015].62000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,0 [Mon May 11 10:36:44 2015].78000 drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: GetBlockRef failed at X block offset 223, Y block offset 57 [Mon May 11 10:36:44 2015].78000 msDrawMap(): Image handling error. Failed to draw layer named 'WAC_2014'. [Mon May 11 10:36:44 2015].78000 freeLayer(): freeing layer at 000000000043D5C0. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of geographika Sent: Thursday, May 07, 2015 2:02 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 Hi, Definitely looks like a permissions issue. Try granting read-access on the c:\MapData folder to "IIS AppPool\DefaultAppPool" user - assuming this is the application pool that MapServer and/or PHP is running under using CGI. If that fails try granting "Everyone" read-only access to see if it is permissions. Regards, Seth On 07/05/2015 20:41, EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE wrote: > I am making no progress on getting this working. I did add the error_reporting(E_All) to the script, but I don't get any errors. From the IIS log, it looks like the server is getting the request, php must be reading the script and calling the mini driver. It looks like the gdal mini driver is trying to read the base imagery and is failing. Here is a piece of the IIS log: > > > 2015-05-07 17:06:33 10.89.89.44 GET /mapserver/mapserv.exe > map=content/servemap.map&service=WMS&request=GetMap&version=1.3&crs=CR > S:84&layers=Land_Sea&styles=default&transparent=TRUE&format=image/png& > width=512&height=512&bbox=-72.0,18.0,-36.0,54.0 80 - 10.89.89.191 > Java/1.7.0_51 200 0 0 1875 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > T=Land-Sea&L=1&X=7&Y=6 80 - 127.0.0.1 > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > T=Land-Sea&L=1&X=6&Y=6 80 - 127.0.0.1 > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 3221225595 > 718 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > T=Land-Sea&L=1&X=8&Y=6 80 - 127.0.0.1 > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > T=Land-Sea&L=1&X=6&Y=5 80 - 127.0.0.1 > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > T=Land-Sea&L=1&X=7&Y=5 80 - 127.0.0.1 > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > T=Land-Sea&L=1&X=8&Y=5 80 - 127.0.0.1 > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 > 15 > > If I try to send the URL from a browser, I get back an error that says this: > > ServiceExceptionReport SYSTEM > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > msDrawMap(): Image handling error. Failed to draw layer named 'Land_Sea'. > drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: > c:\MapData\Land-Sea.xml, band 1: IReadBlock failed at X offset 9, Y > offset 4 > > I really don't know how to troubleshoot this. The pieces I have to work with are the map file, the layer XML files, for example Land-Sea.xml, the Tile.php script, (which seems to be working), and the tiled image set. These same pieces work great with the same version of Mapserver, from GISInternals, on Windows 7 running IIS 7. I'm thinking that this must be a permissions problem on Windows Server 2008. Any ideas on where to go from here would be appreciated. > Thanks, > James > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff > McKenna > Sent: Thursday, May 07, 2015 5:48 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GDal Mini drivers and php script under > IIS 7 on Windows Server 2008 > > > I would definitely head to the command prompt on the Windows machine, and then call php.exe through the commandline, passing it your .php file that is supposed to generate your map image, such as: > > php myscript.php > > You might also make sure that your test php script shows all errors (I think it can be set directly inside your script with: > error_reporting(E_ALL) but I might be wrong on syntax... > > -jeff > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From coolhandluka at gmail.com Mon May 11 17:31:03 2015 From: coolhandluka at gmail.com (Luke) Date: Tue, 12 May 2015 10:31:03 +1000 Subject: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008 In-Reply-To: <20EA793B1BC710448656BDC9BD25C4A12F8AD6DD@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> References: <20EA793B1BC710448656BDC9BD25C4A12F8AADEF@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <554B50F7.2070708@gatewaygeomatics.com> <20EA793B1BC710448656BDC9BD25C4A12F8ABFC8@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <554BC4CD.8020001@gmail.com> <20EA793B1BC710448656BDC9BD25C4A12F8AD562@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <20EA793B1BC710448656BDC9BD25C4A12F8AD6DD@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> Message-ID: The IIS logs show 403 error which is a forbidden resource I would check that you have IIS set to serve CGI. I would still be suspect of permissions as well. Create a new IIS application / app pool for your script and set the app pool to authenticate as a AD user and explicitly grant permissions on data and application locations. You can roll this back later if it solves the problem. On Tue, May 12, 2015 at 8:46 AM, EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE wrote: > I think I have isolated the problem to GDAL. When I just try running a > gdal_translate, it fails to create the output file. Here is what happens > from the command prompt: > > C:\MapData>gdal_translate -of JPEG -outsize 512 512 land-sea.xml test.jpg > Input file size is 20480, 10240 > 0ERROR 1: GDALWMS: Unable to download block 0, 0. > URL: http://localhost/mapserver/content/tile.php?T=Land-Sea&L=0&X=0&Y=4 > HTTP status code: 200, error: (null). > ERROR 1: land-sea.xml, band 1: IReadBlock failed at X offset 0, Y offset 0 > > I'm not sure how to solve this. I would think it is a permissions > problem, but maybe a missing environment variable or something? At least I > do have a working system at home to help troubleshoot this. Any help would > be appreciated. > Thanks, > James > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] On Behalf Of EVANS, JAMES R > GS-13 USAF ACC 84 RADES/SCZE > Sent: Monday, May 11, 2015 12:02 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GDal Mini drivers and php script under IIS > 7 on Windows Server 2008 > > Still no resolution to this issue. I gave the DefaultAppPool user Full > Control over the MapData directory. No help. I then set Full Control of > MapData to "Everyone". Still no help. I did figure out that Windows > Server 2008 R2 doesn't come with the MS C++ Redistributables by default. I > installed those and now I can run the PHP script from the command line. I > still can't make URL request to the mapserver requesting anything from the > GDAL WW Minidriver though. Below are the IIS log and Mapserver log entry. > Any additional suggestions on how to troubleshoot this would be greatly > appreciated. > > Here are the logs from IIS: > > 2015-05-11 16:36:44 10.89.89.44 GET /mapserver/mapserv.exe > map=content/servemap.map&service=WMS&request=GetMap&version=1.3&crs=CRS:84&layers=WAC_2014&styles=default&transparent=TRUE&format=image/png&width=512&height=512&bbox=72.0,22.5,74.25,24.75 > 80 - 10.89.89.74 Java/1.7.0_51 200 0 0 62 > 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php > T=WAC_2014&L=5&X=223&Y=101 80 - 127.0.0.1 GDAL+WMS+driver+( > http://www.gdal.org/frmt_wms.html) 403 1 5 0 > 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php > T=WAC_2014&L=5&X=224&Y=101 80 - 127.0.0.1 GDAL+WMS+driver+( > http://www.gdal.org/frmt_wms.html) 403 1 5 0 > 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php > T=WAC_2014&L=5&X=225&Y=101 80 - 127.0.0.1 GDAL+WMS+driver+( > http://www.gdal.org/frmt_wms.html) 403 1 5 0 > 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php > T=WAC_2014&L=5&X=226&Y=101 80 - 127.0.0.1 GDAL+WMS+driver+( > http://www.gdal.org/frmt_wms.html) 403 1 5 0 > 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php > T=WAC_2014&L=5&X=223&Y=100 80 - 127.0.0.1 GDAL+WMS+driver+( > http://www.gdal.org/frmt_wms.html) 403 1 5 0 > 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php > T=WAC_2014&L=5&X=224&Y=100 80 - 127.0.0.1 GDAL+WMS+driver+( > http://www.gdal.org/frmt_wms.html) 403 1 5 0 > 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php > T=WAC_2014&L=5&X=225&Y=100 80 - 127.0.0.1 GDAL+WMS+driver+( > http://www.gdal.org/frmt_wms.html) 403 1 5 0 > 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php > T=WAC_2014&L=5&X=226&Y=100 80 - 127.0.0.1 GDAL+WMS+driver+( > http://www.gdal.org/frmt_wms.html) 403 1 5 0 > 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php > T=WAC_2014&L=5&X=223&Y=99 80 - 127.0.0.1 GDAL+WMS+driver+( > http://www.gdal.org/frmt_wms.html) 403 1 5 0 > 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php > T=WAC_2014&L=5&X=224&Y=99 80 - 127.0.0.1 GDAL+WMS+driver+( > http://www.gdal.org/frmt_wms.html) 403 1 5 0 > 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php > T=WAC_2014&L=5&X=225&Y=99 80 - 127.0.0.1 GDAL+WMS+driver+( > http://www.gdal.org/frmt_wms.html) 403 1 5 0 > 2015-05-11 16:36:44 127.0.0.1 GET /mapserver/content/tile.php > T=WAC_2014&L=5&X=226&Y=99 80 - 127.0.0.1 GDAL+WMS+driver+( > http://www.gdal.org/frmt_wms.html) 403 1 5 0 > > Here's what happens in the Mapserver Log: > > [Mon May 11 10:36:44 2015].62000 msDrawRasterLayerLow(WAC_2014): entering. > [Mon May 11 10:36:44 2015].62000 msDrawRasterLayerLow(WAC_2014): Filename > is: c:\MapData\WAC_2014.xml [Mon May 11 10:36:44 2015].62000 > msDrawRasterLayerLow(WAC_2014): Path is: c:\MapData\WAC_2014.xml [Mon May > 11 10:36:44 2015].62000 msResampleGDALToMap in effect: cellsize = 0.002197 > [Mon May 11 10:36:44 2015].62000 msDrawGDAL(WAC_2014): using > RAW_WINDOW=114687 29695 1026 1026, dst=0,0,1026,1026 [Mon May 11 10:36:44 > 2015].62000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,0 > [Mon May 11 10:36:44 2015].78000 drawGDAL(): Unable to access file. > GDALDatasetRasterIO() failed: GetBlockRef failed at X block offset 223, Y > block offset 57 [Mon May 11 10:36:44 2015].78000 msDrawMap(): Image > handling error. Failed to draw layer named 'WAC_2014'. > [Mon May 11 10:36:44 2015].78000 freeLayer(): freeing layer at > 000000000043D5C0. > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] On Behalf Of geographika > Sent: Thursday, May 07, 2015 2:02 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GDal Mini drivers and php script under IIS > 7 on Windows Server 2008 > > Hi, > > Definitely looks like a permissions issue. > Try granting read-access on the c:\MapData folder to "IIS > AppPool\DefaultAppPool" user - assuming this is the application pool that > MapServer and/or PHP is running under using CGI. > If that fails try granting "Everyone" read-only access to see if it is > permissions. > > Regards, > > Seth > > On 07/05/2015 20:41, EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE wrote: > > I am making no progress on getting this working. I did add the > error_reporting(E_All) to the script, but I don't get any errors. From the > IIS log, it looks like the server is getting the request, php must be > reading the script and calling the mini driver. It looks like the gdal > mini driver is trying to read the base imagery and is failing. Here is a > piece of the IIS log: > > > > > > 2015-05-07 17:06:33 10.89.89.44 GET /mapserver/mapserv.exe > > map=content/servemap.map&service=WMS&request=GetMap&version=1.3&crs=CR > > S:84&layers=Land_Sea&styles=default&transparent=TRUE&format=image/png& > > width=512&height=512&bbox=-72.0,18.0,-36.0,54.0 80 - 10.89.89.191 > > Java/1.7.0_51 200 0 0 1875 > > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > > T=Land-Sea&L=1&X=7&Y=6 80 - 127.0.0.1 > > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > > T=Land-Sea&L=1&X=6&Y=6 80 - 127.0.0.1 > > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 3221225595 > > 718 > > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > > T=Land-Sea&L=1&X=8&Y=6 80 - 127.0.0.1 > > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > > T=Land-Sea&L=1&X=6&Y=5 80 - 127.0.0.1 > > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > > T=Land-Sea&L=1&X=7&Y=5 80 - 127.0.0.1 > > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0 > > 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php > > T=Land-Sea&L=1&X=8&Y=5 80 - 127.0.0.1 > > GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 > > 15 > > > > If I try to send the URL from a browser, I get back an error that says > this: > > > > > ServiceExceptionReport SYSTEM > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > > msDrawMap(): Image handling error. Failed to draw layer named > 'Land_Sea'. > > drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: > > c:\MapData\Land-Sea.xml, band 1: IReadBlock failed at X offset 9, Y > > offset 4 > > > > I really don't know how to troubleshoot this. The pieces I have to work > with are the map file, the layer XML files, for example Land-Sea.xml, the > Tile.php script, (which seems to be working), and the tiled image set. > These same pieces work great with the same version of Mapserver, from > GISInternals, on Windows 7 running IIS 7. I'm thinking that this must be a > permissions problem on Windows Server 2008. Any ideas on where to go from > here would be appreciated. > > Thanks, > > James > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff > > McKenna > > Sent: Thursday, May 07, 2015 5:48 AM > > To: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] GDal Mini drivers and php script under > > IIS 7 on Windows Server 2008 > > > > > > I would definitely head to the command prompt on the Windows machine, > and then call php.exe through the commandline, passing it your .php file > that is supposed to generate your map image, such as: > > > > php myscript.php > > > > You might also make sure that your test php script shows all errors (I > think it can be set directly inside your script with: > > error_reporting(E_ALL) but I might be wrong on syntax... > > > > -jeff > > > > -- > > Jeff McKenna > > MapServer Consulting and Training Services > > http://www.gatewaygeomatics.com/ > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- *Luke Bassett* * *Melbourne Australia -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Tue May 12 09:11:27 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 12 May 2015 12:11:27 -0400 Subject: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Message-ID: I have a problem using a FILTER in a wfs getFeature request on an oracle DB with MS7 When I launch a getFeature request with a Filter on a numeric field it doesn't work, LONG_STAT-61 here is the error we get in the browser msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data statement and server logs from mapserver logs [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. String: ([LONG_STAT] =*-61) LONG_STAT is a NUMBER in the DB DescribefeatureType returns I tried to add "gml_types" "auto" in the mapfile, but it still returns string as data type I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType returns " " but I still get an error in getFeature I'm using CONNECTIONTYPE oraclespatial in the mapfile I can provide more information.... Is it a known issue or can I do something about that? Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From cesaregerbino at gmail.com Tue May 12 12:33:31 2015 From: cesaregerbino at gmail.com (cesare gerbino) Date: Tue, 12 May 2015 21:33:31 +0200 Subject: [mapserver-users] How to use filter encoding in MapServer in a WFS query? Message-ID: Hi all! I need to query this WFS public service http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&request=getCapabilities The layer I need to query is this one http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&version=1.0.0&request=DescribeFeatureType It's a layer with a very big number of point features. The OGC service is done using MapServer but I don't know the version. I need to query this layer in a no spatial way: the simplest query I need to do is something like this one http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter= id13800000050414 My final query would like to combine several clauses using the AND logical operator. Unfortunately at the moment the simplest query above doesn't work: if you try it in the response ther will be something like HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts I've done several attempts to change it and I've tried other queries: for example 1) this one ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E returns missing so I think that in this case the sintax could be right but I'm not sure and I don0't understand because the response is null 2) trying to do a spatial query like this one ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EName%3ENAME%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4326%27%3E%3Ccoordinates%3E7.626630,45.029061%207.673107,45.052713%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E returns a right response. I've found on the web that probably there is a workaround ... http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-td5130361.html#a5190402 that suggest to use the PropertyIsLike operator instead of the PropertyIsEqual. I've tried to use it but it doesn't work in my case ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsLike%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E in this case after a long time it seems that the service goes in time out and no data is returned .... Now I am completely blocked .... :-( Any suggestions / workaround? Thank you very much in advance ... Cesare Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Tue May 12 12:48:33 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 12 May 2015 15:48:33 -0400 Subject: [mapserver-users] RE How to use filter encoding in MapServer in a WFS query? In-Reply-To: References: Message-ID: Your syntax are good. This is an old problem with int considered as string Using ogc:PropertyIsLike works though, here is a request id*13800073301968* Also this wfs support version= 1.1.0, you should do your request by specifying this version cesare gerbino @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2015-05-12 15:33 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] How to use filter encoding in MapServer in a WFS query? Hi all! I need to query this WFS public service http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&request=getCapabilities The layer I need to query is this one http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&version=1.0.0&request=DescribeFeatureType It's a layer with a very big number of point features. The OGC service is done using MapServer but I don't know the version. I need to query this layer in a no spatial way: the simplest query I need to do is something like this one http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter= id13800000050414 My final query would like to combine several clauses using the AND logical operator. Unfortunately at the moment the simplest query above doesn't work: if you try it in the response ther will be something like HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts I've done several attempts to change it and I've tried other queries: for example 1) this one ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E returns missing so I think that in this case the sintax could be right but I'm not sure and I don0't understand because the response is null 2) trying to do a spatial query like this one ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EName%3ENAME%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4326%27%3E%3Ccoordinates%3E7.626630,45.029061%207.673107,45.052713%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E returns a right response. I've found on the web that probably there is a workaround ... http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-td5130361.html#a5190402 that suggest to use the PropertyIsLike operator instead of the PropertyIsEqual. I've tried to use it but it doesn't work in my case ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsLike%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E in this case after a long time it seems that the service goes in time out and no data is returned .... Now I am completely blocked .... :-( Any suggestions / workaround? Thank you very much in advance ... Cesare Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From cesaregerbino at gmail.com Tue May 12 12:58:34 2015 From: cesaregerbino at gmail.com (cesare gerbino) Date: Tue, 12 May 2015 21:58:34 +0200 Subject: [mapserver-users] RE How to use filter encoding in MapServer in a WFS query? In-Reply-To: References: Message-ID: Hi Steve, thank you for the quckly response!! I've just tried to change my request using you suggestion ... this is the new request now .. http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=id*13800000050414* or better how it's used in my browser http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:PropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escapeChar=%22!%22%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*13800073301968*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E Unfortunately still doesn't work .... No data received is the response .... Cesare Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . 2015-05-12 21:48 GMT+02:00 : > Your syntax are good. This is an old problem with int considered as string > Using ogc:PropertyIsLike works though, here is a request > > matchCase="false" wildCard="*" singleChar="." > escapeChar="!">id*13800073301968* > > Also this wfs support version= 1.1.0, you should do your request by > specifying this version > > > > > *cesare gerbino >@lists.osgeo.org * > Envoy? par : mapserver-users-bounces at lists.osgeo.org > > 2015-05-12 15:33 > A > mapserver-users at lists.osgeo.org > cc > Objet > [mapserver-users] How to use filter encoding in MapServer in a WFS > query? > > > > > > > Hi all! > > I need to query this WFS public service > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&request=getCapabilities* > > > The layer I need to query is this one > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&version=1.0.0&request=DescribeFeatureType* > > > It's a layer with a very big number of point features. > > The OGC service is done using MapServer but I don't know the version. > > I need to query this layer in a no spatial way: the simplest query I need > to do is something like this one > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=* > > id13800000050414 > > My final query would like to combine several clauses using the AND logical > operator. > > Unfortunately at the moment the simplest query above doesn't work: if you > try it in the response ther will be something like > > HINT: No operator matches the given name and argument type(s). You might > need to add explicit type casts > > I've done several attempts to change it and I've tried other queries: for > example > > 1) this one ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E* > > > > returns > > missing > > so I think that in this case the sintax could be right but I'm not sure > and I don0't understand because the response is null > > 2) trying to do a spatial query like this one ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EName%3ENAME%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4326%27%3E%3Ccoordinates%3E7.626630,45.029061%207.673107,45.052713%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E* > > > returns a right response. > > I've found on the web that probably there is a workaround ... > > > *http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-td5130361.html#a5190402* > > > that suggest to use the PropertyIsLike operator instead of the > PropertyIsEqual. I've tried to use it but it doesn't work in my case ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsLike%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E* > > > in this case after a long time it seems that the service goes in time out > and no data is returned .... > > Now I am completely blocked .... :-( > > Any suggestions / workaround? > > Thank you very much in advance ... > > Cesare > > Cesare Gerbino > > *http://cesaregerbino.wordpress.com/* > > *http://www.facebook.com/cesare.gerbino* > > > *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* > > *https://twitter.com/CesareGerbino* > *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* > > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Tue May 12 13:07:17 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 12 May 2015 16:07:17 -0400 Subject: [mapserver-users] RE How to use filter encoding in MapServer in a WFS query? In-Reply-To: References: Message-ID: The link you provided works...I received 15 features I don't know what to say, what firebug or chrome say? cesare gerbino 2015-05-12 15:58 A Steve.Toutant at inspq.qc.ca cc mapserver-users at lists.osgeo.org, mapserver-users-bounces at lists.osgeo.org Objet Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS query? Hi Steve, thank you for the quckly response!! I've just tried to change my request using you suggestion ... this is the new request now .. http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter= id*13800000050414* or better how it's used in my browser http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:PropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escapeChar=%22!%22%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*13800073301968*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E Unfortunately still doesn't work .... No data received is the response .... Cesare Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . 2015-05-12 21:48 GMT+02:00 : Your syntax are good. This is an old problem with int considered as string Using ogc:PropertyIsLike works though, here is a request id*13800073301968* Also this wfs support version= 1.1.0, you should do your request by specifying this version cesare gerbino @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2015-05-12 15:33 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] How to use filter encoding in MapServer in a WFS query? Hi all! I need to query this WFS public service http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&request=getCapabilities The layer I need to query is this one http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&version=1.0.0&request=DescribeFeatureType It's a layer with a very big number of point features. The OGC service is done using MapServer but I don't know the version. I need to query this layer in a no spatial way: the simplest query I need to do is something like this one http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter= id13800000050414 My final query would like to combine several clauses using the AND logical operator. Unfortunately at the moment the simplest query above doesn't work: if you try it in the response ther will be something like HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts I've done several attempts to change it and I've tried other queries: for example 1) this one ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E returns missing so I think that in this case the sintax could be right but I'm not sure and I don0't understand because the response is null 2) trying to do a spatial query like this one ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EName%3ENAME%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4326%27%3E%3Ccoordinates%3E7.626630,45.029061%207.673107,45.052713%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E returns a right response. I've found on the web that probably there is a workaround ... http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-td5130361.html#a5190402 that suggest to use the PropertyIsLike operator instead of the PropertyIsEqual. I've tried to use it but it doesn't work in my case ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsLike%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E in this case after a long time it seems that the service goes in time out and no data is returned .... Now I am completely blocked .... :-( Any suggestions / workaround? Thank you very much in advance ... Cesare Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmettemiz88 at gmail.com Tue May 12 13:07:31 2015 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Tue, 12 May 2015 23:07:31 +0300 Subject: [mapserver-users] to construct postgis raster in map file Message-ID: With mapserver map file and postgis, I need to construct st_slope postgis raster and then display it with mapserver dynamically that is to say how can I operate following postgis expression in mapserver map file? WITH r AS ( -- union of filtered tiles SELECT 206 ST_Transform(ST_Union(srtm.rast), 3310) AS rast FROM srtm JOIN sfpoly sf stom extent SELECT ST_AsRaster(ST_Transform(sf.geom, 3310), r.rast) AS rast FROM sfpoly sf CROSS JOIN r )SELECT ST_Clip(ST_Slope(r.rast, 1, cx.rast), S T_Transform(sf.geom, 3310)) AS rast FROM r CROSS JOIN cx CROSS JOIN sfpoly sf; regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From cesaregerbino at gmail.com Tue May 12 13:08:26 2015 From: cesaregerbino at gmail.com (cesare gerbino) Date: Tue, 12 May 2015 22:08:26 +0200 Subject: [mapserver-users] RE How to use filter encoding in MapServer in a WFS query? In-Reply-To: References: Message-ID: Good mystery!!! :-( In any case it's good that it's working .... thank you very much! Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . 2015-05-12 22:05 GMT+02:00 : > Your link is working, I received 15 features > > I don't know what to say....... > > > > > *cesare gerbino >* > > 2015-05-12 15:58 > A > Steve.Toutant at inspq.qc.ca > cc > mapserver-users at lists.osgeo.org, mapserver-users-bounces at lists.osgeo.org > Objet > Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS > query? > > > > > > > Hi Steve, > > thank you for the quckly response!! > > I've just tried to change my request using you suggestion ... this is the > new request now .. > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=* > xmlns:ogc="*http://www.opengis.net/ogc* "> matchCase="false" wildCard="*" singleChar="." > escapeChar="!">id*13800000050414* > > or better how it's used in my browser > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:PropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escapeChar=%22!%22%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*13800073301968*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E* > > > Unfortunately still doesn't work .... No data received is the response > .... > > Cesare > > Cesare Gerbino > > *http://cesaregerbino.wordpress.com/* > > *http://www.facebook.com/cesare.gerbino* > > > *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* > > *https://twitter.com/CesareGerbino* > *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* > > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > > > 2015-05-12 21:48 GMT+02:00 <*Steve.Toutant at inspq.qc.ca* > >: > Your syntax are good. This is an old problem with int considered as string > Using ogc:PropertyIsLike works though, here is a request > > wildCard="*" singleChar="." > escapeChar="!">id*13800073301968* > > Also this wfs support version= 1.1.0, you should do your request by > specifying this version > > > > *cesare gerbino <**cesaregerbino at gmail.com* > *>@**lists.osgeo.org* > Envoy? par : *mapserver-users-bounces at lists.osgeo.org* > > > 2015-05-12 15:33 > > A > *mapserver-users at lists.osgeo.org* > cc > Objet > [mapserver-users] How to use filter encoding in MapServer in a WFS > query? > > > > > > > > > Hi all! > > I need to query this WFS public service > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&request=getCapabilities* > > > The layer I need to query is this one > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&version=1.0.0&request=DescribeFeatureType* > > > It's a layer with a very big number of point features. > > The OGC service is done using MapServer but I don't know the version. > > I need to query this layer in a no spatial way: the simplest query I need > to do is something like this one > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=* > id13800000050414 > > > My final query would like to combine several clauses using the AND logical > operator. > > Unfortunately at the moment the simplest query above doesn't work: if you > try it in the response ther will be something like > > HINT: No operator matches the given name and argument type(s). You might > need to add explicit type casts > > I've done several attempts to change it and I've tried other queries: for > example > > 1) this one ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E* > > > > returns > > missing > > so I think that in this case the sintax could be right but I'm not sure > and I don0't understand because the response is null > > 2) trying to do a spatial query like this one ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EName%3ENAME%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4326%27%3E%3Ccoordinates%3E7.626630,45.029061%207.673107,45.052713%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E* > > > returns a right response. > > I've found on the web that probably there is a workaround ... > > > *http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-td5130361.html#a5190402* > > > that suggest to use the PropertyIsLike operator instead of the > PropertyIsEqual. I've tried to use it but it doesn't work in my case ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsLike%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E* > > > in this case after a long time it seems that the service goes in time out > and no data is returned .... > > Now I am completely blocked .... :-( > > Any suggestions / workaround? > > Thank you very much in advance ... > > Cesare > > Cesare Gerbino > > *http://cesaregerbino.wordpress.com/* > > *http://www.facebook.com/cesare.gerbino* > > > *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* > > *https://twitter.com/CesareGerbino* > *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* > > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > _______________________________________________ > mapserver-users mailing list > *mapserver-users at lists.osgeo.org* > *http://lists.osgeo.org/mailman/listinfo/mapserver-users* > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 38543 bytes Desc: not available URL: From cesaregerbino at gmail.com Tue May 12 13:18:14 2015 From: cesaregerbino at gmail.com (cesare gerbino) Date: Tue, 12 May 2015 22:18:14 +0200 Subject: [mapserver-users] RE How to use filter encoding in MapServer in a WFS query? In-Reply-To: References: Message-ID: My Firebug console, in the "Net" tab, "All" says ...."Aborted" .... tha same in Chrome ..... Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . 2015-05-12 22:07 GMT+02:00 : > The link you provided works...I received 15 features > > I don't know what to say, what firebug or chrome say? > > > *cesare gerbino >* > > 2015-05-12 15:58 > A > Steve.Toutant at inspq.qc.ca > cc > mapserver-users at lists.osgeo.org, mapserver-users-bounces at lists.osgeo.org > Objet > Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS > query? > > > > > > > Hi Steve, > > thank you for the quckly response!! > > I've just tried to change my request using you suggestion ... this is the > new request now .. > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=* > xmlns:ogc="*http://www.opengis.net/ogc* "> matchCase="false" wildCard="*" singleChar="." > escapeChar="!">id*13800000050414* > > or better how it's used in my browser > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:PropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escapeChar=%22!%22%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*13800073301968*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E* > > > Unfortunately still doesn't work .... No data received is the response > .... > > Cesare > > Cesare Gerbino > > *http://cesaregerbino.wordpress.com/* > > *http://www.facebook.com/cesare.gerbino* > > > *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* > > *https://twitter.com/CesareGerbino* > *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* > > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > > > 2015-05-12 21:48 GMT+02:00 <*Steve.Toutant at inspq.qc.ca* > >: > Your syntax are good. This is an old problem with int considered as string > Using ogc:PropertyIsLike works though, here is a request > > wildCard="*" singleChar="." > escapeChar="!">id*13800073301968* > > Also this wfs support version= 1.1.0, you should do your request by > specifying this version > > > > *cesare gerbino <**cesaregerbino at gmail.com* > *>@**lists.osgeo.org* > Envoy? par : *mapserver-users-bounces at lists.osgeo.org* > > > 2015-05-12 15:33 > > A > *mapserver-users at lists.osgeo.org* > cc > Objet > [mapserver-users] How to use filter encoding in MapServer in a WFS > query? > > > > > > > > > Hi all! > > I need to query this WFS public service > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&request=getCapabilities* > > > The layer I need to query is this one > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&version=1.0.0&request=DescribeFeatureType* > > > It's a layer with a very big number of point features. > > The OGC service is done using MapServer but I don't know the version. > > I need to query this layer in a no spatial way: the simplest query I need > to do is something like this one > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=* > id13800000050414 > > > My final query would like to combine several clauses using the AND logical > operator. > > Unfortunately at the moment the simplest query above doesn't work: if you > try it in the response ther will be something like > > HINT: No operator matches the given name and argument type(s). You might > need to add explicit type casts > > I've done several attempts to change it and I've tried other queries: for > example > > 1) this one ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E* > > > > returns > > missing > > so I think that in this case the sintax could be right but I'm not sure > and I don0't understand because the response is null > > 2) trying to do a spatial query like this one ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EName%3ENAME%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4326%27%3E%3Ccoordinates%3E7.626630,45.029061%207.673107,45.052713%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E* > > > returns a right response. > > I've found on the web that probably there is a workaround ... > > > *http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-td5130361.html#a5190402* > > > that suggest to use the PropertyIsLike operator instead of the > PropertyIsEqual. I've tried to use it but it doesn't work in my case ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsLike%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E* > > > in this case after a long time it seems that the service goes in time out > and no data is returned .... > > Now I am completely blocked .... :-( > > Any suggestions / workaround? > > Thank you very much in advance ... > > Cesare > > Cesare Gerbino > > *http://cesaregerbino.wordpress.com/* > > *http://www.facebook.com/cesare.gerbino* > > > *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* > > *https://twitter.com/CesareGerbino* > *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* > > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > _______________________________________________ > mapserver-users mailing list > *mapserver-users at lists.osgeo.org* > *http://lists.osgeo.org/mailman/listinfo/mapserver-users* > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Tue May 12 13:25:23 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 12 May 2015 16:25:23 -0400 Subject: [mapserver-users] RE How to use filter encoding in MapServer in a WFS query? In-Reply-To: References: Message-ID: maybe there is a parameter in your browser that abort request when it is too long to get an answer. cesare gerbino 2015-05-12 16:18 A Steve.Toutant at inspq.qc.ca cc mapserver-users at lists.osgeo.org, mapserver-users-bounces at lists.osgeo.org Objet Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS query? My Firebug console, in the "Net" tab, "All" says ...."Aborted" .... tha same in Chrome ..... Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . 2015-05-12 22:07 GMT+02:00 : The link you provided works...I received 15 features I don't know what to say, what firebug or chrome say? cesare gerbino 2015-05-12 15:58 A Steve.Toutant at inspq.qc.ca cc mapserver-users at lists.osgeo.org, mapserver-users-bounces at lists.osgeo.org Objet Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS query? Hi Steve, thank you for the quckly response!! I've just tried to change my request using you suggestion ... this is the new request now .. http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter= id*13800000050414* or better how it's used in my browser http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:PropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escapeChar=%22!%22%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*13800073301968*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E Unfortunately still doesn't work .... No data received is the response .... Cesare Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . 2015-05-12 21:48 GMT+02:00 : Your syntax are good. This is an old problem with int considered as string Using ogc:PropertyIsLike works though, here is a request id*13800073301968* Also this wfs support version= 1.1.0, you should do your request by specifying this version cesare gerbino @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2015-05-12 15:33 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] How to use filter encoding in MapServer in a WFS query? Hi all! I need to query this WFS public service http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&request=getCapabilities The layer I need to query is this one http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&version=1.0.0&request=DescribeFeatureType It's a layer with a very big number of point features. The OGC service is done using MapServer but I don't know the version. I need to query this layer in a no spatial way: the simplest query I need to do is something like this one http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter= id13800000050414 My final query would like to combine several clauses using the AND logical operator. Unfortunately at the moment the simplest query above doesn't work: if you try it in the response ther will be something like HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts I've done several attempts to change it and I've tried other queries: for example 1) this one ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E returns missing so I think that in this case the sintax could be right but I'm not sure and I don0't understand because the response is null 2) trying to do a spatial query like this one ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EName%3ENAME%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4326%27%3E%3Ccoordinates%3E7.626630,45.029061%207.673107,45.052713%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E returns a right response. I've found on the web that probably there is a workaround ... http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-td5130361.html#a5190402 that suggest to use the PropertyIsLike operator instead of the PropertyIsEqual. I've tried to use it but it doesn't work in my case ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsLike%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E in this case after a long time it seems that the service goes in time out and no data is returned .... Now I am completely blocked .... :-( Any suggestions / workaround? Thank you very much in advance ... Cesare Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.turner at mediatel.co.uk Wed May 13 02:24:57 2015 From: richard.turner at mediatel.co.uk (Richard Turner) Date: Wed, 13 May 2015 10:24:57 +0100 Subject: [mapserver-users] TinyOWS: GetFeature request from a DB view Message-ID: <1431509097.3680.6.camel@mediatel.co.uk> Hi, I'm trying to configure TinyOWS using a mapfile, which I'll also use to configure mapserver. My layers come from DB views, not tables, so they have no primary keys. For mapserver I specify the "gml_featureid" and all works well. If I configure TinyOWS using an XML file instead, and specify the "pkey" attribute that all works too. I can't seem to configure TinyOWS to work using the mapfile though; no matter how I try to specify the pkey I always get the error: error : an id_column is required to use featureid There's a layer definition below. Is this a bug (or missing feature) or am I just trying to configure the pkey wrong? Cheers, Richard. LAYER NAME "title_circulation_areas" METADATA "wfs_title" "Press Title circulation areas" "wfs_srs" "EPSG:3857" "wfs_enable_request" "*" "wfs_getfeature_formatlist" "json" "wfs_geomtype" "multipolygon" "wfs_typename" "title_circulation_areas" "gml_featureid" "id" "gml_include_items" "id,name,wkb_geometry" "tinyows_table" "title_circulation_areas" "tinyows_retrievable" "1" "tinyows_include_items" "id,name,wkb_geometry" "pkey" "id" END TYPE POLYGON STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "host=host port=5432 dbname=db user=user password=pass" DATA "wkb_geometry FROM title_circulation_areas USING UNIQUE id" DUMP TRUE END From thomas.bonfort at gmail.com Wed May 13 02:40:45 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 13 May 2015 11:40:45 +0200 Subject: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: Message-ID: can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bruno.domenget at rochservice.com Wed May 13 02:46:10 2015 From: bruno.domenget at rochservice.com (Bruno D) Date: Wed, 13 May 2015 02:46:10 -0700 (PDT) Subject: [mapserver-users] DXF export issues Message-ID: <1431510370053-5205533.post@n6.nabble.com> Hi all, I'm trying to add an "Export to DXF" option to my online maps (using MapServer, Mapscript PHP and WFS calls). I'm using OGR output, it works well with other formats (SHP, MifMid, ...) but I got some issues with DXF : *I can't find a way to get the labels to be created automatically.* The GDAL doc says "Point features with LABEL styling are written as MTEXT entities based on the styling information.". My point features do have a class with label styling, so I suppose it should work. But it doesn't, I only get points without labels. *If I use "gml_include_items" "all" in the layer METADATA, I get the following error : "DXF layer does not support arbitrary field creation" and the DXF is corrupted.* The only item I can include seems to be "Layer". Can anyone tell me what I am missing ? I'm using MapServer 6.4.1 on a CentOS server. /The PHP script I use to export the files :/ $req = new OWSRequestObj(); $args = Array("service" => "WFS", "request" => "GetFeature", "version" => "1.1.0", "typename" => "Objets"); foreach($args as $param => $value) $req->setParameter($param, $value); $req->setParameter("outputformat",$type_sortie); ms_ioinstallstdouttobuffer(); $map->owsDispatch($req); ms_iostripstdoutbuffercontentheaders(); result = ms_iogetstdoutbufferstring(); /My mapfile :/ MAP NAME "Default" SIZE 1000 600 STATUS ON SYMBOLSET "../fic/0 MAPSERVER/symbols.sym" EXTENT -10 40 9 51 UNITS DD SHAPEPATH "../fic/0 MAPSERVER/shapefiles" PROJECTION "init=epsg:4326" END WEB METADATA "wms_title" "Map wms" "wms_onlineresource" "LINK_TO_SERVER" "wms_srs" "EPSG:4326" "wms_enable_request" "*" "ows_enable_request" "*" "wfs_getfeature_formatlist" "dxf,midmif,shapezip,csv" END END # WEB OUTPUTFORMAT NAME "jpeg" DRIVER AGG/JPEG MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "GAMMA=0.75" END OUTPUTFORMAT NAME "kmz" DRIVER KMZ MIMETYPE "application/vnd.google-earth.kmz" IMAGEMODE RGB EXTENSION "kmz" FORMATOPTION "maxfeaturestodraw=1000000000" END OUTPUTFORMAT NAME "CSV" DRIVER "OGR/CSV" MIMETYPE "text/csv" FORMATOPTION "LCO:GEOMETRY=AS_WKT" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=simple" FORMATOPTION "FILENAME=result.csv" END OUTPUTFORMAT NAME "SHAPEZIP" DRIVER "OGR/ESRI Shapefile" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=zip" FORMATOPTION "FILENAME=result_shp.zip" END OUTPUTFORMAT NAME "MIDMIF" DRIVER "OGR/MapInfo File" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=multipart" FORMATOPTION "DSCO:FORMAT=MIF" FORMATOPTION "FILENAME=result.mif" END OUTPUTFORMAT NAME "DXF" DRIVER "OGR/DXF" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=simple" FORMATOPTION "FILENAME=result_dxf.dxf" END LAYER NAME "Objets" MAXSCALEDENOM 50000000 TOLERANCE 0 TOLERANCEUNITS pixels STATUS ON TEMPLATE "../template.html" PROCESSING "ITEMS=classe,idobjet,Layer" TILEITEM "location" TYPE POINT UNITS DD LABELITEM "TEXT" CLASSITEM "classe" *METADATA "ows_title" "objets" "ows_description" "objets" "wfs_featureid" "idobjet" "wfs_getfeature_formatlist" "dxf,midmif,shapezip,csv" "gml_include_items" "all" "gml_types" "auto" END* CLASS NAME "mat" EXPRESSION "mat" STYLE ANGLE 0 OFFSET 0 0 COLOR 0 0 0 SIZE 12 SYMBOL "mat" END # STYLE LABEL COLOR 0 0 0 POSITION uc PARTIALS FALSE BUFFER 4 END END # CLASS PROJECTION "init=epsg:4326" END FEATURE ITEMS "mat;991474;Gropouic" TEXT "02SV2" POINTS 2.3445457220077515 48.905171631164436 END END FEATURE ITEMS "mat;760928;Gropouic" TEXT "03S" POINTS 2.342459 48.908074 END END FEATURE ITEMS "mat;760930;Gropouic" TEXT "05S" POINTS 2.343017 48.907862 END END FEATURE ITEMS "mat;760931;Gropouic2" TEXT "06S" POINTS 2.343274 48.907737 END END FEATURE ITEMS "mat;760933;Gropouic2" TEXT "08S" POINTS 2.343777902 48.907541036 END END FEATURE ITEMS "mat;760934;Gropouic2" TEXT "09S" POINTS 2.343926 48.907478 END END END # LAYER END # MAP -- View this message in context: http://osgeo-org.1560.x6.nabble.com/DXF-export-issues-tp5205533.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cesaregerbino at gmail.com Tue May 12 13:36:38 2015 From: cesaregerbino at gmail.com (cesare gerbino) Date: Tue, 12 May 2015 22:36:38 +0200 Subject: [mapserver-users] RE How to use filter encoding in MapServer in a WFS query? In-Reply-To: References: Message-ID: may be ... I've tried the same request from my wife's IPad from Safari and it's working ...... Thank you Steve! Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . 2015-05-12 22:25 GMT+02:00 : > maybe there is a parameter in your browser that abort request when it is > too long to get an answer. > > > > > *cesare gerbino >* > > 2015-05-12 16:18 > A > Steve.Toutant at inspq.qc.ca > cc > mapserver-users at lists.osgeo.org, mapserver-users-bounces at lists.osgeo.org > Objet > Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS > query? > > > > > > > My Firebug console, in the "Net" tab, "All" says ...."Aborted" .... tha > same in Chrome ..... > > Cesare Gerbino > > *http://cesaregerbino.wordpress.com/* > > *http://www.facebook.com/cesare.gerbino* > > > *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* > > *https://twitter.com/CesareGerbino* > *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* > > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > > > 2015-05-12 22:07 GMT+02:00 <*Steve.Toutant at inspq.qc.ca* > >: > The link you provided works...I received 15 features > > I don't know what to say, what firebug or chrome say? > > *cesare gerbino <**cesaregerbino at gmail.com* *>* > > 2015-05-12 15:58 > > A > *Steve.Toutant at inspq.qc.ca* > cc > *mapserver-users at lists.osgeo.org* , > *mapserver-users-bounces at lists.osgeo.org* > > Objet > Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS > query? > > > > > > > > > Hi Steve, > > thank you for the quckly response!! > > I've just tried to change my request using you suggestion ... this is the > new request now .. > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=* > xmlns:ogc="*http://www.opengis.net/ogc* "> matchCase="false" wildCard="*" singleChar="." > escapeChar="!">id*13800000050414* > > > or better how it's used in my browser > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:PropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escapeChar=%22!%22%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*13800073301968*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E* > > > Unfortunately still doesn't work .... No data received is the response > .... > > Cesare > > Cesare Gerbino > > *http://cesaregerbino.wordpress.com/* > > *http://www.facebook.com/cesare.gerbino* > > > *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* > > *https://twitter.com/CesareGerbino* > *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* > > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > > > 2015-05-12 21:48 GMT+02:00 <*Steve.Toutant at inspq.qc.ca* > >: > Your syntax are good. This is an old problem with int considered as string > Using ogc:PropertyIsLike works though, here is a request > > wildCard="*" singleChar="." > escapeChar="!">id*13800073301968* > > Also this wfs support version= 1.1.0, you should do your request by > specifying this version > > > *cesare gerbino <**cesaregerbino at gmail.com* > *>@**lists.osgeo.org* > Envoy? par : *mapserver-users-bounces at lists.osgeo.org* > > > 2015-05-12 15:33 > > A > *mapserver-users at lists.osgeo.org* > cc > Objet > [mapserver-users] How to use filter encoding in MapServer in a WFS > query? > > > > > > > > > > > Hi all! > > I need to query this WFS public service > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&request=getCapabilities* > > > The layer I need to query is this one > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&version=1.0.0&request=DescribeFeatureType* > > > It's a layer with a very big number of point features. > > The OGC service is done using MapServer but I don't know the version. > > I need to query this layer in a no spatial way: the simplest query I need > to do is something like this one > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=* > id13800000050414 > > > My final query would like to combine several clauses using the AND logical > operator. > > Unfortunately at the moment the simplest query above doesn't work: if you > try it in the response ther will be something like > > HINT: No operator matches the given name and argument type(s). You might > need to add explicit type casts > > I've done several attempts to change it and I've tried other queries: for > example > > 1) this one ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E* > > > > returns > > missing > > so I think that in this case the sintax could be right but I'm not sure > and I don0't understand because the response is null > > 2) trying to do a spatial query like this one ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EName%3ENAME%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4326%27%3E%3Ccoordinates%3E7.626630,45.029061%207.673107,45.052713%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E* > > > returns a right response. > > I've found on the web that probably there is a workaround ... > > > *http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-td5130361.html#a5190402* > > > that suggest to use the PropertyIsLike operator instead of the > PropertyIsEqual. I've tried to use it but it doesn't work in my case ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsLike%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E* > > > in this case after a long time it seems that the service goes in time out > and no data is returned .... > > Now I am completely blocked .... :-( > > Any suggestions / workaround? > > Thank you very much in advance ... > > Cesare > > Cesare Gerbino > > *http://cesaregerbino.wordpress.com/* > > *http://www.facebook.com/cesare.gerbino* > > > *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* > > *https://twitter.com/CesareGerbino* > *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* > > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > _______________________________________________ > mapserver-users mailing list > *mapserver-users at lists.osgeo.org* > *http://lists.osgeo.org/mailman/listinfo/mapserver-users* > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cesaregerbino at gmail.com Wed May 13 05:05:04 2015 From: cesaregerbino at gmail.com (cesare gerbino) Date: Wed, 13 May 2015 14:05:04 +0200 Subject: [mapserver-users] RE How to use filter encoding in MapServer in a WFS query? In-Reply-To: References: Message-ID: Hi again ... My query now it's working .... I've upgrated it using AND logical operator ...Here you're my new query ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=comune*Carignano*nome*Via Monte Grappa*civico*24* The result is 44.912717 7.672281 44.912717 7.672281 44.912717 7.672281 44.912717 7.672281 44.912717 7.672281 13800000050414 Via Monte Grappa 24 01001058 10041 CARIGNANO TORINO PIEMONTE so it seems to be right. To refine the query I've tried to use the PropertyIsEqualTo operator instead of the PropertyIsLike only for those fields that are not numeric, so the fields "comune" and "nome" .... the new query is http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=comuneCarignanonomeVia Monte Grappacivico*24* but the result is missing Is there something wrong somewhere or it's better continue to use the PropertyIsLike everywhere? Thank you in advance ... Cesare Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . 2015-05-12 22:36 GMT+02:00 cesare gerbino : > may be ... I've tried the same request from my wife's IPad from Safari and > it's working ...... Thank you Steve! > > > Cesare Gerbino > > http://cesaregerbino.wordpress.com/ > http://www.facebook.com/cesare.gerbino > > http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl > https://twitter.com/CesareGerbino > http://www.linkedin.com/pub/cesare-gerbino/56/494/77b > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > > > 2015-05-12 22:25 GMT+02:00 : > >> maybe there is a parameter in your browser that abort request when it is >> too long to get an answer. >> >> >> >> >> *cesare gerbino >* >> >> 2015-05-12 16:18 >> A >> Steve.Toutant at inspq.qc.ca >> cc >> mapserver-users at lists.osgeo.org, mapserver-users-bounces at lists.osgeo.org >> Objet >> Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS >> query? >> >> >> >> >> >> >> My Firebug console, in the "Net" tab, "All" says ...."Aborted" .... tha >> same in Chrome ..... >> >> Cesare Gerbino >> >> *http://cesaregerbino.wordpress.com/* >> >> *http://www.facebook.com/cesare.gerbino* >> >> >> *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* >> >> *https://twitter.com/CesareGerbino* >> *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* >> >> >> Questo ? un account di posta personale di Cesare Gerbino: tutte le >> opinioni espresse sono personali e non riflettono necessariamente quelle >> del mio datore di lavoro >> >> This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: >> the views expressed are mine and not necessarily those of my employer. >> . >> >> >> 2015-05-12 22:07 GMT+02:00 <*Steve.Toutant at inspq.qc.ca* >> >: >> The link you provided works...I received 15 features >> >> I don't know what to say, what firebug or chrome say? >> >> *cesare gerbino <**cesaregerbino at gmail.com* >> *>* >> >> 2015-05-12 15:58 >> >> A >> *Steve.Toutant at inspq.qc.ca* >> cc >> *mapserver-users at lists.osgeo.org* , >> *mapserver-users-bounces at lists.osgeo.org* >> >> Objet >> Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS >> query? >> >> >> >> >> >> >> >> >> Hi Steve, >> >> thank you for the quckly response!! >> >> I've just tried to change my request using you suggestion ... this is the >> new request now .. >> >> >> *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=* >> > xmlns:ogc="*http://www.opengis.net/ogc* ">> matchCase="false" wildCard="*" singleChar="." >> escapeChar="!">id*13800000050414* >> >> >> or better how it's used in my browser >> >> >> *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:PropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escapeChar=%22!%22%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*13800073301968*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E* >> >> >> Unfortunately still doesn't work .... No data received is the response >> .... >> >> Cesare >> >> Cesare Gerbino >> >> *http://cesaregerbino.wordpress.com/* >> >> *http://www.facebook.com/cesare.gerbino* >> >> >> *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* >> >> *https://twitter.com/CesareGerbino* >> *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* >> >> >> Questo ? un account di posta personale di Cesare Gerbino: tutte le >> opinioni espresse sono personali e non riflettono necessariamente quelle >> del mio datore di lavoro >> >> This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: >> the views expressed are mine and not necessarily those of my employer. >> . >> >> >> 2015-05-12 21:48 GMT+02:00 <*Steve.Toutant at inspq.qc.ca* >> >: >> Your syntax are good. This is an old problem with int considered as string >> Using ogc:PropertyIsLike works though, here is a request >> >> > wildCard="*" singleChar="." >> escapeChar="!">id*13800073301968* >> >> Also this wfs support version= 1.1.0, you should do your request by >> specifying this version >> >> >> *cesare gerbino <**cesaregerbino at gmail.com* >> *>@**lists.osgeo.org* >> Envoy? par : *mapserver-users-bounces at lists.osgeo.org* >> >> >> 2015-05-12 15:33 >> >> A >> *mapserver-users at lists.osgeo.org* >> cc >> Objet >> [mapserver-users] How to use filter encoding in MapServer in a WFS >> query? >> >> >> >> >> >> >> >> >> >> >> Hi all! >> >> I need to query this WFS public service >> >> >> *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&request=getCapabilities* >> >> >> The layer I need to query is this one >> >> >> *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&version=1.0.0&request=DescribeFeatureType* >> >> >> It's a layer with a very big number of point features. >> >> The OGC service is done using MapServer but I don't know the version. >> >> I need to query this layer in a no spatial way: the simplest query I need >> to do is something like this one >> >> >> *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=* >> id13800000050414 >> >> >> My final query would like to combine several clauses using the AND >> logical operator. >> >> Unfortunately at the moment the simplest query above doesn't work: if you >> try it in the response ther will be something like >> >> HINT: No operator matches the given name and argument type(s). You might >> need to add explicit type casts >> >> I've done several attempts to change it and I've tried other queries: for >> example >> >> 1) this one ... >> >> >> *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E* >> >> >> >> returns >> >> missing >> >> so I think that in this case the sintax could be right but I'm not sure >> and I don0't understand because the response is null >> >> 2) trying to do a spatial query like this one ... >> >> >> *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EName%3ENAME%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4326%27%3E%3Ccoordinates%3E7.626630,45.029061%207.673107,45.052713%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E* >> >> >> returns a right response. >> >> I've found on the web that probably there is a workaround ... >> >> >> *http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-td5130361.html#a5190402* >> >> >> that suggest to use the PropertyIsLike operator instead of the >> PropertyIsEqual. I've tried to use it but it doesn't work in my case ... >> >> >> *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsLike%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E* >> >> >> in this case after a long time it seems that the service goes in time out >> and no data is returned .... >> >> Now I am completely blocked .... :-( >> >> Any suggestions / workaround? >> >> Thank you very much in advance ... >> >> Cesare >> >> Cesare Gerbino >> >> *http://cesaregerbino.wordpress.com/* >> >> *http://www.facebook.com/cesare.gerbino* >> >> >> *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* >> >> *https://twitter.com/CesareGerbino* >> *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* >> >> >> Questo ? un account di posta personale di Cesare Gerbino: tutte le >> opinioni espresse sono personali e non riflettono necessariamente quelle >> del mio datore di lavoro >> >> This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: >> the views expressed are mine and not necessarily those of my employer. >> . >> _______________________________________________ >> mapserver-users mailing list >> *mapserver-users at lists.osgeo.org* >> *http://lists.osgeo.org/mailman/listinfo/mapserver-users* >> >> >> >> >> >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed May 13 05:38:34 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 13 May 2015 08:38:34 -0400 Subject: [mapserver-users] RE How to use filter encoding in MapServer in a WFS query? In-Reply-To: References: Message-ID: Add matchCase="false" for the 2 operators ogc:PropertyIsEqualTo This will work http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter= comuneCarignanonomeVia Monte Grappacivico*24* And for civico*24*, this might return several values such as 124, 241, .....I think, I didn't try though cesare gerbino 2015-05-13 08:05 A Steve.Toutant at inspq.qc.ca cc mapserver-users at lists.osgeo.org, mapserver-users-bounces at lists.osgeo.org Objet Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS query? Hi again ... My query now it's working .... I've upgrated it using AND logical operator ...Here you're my new query ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter= comune*Carignano*nome*Via Monte Grappa*civico*24* The result is 44.912717 7.672281 44.912717 7.672281 44.912717 7.672281 44.912717 7.672281 44.912717 7.672281 13800000050414 Via Monte Grappa 24 01001058 10041 CARIGNANO TORINO PIEMONTE so it seems to be right. To refine the query I've tried to use the PropertyIsEqualTo operator instead of the PropertyIsLike only for those fields that are not numeric, so the fields "comune" and "nome" .... the new query is http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter= comuneCarignanonomeVia Monte Grappacivico*24* but the result is missing Is there something wrong somewhere or it's better continue to use the PropertyIsLike everywhere? Thank you in advance ... Cesare Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . 2015-05-12 22:36 GMT+02:00 cesare gerbino : may be ... I've tried the same request from my wife's IPad from Safari and it's working ...... Thank you Steve! Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . 2015-05-12 22:25 GMT+02:00 : maybe there is a parameter in your browser that abort request when it is too long to get an answer. cesare gerbino 2015-05-12 16:18 A Steve.Toutant at inspq.qc.ca cc mapserver-users at lists.osgeo.org, mapserver-users-bounces at lists.osgeo.org Objet Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS query? My Firebug console, in the "Net" tab, "All" says ...."Aborted" .... tha same in Chrome ..... Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . 2015-05-12 22:07 GMT+02:00 : The link you provided works...I received 15 features I don't know what to say, what firebug or chrome say? cesare gerbino 2015-05-12 15:58 A Steve.Toutant at inspq.qc.ca cc mapserver-users at lists.osgeo.org, mapserver-users-bounces at lists.osgeo.org Objet Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS query? Hi Steve, thank you for the quckly response!! I've just tried to change my request using you suggestion ... this is the new request now .. http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter= id*13800000050414* or better how it's used in my browser http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:PropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escapeChar=%22!%22%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*13800073301968*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E Unfortunately still doesn't work .... No data received is the response .... Cesare Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . 2015-05-12 21:48 GMT+02:00 : Your syntax are good. This is an old problem with int considered as string Using ogc:PropertyIsLike works though, here is a request id*13800073301968* Also this wfs support version= 1.1.0, you should do your request by specifying this version cesare gerbino @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2015-05-12 15:33 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] How to use filter encoding in MapServer in a WFS query? Hi all! I need to query this WFS public service http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&request=getCapabilities The layer I need to query is this one http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&version=1.0.0&request=DescribeFeatureType It's a layer with a very big number of point features. The OGC service is done using MapServer but I don't know the version. I need to query this layer in a no spatial way: the simplest query I need to do is something like this one http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter= id13800000050414 My final query would like to combine several clauses using the AND logical operator. Unfortunately at the moment the simplest query above doesn't work: if you try it in the response ther will be something like HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts I've done several attempts to change it and I've tried other queries: for example 1) this one ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E returns missing so I think that in this case the sintax could be right but I'm not sure and I don0't understand because the response is null 2) trying to do a spatial query like this one ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EName%3ENAME%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4326%27%3E%3Ccoordinates%3E7.626630,45.029061%207.673107,45.052713%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E returns a right response. I've found on the web that probably there is a workaround ... http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-td5130361.html#a5190402 that suggest to use the PropertyIsLike operator instead of the PropertyIsEqual. I've tried to use it but it doesn't work in my case ... http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsLike%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E in this case after a long time it seems that the service goes in time out and no data is returned .... Now I am completely blocked .... :-( Any suggestions / workaround? Thank you very much in advance ... Cesare Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From cesaregerbino at gmail.com Wed May 13 05:49:37 2015 From: cesaregerbino at gmail.com (cesare gerbino) Date: Wed, 13 May 2015 14:49:37 +0200 Subject: [mapserver-users] RE How to use filter encoding in MapServer in a WFS query? In-Reply-To: References: Message-ID: Hi Steve, >>Add matchCase="false" for the 2 operators ogc:PropertyIsEqualTo yes it's working now ... >>And for civico*24*, this might return several values such as 124, 241, .....I think, I didn't try though Yes I know but it's the only way I've found still now ... the ogc:PropertyIsEqualTo doesn't work with field that are number ... I accept the risk .... Thank you a lot again! Cesare Cesare Gerbino http://cesaregerbino.wordpress.com/ http://www.facebook.com/cesare.gerbino http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl https://twitter.com/CesareGerbino http://www.linkedin.com/pub/cesare-gerbino/56/494/77b Questo ? un account di posta personale di Cesare Gerbino: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: the views expressed are mine and not necessarily those of my employer. . 2015-05-13 14:38 GMT+02:00 : > Add matchCase="false" for the 2 operators ogc:PropertyIsEqualTo > This will work > > http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter= xmlns:ogc="http://www.opengis.net/ogc"> matchCase="false">comuneCarignano matchCase="false">nomeVia > Monte Grappa matchCase="false" wildCard="*" singleChar="." > escapeChar="!">civico*24* > > > And for civico*24*, this might return > several values such as 124, 241, .....I think, I didn't try though > > > *cesare gerbino >* > > 2015-05-13 08:05 > A > Steve.Toutant at inspq.qc.ca > cc > mapserver-users at lists.osgeo.org, mapserver-users-bounces at lists.osgeo.org > Objet > Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS > query? > > > > > > > Hi again ... My query now it's working .... I've upgrated it using AND > logical operator ...Here you're my new query ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=* > xmlns:ogc="*http://www.opengis.net/ogc* "> matchCase="false" wildCard="*" singleChar="." > escapeChar="!">comune*Carignano* matchCase="false" wildCard="*" singleChar="." > escapeChar="!">nome*Via > Monte Grappa* matchCase="false" wildCard="*" singleChar="." > escapeChar="!">civico*24* > > The result is > > > > > 44.912717 7.672281 > 44.912717 7.672281 > > > > > > > 44.912717 7.672281 > 44.912717 7.672281 > > > > > 44.912717 7.672281 > > > 13800000050414 > Via Monte Grappa > 24 > 01001058 > 10041 > CARIGNANO > > TORINO > PIEMONTE > > > > > so it seems to be right. > > To refine the query I've tried to use the PropertyIsEqualTo operator > instead of the PropertyIsLike only for those fields that are not numeric, > so the fields "comune" and "nome" .... the new query is > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=* > xmlns:ogc="*http://www.opengis.net/ogc* ">comuneCarignanonomeVia > Monte Grappa matchCase="false" wildCard="*" singleChar="." > escapeChar="!">civico*24* > > > but the result is > > > > missing > > > > Is there something wrong somewhere or it's better continue to use the PropertyIsLike > everywhere? > > Thank you in advance ... > > Cesare > > > Cesare Gerbino > > *http://cesaregerbino.wordpress.com/* > > *http://www.facebook.com/cesare.gerbino* > > > *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* > > *https://twitter.com/CesareGerbino* > *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* > > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > > > 2015-05-12 22:36 GMT+02:00 cesare gerbino <*cesaregerbino at gmail.com* > >: > may be ... I've tried the same request from my wife's IPad from Safari and > it's working ...... Thank you Steve! > > > Cesare Gerbino > > *http://cesaregerbino.wordpress.com/* > > *http://www.facebook.com/cesare.gerbino* > > > *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* > > *https://twitter.com/CesareGerbino* > *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* > > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > > > 2015-05-12 22:25 GMT+02:00 <*Steve.Toutant at inspq.qc.ca* > >: > maybe there is a parameter in your browser that abort request when it is > too long to get an answer. > > > > *cesare gerbino <**cesaregerbino at gmail.com* *>* > > 2015-05-12 16:18 > > A > *Steve.Toutant at inspq.qc.ca* > cc > *mapserver-users at lists.osgeo.org* , > *mapserver-users-bounces at lists.osgeo.org* > > Objet > Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS > query? > > > > > > > > > My Firebug console, in the "Net" tab, "All" says ...."Aborted" .... tha > same in Chrome ..... > > Cesare Gerbino > > *http://cesaregerbino.wordpress.com/* > > *http://www.facebook.com/cesare.gerbino* > > > *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* > > *https://twitter.com/CesareGerbino* > *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* > > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > > > 2015-05-12 22:07 GMT+02:00 <*Steve.Toutant at inspq.qc.ca* > >: > The link you provided works...I received 15 features > > I don't know what to say, what firebug or chrome say? > > *cesare gerbino <**cesaregerbino at gmail.com* *>* > > 2015-05-12 15:58 > > A > *Steve.Toutant at inspq.qc.ca* > cc > *mapserver-users at lists.osgeo.org* , > *mapserver-users-bounces at lists.osgeo.org* > > Objet > Re: RE [mapserver-users] How to use filter encoding in MapServer in a WFS > query? > > > > > > > > > > > Hi Steve, > > thank you for the quckly response!! > > I've just tried to change my request using you suggestion ... this is the > new request now .. > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=* > xmlns:ogc="*http://www.opengis.net/ogc* "> matchCase="false" wildCard="*" singleChar="." > escapeChar="!">id*13800000050414* > > > or better how it's used in my browser > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.1.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:PropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escapeChar=%22!%22%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*13800073301968*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E* > > > Unfortunately still doesn't work .... No data received is the response > .... > > Cesare > > Cesare Gerbino > > *http://cesaregerbino.wordpress.com/* > > *http://www.facebook.com/cesare.gerbino* > > > *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* > > *https://twitter.com/CesareGerbino* > *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* > > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > > > 2015-05-12 21:48 GMT+02:00 <*Steve.Toutant at inspq.qc.ca* > >: > Your syntax are good. This is an old problem with int considered as string > Using ogc:PropertyIsLike works though, here is a request > > wildCard="*" singleChar="." > escapeChar="!">id*13800073301968* > > Also this wfs support version= 1.1.0, you should do your request by > specifying this version > > *cesare gerbino <**cesaregerbino at gmail.com* > *>@**lists.osgeo.org* > Envoy? par : *mapserver-users-bounces at lists.osgeo.org* > > > 2015-05-12 15:33 > > A > *mapserver-users at lists.osgeo.org* > cc > Objet > [mapserver-users] How to use filter encoding in MapServer in a WFS > query? > > > > > > > > > > > > > Hi all! > > I need to query this WFS public service > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&request=getCapabilities* > > > The layer I need to query is this one > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&service=wfs&version=1.0.0&request=DescribeFeatureType* > > > It's a layer with a very big number of point features. > > The OGC service is done using MapServer but I don't know the version. > > I need to query this layer in a no spatial way: the simplest query I need > to do is something like this one > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=* > id13800000050414 > > > My final query would like to combine several clauses using the AND logical > operator. > > Unfortunately at the moment the simplest query above doesn't work: if you > try it in the response ther will be something like > > HINT: No operator matches the given name and argument type(s). You might > need to add explicit type casts > > I've done several attempts to change it and I've tried other queries: for > example > > 1) this one ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E* > > > > returns > > missing > > so I think that in this case the sintax could be right but I'm not sure > and I don0't understand because the response is null > > 2) trying to do a spatial query like this one ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EName%3ENAME%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4326%27%3E%3Ccoordinates%3E7.626630,45.029061%207.673107,45.052713%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E* > > > returns a right response. > > I've found on the web that probably there is a workaround ... > > > *http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-td5130361.html#a5190402* > > > that suggest to use the PropertyIsLike operator instead of the > PropertyIsEqual. I've tried to use it but it doesn't work in my case ... > > > *http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map&VERSION=1.0.0&service=wfs&request=GetFeature&TYPENAME=IN.NUMERICIVICI.2012&Filter=%3Cogc:Filter%3E%3Cogc:PropertyIsLike%3E%3Cogc:PropertyName%3Eid%3C/ogc:PropertyName%3E%3Cogc:Literal%3E%2713800000050414%27%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E* > > > in this case after a long time it seems that the service goes in time out > and no data is returned .... > > Now I am completely blocked .... :-( > > Any suggestions / workaround? > > Thank you very much in advance ... > > Cesare > > Cesare Gerbino > > *http://cesaregerbino.wordpress.com/* > > *http://www.facebook.com/cesare.gerbino* > > > *http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl* > > *https://twitter.com/CesareGerbino* > *http://www.linkedin.com/pub/cesare-gerbino/56/494/77b* > > > Questo ? un account di posta personale di Cesare Gerbino: tutte le > opinioni espresse sono personali e non riflettono necessariamente quelle > del mio datore di lavoro > > This is Cesare Gerbino mail account. Text is written by Cesare Gerbino: > the views expressed are mine and not necessarily those of my employer. > . > _______________________________________________ > mapserver-users mailing list > *mapserver-users at lists.osgeo.org* > *http://lists.osgeo.org/mailman/listinfo/mapserver-users* > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed May 13 07:35:51 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 13 May 2015 10:35:51 -0400 Subject: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: Message-ID: Precision: we are using MS7.1 Removing matchcase part makes oracle, and postgis, crash. I have this error: msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data statement and server logs The problem might be the decimals? Here is the request LONG_STAT -61,8031 thomas bonfort 2015-05-13 05:40 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO Objet Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed May 13 07:40:27 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 13 May 2015 10:40:27 -0400 Subject: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: Message-ID: this works LONG_STAT*-61,8031* But we want to be able to usePropertyIsEqual because are end users won't use PropertyIsLike... thomas bonfort 2015-05-13 05:40 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO Objet Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed May 13 07:46:36 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 13 May 2015 14:46:36 +0000 Subject: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: Message-ID: <8b6752f0dc9a4c3abf7acc88be5412cb@C119S212VM017.msvyvi.vaha.local> Hi, What does the schema of the feature type show if you check it with DescribeFeatureType? If the property is String I think you should stop what you do and make Mapserver to consider and announce the property as numeric first. -Jukka Rahkonen- Steve.Toutant at inspq.qc.ca wrote: this works LONG_STAT*-61,8031* But we want to be able to usePropertyIsEqual because are end users won't use PropertyIsLike... thomas bonfort > 2015-05-13 05:40 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO > Objet Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, > wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed May 13 07:47:43 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 13 May 2015 10:47:43 -0400 Subject: [mapserver-users] RE VS: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: <8b6752f0dc9a4c3abf7acc88be5412cb@C119S212VM017.msvyvi.vaha.local> References: <8b6752f0dc9a4c3abf7acc88be5412cb@C119S212VM017.msvyvi.vaha.local> Message-ID: DescribeFeatureType returns string for each atributes "Rahkonen Jukka (MML)" 2015-05-13 10:46 A "Steve.Toutant at inspq.qc.ca" cc MapserverList OSGEO Objet VS: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Hi, What does the schema of the feature type show if you check it with DescribeFeatureType? If the property is String I think you should stop what you do and make Mapserver to consider and announce the property as numeric first. -Jukka Rahkonen- Steve.Toutant at inspq.qc.ca wrote: this works LONG_STAT*-61,8031* But we want to be able to usePropertyIsEqual because are end users won't use PropertyIsLike... thomas bonfort 2015-05-13 05:40 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO Objet Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed May 13 08:02:25 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 13 May 2015 11:02:25 -0400 Subject: [mapserver-users] RE VS: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: <8b6752f0dc9a4c3abf7acc88be5412cb@C119S212VM017.msvyvi.vaha.local> References: <8b6752f0dc9a4c3abf7acc88be5412cb@C119S212VM017.msvyvi.vaha.local> Message-ID: this is weird..... First, DescribeFeatureType returns string for every attributes Here is a getfeature response ( http:/xxxxx?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=feature:SMDVDP_STAT_METE&maxFeatures=5 ) -65,6906 Using ogc:PropertyIsEqualTo matchCase="true" -61, 8031 it crashes Using ogc:PropertyIsEqualTo matchCase="true" -61. 8031 it works Using ogc:PropertyIsEqualTo matchCase="false" -61. 8031 it crashes So getfeature returns "," as decimals separator, but getfeature with a filter needs a "." to works, but with matchCase=false crashes in any case..... I'm totally confuse "Rahkonen Jukka (MML)" 2015-05-13 10:46 A "Steve.Toutant at inspq.qc.ca" cc MapserverList OSGEO Objet VS: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Hi, What does the schema of the feature type show if you check it with DescribeFeatureType? If the property is String I think you should stop what you do and make Mapserver to consider and announce the property as numeric first. -Jukka Rahkonen- Steve.Toutant at inspq.qc.ca wrote: this works LONG_STAT*-61,8031* But we want to be able to usePropertyIsEqual because are end users won't use PropertyIsLike... thomas bonfort 2015-05-13 05:40 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO Objet Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Wed May 13 15:53:47 2015 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Wed, 13 May 2015 22:53:47 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: Message-ID: Steve, I tested this out with 7.1 with numeric type fields and it works for me as long as I don't use matchCase="false". That seems to kick it in to a string comparison. matchCase="true" and just PropertyIsEqualTo work fine. In our metadata we use "gml_types" "auto" when the database knows the types and explicit declarations (eg "gml_attributename_type" "integer") when it doesn't work. The key is that the field type has to report as a numeric type or the backend treats it as a string comparison. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" > Date: Wednesday, May 13, 2015 at 10:35 AM To: thomas bonfort > Cc: MapserverList OSGEO > Subject: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Resent-From: Michael Smith > Precision: we are using MS7.1 Removing matchcase part makes oracle, and postgis, crash. I have this error: msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data statement and server logs The problem might be the decimals? Here is the request LONG_STAT -61,8031 thomas bonfort > 2015-05-13 05:40 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO > Objet Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, > wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Thu May 14 05:54:53 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 14 May 2015 08:54:53 -0400 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: Message-ID: Thanks Mike for having a look at it. Your decimals are separated by a comma or a dot? "Smith, Michael ERDC-RDE-CRREL-NH" 2015-05-13 18:53 A "Steve.Toutant at inspq.qc.ca" , thomas bonfort cc MapserverList OSGEO Objet Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Steve, I tested this out with 7.1 with numeric type fields and it works for me as long as I don't use matchCase="false". That seems to kick it in to a string comparison. matchCase="true" and just PropertyIsEqualTo work fine. In our metadata we use "gml_types" "auto" when the database knows the types and explicit declarations (eg "gml_attributename_type" "integer") when it doesn't work. The key is that the field type has to report as a numeric type or the backend treats it as a string comparison. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" Date: Wednesday, May 13, 2015 at 10:35 AM To: thomas bonfort Cc: MapserverList OSGEO Subject: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Resent-From: Michael Smith Precision: we are using MS7.1 Removing matchcase part makes oracle, and postgis, crash. I have this error: msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data statement and server logs The problem might be the decimals? Here is the request LONG_STAT -61,8031 thomas bonfort 2015-05-13 05:40 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO Objet Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Thu May 14 06:17:07 2015 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Thu, 14 May 2015 13:17:07 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: Message-ID: Its not clear to me that commas as the decimal separator is supported in XML/GML. I can't find any documentation to indicate that it is. Can you point some out to me? In any event, I didn't test with comma decimal separators. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" > Date: Thursday, May 14, 2015 at 8:54 AM To: Michael Smith > Cc: MapserverList OSGEO >, thomas bonfort > Subject: Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Thanks Mike for having a look at it. Your decimals are separated by a comma or a dot? "Smith, Michael ERDC-RDE-CRREL-NH" > 2015-05-13 18:53 A "Steve.Toutant at inspq.qc.ca" >, thomas bonfort > cc MapserverList OSGEO > Objet Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Steve, I tested this out with 7.1 with numeric type fields and it works for me as long as I don't use matchCase="false". That seems to kick it in to a string comparison. matchCase="true" and just PropertyIsEqualTo work fine. In our metadata we use "gml_types" "auto" when the database knows the types and explicit declarations (eg "gml_attributename_type" "integer") when it doesn't work. The key is that the field type has to report as a numeric type or the backend treats it as a string comparison. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" > Date: Wednesday, May 13, 2015 at 10:35 AM To: thomas bonfort > Cc: MapserverList OSGEO > Subject: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Resent-From: Michael Smith > Precision: we are using MS7.1 Removing matchcase part makes oracle, and postgis, crash. I have this error: msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data statement and server logs The problem might be the decimals? Here is the request LONG_STAT -61,8031 thomas bonfort > 2015-05-13 05:40 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO > Objet Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, > wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Thu May 14 06:28:57 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 14 May 2015 09:28:57 -0400 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: Message-ID: Is there a documentation that says that it is not? Folks from gdal list also think that it is not supported...I guess you are right. But as I said on the gdal list, many countries are using a comma as a decimal separator....what other people on the planet do? Anyway the comma is another problem that I try to manage later...... For now, We have an application that generate and launch spatial queries on WFS, matchCase=false by default. Before modifying the code I want to understand what is going on.... It seems,when using numeric value, that matchCase as no impact in PostGIS, but it is important in oracle to be set to true gml_type = auto, returns double in postgis and oracle, so that is fine A WFS getFeature with the operator PropertyIsEqualTo AND matchCase=false using this value -64.225 PostGis: it works Oracle (from mike's test): it fails...matchCase must be set to true A WFS getFeature with the operator PropertyIsEqualTo AND matchCase=false using this value -64,225 PotsGis: not tested Oracle: it fails...matchCase must be set to true Is there a reason why, with oracle, matchCase should be set to true when using numeric value, or that could be fixed? Regards Steve "Smith, Michael ERDC-RDE-CRREL-NH" 2015-05-14 09:17 A "Steve.Toutant at inspq.qc.ca" cc MapserverList OSGEO , thomas bonfort Objet Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Its not clear to me that commas as the decimal separator is supported in XML/GML. I can't find any documentation to indicate that it is. Can you point some out to me? In any event, I didn't test with comma decimal separators. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" Date: Thursday, May 14, 2015 at 8:54 AM To: Michael Smith Cc: MapserverList OSGEO , thomas bonfort Subject: Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Thanks Mike for having a look at it. Your decimals are separated by a comma or a dot? "Smith, Michael ERDC-RDE-CRREL-NH" 2015-05-13 18:53 A "Steve.Toutant at inspq.qc.ca" , thomas bonfort < thomas.bonfort at gmail.com> cc MapserverList OSGEO Objet Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Steve, I tested this out with 7.1 with numeric type fields and it works for me as long as I don't use matchCase="false". That seems to kick it in to a string comparison. matchCase="true" and just PropertyIsEqualTo work fine. In our metadata we use "gml_types" "auto" when the database knows the types and explicit declarations (eg "gml_attributename_type" "integer") when it doesn't work. The key is that the field type has to report as a numeric type or the backend treats it as a string comparison. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" Date: Wednesday, May 13, 2015 at 10:35 AM To: thomas bonfort Cc: MapserverList OSGEO Subject: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Resent-From: Michael Smith Precision: we are using MS7.1 Removing matchcase part makes oracle, and postgis, crash. I have this error: msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data statement and server logs The problem might be the decimals? Here is the request LONG_STAT -61,8031 thomas bonfort 2015-05-13 05:40 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO Objet Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From fl_v at inbox.ru Thu May 14 06:09:54 2015 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Thu, 14 May 2015 16:09:54 +0300 Subject: [mapserver-users] =?utf-8?q?with_of_line?= Message-ID: <1431608994.197726108@f30.i.mail.ru> Hi All! I am trying to get a thick line on my map, for example: $style->set('width',50) or $style->set('width',70); but it seems always = 32. PHP MapScript 6.4.1 "UNITS METERS" in maplile. Is it possible to set width of line more? Thanx -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Thu May 14 06:43:11 2015 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Thu, 14 May 2015 13:43:11 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: Message-ID: The matchCase triggers a string comparison. matchCase doesn't seem to make sense for a number. That being said, I can look into the specific case of matchCase and a numeric comparison and make sire that it isn't used. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" > Date: Thursday, May 14, 2015 at 9:28 AM To: Michael Smith > Cc: MapserverList OSGEO >, thomas bonfort > Subject: Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Is there a documentation that says that it is not? Folks from gdal list also think that it is not supported...I guess you are right. But as I said on the gdal list, many countries are using a comma as a decimal separator....what other people on the planet do? Anyway the comma is another problem that I try to manage later...... For now, We have an application that generate and launch spatial queries on WFS, matchCase=false by default. Before modifying the code I want to understand what is going on.... It seems,when using numeric value, that matchCase as no impact in PostGIS, but it is important in oracle to be set to true gml_type = auto, returns double in postgis and oracle, so that is fine A WFS getFeature with the operator PropertyIsEqualTo AND matchCase=false using this value -64.225 PostGis: it works Oracle (from mike's test): it fails...matchCase must be set to true A WFS getFeature with the operator PropertyIsEqualTo AND matchCase=false using this value -64,225 PotsGis: not tested Oracle: it fails...matchCase must be set to true Is there a reason why, with oracle, matchCase should be set to true when using numeric value, or that could be fixed? Regards Steve "Smith, Michael ERDC-RDE-CRREL-NH" > 2015-05-14 09:17 A "Steve.Toutant at inspq.qc.ca" > cc MapserverList OSGEO >, thomas bonfort > Objet Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Its not clear to me that commas as the decimal separator is supported in XML/GML. I can't find any documentation to indicate that it is. Can you point some out to me? In any event, I didn't test with comma decimal separators. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" > Date: Thursday, May 14, 2015 at 8:54 AM To: Michael Smith > Cc: MapserverList OSGEO >, thomas bonfort > Subject: Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Thanks Mike for having a look at it. Your decimals are separated by a comma or a dot? "Smith, Michael ERDC-RDE-CRREL-NH" > 2015-05-13 18:53 A "Steve.Toutant at inspq.qc.ca" >, thomas bonfort > cc MapserverList OSGEO > Objet Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Steve, I tested this out with 7.1 with numeric type fields and it works for me as long as I don't use matchCase="false". That seems to kick it in to a string comparison. matchCase="true" and just PropertyIsEqualTo work fine. In our metadata we use "gml_types" "auto" when the database knows the types and explicit declarations (eg "gml_attributename_type" "integer") when it doesn't work. The key is that the field type has to report as a numeric type or the backend treats it as a string comparison. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" > Date: Wednesday, May 13, 2015 at 10:35 AM To: thomas bonfort > Cc: MapserverList OSGEO > Subject: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Resent-From: Michael Smith > Precision: we are using MS7.1 Removing matchcase part makes oracle, and postgis, crash. I have this error: msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data statement and server logs The problem might be the decimals? Here is the request LONG_STAT -61,8031 thomas bonfort > 2015-05-13 05:40 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO > Objet Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, > wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Thu May 14 06:48:11 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 14 May 2015 09:48:11 -0400 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: Message-ID: And setting it to true doesn't make more sense. I guess it is already not used when the source is postgis Thank you very much for your help in this Steve "Smith, Michael ERDC-RDE-CRREL-NH" 2015-05-14 09:43 A "Steve.Toutant at inspq.qc.ca" cc MapserverList OSGEO , thomas bonfort Objet Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field The matchCase triggers a string comparison. matchCase doesn't seem to make sense for a number. That being said, I can look into the specific case of matchCase and a numeric comparison and make sire that it isn't used. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" Date: Thursday, May 14, 2015 at 9:28 AM To: Michael Smith Cc: MapserverList OSGEO , thomas bonfort Subject: Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Is there a documentation that says that it is not? Folks from gdal list also think that it is not supported...I guess you are right. But as I said on the gdal list, many countries are using a comma as a decimal separator....what other people on the planet do? Anyway the comma is another problem that I try to manage later...... For now, We have an application that generate and launch spatial queries on WFS, matchCase=false by default. Before modifying the code I want to understand what is going on.... It seems,when using numeric value, that matchCase as no impact in PostGIS, but it is important in oracle to be set to true gml_type = auto, returns double in postgis and oracle, so that is fine A WFS getFeature with the operator PropertyIsEqualTo AND matchCase=false using this value -64.225 PostGis: it works Oracle (from mike's test): it fails...matchCase must be set to true A WFS getFeature with the operator PropertyIsEqualTo AND matchCase=false using this value -64,225 PotsGis: not tested Oracle: it fails...matchCase must be set to true Is there a reason why, with oracle, matchCase should be set to true when using numeric value, or that could be fixed? Regards Steve "Smith, Michael ERDC-RDE-CRREL-NH" 2015-05-14 09:17 A "Steve.Toutant at inspq.qc.ca" cc MapserverList OSGEO , thomas bonfort < thomas.bonfort at gmail.com> Objet Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Its not clear to me that commas as the decimal separator is supported in XML/GML. I can't find any documentation to indicate that it is. Can you point some out to me? In any event, I didn't test with comma decimal separators. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" Date: Thursday, May 14, 2015 at 8:54 AM To: Michael Smith Cc: MapserverList OSGEO , thomas bonfort Subject: Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Thanks Mike for having a look at it. Your decimals are separated by a comma or a dot? "Smith, Michael ERDC-RDE-CRREL-NH" 2015-05-13 18:53 A "Steve.Toutant at inspq.qc.ca" , thomas bonfort < thomas.bonfort at gmail.com> cc MapserverList OSGEO Objet Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Steve, I tested this out with 7.1 with numeric type fields and it works for me as long as I don't use matchCase="false". That seems to kick it in to a string comparison. matchCase="true" and just PropertyIsEqualTo work fine. In our metadata we use "gml_types" "auto" when the database knows the types and explicit declarations (eg "gml_attributename_type" "integer") when it doesn't work. The key is that the field type has to report as a numeric type or the backend treats it as a string comparison. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" Date: Wednesday, May 13, 2015 at 10:35 AM To: thomas bonfort Cc: MapserverList OSGEO Subject: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Resent-From: Michael Smith Precision: we are using MS7.1 Removing matchcase part makes oracle, and postgis, crash. I have this error: msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data statement and server logs The problem might be the decimals? Here is the request LONG_STAT -61,8031 thomas bonfort 2015-05-13 05:40 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO Objet Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From hosain.moh00 at gmail.com Thu May 14 08:12:06 2015 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Thu, 14 May 2015 19:42:06 +0430 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (ms4w/tmp):(line 1) Message-ID: loadWeb(): Unknown identifier. Parsing error near (ms4w/tmp):(line 1) may code is :
what is error loadWeb(): Unknown identifier. Parsing error near (ms4w/tmp):(line 1) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu May 14 09:14:11 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 14 May 2015 13:14:11 -0300 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (ms4w/tmp):(line 1) In-Reply-To: References: Message-ID: <5554C9D3.8020207@gatewaygeomatics.com> On 2015-05-14 12:12 PM, hosain mohammadi wrote: > loadWeb(): Unknown identifier. Parsing error near (ms4w/tmp):(line 1) > > may code is : >
> > value="C://ms4w//apps//tutorial//hello.map"> > > > > >
> > > > > what is error > loadWeb(): Unknown identifier. Parsing error near (ms4w/tmp):(line 1) > > Hi, make sure to check the archives of this list, as this was a common issue: http://osgeo-org.1560.x6.nabble.com/loadWeb-Unknown-identifier-td5039337.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From fl_v at inbox.ru Thu May 14 23:04:24 2015 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Fri, 15 May 2015 09:04:24 +0300 Subject: [mapserver-users] =?utf-8?q?=5BSOLVED=5D_width_of_line?= In-Reply-To: <1431608994.197726108@f30.i.mail.ru> References: <1431608994.197726108@f30.i.mail.ru> Message-ID: <1431669864.961181349@f241.i.mail.ru> I've found how to solve this. $style->set('maxwidth',100); - overrides default value 32 $style->set('width',100); - sets necessary value http://osgeo-org.1560.x6.nabble.com/Maximum-width-of-line-setting-is-ignored-td4232197.html Thanx to Thomas? >Hi All! >I am trying to get a thick line on my map, for example: >$style->set('width',50) or $style->set('width',70); >but it seems always = 32. >PHP MapScript 6.4.1 >"UNITS METERS" in maplile. >Is it possible to set width of line more? > >Thanx >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From hosain.moh00 at gmail.com Fri May 15 02:27:18 2015 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Fri, 15 May 2015 13:57:18 +0430 Subject: [mapserver-users] solve problem Message-ID: I got over the msLoadMap() problem. but now i get this message : loadWeb(): Unknown identifier. Parsing error near (:):(line 1) I have checked the map file over and over agian but i can't find any error. I quote the contents of map file and html template again. MapServer Hello World
TEMPLATE "/ms4w/Apache/htdocs/data/test.html" IMAGEPATH "\\ms4w\\Apache\\htdocs\\tmp" IMAGEURL "\\tmp\\\\" hosein -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Fri May 15 05:08:21 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Fri, 15 May 2015 12:08:21 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: Message-ID: <6F331135492B944D90731CE93743D5681DCEC9@FS-EX-DB102.fs.sachsen.de> Hey guys, >> Its not clear to me that commas as the decimal separator is supported in >> XML/GML. I can't find any documentation to indicate that it is. Can you >> point some out to me? >> > Is there a documentation that says that it is not? > Folks from gdal list also think that it is not supported...I guess you are > right. But as I said on the gdal list, many countries are using a comma as > a decimal separator....what other people on the planet do? > Anyway the comma is another problem that I try to manage later...... I just had a look at the discussion on the list and tried to find some hints in the specs and that's what I found: The Filter Encoding Specification v1.1.0 just states: "The element is used to encode literal scalar and geometric values." but FES v2.0.0 adds: "Literals can, optionally, be typed using the type attribute. The value of the attribute type is the name of type from some type system." and give as an example: "The following XML fragment: 1963-10-13 encodes a date value. The type of the value is xs:date as defined in (see W3C XML Schema Part 2)." >From that I would conclude that if it's not a geometric value a is basically an untyped character representation unless otherwise specified using the "type" attribute in which case the content should be treated as the character representation of the specified type. The type of comparison needs to be inferred from its operands. But the spec does not mandate any type conversion or inference rules. So how it is done is implementation defined. In the case of PropertyIs-operations the type of the named property usually selects the type any other operand will be converted to. In other cases this will mostly be done using the strongest type that all operands can be converted to. I assume an implementation should support at least the basic datatypes defined in the XML Schema spec. So implementations will most probably treat numerical literals with decimals as xs:float, xs:double or xs:decimal and their lexical representation uses "." as decimal separator. But they are free to support any other representation including one using "," as decimal separator. Geometric literals must be encoded using GML and that uses a list of xs:double for and and therefore uses "." as decimal separator too. AFAIK only the deprecated element supports the "decimal" attribute to set it to something else. Regarding the matchCase handling the spec (FES 1.1) states: "This type definition includes the matchCase attribute which is of type Boolean and controls whether string comparisons are caseless or not." So this attribute has no meaning for all other comparison types and should therefore be ignored. All that said I think it is a mistake to use the matchCase attribute to determine the type of the comparison and its operands. And numeric literals should be written using the lexical representation of a XML schema basic type like float or double using "." as the decimal separator because they are expected to be the most commonly supported ones. HTH From jukka.rahkonen at maanmittauslaitos.fi Fri May 15 07:08:17 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Fri, 15 May 2015 14:08:17 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Message-ID: <2001ac0466064add8ac40e4fe201ca58@C119S212VM017.msvyvi.vaha.local> Hi, I think that the real trouble is that with certain database and client settings the numerical data that is stored into Oracle is not interpreted correctly and correct place to fix the issue is somewhere very close to Oracle. Not in making GML parser to accept commas or to make WFS string comparisons to work correctly with numerical data in Oracle. GDAL had similar troubles for sure with Finnish, Italian and French locales and probably with all the other locales using comma as decimal separator as well. In practice it meant for me that GDAL truncated decimal numbers "1234,56" at comma "1234". For many years I used some workarounds but after this GDAL fix it has not been necessary any more: http://trac.osgeo.org/gdal/ticket/5709 I suggest to study the patch "'OCI: force NLS_NUMERIC_CHARACTERS to ". " (patch by giorgiomugnaini, #5709)'" and consider if it could be applied to the native Oracle driver in Mapserver. I guess and hope that Mapserver would recognize the datatype correctly if the Oracle layer is configured to read Oracle through CONNECTIONTYPE OGR and GDAL 2.0 is in use. Perhaps setting environment "ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '. '" locally before starting Mapserver would be enough but I do not know how and where to set it. -Jukka Rahkonen- Steve.Toutant wrote: Is there a documentation that says that it is not? Folks from gdal list also think that it is not supported...I guess you are right. But as I said on the gdal list, many countries are using a comma as a decimal separator....what other people on the planet do? Anyway the comma is another problem that I try to manage later...... For now, We have an application that generate and launch spatial queries on WFS, matchCase=false by default. Before modifying the code I want to understand what is going on.... It seems,when using numeric value, that matchCase as no impact in PostGIS, but it is important in oracle to be set to true gml_type = auto, returns double in postgis and oracle, so that is fine A WFS getFeature with the operator PropertyIsEqualTo AND matchCase=false using this value -64.225 PostGis: it works Oracle (from mike's test): it fails...matchCase must be set to true A WFS getFeature with the operator PropertyIsEqualTo AND matchCase=false using this value -64,225 PotsGis: not tested Oracle: it fails...matchCase must be set to true Is there a reason why, with oracle, matchCase should be set to true when using numeric value, or that could be fixed? Regards Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Fri May 15 13:59:38 2015 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Fri, 15 May 2015 14:59:38 -0600 Subject: [mapserver-users] static versus shared obj memory use Message-ID: I'm working on Linux and have statically linked mapserv for convenience but now I'm wondering if it is adversely affecting memory use. For example, if I have five fcgi mapserv instance like: mapserv.fcgi?map=mapfile1.map mapserv.fcgi?map=mapfile2.map mapserv.fcgi?map=mapfile3.map mapserv.fcgi?map=mapfile4.map mapserv.fcgi?map=mapfile5.map Am I using more memory with my static build than if they all referencing the shared libmapserver.so? Thanks, rich -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Fri May 15 14:04:25 2015 From: andy at squeakycode.net (Andy Colson) Date: Fri, 15 May 2015 16:04:25 -0500 Subject: [mapserver-users] static versus shared obj memory use In-Reply-To: References: Message-ID: <55565F59.30109@squeakycode.net> On 5/15/2015 3:59 PM, Richard Greenwood wrote: > I'm working on Linux and have statically linked mapserv for convenience > but now I'm wondering if it is adversely affecting memory use. For > example, if I have five fcgi mapserv instance like: > mapserv.fcgi?map=mapfile1.map > mapserv.fcgi?map=mapfile2.map > mapserv.fcgi?map=mapfile3.map > mapserv.fcgi?map=mapfile4.map > mapserv.fcgi?map=mapfile5.map > Am I using more memory with my static build than if they all referencing > the shared libmapserver.so? > > Thanks, > rich > I believe you will pay for the cost of one executable, the others will share the code pages, but get their own data pages. So no, you probably are not using more memory using static build. -Andy From richard.greenwood at gmail.com Fri May 15 14:34:56 2015 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Fri, 15 May 2015 15:34:56 -0600 Subject: [mapserver-users] static versus shared obj memory use In-Reply-To: <55565F59.30109@squeakycode.net> References: <55565F59.30109@squeakycode.net> Message-ID: Thanks for the reply Andy. I had Googled a bit and found this stackoverflow discussion in which the answer at the bottom said: "The most significant advantage of shared libraries is that there is only one copy of code loaded in memory, no matter how many processes are using the library. For static libraries each process gets its own copy of the code. This can lead to significant memory wastage." But I'm not sure if that's applicable with a web/fcgi application. rich On Fri, May 15, 2015 at 3:04 PM, Andy Colson wrote: > On 5/15/2015 3:59 PM, Richard Greenwood wrote: > >> I'm working on Linux and have statically linked mapserv for convenience >> but now I'm wondering if it is adversely affecting memory use. For >> example, if I have five fcgi mapserv instance like: >> mapserv.fcgi?map=mapfile1.map >> mapserv.fcgi?map=mapfile2.map >> mapserv.fcgi?map=mapfile3.map >> mapserv.fcgi?map=mapfile4.map >> mapserv.fcgi?map=mapfile5.map >> Am I using more memory with my static build than if they all referencing >> the shared libmapserver.so? >> >> Thanks, >> rich >> >> > I believe you will pay for the cost of one executable, the others will > share the code pages, but get their own data pages. > > So no, you probably are not using more memory using static build. > > -Andy > > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Fri May 15 14:39:54 2015 From: andy at squeakycode.net (Andy Colson) Date: Fri, 15 May 2015 16:39:54 -0500 Subject: [mapserver-users] static versus shared obj memory use In-Reply-To: References: <55565F59.30109@squeakycode.net> Message-ID: <555667AA.1050100@squeakycode.net> "how many processes" is not very descriptive. How many mapserve's vs how many different execuable. Many mapserv's will share, but they wont share with any other executables. ogr/gdal might be a good example. You have ogr compiled into mapserv. Running many mapserv's will all share the same code page in ram. However ogrinfo, ogr2ogr, etc wont be able to share with mapserv. -Andy On 5/15/2015 4:34 PM, Richard Greenwood wrote: > Thanks for the reply Andy. I had Googled a bit and found this > stackoverflow > > discussion in which the answer at the bottom said: > > "The most significant advantage of shared libraries is that there is > only one copy of code loaded in memory, no matter how many processes > are using the library. For static libraries each process gets its > own copy of the code. This can lead to significant memory wastage." > > But I'm not sure if that's applicable with a web/fcgi application. > > rich > > On Fri, May 15, 2015 at 3:04 PM, Andy Colson > wrote: > > On 5/15/2015 3:59 PM, Richard Greenwood wrote: > > I'm working on Linux and have statically linked mapserv for > convenience > but now I'm wondering if it is adversely affecting memory use. For > example, if I have five fcgi mapserv instance like: > mapserv.fcgi?map=mapfile1.map > mapserv.fcgi?map=mapfile2.map > mapserv.fcgi?map=mapfile3.map > mapserv.fcgi?map=mapfile4.map > mapserv.fcgi?map=mapfile5.map > Am I using more memory with my static build than if they all > referencing > the shared libmapserver.so? > > Thanks, > rich > > > I believe you will pay for the cost of one executable, the others > will share the code pages, but get their own data pages. > > So no, you probably are not using more memory using static build. > > -Andy > > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com From andy at squeakycode.net Fri May 15 14:44:25 2015 From: andy at squeakycode.net (Andy Colson) Date: Fri, 15 May 2015 16:44:25 -0500 Subject: [mapserver-users] static versus shared obj memory use In-Reply-To: References: <55565F59.30109@squeakycode.net> Message-ID: <555668B9.8020509@squeakycode.net> Here is another stackoverflow: http://stackoverflow.com/questions/2032779/will-multiple-instances-of-an-executable-built-with-static-libraries-share-any mapserv can only share with itself. Think of it as one file on disk equals one copy in ram. -Andy On 5/15/2015 4:34 PM, Richard Greenwood wrote: > Thanks for the reply Andy. I had Googled a bit and found this > stackoverflow > > discussion in which the answer at the bottom said: > > "The most significant advantage of shared libraries is that there is > only one copy of code loaded in memory, no matter how many processes > are using the library. For static libraries each process gets its > own copy of the code. This can lead to significant memory wastage." > > But I'm not sure if that's applicable with a web/fcgi application. > > rich > > On Fri, May 15, 2015 at 3:04 PM, Andy Colson > wrote: > > On 5/15/2015 3:59 PM, Richard Greenwood wrote: > > I'm working on Linux and have statically linked mapserv for > convenience > but now I'm wondering if it is adversely affecting memory use. For > example, if I have five fcgi mapserv instance like: > mapserv.fcgi?map=mapfile1.map > mapserv.fcgi?map=mapfile2.map > mapserv.fcgi?map=mapfile3.map > mapserv.fcgi?map=mapfile4.map > mapserv.fcgi?map=mapfile5.map > Am I using more memory with my static build than if they all > referencing > the shared libmapserver.so? > > Thanks, > rich > > > I believe you will pay for the cost of one executable, the others > will share the code pages, but get their own data pages. > > So no, you probably are not using more memory using static build. > > -Andy > > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com From richard.greenwood at gmail.com Fri May 15 14:51:32 2015 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Fri, 15 May 2015 15:51:32 -0600 Subject: [mapserver-users] static versus shared obj memory use In-Reply-To: <555667AA.1050100@squeakycode.net> References: <55565F59.30109@squeakycode.net> <555667AA.1050100@squeakycode.net> Message-ID: Got it! Thanks for that explanation, it makes much more sense to me now. Rich On Fri, May 15, 2015 at 3:39 PM, Andy Colson wrote: > "how many processes" is not very descriptive. How many mapserve's vs how > many different execuable. Many mapserv's will share, but they wont share > with any other executables. > > ogr/gdal might be a good example. You have ogr compiled into mapserv. > Running many mapserv's will all share the same code page in ram. However > ogrinfo, ogr2ogr, etc wont be able to share with mapserv. > > -Andy > > > On 5/15/2015 4:34 PM, Richard Greenwood wrote: > >> Thanks for the reply Andy. I had Googled a bit and found this >> stackoverflow >> < >> http://stackoverflow.com/questions/2649334/difference-between-static-and-shared-libraries >> > >> discussion in which the answer at the bottom said: >> >> "The most significant advantage of shared libraries is that there is >> only one copy of code loaded in memory, no matter how many processes >> are using the library. For static libraries each process gets its >> own copy of the code. This can lead to significant memory wastage." >> >> But I'm not sure if that's applicable with a web/fcgi application. >> >> rich >> >> On Fri, May 15, 2015 at 3:04 PM, Andy Colson > > wrote: >> >> On 5/15/2015 3:59 PM, Richard Greenwood wrote: >> >> I'm working on Linux and have statically linked mapserv for >> convenience >> but now I'm wondering if it is adversely affecting memory use. For >> example, if I have five fcgi mapserv instance like: >> mapserv.fcgi?map=mapfile1.map >> mapserv.fcgi?map=mapfile2.map >> mapserv.fcgi?map=mapfile3.map >> mapserv.fcgi?map=mapfile4.map >> mapserv.fcgi?map=mapfile5.map >> Am I using more memory with my static build than if they all >> referencing >> the shared libmapserver.so? >> >> Thanks, >> rich >> >> >> I believe you will pay for the cost of one executable, the others >> will share the code pages, but get their own data pages. >> >> So no, you probably are not using more memory using static build. >> >> -Andy >> >> >> >> >> -- >> Richard W. Greenwood, PLS >> www.greenwoodmap.com >> > > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Tue May 19 06:46:03 2015 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Tue, 19 May 2015 13:46:03 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: <35bf4e4d4a1447d4bb14fa5b454aedc6@C119S212VM017.msvyvi.vaha.local> Message-ID: Steve, Rerun this with DEBUG 3 on the LAYER and the generated SQL will show up in your error logs. Then it should show why the generated sql is not valid. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Tue May 19 09:26:50 2015 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Tue, 19 May 2015 16:26:50 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: <35bf4e4d4a1447d4bb14fa5b454aedc6@C119S212VM017.msvyvi.vaha.local> Message-ID: It looks like whats happening is that?s being converted into 3 Tokens and the oracle driver converts it into a number + comma + number. The tokenizer is not treating that value as a single value. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Tue May 19 06:42:32 2015 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Tue, 19 May 2015 13:42:32 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: <35bf4e4d4a1447d4bb14fa5b454aedc6@C119S212VM017.msvyvi.vaha.local> Message-ID: Steve, Rerun this with DEBUG 3 on the LAYER and the generated SQL will show up in your error logs. Then it should show why the generated sql is not valid. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: "Steve.Toutant at inspq.qc.ca" > Date: Tuesday, May 19, 2015 at 9:37 AM To: "Rahkonen Jukka (MML)" > Cc: MapserverList OSGEO >, Michael Smith > Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Thank you all for this discussion. We had different problems in our use case coming from gdal, mapserv, oracle, ...... I don't know how gdal should manage this comma issue, but I would like to clarify our problem with mapserv and see if something must be done. Resume - We use MS7.1 with oraclespatial connection - gml_type = auto, which returns - matchCase =true - LONG_STAT = -61,8031 The problem is LONG_STAT-61,8031, crash with this error msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data statement and server logs But, using LIKE it Works ...Probably because it "convert" the value as a string LONG_STAT*-61,8031* But why ogc:PropertyIsEqualTo is crashing? "Rahkonen Jukka (MML)" > 2015-05-15 10:05 A "Steve.Toutant at inspq.qc.ca" >, "Smith, Michael ERDC-RDE-CRREL-NH" > cc MapserverList OSGEO > Objet Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Hi, I think that the real trouble is that with certain database and client settings the numerical data that is stored into Oracle is not interpreted correctly and correct place to fix the issue is somewhere very close to Oracle. Not in making GML parser to accept commas or to make WFS string comparisons to work correctly with numerical data in Oracle. GDAL had similar troubles for sure with Finnish, Italian and French locales and probably with all the other locales using comma as decimal separator as well. In practice it meant for me that GDAL truncated decimal numbers ?1234,56? at comma ?1234?. For many years I used some workarounds but after this GDAL fix it has not been necessary any more: http://trac.osgeo.org/gdal/ticket/5709 I suggest to study the patch ?'OCI: force NLS_NUMERIC_CHARACTERS to ". " (patch by giorgiomugnaini, #5709)'? and consider if it could be applied to the native Oracle driver in Mapserver. I guess and hope that Mapserver would recognize the datatype correctly if the Oracle layer is configured to read Oracle through OGR and GDAL 2.0 is in use. Perhaps setting environment "ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '. '" locally before starting Mapserver would be enough but I do not know how and where to set it. -Jukka Rahkonen- Steve.Toutant wrote: Is there a documentation that says that it is not? Folks from gdal list also think that it is not supported...I guess you are right. But as I said on the gdal list, many countries are using a comma as a decimal separator....what other people on the planet do? Anyway the comma is another problem that I try to manage later...... For now, We have an application that generate and launch spatial queries on WFS, matchCase=false by default. Before modifying the code I want to understand what is going on.... It seems,when using numeric value, that matchCase as no impact in PostGIS, but it is important in oracle to be set to true gml_type = auto, returns double in postgis and oracle, so that is fine A WFS getFeature with the operator PropertyIsEqualTo AND matchCase=false using this value -64.225 PostGis: it works Oracle (from mike's test): it fails...matchCase must be set to true A WFS getFeature with the operator PropertyIsEqualTo AND matchCase=false using this value -64,225 PotsGis: not tested Oracle: it fails...matchCase must be set to true Is there a reason why, with oracle, matchCase should be set to true when using numeric value, or that could be fixed? Regards Steve "Smith, Michael ERDC-RDE-CRREL-NH" > 2015-05-14 09:17 A "Steve.Toutant at inspq.qc.ca" > cc MapserverList OSGEO >, thomas bonfort > Objet Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Its not clear to me that commas as the decimal separator is supported in XML/GML. I can't find any documentation to indicate that it is. Can you point some out to me? In any event, I didn't test with comma decimal separators. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" > Date: Thursday, May 14, 2015 at 8:54 AM To: Michael Smith > Cc: MapserverList OSGEO >, thomas bonfort > Subject: Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Thanks Mike for having a look at it. Your decimals are separated by a comma or a dot? "Smith, Michael ERDC-RDE-CRREL-NH" > 2015-05-13 18:53 A "Steve.Toutant at inspq.qc.ca" >, thomas bonfort > cc MapserverList OSGEO > Objet Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Steve, I tested this out with 7.1 with numeric type fields and it works for me as long as I don't use matchCase="false". That seems to kick it in to a string comparison. matchCase="true" and just PropertyIsEqualTo work fine. In our metadata we use "gml_types" "auto" when the database knows the types and explicit declarations (eg "gml_attributename_type" "integer") when it doesn't work. The key is that the field type has to report as a numeric type or the backend treats it as a string comparison. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" > Date: Wednesday, May 13, 2015 at 10:35 AM To: thomas bonfort > Cc: MapserverList OSGEO > Subject: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Resent-From: Michael Smith > Precision: we are using MS7.1 Removing matchcase part makes oracle, and postgis, crash. I have this error: msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data statement and server logs The problem might be the decimals? Here is the request LONG_STAT -61,8031 thomas bonfort > 2015-05-13 05:40 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO > Objet Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, > wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Tue May 19 09:24:47 2015 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Tue, 19 May 2015 16:24:47 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: <35bf4e4d4a1447d4bb14fa5b454aedc6@C119S212VM017.msvyvi.vaha.local> Message-ID: It looks like whats happening is that?s being converted into 3 Tokens and the oracle driver converts it into a number + comma + number. The tokenizer is not treating that value as a single value. Mike From: "Steve.Toutant at inspq.qc.ca" > Date: Tuesday, May 19, 2015 at 11:44 AM To: Michael Smith > Cc: "Rahkonen Jukka (MML)" >, MapserverList OSGEO > Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field here is the mapserver log with LONG_STAT-61,8031 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, NO_STAT_CLIM, NO_STAT_FADQ, NOM_STAT, LATI_STAT, LONG_STAT, ALTI_STAT, D_DEB, D_FIN, TIMB_MAJ, USAG_MAJ, rownum, GEOM_POIN FROM (select * FROM SMDVDP_STAT_METE WHERE EXTRACT(YEAR FROM D_DEB) = 2014) WHERE ( LONG_STAT = -61.000000,8031.000000 ) AND SDO_FILTER( GEOM_POIN, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' The problem is WHERE ( LONG_STAT = -61.000000,8031.000000 ) "Smith, Michael ERDC-RDE-CRREL-NH" > 2015-05-19 09:42 A "Steve.Toutant at inspq.qc.ca" >, "Rahkonen Jukka (MML)" > cc MapserverList OSGEO > Objet Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Steve, Rerun this with DEBUG 3 on the LAYER and the generated SQL will show up in your error logs. Then it should show why the generated sql is not valid. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: "Steve.Toutant at inspq.qc.ca" > Date: Tuesday, May 19, 2015 at 9:37 AM To: "Rahkonen Jukka (MML)" > Cc: MapserverList OSGEO >, Michael Smith > Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Thank you all for this discussion. We had different problems in our use case coming from gdal, mapserv, oracle, ...... I don't know how gdal should manage this comma issue, but I would like to clarify our problem with mapserv and see if something must be done. Resume - We use MS7.1 with oraclespatial connection - gml_type = auto, which returns - matchCase =true - LONG_STAT = -61,8031 The problem is LONG_STAT-61,8031, crash with this error msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data statement and server logs But, using LIKE it Works ...Probably because it "convert" the value as a string LONG_STAT*-61,8031* But why ogc:PropertyIsEqualTo is crashing? "Rahkonen Jukka (MML)" > 2015-05-15 10:05 A "Steve.Toutant at inspq.qc.ca" >, "Smith, Michael ERDC-RDE-CRREL-NH" > cc MapserverList OSGEO > Objet Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Hi, I think that the real trouble is that with certain database and client settings the numerical data that is stored into Oracle is not interpreted correctly and correct place to fix the issue is somewhere very close to Oracle. Not in making GML parser to accept commas or to make WFS string comparisons to work correctly with numerical data in Oracle. GDAL had similar troubles for sure with Finnish, Italian and French locales and probably with all the other locales using comma as decimal separator as well. In practice it meant for me that GDAL truncated decimal numbers ?1234,56? at comma ?1234?. For many years I used some workarounds but after this GDAL fix it has not been necessary any more: http://trac.osgeo.org/gdal/ticket/5709 I suggest to study the patch ?'OCI: force NLS_NUMERIC_CHARACTERS to ". " (patch by giorgiomugnaini, #5709)'? and consider if it could be applied to the native Oracle driver in Mapserver. I guess and hope that Mapserver would recognize the datatype correctly if the Oracle layer is configured to read Oracle through OGR and GDAL 2.0 is in use. Perhaps setting environment "ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '. '" locally before starting Mapserver would be enough but I do not know how and where to set it. -Jukka Rahkonen- Steve.Toutant wrote: Is there a documentation that says that it is not? Folks from gdal list also think that it is not supported...I guess you are right. But as I said on the gdal list, many countries are using a comma as a decimal separator....what other people on the planet do? Anyway the comma is another problem that I try to manage later...... For now, We have an application that generate and launch spatial queries on WFS, matchCase=false by default. Before modifying the code I want to understand what is going on.... It seems,when using numeric value, that matchCase as no impact in PostGIS, but it is important in oracle to be set to true gml_type = auto, returns double in postgis and oracle, so that is fine A WFS getFeature with the operator PropertyIsEqualTo AND matchCase=false using this value -64.225 PostGis: it works Oracle (from mike's test): it fails...matchCase must be set to true A WFS getFeature with the operator PropertyIsEqualTo AND matchCase=false using this value -64,225 PotsGis: not tested Oracle: it fails...matchCase must be set to true Is there a reason why, with oracle, matchCase should be set to true when using numeric value, or that could be fixed? Regards Steve "Smith, Michael ERDC-RDE-CRREL-NH" > 2015-05-14 09:17 A "Steve.Toutant at inspq.qc.ca" > cc MapserverList OSGEO >, thomas bonfort > Objet Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Its not clear to me that commas as the decimal separator is supported in XML/GML. I can't find any documentation to indicate that it is. Can you point some out to me? In any event, I didn't test with comma decimal separators. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" > Date: Thursday, May 14, 2015 at 8:54 AM To: Michael Smith > Cc: MapserverList OSGEO >, thomas bonfort > Subject: Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Thanks Mike for having a look at it. Your decimals are separated by a comma or a dot? "Smith, Michael ERDC-RDE-CRREL-NH" > 2015-05-13 18:53 A "Steve.Toutant at inspq.qc.ca" >, thomas bonfort > cc MapserverList OSGEO > Objet Re: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Steve, I tested this out with 7.1 with numeric type fields and it works for me as long as I don't use matchCase="false". That seems to kick it in to a string comparison. matchCase="true" and just PropertyIsEqualTo work fine. In our metadata we use "gml_types" "auto" when the database knows the types and explicit declarations (eg "gml_attributename_type" "integer") when it doesn't work. The key is that the field type has to report as a numeric type or the backend treats it as a string comparison. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Steve.Toutant at inspq.qc.ca" > Date: Wednesday, May 13, 2015 at 10:35 AM To: thomas bonfort > Cc: MapserverList OSGEO > Subject: [EXTERNAL] Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field Resent-From: Michael Smith > Precision: we are using MS7.1 Removing matchcase part makes oracle, and postgis, crash. I have this error: msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data statement and server logs The problem might be the decimals? Here is the request LONG_STAT -61,8031 thomas bonfort > 2015-05-13 05:40 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO > Objet Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field can you try the same request without the "matchCase" part and report back please? On 12 May 2015 at 18:11, > wrote: > I have a problem using a FILTER in a wfs getFeature request on an oracle DB > with MS7 > When I launch a getFeature request with a Filter on a numeric field it > doesn't work, > matchCase="false">LONG_STAT-61 > here is the error we get in the browser > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data > statement and server logs > > from mapserver logs > [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter. > String: ([LONG_STAT] =*-61) > > LONG_STAT is a NUMBER in the DB > DescribefeatureType returns > > > > > > > > I tried to add "gml_types" "auto" in the mapfile, but it still returns > string as data type > I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType > returns " " but I > still get an error in getFeature > > I'm using CONNECTIONTYPE oraclespatial in the mapfile > > I can provide more information.... > > Is it a known issue or can I do something about that? > > Thank you! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Tue May 19 12:05:30 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 19 May 2015 15:05:30 -0400 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: <35bf4e4d4a1447d4bb14fa5b454aedc6@C119S212VM017.msvyvi.vaha.local> Message-ID: It seems to be a bug isn't? Do you want me to open an issue? "Smith, Michael ERDC-RDE-CRREL-NH" 2015-05-19 12:24 A "Steve.Toutant at inspq.qc.ca" cc "Rahkonen Jukka (MML)" , MapserverList OSGEO Objet Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field It looks like whats happening is that?s being converted into 3 Tokens and the oracle driver converts it into a number + comma + number. The tokenizer is not treating that value as a single value. Mike From: "Steve.Toutant at inspq.qc.ca" Date: Tuesday, May 19, 2015 at 11:44 AM To: Michael Smith Cc: "Rahkonen Jukka (MML)" , MapserverList OSGEO Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field here is the mapserver log with LONG_STAT-61,8031 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, NO_STAT_CLIM, NO_STAT_FADQ, NOM_STAT, LATI_STAT, LONG_STAT, ALTI_STAT, D_DEB, D_FIN, TIMB_MAJ, USAG_MAJ, rownum, GEOM_POIN FROM (select * FROM SMDVDP_STAT_METE WHERE EXTRACT(YEAR FROM D_DEB) = 2014) WHERE ( LONG_STAT = -61.000000,8031.000000 ) AND SDO_FILTER( GEOM_POIN, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' The problem is WHERE ( LONG_STAT = -61.000000,8031.000000 ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue May 19 11:53:47 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 19 May 2015 18:53:47 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: <35bf4e4d4a1447d4bb14fa5b454aedc6@C119S212VM017.msvyvi.vaha.local> Message-ID: That's actually the lexer then since it's responsible for producing tokens. It would need to be updated to be aware of what the local decimal delimiter is. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Smith, Michael ERDC-RDE-CRREL-NH Sent: Tuesday, May 19, 2015 11:27 AM To: MapserverList OSGEO Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field It looks like whats happening is that's being converted into 3 Tokens and the oracle driver converts it into a number + comma + number. The tokenizer is not treating that value as a single value. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Tue May 19 12:14:43 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 19 May 2015 19:14:43 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Message-ID: <5f232b4a49be417fb207ad7fdb6b7c1c@C119S212VM017.msvyvi.vaha.local> Hi, I made some tests with SQL*Plus. I took a row which has an attribute "nro" which is of type REAL and the value with my Finnish locale looks like "42.071". I suggest you, Steve, to repeat this simple test. SQL> select nro from test_table where nro=42,071; * [ERROR on row 1]: ORA-00933: [SQL-command did not end correctly] Another test: SQL> select nro from test_table where nro=42.071; NRO ---------- 42,071 Notice that even if the result is printed out with comma as a decimal separator in my environment I must still use point in the queries. I do not know it is always like that. This works also with SQL*Plus: SQL> select nro from test_table where nro='42,071'; Now what happens with ogrinfo is funny: ogrinfo OCI:user/pw at db:test_table -sql "select nro from test_table where NRO=42.071" INFO: Open of `OCI:....' using driver `OCI' successful. Layer name: select nro from test_table where NRO=42.071 Geometry: Unknown (any) Feature Count: 1 Layer SRS WKT: (unknown) NRO: Real (0.0) OGRFeature(select nro from test_table where NRO=42.071):0 NRO (Real) = 42 My old GDAL truncates the output at the comma. I can't test with Mapserver right now. I think still that creating an issue is a right thing to do because your trouble is real. I do not know how and where it should be corrected. Perhaps it would work if Mapserver takes care of using always point as a decimal separator in queries even is Oracle is sending back commas? That seems at least to be the right thing to do with SQL*Plus that is a native Oracle product. I do not believe that tokenizer is the component that fails. Perhaps it fails but sending commas as decimal separator would probably still yield an error. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue May 19 12:11:47 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 19 May 2015 19:11:47 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: <35bf4e4d4a1447d4bb14fa5b454aedc6@C119S212VM017.msvyvi.vaha.local> Message-ID: Is there somewhere in the capabilities response where a user would declare what decimal separators are supported? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Tuesday, May 19, 2015 2:06 PM To: MapserverList OSGEO Cc: Michael.Smith at erdc.dren.mi Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field It seems to be a bug isn't? Do you want me to open an issue? "Smith, Michael ERDC-RDE-CRREL-NH" > 2015-05-19 12:24 A "Steve.Toutant at inspq.qc.ca" > cc "Rahkonen Jukka (MML)" >, MapserverList OSGEO > Objet Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field It looks like whats happening is that's being converted into 3 Tokens and the oracle driver converts it into a number + comma + number. The tokenizer is not treating that value as a single value. Mike From: "Steve.Toutant at inspq.qc.ca" > Date: Tuesday, May 19, 2015 at 11:44 AM To: Michael Smith > Cc: "Rahkonen Jukka (MML)" >, MapserverList OSGEO > Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field here is the mapserver log with LONG_STAT-61,8031 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, NO_STAT_CLIM, NO_STAT_FADQ, NOM_STAT, LATI_STAT, LONG_STAT, ALTI_STAT, D_DEB, D_FIN, TIMB_MAJ, USAG_MAJ, rownum, GEOM_POIN FROM (select * FROM SMDVDP_STAT_METE WHERE EXTRACT(YEAR FROM D_DEB) = 2014) WHERE ( LONG_STAT = -61.000000,8031.000000 ) AND SDO_FILTER( GEOM_POIN, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' The problem is WHERE ( LONG_STAT = -61.000000,8031.000000 ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Tue May 19 14:08:58 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 19 May 2015 21:08:58 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Message-ID: <2569c6d566d64b2fa5f073a370e09735@C119S212VM017.msvyvi.vaha.local> Hi, Without being a programmer I would like to see what would happen if this source file https://github.com/mapserver/mapserver/blob/branch-7-0/maporaclespatial.c would be edited around line 571-573: cmd = "alter session set NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'"; by adding a new block for setting the decimal and thousands separators for output cmd = "alter session set NLS_NUMERIC_CHARACTERS='. '"; I am not sure of the right syntax. This one works with SQL*Plus and set decimal points and space for thousands separator. I think that thousands should be without separators but the command seems to require two inputs. -Jukka Rahkonen- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Lime, Steve D (MNIT) L?hetetty: 19. toukokuuta 2015 22:12 Vastaanottaja: Steve.Toutant at inspq.qc.ca; MapserverList OSGEO Kopio: Michael.Smith at erdc.dren.mi Aihe: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Is there somewhere in the capabilities response where a user would declare what decimal separators are supported? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Tuesday, May 19, 2015 2:06 PM To: MapserverList OSGEO Cc: Michael.Smith at erdc.dren.mi Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field It seems to be a bug isn't? Do you want me to open an issue? "Smith, Michael ERDC-RDE-CRREL-NH" > 2015-05-19 12:24 A "Steve.Toutant at inspq.qc.ca" > cc "Rahkonen Jukka (MML)" >, MapserverList OSGEO > Objet Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field It looks like whats happening is that's being converted into 3 Tokens and the oracle driver converts it into a number + comma + number. The tokenizer is not treating that value as a single value. Mike From: "Steve.Toutant at inspq.qc.ca" > Date: Tuesday, May 19, 2015 at 11:44 AM To: Michael Smith > Cc: "Rahkonen Jukka (MML)" >, MapserverList OSGEO > Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field here is the mapserver log with LONG_STAT-61,8031 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, NO_STAT_CLIM, NO_STAT_FADQ, NOM_STAT, LATI_STAT, LONG_STAT, ALTI_STAT, D_DEB, D_FIN, TIMB_MAJ, USAG_MAJ, rownum, GEOM_POIN FROM (select * FROM SMDVDP_STAT_METE WHERE EXTRACT(YEAR FROM D_DEB) = 2014) WHERE ( LONG_STAT = -61.000000,8031.000000 ) AND SDO_FILTER( GEOM_POIN, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' The problem is WHERE ( LONG_STAT = -61.000000,8031.000000 ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Tue May 19 14:21:23 2015 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Tue, 19 May 2015 21:21:23 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: <2569c6d566d64b2fa5f073a370e09735@C119S212VM017.msvyvi.vaha.local> References: <2569c6d566d64b2fa5f073a370e09735@C119S212VM017.msvyvi.vaha.local> Message-ID: Jukka, The issue is not only the NLS format, which would govern the output and how the sql is interpreted, but there is also the issue of the lexer which is reading the xml request. And that would have to change also. Its also unclear to me if XML / WFS allows other characters as a decimal character. I've yet to find any xsd or guide docs that indicate one way or the other. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Rahkonen Jukka (MML)" > Date: Tuesday, May 19, 2015 at 5:08 PM To: "Lime, Steve D (MNIT)" >, "Steve.Toutant at inspq.qc.ca" >, MapserverList OSGEO > Cc: "Michael.Smith at erdc.dren.mi" > Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Resent-From: Michael Smith > Hi, Without being a programmer I would like to see what would happen if this source file https://github.com/mapserver/mapserver/blob/branch-7-0/maporaclespatial.c would be edited around line 571-573: cmd = "alter session set NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'"; by adding a new block for setting the decimal and thousands separators for output cmd = "alter session set NLS_NUMERIC_CHARACTERS='. '?; I am not sure of the right syntax. This one works with SQL*Plus and set decimal points and space for thousands separator. I think that thousands should be without separators but the command seems to require two inputs. -Jukka Rahkonen- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Lime, Steve D (MNIT) L?hetetty: 19. toukokuuta 2015 22:12 Vastaanottaja: Steve.Toutant at inspq.qc.ca; MapserverList OSGEO Kopio: Michael.Smith at erdc.dren.mi Aihe: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Is there somewhere in the capabilities response where a user would declare what decimal separators are supported? From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Tuesday, May 19, 2015 2:06 PM To: MapserverList OSGEO Cc: Michael.Smith at erdc.dren.mi Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field It seems to be a bug isn't? Do you want me to open an issue? "Smith, Michael ERDC-RDE-CRREL-NH" > 2015-05-19 12:24 A "Steve.Toutant at inspq.qc.ca" > cc "Rahkonen Jukka (MML)" >, MapserverList OSGEO > Objet Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field It looks like whats happening is that?s being converted into 3 Tokens and the oracle driver converts it into a number + comma + number. The tokenizer is not treating that value as a single value. Mike From: "Steve.Toutant at inspq.qc.ca" > Date: Tuesday, May 19, 2015 at 11:44 AM To: Michael Smith > Cc: "Rahkonen Jukka (MML)" >, MapserverList OSGEO > Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field here is the mapserver log with LONG_STAT-61,8031 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, NO_STAT_CLIM, NO_STAT_FADQ, NOM_STAT, LATI_STAT, LONG_STAT, ALTI_STAT, D_DEB, D_FIN, TIMB_MAJ, USAG_MAJ, rownum, GEOM_POIN FROM (select * FROM SMDVDP_STAT_METE WHERE EXTRACT(YEAR FROM D_DEB) = 2014) WHERE ( LONG_STAT = -61.000000,8031.000000 ) AND SDO_FILTER( GEOM_POIN, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' The problem is WHERE ( LONG_STAT = -61.000000,8031.000000 ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue May 19 14:27:32 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 19 May 2015 21:27:32 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: <2569c6d566d64b2fa5f073a370e09735@C119S212VM017.msvyvi.vaha.local> Message-ID: This isn't limited to Oracle... I would expect Postgres and native MapServer to have similar issues. From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: Tuesday, May 19, 2015 4:21 PM To: Rahkonen Jukka (MML); Lime, Steve D (MNIT); Steve.Toutant at inspq.qc.ca; MapserverList OSGEO Cc: Michael.Smith at erdc.dren.mi Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Jukka, The issue is not only the NLS format, which would govern the output and how the sql is interpreted, but there is also the issue of the lexer which is reading the xml request. And that would have to change also. Its also unclear to me if XML / WFS allows other characters as a decimal character. I've yet to find any xsd or guide docs that indicate one way or the other. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Rahkonen Jukka (MML)" > Date: Tuesday, May 19, 2015 at 5:08 PM To: "Lime, Steve D (MNIT)" >, "Steve.Toutant at inspq.qc.ca" >, MapserverList OSGEO > Cc: "Michael.Smith at erdc.dren.mi" > Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Resent-From: Michael Smith > Hi, Without being a programmer I would like to see what would happen if this source file https://github.com/mapserver/mapserver/blob/branch-7-0/maporaclespatial.c would be edited around line 571-573: cmd = "alter session set NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'"; by adding a new block for setting the decimal and thousands separators for output cmd = "alter session set NLS_NUMERIC_CHARACTERS='. '"; I am not sure of the right syntax. This one works with SQL*Plus and set decimal points and space for thousands separator. I think that thousands should be without separators but the command seems to require two inputs. -Jukka Rahkonen- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Lime, Steve D (MNIT) L?hetetty: 19. toukokuuta 2015 22:12 Vastaanottaja: Steve.Toutant at inspq.qc.ca; MapserverList OSGEO Kopio: Michael.Smith at erdc.dren.mi Aihe: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Is there somewhere in the capabilities response where a user would declare what decimal separators are supported? From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Tuesday, May 19, 2015 2:06 PM To: MapserverList OSGEO Cc: Michael.Smith at erdc.dren.mi Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field It seems to be a bug isn't? Do you want me to open an issue? "Smith, Michael ERDC-RDE-CRREL-NH" > 2015-05-19 12:24 A "Steve.Toutant at inspq.qc.ca" > cc "Rahkonen Jukka (MML)" >, MapserverList OSGEO > Objet Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field It looks like whats happening is that's being converted into 3 Tokens and the oracle driver converts it into a number + comma + number. The tokenizer is not treating that value as a single value. Mike From: "Steve.Toutant at inspq.qc.ca" > Date: Tuesday, May 19, 2015 at 11:44 AM To: Michael Smith > Cc: "Rahkonen Jukka (MML)" >, MapserverList OSGEO > Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field here is the mapserver log with LONG_STAT-61,8031 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, NO_STAT_CLIM, NO_STAT_FADQ, NOM_STAT, LATI_STAT, LONG_STAT, ALTI_STAT, D_DEB, D_FIN, TIMB_MAJ, USAG_MAJ, rownum, GEOM_POIN FROM (select * FROM SMDVDP_STAT_METE WHERE EXTRACT(YEAR FROM D_DEB) = 2014) WHERE ( LONG_STAT = -61.000000,8031.000000 ) AND SDO_FILTER( GEOM_POIN, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' The problem is WHERE ( LONG_STAT = -61.000000,8031.000000 ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Tue May 19 15:16:32 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 19 May 2015 22:16:32 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Message-ID: <5646ffdee5da448f98a70fc3cf50288e@C119S212VM017.msvyvi.vaha.local> Hi, By reading the GML 3 standard it for example defines that Real and Number are of type xsd:double, and following that path to http://books.xmlschemata.org/relaxng/ch19-77065.html Restrictions The decimal separator is always a point (.), and no thousands separator may be used. Same restrictions to xsd:decimal http://books.xmlschemata.org/relaxng/ch19-77057.html So at least in WFS 1.1.0 with GML 3 numbers with comma as decimal separator are wrong and if Mapserver ever generates such GML it feels like a bug for me. -Jukka Rahkonen- Smith, Michael ERDC-RDE-CRREL-NH wrote: Jukka, The issue is not only the NLS format, which would govern the output and how the sql is interpreted, but there is also the issue of the lexer which is reading the xml request. And that would have to change also. Its also unclear to me if XML / WFS allows other characters as a decimal character. I've yet to find any xsd or guide docs that indicate one way or the other. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: "Rahkonen Jukka (MML)" > Date: Tuesday, May 19, 2015 at 5:08 PM To: "Lime, Steve D (MNIT)" >, "Steve.Toutant at inspq.qc.ca" >, MapserverList OSGEO > Cc: "Michael.Smith at erdc.dren.mi" > Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Resent-From: Michael Smith > Hi, Without being a programmer I would like to see what would happen if this source file https://github.com/mapserver/mapserver/blob/branch-7-0/maporaclespatial.c would be edited around line 571-573: cmd = "alter session set NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'"; by adding a new block for setting the decimal and thousands separators for output cmd = "alter session set NLS_NUMERIC_CHARACTERS='. '"; I am not sure of the right syntax. This one works with SQL*Plus and set decimal points and space for thousands separator. I think that thousands should be without separators but the command seems to require two inputs. -Jukka Rahkonen- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Lime, Steve D (MNIT) L?hetetty: 19. toukokuuta 2015 22:12 Vastaanottaja: Steve.Toutant at inspq.qc.ca; MapserverList OSGEO Kopio: Michael.Smith at erdc.dren.mi Aihe: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field Is there somewhere in the capabilities response where a user would declare what decimal separators are supported? From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Tuesday, May 19, 2015 2:06 PM To: MapserverList OSGEO Cc: Michael.Smith at erdc.dren.mi Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field It seems to be a bug isn't? Do you want me to open an issue? "Smith, Michael ERDC-RDE-CRREL-NH" > 2015-05-19 12:24 A "Steve.Toutant at inspq.qc.ca" > cc "Rahkonen Jukka (MML)" >, MapserverList OSGEO > Objet Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field It looks like whats happening is that's being converted into 3 Tokens and the oracle driver converts it into a number + comma + number. The tokenizer is not treating that value as a single value. Mike From: "Steve.Toutant at inspq.qc.ca" > Date: Tuesday, May 19, 2015 at 11:44 AM To: Michael Smith > Cc: "Rahkonen Jukka (MML)" >, MapserverList OSGEO > Subject: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field here is the mapserver log with LONG_STAT-61,8031 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, NO_STAT_CLIM, NO_STAT_FADQ, NOM_STAT, LATI_STAT, LONG_STAT, ALTI_STAT, D_DEB, D_FIN, TIMB_MAJ, USAG_MAJ, rownum, GEOM_POIN FROM (select * FROM SMDVDP_STAT_METE WHERE EXTRACT(YEAR FROM D_DEB) = 2014) WHERE ( LONG_STAT = -61.000000,8031.000000 ) AND SDO_FILTER( GEOM_POIN, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' The problem is WHERE ( LONG_STAT = -61.000000,8031.000000 ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bhudspeth at edac.unm.edu Thu May 21 13:00:36 2015 From: bhudspeth at edac.unm.edu (William Hudspeth) Date: Thu, 21 May 2015 14:00:36 -0600 Subject: [mapserver-users] mapserver and netcdf subdatasets/bands Message-ID: <555E3964.6070208@edac.unm.edu> Hello all, I am trying to provide wcs and wms services from specific bands within a netcdf file. The documentation appears to be sparse online, and was wondering whether anyone can point me to some good information about how to set up a layer in the mapfile that points to a specific band in a netcdf file.... Thanks much.... From mac_moyor at yahoo.com Fri May 22 10:00:47 2015 From: mac_moyor at yahoo.com (Mac Moyor) Date: Fri, 22 May 2015 17:00:47 +0000 (UTC) Subject: [mapserver-users] projection error Message-ID: <71326655.470857.1432314047460.JavaMail.yahoo@mail.yahoo.com> Hi, i'm building a mapserver/mapcache, imported osm data using imposm to database every thing seems Ok, so when i test the osm data on my browser i got the projection erros as follows :' .."the Projection library error. proj says: latitude or longitude exceeded limits ".. Please any idea any idea how to troubleshoot this error. thanks Mac -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Fri May 22 12:57:35 2015 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 22 May 2015 19:57:35 +0000 Subject: [mapserver-users] stretching imagery in MapServer Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA33AEBF5BA@swmail01.r8nssis.local> Hello, I added our new Pictometry Air Photos on our mapping site at http://geomoose.lyonco.org/geomoose2/geomoose.html. The air photos seem somewhat washed out. In ArcGIS I was able to get a nicer looking image by stretching the air photo using standard deviations. Can we stretch imagery in MapServer? If not please let me know if you have a comment regarding how I can improve the image quality. Thanks Sincerely, Mark Volz, GISP -------------- next part -------------- An HTML attachment was scrubbed... URL: From mac_moyor at yahoo.com Fri May 22 15:05:50 2015 From: mac_moyor at yahoo.com (Mac Moyor) Date: Fri, 22 May 2015 22:05:50 +0000 (UTC) Subject: [mapserver-users] Mapserver error In-Reply-To: <71326655.470857.1432314047460.JavaMail.yahoo@mail.yahoo.com> References: <71326655.470857.1432314047460.JavaMail.yahoo@mail.yahoo.com> Message-ID: <1159112930.682340.1432332350842.JavaMail.yahoo@mail.yahoo.com> Hi Dear's, I'm getting these erros when i test my mapserver build: can someone give some hint to a possible fix.. thanks error 1:? Failed to draw layer named 'waterways6'.\nmsPostGISLayerWhichShapes(): Query error. Error executing query: ERROR:? relation "osm_new_waterways_gen0" does not exist\nLINE 1: ...(select geometry, osm_id, type, name as name from osm_new_wa...\n???????????????????????????????????????????????????????????? ^\n \n\n\n, referer: http://localhost/mapcache/demo/wm ?error 2:?? mod_fcgid: stderr: msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR:? relation "osm_new_waterways_gen0" does not exist thanks Mac -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Mon May 25 07:17:45 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 25 May 2015 14:17:45 +0000 Subject: [mapserver-users] stretching imagery in MapServer Message-ID: <7b7af99d56f44399ac75cfaf41d9cb76@C119S212VM017.msvyvi.vaha.local> Hi, As far as I know automatic stretch by standard deviation is not supported. You can do automatic min-max stretch with PROCESSING "SCALE=AUTO". If your source data is uniform you may reach a good result with manual scale settings or with PROCESSING "LUT= " -Jukka Rahkonen- Mark Volz wrote: Hello, I added our new Pictometry Air Photos on our mapping site at http://geomoose.lyonco.org/geomoose2/geomoose.html. The air photos seem somewhat washed out. In ArcGIS I was able to get a nicer looking image by stretching the air photo using standard deviations. Can we stretch imagery in MapServer? If not please let me know if you have a comment regarding how I can improve the image quality. Thanks Sincerely, Mark Volz, GISP -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Tue May 26 12:07:42 2015 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 26 May 2015 19:07:42 +0000 Subject: [mapserver-users] stretching imagery in MapServer In-Reply-To: <7b7af99d56f44399ac75cfaf41d9cb76@C119S212VM017.msvyvi.vaha.local> References: <7b7af99d56f44399ac75cfaf41d9cb76@C119S212VM017.msvyvi.vaha.local> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA33AEC087A@swmail01.r8nssis.local> Jukka, (and others) Thank you for your reply. I think I figured out how lut works. If you don't mind please check and make sure I have this correct: I can use ArcGIS to report the correct input and output values for a n=2.5 standard deviation by going to layers->symbology->stretch->histograms->Info window. Once I have those values I can modify my map file to include for example: PROCESSING "LUT_1=73:0,226:255" #changes red band input of 0-73 to 0, inputs of 226-255 to 255, inputs between 73-226 linearly interpolated. PROCESSING "LUT_2=60:0,199:255" #changes green band input of 0-60 to 0, inputs of 199-255 to 255, inputs between 60-199 linearly interpolated. PROCESSING "LUT_3=35:0,155:255" #changes blue band input of 0-35 to 0, inputs of 155-255 to 255, inputs between 35-155 linearly interpolated. P.S. Before I knew what the heck I was doing with LUT I noticed that I could identify wet areas, and tree cover quite easily with the following combinations: PROCESSING "LUT=50:50,60:250,70:250" is a good way to identify tree cover. PROCESSING "LUT=50:50,60:250,70:70" is a good way to identify wet areas. Thank You Sincerely, Mark Volz, GISP From: Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] Sent: Monday, May 25, 2015 9:18 AM To: Mark Volz; mapserver-users at lists.osgeo.org Subject: Re: stretching imagery in MapServer Hi, As far as I know automatic stretch by standard deviation is not supported. You can do automatic min-max stretch with PROCESSING "SCALE=AUTO". If your source data is uniform you may reach a good result with manual scale settings or with PROCESSING "LUT= " -Jukka Rahkonen- Mark Volz wrote: Hello, I added our new Pictometry Air Photos on our mapping site at http://geomoose.lyonco.org/geomoose2/geomoose.html. The air photos seem somewhat washed out. In ArcGIS I was able to get a nicer looking image by stretching the air photo using standard deviations. Can we stretch imagery in MapServer? If not please let me know if you have a comment regarding how I can improve the image quality. Thanks Sincerely, Mark Volz, GISP -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuellapointe at gmail.com Tue May 26 13:03:17 2015 From: samuellapointe at gmail.com (Samuel Lapointe) Date: Tue, 26 May 2015 16:03:17 -0400 Subject: [mapserver-users] ScribeUI on Google Summer of Code 2015 Message-ID: Hi all, ScribeUI has been accepted as a project for the 2015 edition of the Google Summer of Code. This means I will be working on it all summer long. ScribeUI is a web utility to create and preview mapfiles using either the regular mapfile syntax or the Scribe syntax. Its main objective is making the work of mapfiles developers easier. You can try it without installing it by going on http://demo.scribeui.org. This page is reset every day to prevent it from going too messy. There is a guide available on the wiki to help you get started here: https://github.com/mapgears/scribeui/wiki/Getting-started-with-ScribeUI I have three big objectives for this summer: 1. Improve the error detection of ScribeUI. This means displaying the line numbers of the Scribe files and not the mapfiles when appropriate 2. Add an import/export workspace feature. The buttons are already there but the feature isn't implemented 3. Automatically create classes based on sets of data. This would allow users to make demographics maps very easily for example. I will also post regular updates on the Scribe blog, here: http://mapgears.github.io/scribe-blog/ I hope I will be able to make this project more active. If you have any troubles or questions, don't hesitate to ask. Have a nice day! Samuel Lapointe -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue May 26 15:00:03 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 26 May 2015 22:00:03 +0000 Subject: [mapserver-users] ScribeUI on Google Summer of Code 2015 In-Reply-To: References: Message-ID: Hi Samuel: How do you want feedback submitted? --Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Samuel Lapointe Sent: Tuesday, May 26, 2015 3:03 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] ScribeUI on Google Summer of Code 2015 Hi all, ScribeUI has been accepted as a project for the 2015 edition of the Google Summer of Code. This means I will be working on it all summer long. ScribeUI is a web utility to create and preview mapfiles using either the regular mapfile syntax or the Scribe syntax. Its main objective is making the work of mapfiles developers easier. You can try it without installing it by going on http://demo.scribeui.org. This page is reset every day to prevent it from going too messy. There is a guide available on the wiki to help you get started here: https://github.com/mapgears/scribeui/wiki/Getting-started-with-ScribeUI I have three big objectives for this summer: 1. Improve the error detection of ScribeUI. This means displaying the line numbers of the Scribe files and not the mapfiles when appropriate 2. Add an import/export workspace feature. The buttons are already there but the feature isn't implemented 3. Automatically create classes based on sets of data. This would allow users to make demographics maps very easily for example. I will also post regular updates on the Scribe blog, here: http://mapgears.github.io/scribe-blog/ I hope I will be able to make this project more active. If you have any troubles or questions, don't hesitate to ask. Have a nice day! Samuel Lapointe -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jacques.Merette-c at mtq.gouv.qc.ca Tue May 26 15:11:45 2015 From: Jacques.Merette-c at mtq.gouv.qc.ca (=?iso-8859-1?Q?M=E9rette=2C_Jacques_=28Consultant=29?=) Date: Tue, 26 May 2015 22:11:45 +0000 Subject: [mapserver-users] Setting up many vitual hosts Message-ID: <80444E25DECC6544BAB5C44E67D79376083DA98C@sinfra0-exc012.MTQ.MIN.INTRA> Hi, I'm installing Mapserver for the first time. The demo works fine on RHEL but I would like to add my data in a new virtual host. Is it possible to set up many vitual hosts on Apache/Mapserver? Merci! Jacques M?rette Architecte technologique Division des infrastructures technologiques Service des infrastructures technologiques appliqu?es aux op?rations Direction des technologies de l'information Minist?re des Transports du Qu?bec T?l: 418-643-5350 # 24685 jacques.merette-c at mtq.gouv.qc.ca Bo?te commune : Architectes-Technologique._C-DTI at mtq.gouv.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From josego at simgia.com Tue May 26 16:05:02 2015 From: josego at simgia.com (=?UTF-8?B?Sm9zw6kgR29uesOhbGV6?=) Date: Tue, 26 May 2015 19:05:02 -0400 Subject: [mapserver-users] ScribeUI on Google Summer of Code 2015 In-Reply-To: References: Message-ID: thanks. Review in spanish. http://proyectosbeta.net/2015/05/scribeui-google-summer-of-code-2015-crear-y-previsualizar-mapfiles-mapserver/ bye, jose 2015-05-26 18:00 GMT-04:00 Lime, Steve D (MNIT) : > Hi Samuel: How do you want feedback submitted? --Steve > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Samuel Lapointe > *Sent:* Tuesday, May 26, 2015 3:03 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] ScribeUI on Google Summer of Code 2015 > > > > Hi all, > > > > ScribeUI has been accepted as a project for the 2015 edition of the Google > Summer of Code. This means I will be working on it all summer long. > > > > ScribeUI is a web utility to create and preview mapfiles using either the > regular mapfile syntax or the Scribe syntax. Its main objective is making > the work of mapfiles developers easier. > > > > You can try it without installing it by going on http://demo.scribeui.org. > This page is reset every day to prevent it from going too messy. There is a > guide available on the wiki to help you get started here: > > https://github.com/mapgears/scribeui/wiki/Getting-started-with-ScribeUI > > > > > > I have three big objectives for this summer: > > > > 1. Improve the error detection of ScribeUI. This means displaying the line > numbers of the Scribe files and not the mapfiles when appropriate > > > > 2. Add an import/export workspace feature. The buttons are already there > but the feature isn't implemented > > > > 3. Automatically create classes based on sets of data. This would allow > users to make demographics maps very easily for example. > > > > I will also post regular updates on the Scribe blog, here: > > http://mapgears.github.io/scribe-blog/ > > > > > > I hope I will be able to make this project more active. If you have any > troubles or questions, don't hesitate to ask. > > > > Have a nice day! > > Samuel Lapointe > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuellapointe at gmail.com Tue May 26 16:20:34 2015 From: samuellapointe at gmail.com (Samuel Lapointe) Date: Tue, 26 May 2015 19:20:34 -0400 Subject: [mapserver-users] ScribeUI on Google Summer of Code 2015 In-Reply-To: References: Message-ID: Hello Steve. If there are any issues that arise, you could use the issue list: https://github.com/mapgears/scribeui/issues Otherwise, for suggestions or anything else, this mailing list or my email adress works fine! Jose, thanks for sharing the project! On 26 May 2015 at 19:05, Jos? Gonz?lez wrote: > thanks. > Review in spanish. > http://proyectosbeta.net/2015/05/scribeui-google-summer-of-code-2015-crear-y-previsualizar-mapfiles-mapserver/ > > > > bye, jose > > 2015-05-26 18:00 GMT-04:00 Lime, Steve D (MNIT) : > >> Hi Samuel: How do you want feedback submitted? --Steve >> >> >> >> *From:* mapserver-users-bounces at lists.osgeo.org [mailto: >> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Samuel Lapointe >> *Sent:* Tuesday, May 26, 2015 3:03 PM >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* [mapserver-users] ScribeUI on Google Summer of Code 2015 >> >> >> >> Hi all, >> >> >> >> ScribeUI has been accepted as a project for the 2015 edition of the >> Google Summer of Code. This means I will be working on it all summer long. >> >> >> >> ScribeUI is a web utility to create and preview mapfiles using either the >> regular mapfile syntax or the Scribe syntax. Its main objective is making >> the work of mapfiles developers easier. >> >> >> >> You can try it without installing it by going on http://demo.scribeui.org. >> This page is reset every day to prevent it from going too messy. There is a >> guide available on the wiki to help you get started here: >> >> https://github.com/mapgears/scribeui/wiki/Getting-started-with-ScribeUI >> >> >> >> >> >> I have three big objectives for this summer: >> >> >> >> 1. Improve the error detection of ScribeUI. This means displaying the >> line numbers of the Scribe files and not the mapfiles when appropriate >> >> >> >> 2. Add an import/export workspace feature. The buttons are already there >> but the feature isn't implemented >> >> >> >> 3. Automatically create classes based on sets of data. This would allow >> users to make demographics maps very easily for example. >> >> >> >> I will also post regular updates on the Scribe blog, here: >> >> http://mapgears.github.io/scribe-blog/ >> >> >> >> >> >> I hope I will be able to make this project more active. If you have any >> troubles or questions, don't hesitate to ask. >> >> >> >> Have a nice day! >> >> Samuel Lapointe >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rkottman at mpi-bremen.de Wed May 27 02:47:18 2015 From: rkottman at mpi-bremen.de (Renzo Kottmann) Date: Wed, 27 May 2015 11:47:18 +0200 Subject: [mapserver-users] getting corrupted png with WMS request to mapserv CGI on command line Message-ID: Hi All, I have installed mapserver 6.4.1 in a docker container based on debian jessie (see dockerfile below) If I run: /usr/lib/cgi-bin/mapserv -nh "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" > /tmp/test.png The png is corrupt and I can not open it with neither gimp nor firefox. However, I get valid pngs using the very same map file with shp2img or mapserv -nh "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod . Find below more details (mapserver version, exact command lines I used and resulting debug logs, map file, and docker file) I searched google, the mailing list archives, but nothing seems to be similar to this problem. Therefore, any help is very much appreciated :) ciao, renzo * Mapserver Version: MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE * Command lines Generates valid png: /usr/lib/cgi-bin/mapserv -nh "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod" > /tmp/test.png shp2img --all_debug 2 -m /genes-mapserver/wms_test.map -o /tmp/test.png Generates invalid corrupt png: /usr/lib/cgi-bin/mapserv -nh "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" > /tmp/test.png * Log file (for all three runs in that order): [Wed May 27 08:51:44 2015].475696 CGI Request 1 on process 79 [Wed May 27 08:51:44 2015].476881 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed May 27 08:51:44 2015].476916 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed May 27 08:51:44 2015].478222 msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 08:51:45 2015].16608 msDrawMap(): Layer 0 (satellite_mod), 0.540s [Wed May 27 08:51:45 2015].16665 msDrawMap(): Drawing Label Cache, 0.000s [Wed May 27 08:51:45 2015].16677 msDrawMap() total time: 0.541s [Wed May 27 08:51:45 2015].38545 msSaveImage(stdout) total time: 0.022s [Wed May 27 08:51:45 2015].38838 mapserv request processing time (msLoadMap not incl.): 0.563s [Wed May 27 08:56:29 2015].752703 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed May 27 08:56:29 2015].752820 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed May 27 08:56:29 2015].754465 msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 08:56:30 2015].295590 msDrawMap(): Layer 0 (satellite_mod), 0.543s [Wed May 27 08:56:30 2015].295664 msDrawMap(): Drawing Label Cache, 0.000s [Wed May 27 08:56:30 2015].295684 msDrawMap() total time: 0.544s [Wed May 27 08:56:30 2015].323794 msSaveImage(/tmp/test.png) total time: 0.028s [Wed May 27 08:59:28 2015].995397 CGI Request 1 on process 82 [Wed May 27 08:59:28 2015].995464 msWMSLoadGetMapParams(): enabling non-square pixels. [Wed May 27 08:59:28 2015].996733 msDrawMap(): kicking into non-square pixel preserving mode. [Wed May 27 08:59:28 2015].997595 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed May 27 08:59:28 2015].997614 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed May 27 08:59:28 2015].998950 msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 08:59:29 2015].651061 msDrawMap(): Layer 0 (satellite_mod), 0.653s [Wed May 27 08:59:29 2015].651143 msDrawMap(): Drawing Label Cache, 0.000s [Wed May 27 08:59:29 2015].651167 msDrawMap() total time: 0.656s [Wed May 27 08:59:29 2015].681373 msSaveImage(stdout) total time: 0.030s [Wed May 27 08:59:29 2015].681769 mapserv request processing time (msLoadMap not incl.): 0.686s * map file MAP NAME "wms_test" STATUS ON EXTENT -180 -90 180 90 IMAGECOLOR 210 210 210 IMAGETYPE png SIZE 1080 614 UNITS dd CONFIG "MS_ERRORFILE" "/tmp/wms_test_error.txt" DEBUG 2 PROJECTION #this is WGS84 "init=epsg:4326" END SYMBOLSET "etc/symbols.sym" FONTSET "etc/fonts/fonts.txt" WEB IMAGEPATH /tmp/ IMAGEURL "/tmp/" ERROR "/error.html" EMPTY "/no_result.html" METADATA ### Enable WFS support "wms_title" "wms test" "wms_onlineresource" "http://localhost/wms?" "wms_srs" "EPSG:4326" "wms_enable_request" "GetCapabilities GetMap GetFeatureInfo GetLegendGraphic" "ows_enable_request" "GetCapabilities GetMap GetFeatureInfo GetLegendGraphic" "ows_extent" "-180 -90 180 90" "wfs_title" "wfs test" #necessary for the WMS GetFeatureInfo request "WMS_FEATURE_INFO_MIME_TYPE" "text/html" END END LEGEND STATUS on KEYSIZE 10 10 LABEL SIZE 9 COLOR 0 0 0 TYPE truetype ENCODING UTF-8 FONT sans FORCE false PARTIALS true POSITION AUTO END TEMPLATE "template/legend.html" # HTML template file END LAYER NAME satellite_mod METADATA "wms_title" "World Map Lite" "unit" "false" END #end of wms metadata DATA data/satelliteMod.png TYPE RASTER STATUS ON END #map end END * Dockerfile FROM debian:jessie ENV GMS_DIR=/genes-mapserver ENV LANG C.UTF-8 # Update and upgrade system RUN apt-get -qq update --fix-missing && \ apt-get install -y cgi-mapserver mapserver-bin RUN mkdir ${GMS_DIR} VOLUME ${GMS_DIR} ENTRYPOINT ["/usr/lib/cgi-bin/mapserv"] The actual tests are done within the container by: sudo docker run -v ~/src/genes-mapserver/:/genes-mapserver --rm --entrypoint=/bin/bash -ti renzok/mapserver-cgi thanks for reading :) From thomas.bonfort at gmail.com Wed May 27 03:12:02 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 27 May 2015 12:12:02 +0200 Subject: [mapserver-users] getting corrupted png with WMS request to mapserv CGI on command line In-Reply-To: References: Message-ID: IMAGEPATH /tmp/ should be changed to IMAGEPATH "/tmp/" -- thomas On 27 May 2015 at 11:47, Renzo Kottmann wrote: > Hi All, > > I have installed mapserver 6.4.1 in a docker container based on debian > jessie (see dockerfile below) > > If I run: > > /usr/lib/cgi-bin/mapserv -nh > "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >> /tmp/test.png > > The png is corrupt and I can not open it with neither gimp nor firefox. > > > However, I get valid pngs using the very same map file with shp2img or > mapserv -nh > "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod > . > > > Find below more details (mapserver version, exact command lines I used and > resulting debug logs, map file, and docker file) > > > I searched google, the mailing list archives, but nothing seems to be > similar to this problem. Therefore, any help is very much appreciated :) > > ciao, > renzo > > > * Mapserver Version: > > MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV > SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > * Command lines > > Generates valid png: > > /usr/lib/cgi-bin/mapserv -nh > "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod" >> /tmp/test.png > > shp2img --all_debug 2 -m /genes-mapserver/wms_test.map -o /tmp/test.png > > > Generates invalid corrupt png: > > /usr/lib/cgi-bin/mapserv -nh > "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >> /tmp/test.png > > > > * Log file (for all three runs in that order): > > > [Wed May 27 08:51:44 2015].475696 CGI Request 1 on process 79 > [Wed May 27 08:51:44 2015].476881 msDrawMap(): rendering using outputformat > named png (AGG/PNG). > [Wed May 27 08:51:44 2015].476916 msDrawMap(): WMS/WFS set-up and query, > 0.000s > [Wed May 27 08:51:44 2015].478222 msDrawRasterLayerLow(satellite_mod): > entering. > [Wed May 27 08:51:45 2015].16608 msDrawMap(): Layer 0 (satellite_mod), > 0.540s > [Wed May 27 08:51:45 2015].16665 msDrawMap(): Drawing Label Cache, 0.000s > [Wed May 27 08:51:45 2015].16677 msDrawMap() total time: 0.541s > [Wed May 27 08:51:45 2015].38545 msSaveImage(stdout) total time: 0.022s > [Wed May 27 08:51:45 2015].38838 mapserv request processing time (msLoadMap > not incl.): 0.563s > > [Wed May 27 08:56:29 2015].752703 msDrawMap(): rendering using outputformat > named png (AGG/PNG). > [Wed May 27 08:56:29 2015].752820 msDrawMap(): WMS/WFS set-up and query, > 0.000s > [Wed May 27 08:56:29 2015].754465 msDrawRasterLayerLow(satellite_mod): > entering. > [Wed May 27 08:56:30 2015].295590 msDrawMap(): Layer 0 (satellite_mod), > 0.543s > [Wed May 27 08:56:30 2015].295664 msDrawMap(): Drawing Label Cache, 0.000s > [Wed May 27 08:56:30 2015].295684 msDrawMap() total time: 0.544s > [Wed May 27 08:56:30 2015].323794 msSaveImage(/tmp/test.png) total time: > 0.028s > > [Wed May 27 08:59:28 2015].995397 CGI Request 1 on process 82 > [Wed May 27 08:59:28 2015].995464 msWMSLoadGetMapParams(): enabling > non-square pixels. > [Wed May 27 08:59:28 2015].996733 msDrawMap(): kicking into non-square > pixel preserving mode. > [Wed May 27 08:59:28 2015].997595 msDrawMap(): rendering using outputformat > named png (AGG/PNG). > [Wed May 27 08:59:28 2015].997614 msDrawMap(): WMS/WFS set-up and query, > 0.000s > [Wed May 27 08:59:28 2015].998950 msDrawRasterLayerLow(satellite_mod): > entering. > [Wed May 27 08:59:29 2015].651061 msDrawMap(): Layer 0 (satellite_mod), > 0.653s > [Wed May 27 08:59:29 2015].651143 msDrawMap(): Drawing Label Cache, 0.000s > [Wed May 27 08:59:29 2015].651167 msDrawMap() total time: 0.656s > [Wed May 27 08:59:29 2015].681373 msSaveImage(stdout) total time: 0.030s > [Wed May 27 08:59:29 2015].681769 mapserv request processing time > (msLoadMap not incl.): 0.686s > > > * map file > > > MAP > NAME "wms_test" > STATUS ON > EXTENT -180 -90 180 90 > IMAGECOLOR 210 210 210 > IMAGETYPE png > SIZE 1080 614 > UNITS dd > > CONFIG "MS_ERRORFILE" "/tmp/wms_test_error.txt" > DEBUG 2 > > > PROJECTION > #this is WGS84 > "init=epsg:4326" > END > > > SYMBOLSET "etc/symbols.sym" > FONTSET "etc/fonts/fonts.txt" > > WEB > IMAGEPATH /tmp/ > IMAGEURL "/tmp/" > > ERROR "/error.html" > EMPTY "/no_result.html" > > > METADATA > ### Enable WFS support > "wms_title" "wms test" > "wms_onlineresource" "http://localhost/wms?" > "wms_srs" "EPSG:4326" > "wms_enable_request" "GetCapabilities GetMap GetFeatureInfo > GetLegendGraphic" > "ows_enable_request" "GetCapabilities GetMap GetFeatureInfo > GetLegendGraphic" > "ows_extent" "-180 -90 180 90" > "wfs_title" "wfs test" > #necessary for the WMS GetFeatureInfo request > "WMS_FEATURE_INFO_MIME_TYPE" "text/html" > END > > END > > LEGEND > STATUS on > KEYSIZE 10 10 > LABEL > SIZE 9 > COLOR 0 0 0 > TYPE truetype > ENCODING UTF-8 > FONT sans > FORCE false > PARTIALS true > POSITION AUTO > END > TEMPLATE "template/legend.html" # HTML template file > END > > LAYER > NAME satellite_mod > > METADATA > "wms_title" "World Map Lite" > "unit" "false" > END #end of wms metadata > > DATA data/satelliteMod.png > TYPE RASTER > STATUS ON > END > #map end > END > > > * Dockerfile > > FROM debian:jessie > > ENV GMS_DIR=/genes-mapserver > ENV LANG C.UTF-8 > > # Update and upgrade system > RUN apt-get -qq update --fix-missing && \ > apt-get install -y cgi-mapserver mapserver-bin > > > RUN mkdir ${GMS_DIR} > > VOLUME ${GMS_DIR} > > ENTRYPOINT ["/usr/lib/cgi-bin/mapserv"] > > > The actual tests are done within the container by: > > sudo docker run -v ~/src/genes-mapserver/:/genes-mapserver --rm > --entrypoint=/bin/bash -ti renzok/mapserver-cgi > > > thanks for reading :) > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From rkottman at mpi-bremen.de Wed May 27 04:02:37 2015 From: rkottman at mpi-bremen.de (Renzo Kottmann) Date: Wed, 27 May 2015 13:02:37 +0200 Subject: [mapserver-users] getting corrupted png with WMS request to mapserv CGI on command line In-Reply-To: References: Message-ID: nope. I tried IMAGEPATH "/tmp/" and IMAGEPATH "/tmp" both still result in corrupt pngs. thx,renzo On Wed, 27 May 2015 12:12:02 +0200, thomas bonfort wrote: > IMAGEPATH /tmp/ should be changed to > IMAGEPATH "/tmp/" > > -- > thomas > > On 27 May 2015 at 11:47, Renzo Kottmann wrote: >> Hi All, >> >> I have installed mapserver 6.4.1 in a docker container based on debian >> jessie (see dockerfile below) >> >> If I run: >> >> /usr/lib/cgi-bin/mapserv -nh >> "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >>> /tmp/test.png >> >> The png is corrupt and I can not open it with neither gimp nor firefox. >> >> >> However, I get valid pngs using the very same map file with shp2img or >> mapserv -nh >> "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod >> . >> >> >> Find below more details (mapserver version, exact command lines I used >> and >> resulting debug logs, map file, and docker file) >> >> >> I searched google, the mailing list archives, but nothing seems to be >> similar to this problem. Therefore, any help is very much appreciated :) >> >> ciao, >> renzo >> >> >> * Mapserver Version: >> >> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML >> SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV >> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS >> INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> >> * Command lines >> >> Generates valid png: >> >> /usr/lib/cgi-bin/mapserv -nh >> "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod" >>> /tmp/test.png >> >> shp2img --all_debug 2 -m /genes-mapserver/wms_test.map -o /tmp/test.png >> >> >> Generates invalid corrupt png: >> >> /usr/lib/cgi-bin/mapserv -nh >> "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >>> /tmp/test.png >> >> >> >> * Log file (for all three runs in that order): >> >> >> [Wed May 27 08:51:44 2015].475696 CGI Request 1 on process 79 >> [Wed May 27 08:51:44 2015].476881 msDrawMap(): rendering using >> outputformat >> named png (AGG/PNG). >> [Wed May 27 08:51:44 2015].476916 msDrawMap(): WMS/WFS set-up and query, >> 0.000s >> [Wed May 27 08:51:44 2015].478222 msDrawRasterLayerLow(satellite_mod): >> entering. >> [Wed May 27 08:51:45 2015].16608 msDrawMap(): Layer 0 (satellite_mod), >> 0.540s >> [Wed May 27 08:51:45 2015].16665 msDrawMap(): Drawing Label Cache, 0.000s >> [Wed May 27 08:51:45 2015].16677 msDrawMap() total time: 0.541s >> [Wed May 27 08:51:45 2015].38545 msSaveImage(stdout) total time: 0.022s >> [Wed May 27 08:51:45 2015].38838 mapserv request processing time >> (msLoadMap >> not incl.): 0.563s >> >> [Wed May 27 08:56:29 2015].752703 msDrawMap(): rendering using >> outputformat >> named png (AGG/PNG). >> [Wed May 27 08:56:29 2015].752820 msDrawMap(): WMS/WFS set-up and query, >> 0.000s >> [Wed May 27 08:56:29 2015].754465 msDrawRasterLayerLow(satellite_mod): >> entering. >> [Wed May 27 08:56:30 2015].295590 msDrawMap(): Layer 0 (satellite_mod), >> 0.543s >> [Wed May 27 08:56:30 2015].295664 msDrawMap(): Drawing Label Cache, >> 0.000s >> [Wed May 27 08:56:30 2015].295684 msDrawMap() total time: 0.544s >> [Wed May 27 08:56:30 2015].323794 msSaveImage(/tmp/test.png) total time: >> 0.028s >> >> [Wed May 27 08:59:28 2015].995397 CGI Request 1 on process 82 >> [Wed May 27 08:59:28 2015].995464 msWMSLoadGetMapParams(): enabling >> non-square pixels. >> [Wed May 27 08:59:28 2015].996733 msDrawMap(): kicking into non-square >> pixel preserving mode. >> [Wed May 27 08:59:28 2015].997595 msDrawMap(): rendering using >> outputformat >> named png (AGG/PNG). >> [Wed May 27 08:59:28 2015].997614 msDrawMap(): WMS/WFS set-up and query, >> 0.000s >> [Wed May 27 08:59:28 2015].998950 msDrawRasterLayerLow(satellite_mod): >> entering. >> [Wed May 27 08:59:29 2015].651061 msDrawMap(): Layer 0 (satellite_mod), >> 0.653s >> [Wed May 27 08:59:29 2015].651143 msDrawMap(): Drawing Label Cache, >> 0.000s >> [Wed May 27 08:59:29 2015].651167 msDrawMap() total time: 0.656s >> [Wed May 27 08:59:29 2015].681373 msSaveImage(stdout) total time: 0.030s >> [Wed May 27 08:59:29 2015].681769 mapserv request processing time >> (msLoadMap not incl.): 0.686s >> >> >> * map file >> >> >> MAP >> NAME "wms_test" >> STATUS ON >> EXTENT -180 -90 180 90 >> IMAGECOLOR 210 210 210 >> IMAGETYPE png >> SIZE 1080 614 >> UNITS dd >> >> CONFIG "MS_ERRORFILE" "/tmp/wms_test_error.txt" >> DEBUG 2 >> >> >> PROJECTION >> #this is WGS84 >> "init=epsg:4326" >> END >> >> >> SYMBOLSET "etc/symbols.sym" >> FONTSET "etc/fonts/fonts.txt" >> >> WEB >> IMAGEPATH /tmp/ >> IMAGEURL "/tmp/" >> >> ERROR "/error.html" >> EMPTY "/no_result.html" >> >> >> METADATA >> ### Enable WFS support >> "wms_title" "wms test" >> "wms_onlineresource" "http://localhost/wms?" >> "wms_srs" "EPSG:4326" >> "wms_enable_request" "GetCapabilities GetMap GetFeatureInfo >> GetLegendGraphic" >> "ows_enable_request" "GetCapabilities GetMap GetFeatureInfo >> GetLegendGraphic" >> "ows_extent" "-180 -90 180 90" >> "wfs_title" "wfs test" >> #necessary for the WMS GetFeatureInfo request >> "WMS_FEATURE_INFO_MIME_TYPE" "text/html" >> END >> >> END >> >> LEGEND >> STATUS on >> KEYSIZE 10 10 >> LABEL >> SIZE 9 >> COLOR 0 0 0 >> TYPE truetype >> ENCODING UTF-8 >> FONT sans >> FORCE false >> PARTIALS true >> POSITION AUTO >> END >> TEMPLATE "template/legend.html" # HTML template file >> END >> >> LAYER >> NAME satellite_mod >> >> METADATA >> "wms_title" "World Map Lite" >> "unit" "false" >> END #end of wms metadata >> >> DATA data/satelliteMod.png >> TYPE RASTER >> STATUS ON >> END >> #map end >> END >> >> >> * Dockerfile >> >> FROM debian:jessie >> >> ENV GMS_DIR=/genes-mapserver >> ENV LANG C.UTF-8 >> >> # Update and upgrade system >> RUN apt-get -qq update --fix-missing && \ >> apt-get install -y cgi-mapserver mapserver-bin >> >> >> RUN mkdir ${GMS_DIR} >> >> VOLUME ${GMS_DIR} >> >> ENTRYPOINT ["/usr/lib/cgi-bin/mapserv"] >> >> >> The actual tests are done within the container by: >> >> sudo docker run -v ~/src/genes-mapserver/:/genes-mapserver --rm >> --entrypoint=/bin/bash -ti renzok/mapserver-cgi >> >> >> thanks for reading :) >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Renzo Kottmann PhD Max Planck Institute for Marine Microbiology Microbial Genomics and Bioinformatics Research Group Celsiusstr. 1 28359 Bremen Germany Phone: +49 421 2028 974 From Steve.Toutant at inspq.qc.ca Wed May 27 05:26:49 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 27 May 2015 08:26:49 -0400 Subject: [mapserver-users] RE Setting up many vitual hosts In-Reply-To: <80444E25DECC6544BAB5C44E67D79376083DA98C@sinfra0-exc012.MTQ.MIN.INTRA> References: <80444E25DECC6544BAB5C44E67D79376083DA98C@sinfra0-exc012.MTQ.MIN.INTRA> Message-ID: Jacques it is possible to create many virtual host on apache, but what do you mean by "add my data in a new virtual host". The virtual hosts can use the same mapserver....Unless you want to have several instance of mapserver...? "M?rette,Jacques (Consultant)" Envoy? par : mapserver-users-bounces at lists.osgeo.org 2015-05-26 18:11 A "'mapserver-users at lists.osgeo.org'" cc Objet [mapserver-users] Setting up many vitual hosts Hi, I?m installing Mapserver for the first time. The demo works fine on RHEL but I would like to add my data in a new virtual host. Is it possible to set up many vitual hosts on Apache/Mapserver? Merci! Jacques M?rette Architecte technologique Division des infrastructures technologiques Service des infrastructures technologiques appliqu?es aux op?rations Direction des technologies de l?information Minist?re des Transports du Qu?bec T?l: 418-643-5350 # 24685 jacques.merette-c at mtq.gouv.qc.ca Bo?te commune : Architectes-Technologique._C-DTI at mtq.gouv.qc.ca _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuellapointe at gmail.com Wed May 27 05:54:17 2015 From: samuellapointe at gmail.com (Samuel Lapointe) Date: Wed, 27 May 2015 08:54:17 -0400 Subject: [mapserver-users] ScribeUI on Google Summer of Code 2015 In-Reply-To: References: Message-ID: Hello everyone, Small update: the blog's URL is now http://blog.scribeui.org/ I will work on getting the guides and links on http://scribeui.org today. Have a good day! On 26 May 2015 at 19:20, Samuel Lapointe wrote: > Hello Steve. > > If there are any issues that arise, you could use the issue list: > https://github.com/mapgears/scribeui/issues > Otherwise, for suggestions or anything else, this mailing list or my email > adress works fine! > > Jose, thanks for sharing the project! > > On 26 May 2015 at 19:05, Jos? Gonz?lez wrote: > >> thanks. >> Review in spanish. >> http://proyectosbeta.net/2015/05/scribeui-google-summer-of-code-2015-crear-y-previsualizar-mapfiles-mapserver/ >> >> >> >> bye, jose >> >> 2015-05-26 18:00 GMT-04:00 Lime, Steve D (MNIT) : >> >>> Hi Samuel: How do you want feedback submitted? --Steve >>> >>> >>> >>> *From:* mapserver-users-bounces at lists.osgeo.org [mailto: >>> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Samuel Lapointe >>> *Sent:* Tuesday, May 26, 2015 3:03 PM >>> *To:* mapserver-users at lists.osgeo.org >>> *Subject:* [mapserver-users] ScribeUI on Google Summer of Code 2015 >>> >>> >>> >>> Hi all, >>> >>> >>> >>> ScribeUI has been accepted as a project for the 2015 edition of the >>> Google Summer of Code. This means I will be working on it all summer long. >>> >>> >>> >>> ScribeUI is a web utility to create and preview mapfiles using either >>> the regular mapfile syntax or the Scribe syntax. Its main objective is >>> making the work of mapfiles developers easier. >>> >>> >>> >>> You can try it without installing it by going on >>> http://demo.scribeui.org. This page is reset every day to prevent it >>> from going too messy. There is a guide available on the wiki to help you >>> get started here: >>> >>> https://github.com/mapgears/scribeui/wiki/Getting-started-with-ScribeUI >>> >>> >>> >>> >>> >>> I have three big objectives for this summer: >>> >>> >>> >>> 1. Improve the error detection of ScribeUI. This means displaying the >>> line numbers of the Scribe files and not the mapfiles when appropriate >>> >>> >>> >>> 2. Add an import/export workspace feature. The buttons are already there >>> but the feature isn't implemented >>> >>> >>> >>> 3. Automatically create classes based on sets of data. This would allow >>> users to make demographics maps very easily for example. >>> >>> >>> >>> I will also post regular updates on the Scribe blog, here: >>> >>> http://mapgears.github.io/scribe-blog/ >>> >>> >>> >>> >>> >>> I hope I will be able to make this project more active. If you have any >>> troubles or questions, don't hesitate to ask. >>> >>> >>> >>> Have a nice day! >>> >>> Samuel Lapointe >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabian.schindler at eox.at Wed May 27 06:36:32 2015 From: fabian.schindler at eox.at (Fabian Schindler) Date: Wed, 27 May 2015 15:36:32 +0200 Subject: [mapserver-users] getting corrupted png with WMS request to mapserv CGI on command line In-Reply-To: References: Message-ID: <5565C860.2000008@eox.at> Renzo, As far as I remember you have to remove the HTTP headers from the response (the first 2-4 lines or so) when you use mapserv -nh with OGC services. Regards, Fabian On 27.05.15 13:02, Renzo Kottmann wrote: > nope. I tried IMAGEPATH "/tmp/" and IMAGEPATH "/tmp" both still > result in corrupt pngs. thx,renzo > > On Wed, 27 May 2015 12:12:02 +0200, thomas bonfort > wrote: >> IMAGEPATH /tmp/ should be changed to IMAGEPATH "/tmp/" >> >> -- thomas >> >> On 27 May 2015 at 11:47, Renzo Kottmann >> wrote: >>> Hi All, >>> >>> I have installed mapserver 6.4.1 in a docker container based on >>> debian jessie (see dockerfile below) >>> >>> If I run: >>> >>> /usr/lib/cgi-bin/mapserv -nh >>> > "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >>>> > /tmp/test.png >>> >>> The png is corrupt and I can not open it with neither gimp nor >>> firefox. >>> >>> >>> However, I get valid pngs using the very same map file with >>> shp2img or mapserv -nh >>> > "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod >>> > . >>> >>> >>> Find below more details (mapserver version, exact command lines >>> I used and resulting debug logs, map file, and docker file) >>> >>> >>> I searched google, the mailing list archives, but nothing seems >>> to be similar to this problem. Therefore, any help is very much >>> appreciated :) >>> >>> ciao, renzo >>> >>> >>> * Mapserver Version: >>> >>> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>> OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG >>> SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS >>> SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI >>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >>> SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG >>> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>> >>> >>> * Command lines >>> >>> Generates valid png: >>> >>> /usr/lib/cgi-bin/mapserv -nh >>> > "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod" >>>> > /tmp/test.png >>> >>> shp2img --all_debug 2 -m /genes-mapserver/wms_test.map -o >>> /tmp/test.png >>> >>> >>> Generates invalid corrupt png: >>> >>> /usr/lib/cgi-bin/mapserv -nh >>> > "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >>>> > /tmp/test.png >>> >>> >>> >>> * Log file (for all three runs in that order): >>> >>> >>> [Wed May 27 08:51:44 2015].475696 CGI Request 1 on process 79 >>> [Wed May 27 08:51:44 2015].476881 msDrawMap(): rendering using >>> outputformat named png (AGG/PNG). [Wed May 27 08:51:44 >>> 2015].476916 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>> May 27 08:51:44 2015].478222 >>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>> 08:51:45 2015].16608 msDrawMap(): Layer 0 (satellite_mod), >>> 0.540s [Wed May 27 08:51:45 2015].16665 msDrawMap(): Drawing >>> Label Cache, > 0.000s >>> [Wed May 27 08:51:45 2015].16677 msDrawMap() total time: >>> 0.541s [Wed May 27 08:51:45 2015].38545 msSaveImage(stdout) >>> total time: 0.022s [Wed May 27 08:51:45 2015].38838 mapserv >>> request processing time (msLoadMap not incl.): 0.563s >>> >>> [Wed May 27 08:56:29 2015].752703 msDrawMap(): rendering using >>> outputformat named png (AGG/PNG). [Wed May 27 08:56:29 >>> 2015].752820 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>> May 27 08:56:29 2015].754465 >>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>> 08:56:30 2015].295590 msDrawMap(): Layer 0 (satellite_mod), >>> 0.543s [Wed May 27 08:56:30 2015].295664 msDrawMap(): Drawing >>> Label Cache, 0.000s [Wed May 27 08:56:30 2015].295684 >>> msDrawMap() total time: 0.544s [Wed May 27 08:56:30 >>> 2015].323794 msSaveImage(/tmp/test.png) total time: 0.028s >>> >>> [Wed May 27 08:59:28 2015].995397 CGI Request 1 on process 82 >>> [Wed May 27 08:59:28 2015].995464 msWMSLoadGetMapParams(): >>> enabling non-square pixels. [Wed May 27 08:59:28 2015].996733 >>> msDrawMap(): kicking into non-square pixel preserving mode. >>> [Wed May 27 08:59:28 2015].997595 msDrawMap(): rendering using >>> outputformat named png (AGG/PNG). [Wed May 27 08:59:28 >>> 2015].997614 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>> May 27 08:59:28 2015].998950 >>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>> 08:59:29 2015].651061 msDrawMap(): Layer 0 (satellite_mod), >>> 0.653s [Wed May 27 08:59:29 2015].651143 msDrawMap(): Drawing >>> Label Cache, 0.000s [Wed May 27 08:59:29 2015].651167 >>> msDrawMap() total time: 0.656s [Wed May 27 08:59:29 >>> 2015].681373 msSaveImage(stdout) total time: 0.030s [Wed May 27 >>> 08:59:29 2015].681769 mapserv request processing time >>> (msLoadMap not incl.): 0.686s >>> >>> >>> * map file >>> >>> >>> MAP NAME "wms_test" STATUS ON EXTENT -180 -90 180 90 IMAGECOLOR >>> 210 210 210 IMAGETYPE png SIZE 1080 614 UNITS dd >>> >>> CONFIG "MS_ERRORFILE" "/tmp/wms_test_error.txt" DEBUG 2 >>> >>> >>> PROJECTION #this is WGS84 "init=epsg:4326" END >>> >>> >>> SYMBOLSET "etc/symbols.sym" FONTSET "etc/fonts/fonts.txt" >>> >>> WEB IMAGEPATH /tmp/ IMAGEURL "/tmp/" >>> >>> ERROR "/error.html" EMPTY "/no_result.html" >>> >>> >>> METADATA ### Enable WFS support "wms_title" "wms >>> test" "wms_onlineresource" "http://localhost/wms?" "wms_srs" >>> "EPSG:4326" "wms_enable_request" "GetCapabilities GetMap >>> GetFeatureInfo GetLegendGraphic" "ows_enable_request" >>> "GetCapabilities GetMap GetFeatureInfo GetLegendGraphic" >>> "ows_extent" "-180 -90 180 90" "wfs_title" "wfs >>> test" #necessary for the WMS GetFeatureInfo request >>> "WMS_FEATURE_INFO_MIME_TYPE" "text/html" END >>> >>> END >>> >>> LEGEND STATUS on KEYSIZE 10 10 LABEL SIZE 9 COLOR 0 0 0 TYPE >>> truetype ENCODING UTF-8 FONT sans FORCE false PARTIALS true >>> POSITION AUTO END TEMPLATE "template/legend.html" # HTML >>> template file END >>> >>> LAYER NAME satellite_mod >>> >>> METADATA "wms_title" "World Map Lite" "unit" >>> "false" END #end of wms metadata >>> >>> DATA data/satelliteMod.png TYPE RASTER STATUS ON END #map end >>> END >>> >>> >>> * Dockerfile >>> >>> FROM debian:jessie >>> >>> ENV GMS_DIR=/genes-mapserver ENV LANG C.UTF-8 >>> >>> # Update and upgrade system RUN apt-get -qq update >>> --fix-missing && \ apt-get install -y cgi-mapserver >>> mapserver-bin >>> >>> >>> RUN mkdir ${GMS_DIR} >>> >>> VOLUME ${GMS_DIR} >>> >>> ENTRYPOINT ["/usr/lib/cgi-bin/mapserv"] >>> >>> >>> The actual tests are done within the container by: >>> >>> sudo docker run -v ~/src/genes-mapserver/:/genes-mapserver >>> --rm --entrypoint=/bin/bash -ti renzok/mapserver-cgi >>> >>> >>> thanks for reading :) >>> _______________________________________________ mapserver-users >>> mailing list mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From andy at squeakycode.net Wed May 27 06:49:51 2015 From: andy at squeakycode.net (Andy Colson) Date: Wed, 27 May 2015 08:49:51 -0500 Subject: [mapserver-users] stretching imagery in MapServer In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA33AEC087A@swmail01.r8nssis.local> References: <7b7af99d56f44399ac75cfaf41d9cb76@C119S212VM017.msvyvi.vaha.local> <36CA828A36E29F45B7CF0A1766E5DFA33AEC087A@swmail01.r8nssis.local> Message-ID: <5565CB7F.6030601@squeakycode.net> Hi Mark. Two questions for you: 1) I know it might be a bunch of extra work, but I don't suppose you could post some before and after shots (or urls or whatever). I really have no idea what sort of change your talking about. 2) Holy freaking cow you have fast imagery. I don't suppose you could share some processing/hardware/setup secrets? Thanks -Andy On 5/26/2015 2:07 PM, Mark Volz wrote: > Jukka, (and others) > > Thank you for your reply. I think I figured out how lut works. If you > don?t mind please check and make sure I have this correct: > > I can use ArcGIS to report the correct input and output values for a > n=2.5 standard deviation by going to > layers->symbology->stretch->histograms->Info window. Once I have those > values I can modify my map file to include for example: > > PROCESSING "LUT_1=73:0,226:255" #changes red band input of 0-73 to 0, > inputs of 226-255 to 255, inputs between 73-226 linearly interpolated. > > PROCESSING "LUT_2=60:0,199:255" #changes green band input of 0-60 to 0, > inputs of 199-255 to 255, inputs between 60-199 linearly interpolated. > > PROCESSING "LUT_3=35:0,155:255" #changes blue band input of 0-35 to 0, > inputs of 155-255 to 255, inputs between 35-155 linearly interpolated. > > P.S. > > Before I knew what the heck I was doing with LUT I noticed that I could > identify wet areas, and tree cover quite easily with the following > combinations: > > PROCESSING "LUT=50:50,60:250,70:250" is a good way to identify tree cover. > > PROCESSING "LUT=50:50,60:250,70:70" is a good way to identify wet areas. > > Thank You > > Sincerely, > > *Mark Volz, GISP* > > *From:*Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] > *Sent:* Monday, May 25, 2015 9:18 AM > *To:* Mark Volz; mapserver-users at lists.osgeo.org > *Subject:* Re: stretching imagery in MapServer > > Hi, > > As far as I know automatic stretch by standard deviation is not supported. You can do automatic min-max stretch with PROCESSING "SCALE=AUTO". If your source data is uniform you may reach a good result with manual scale settings or with PROCESSING ?LUT= ? > > > > -Jukka Rahkonen- > > Mark Volz wrote: > > Hello, > > I added our new Pictometry Air Photos on our mapping site at > http://geomoose.lyonco.org/geomoose2/geomoose.html. The air photos seem > somewhat washed out. In ArcGIS I was able to get a nicer looking image > by stretching the air photo using standard deviations. Can we stretch > imagery in MapServer? If not please let me know if you have a comment > regarding how I can improve the image quality. > > Thanks > > Sincerely, > > *Mark Volz, GISP* > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at state.mn.us Wed May 27 06:48:59 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 27 May 2015 13:48:59 +0000 Subject: [mapserver-users] getting corrupted png with WMS request to mapserv CGI on command line In-Reply-To: References: Message-ID: What do you see if you view the corrupt PNG file in a text editor? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Renzo Kottmann Sent: Wednesday, May 27, 2015 4:47 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] getting corrupted png with WMS request to mapserv CGI on command line Hi All, I have installed mapserver 6.4.1 in a docker container based on debian jessie (see dockerfile below) If I run: /usr/lib/cgi-bin/mapserv -nh "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" > /tmp/test.png The png is corrupt and I can not open it with neither gimp nor firefox. However, I get valid pngs using the very same map file with shp2img or mapserv -nh "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod . Find below more details (mapserver version, exact command lines I used and resulting debug logs, map file, and docker file) I searched google, the mailing list archives, but nothing seems to be similar to this problem. Therefore, any help is very much appreciated :) ciao, renzo * Mapserver Version: MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE * Command lines Generates valid png: /usr/lib/cgi-bin/mapserv -nh "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod" > /tmp/test.png shp2img --all_debug 2 -m /genes-mapserver/wms_test.map -o /tmp/test.png Generates invalid corrupt png: /usr/lib/cgi-bin/mapserv -nh "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" > /tmp/test.png * Log file (for all three runs in that order): [Wed May 27 08:51:44 2015].475696 CGI Request 1 on process 79 [Wed May 27 08:51:44 2015].476881 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed May 27 08:51:44 2015].476916 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed May 27 08:51:44 2015].478222 msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 08:51:45 2015].16608 msDrawMap(): Layer 0 (satellite_mod), 0.540s [Wed May 27 08:51:45 2015].16665 msDrawMap(): Drawing Label Cache, 0.000s [Wed May 27 08:51:45 2015].16677 msDrawMap() total time: 0.541s [Wed May 27 08:51:45 2015].38545 msSaveImage(stdout) total time: 0.022s [Wed May 27 08:51:45 2015].38838 mapserv request processing time (msLoadMap not incl.): 0.563s [Wed May 27 08:56:29 2015].752703 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed May 27 08:56:29 2015].752820 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed May 27 08:56:29 2015].754465 msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 08:56:30 2015].295590 msDrawMap(): Layer 0 (satellite_mod), 0.543s [Wed May 27 08:56:30 2015].295664 msDrawMap(): Drawing Label Cache, 0.000s [Wed May 27 08:56:30 2015].295684 msDrawMap() total time: 0.544s [Wed May 27 08:56:30 2015].323794 msSaveImage(/tmp/test.png) total time: 0.028s [Wed May 27 08:59:28 2015].995397 CGI Request 1 on process 82 [Wed May 27 08:59:28 2015].995464 msWMSLoadGetMapParams(): enabling non-square pixels. [Wed May 27 08:59:28 2015].996733 msDrawMap(): kicking into non-square pixel preserving mode. [Wed May 27 08:59:28 2015].997595 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed May 27 08:59:28 2015].997614 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed May 27 08:59:28 2015].998950 msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 08:59:29 2015].651061 msDrawMap(): Layer 0 (satellite_mod), 0.653s [Wed May 27 08:59:29 2015].651143 msDrawMap(): Drawing Label Cache, 0.000s [Wed May 27 08:59:29 2015].651167 msDrawMap() total time: 0.656s [Wed May 27 08:59:29 2015].681373 msSaveImage(stdout) total time: 0.030s [Wed May 27 08:59:29 2015].681769 mapserv request processing time (msLoadMap not incl.): 0.686s * map file MAP NAME "wms_test" STATUS ON EXTENT -180 -90 180 90 IMAGECOLOR 210 210 210 IMAGETYPE png SIZE 1080 614 UNITS dd CONFIG "MS_ERRORFILE" "/tmp/wms_test_error.txt" DEBUG 2 PROJECTION #this is WGS84 "init=epsg:4326" END SYMBOLSET "etc/symbols.sym" FONTSET "etc/fonts/fonts.txt" WEB IMAGEPATH /tmp/ IMAGEURL "/tmp/" ERROR "/error.html" EMPTY "/no_result.html" METADATA ### Enable WFS support "wms_title" "wms test" "wms_onlineresource" "http://localhost/wms?" "wms_srs" "EPSG:4326" "wms_enable_request" "GetCapabilities GetMap GetFeatureInfo GetLegendGraphic" "ows_enable_request" "GetCapabilities GetMap GetFeatureInfo GetLegendGraphic" "ows_extent" "-180 -90 180 90" "wfs_title" "wfs test" #necessary for the WMS GetFeatureInfo request "WMS_FEATURE_INFO_MIME_TYPE" "text/html" END END LEGEND STATUS on KEYSIZE 10 10 LABEL SIZE 9 COLOR 0 0 0 TYPE truetype ENCODING UTF-8 FONT sans FORCE false PARTIALS true POSITION AUTO END TEMPLATE "template/legend.html" # HTML template file END LAYER NAME satellite_mod METADATA "wms_title" "World Map Lite" "unit" "false" END #end of wms metadata DATA data/satelliteMod.png TYPE RASTER STATUS ON END #map end END * Dockerfile FROM debian:jessie ENV GMS_DIR=/genes-mapserver ENV LANG C.UTF-8 # Update and upgrade system RUN apt-get -qq update --fix-missing && \ apt-get install -y cgi-mapserver mapserver-bin RUN mkdir ${GMS_DIR} VOLUME ${GMS_DIR} ENTRYPOINT ["/usr/lib/cgi-bin/mapserv"] The actual tests are done within the container by: sudo docker run -v ~/src/genes-mapserver/:/genes-mapserver --rm --entrypoint=/bin/bash -ti renzok/mapserver-cgi thanks for reading :) _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jacques.Merette-c at mtq.gouv.qc.ca Wed May 27 06:47:46 2015 From: Jacques.Merette-c at mtq.gouv.qc.ca (=?Windows-1252?Q?M=E9rette=2C_Jacques_=28Consultant=29?=) Date: Wed, 27 May 2015 13:47:46 +0000 Subject: [mapserver-users] RE Setting up many vitual hosts In-Reply-To: References: <80444E25DECC6544BAB5C44E67D79376083DA98C@sinfra0-exc012.MTQ.MIN.INTRA> Message-ID: <80444E25DECC6544BAB5C44E67D79376083DA9DF@sinfra0-exc012.MTQ.MIN.INTRA> Bonjour Steve, Excellent?. I want to have only one instance of mapserver bit many virtual hosts on Apache. Each virtual host will have its own ?mapfile? (that is what I mean by ?add my data in a new virtual host?). Following my understanding, it should be quite easy?. MErci! J. From: Steve.Toutant at inspq.qc.ca [mailto:Steve.Toutant at inspq.qc.ca] Sent: 27 mai 2015 08:27 To: M?rette, Jacques (Consultant) Cc: 'mapserver-users at lists.osgeo.org'; mapserver-users-bounces at lists.osgeo.org Subject: RE [mapserver-users] Setting up many vitual hosts Jacques it is possible to create many virtual host on apache, but what do you mean by "add my data in a new virtual host". The virtual hosts can use the same mapserver....Unless you want to have several instance of mapserver...? "M?rette,Jacques (Consultant)" > Envoy? par : mapserver-users-bounces at lists.osgeo.org 2015-05-26 18:11 A "'mapserver-users at lists.osgeo.org'" > cc Objet [mapserver-users] Setting up many vitual hosts Hi, I?m installing Mapserver for the first time. The demo works fine on RHEL but I would like to add my data in a new virtual host. Is it possible to set up many vitual hosts on Apache/Mapserver? Merci! Jacques M?rette Architecte technologique Division des infrastructures technologiques Service des infrastructures technologiques appliqu?es aux op?rations Direction des technologies de l?information Minist?re des Transports du Qu?bec T?l: 418-643-5350 # 24685 jacques.merette-c at mtq.gouv.qc.ca Bo?te commune : Architectes-Technologique._C-DTI at mtq.gouv.qc.ca _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed May 27 07:08:43 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 27 May 2015 10:08:43 -0400 Subject: [mapserver-users] RE Setting up many vitual hosts In-Reply-To: <80444E25DECC6544BAB5C44E67D79376083DA9DF@sinfra0-exc012.MTQ.MIN.INTRA> References: <80444E25DECC6544BAB5C44E67D79376083DA98C@sinfra0-exc012.MTQ.MIN.INTRA> <80444E25DECC6544BAB5C44E67D79376083DA9DF@sinfra0-exc012.MTQ.MIN.INTRA> Message-ID: easy yes... I suggest you read this, so you can choose your preferred method to do what you want http://mapserver.org/ogc/wms_server.html#changing-the-online-resource-url we use this method http://mapserver.org/ogc/wms_server.html#wrapper-script-unix But I just read that it is not recommended..... "M?rette,Jacques (Consultant)" 2015-05-27 09:47 A "'Steve.Toutant at inspq.qc.ca'" cc "'mapserver-users at lists.osgeo.org'" , "mapserver-users-bounces at lists.osgeo.org" Objet RE: RE [mapserver-users] Setting up many vitual hosts Bonjour Steve, Excellent?. I want to have only one instance of mapserver bit many virtual hosts on Apache. Each virtual host will have its own ?mapfile? (that is what I mean by ?add my data in a new virtual host?). Following my understanding, it should be quite easy?. MErci! J. From: Steve.Toutant at inspq.qc.ca [mailto:Steve.Toutant at inspq.qc.ca] Sent: 27 mai 2015 08:27 To: M?rette, Jacques (Consultant) Cc: 'mapserver-users at lists.osgeo.org'; mapserver-users-bounces at lists.osgeo.org Subject: RE [mapserver-users] Setting up many vitual hosts Jacques it is possible to create many virtual host on apache, but what do you mean by "add my data in a new virtual host". The virtual hosts can use the same mapserver....Unless you want to have several instance of mapserver...? "M?rette,Jacques (Consultant)" Envoy? par : mapserver-users-bounces at lists.osgeo.org 2015-05-26 18:11 A "'mapserver-users at lists.osgeo.org'" cc Objet [mapserver-users] Setting up many vitual hosts Hi, I?m installing Mapserver for the first time. The demo works fine on RHEL but I would like to add my data in a new virtual host. Is it possible to set up many vitual hosts on Apache/Mapserver? Merci! Jacques M?rette Architecte technologique Division des infrastructures technologiques Service des infrastructures technologiques appliqu?es aux op?rations Direction des technologies de l?information Minist?re des Transports du Qu?bec T?l: 418-643-5350 # 24685 jacques.merette-c at mtq.gouv.qc.ca Bo?te commune : Architectes-Technologique._C-DTI at mtq.gouv.qc.ca _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed May 27 07:13:27 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 27 May 2015 10:13:27 -0400 Subject: [mapserver-users] RE Setting up many vitual hosts In-Reply-To: <80444E25DECC6544BAB5C44E67D79376083DA9DF@sinfra0-exc012.MTQ.MIN.INTRA> References: <80444E25DECC6544BAB5C44E67D79376083DA98C@sinfra0-exc012.MTQ.MIN.INTRA> <80444E25DECC6544BAB5C44E67D79376083DA9DF@sinfra0-exc012.MTQ.MIN.INTRA> Message-ID: And if you need to do some stuff before making the request, a wrapper might a good solution http://mapserver.org/ogc/mapscript.html#php-example it could be plain php also instead of mapscript. And you can send the ows parameters as POST Really there are several ways to do what you want "M?rette,Jacques (Consultant)" 2015-05-27 09:47 A "'Steve.Toutant at inspq.qc.ca'" cc "'mapserver-users at lists.osgeo.org'" , "mapserver-users-bounces at lists.osgeo.org" Objet RE: RE [mapserver-users] Setting up many vitual hosts Bonjour Steve, Excellent?. I want to have only one instance of mapserver bit many virtual hosts on Apache. Each virtual host will have its own ?mapfile? (that is what I mean by ?add my data in a new virtual host?). Following my understanding, it should be quite easy?. MErci! J. From: Steve.Toutant at inspq.qc.ca [mailto:Steve.Toutant at inspq.qc.ca] Sent: 27 mai 2015 08:27 To: M?rette, Jacques (Consultant) Cc: 'mapserver-users at lists.osgeo.org'; mapserver-users-bounces at lists.osgeo.org Subject: RE [mapserver-users] Setting up many vitual hosts Jacques it is possible to create many virtual host on apache, but what do you mean by "add my data in a new virtual host". The virtual hosts can use the same mapserver....Unless you want to have several instance of mapserver...? "M?rette,Jacques (Consultant)" Envoy? par : mapserver-users-bounces at lists.osgeo.org 2015-05-26 18:11 A "'mapserver-users at lists.osgeo.org'" cc Objet [mapserver-users] Setting up many vitual hosts Hi, I?m installing Mapserver for the first time. The demo works fine on RHEL but I would like to add my data in a new virtual host. Is it possible to set up many vitual hosts on Apache/Mapserver? Merci! Jacques M?rette Architecte technologique Division des infrastructures technologiques Service des infrastructures technologiques appliqu?es aux op?rations Direction des technologies de l?information Minist?re des Transports du Qu?bec T?l: 418-643-5350 # 24685 jacques.merette-c at mtq.gouv.qc.ca Bo?te commune : Architectes-Technologique._C-DTI at mtq.gouv.qc.ca _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed May 27 07:15:45 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 27 May 2015 14:15:45 +0000 Subject: [mapserver-users] stretching imagery in MapServer References: <7b7af99d56f44399ac75cfaf41d9cb76@C119S212VM017.msvyvi.vaha.local> <36CA828A36E29F45B7CF0A1766E5DFA33AEC087A@swmail01.r8nssis.local> Message-ID: Hi Mark, That's how LUT works. In Mapserver 7.0 final it should be possible to set LUT and other PROCESSING options easily from the client side by using variable substitution which may be an interesting thing to test with some image interpretation tasks. It can be difficult to find details from the shadows and from light areas of the image with fixed settings of with automatic min-max stretch. It will also be possible to look at natural colour or false infrared versions from 4-band imagery be selecting the BANDS on-the-fly. Gdalinfo can also be used for finding reasonable values for LUT correction: gdalinfo -stats test.tif ... Band 1 Block=1330x2 Type=Byte, ColorInterp=Red Minimum=13.000, Maximum=228.000, Mean=98.964, StdDev=32.305 ... Band 2 Block=1330x2 Type=Byte, ColorInterp=Green Minimum=4.000, Maximum=227.000, Mean=76.644, StdDev=30.583 ... Band 3 Block=1330x2 Type=Byte, ColorInterp=Blue Minimum=6.000, Maximum=222.000, Mean=77.977, StdDev=30.138 ... I am not sure if anybody is using an option to make detailed correction curves with GIMP but I have tested it sometimes and it works. -Jukka Rahkonen- Mark Volz wrote: Jukka, (and others) Thank you for your reply. I think I figured out how lut works. If you don't mind please check and make sure I have this correct: I can use ArcGIS to report the correct input and output values for a n=2.5 standard deviation by going to layers->symbology->stretch->histograms->Info window. Once I have those values I can modify my map file to include for example: PROCESSING "LUT_1=73:0,226:255" #changes red band input of 0-73 to 0, inputs of 226-255 to 255, inputs between 73-226 linearly interpolated. PROCESSING "LUT_2=60:0,199:255" #changes green band input of 0-60 to 0, inputs of 199-255 to 255, inputs between 60-199 linearly interpolated. PROCESSING "LUT_3=35:0,155:255" #changes blue band input of 0-35 to 0, inputs of 155-255 to 255, inputs between 35-155 linearly interpolated. P.S. Before I knew what the heck I was doing with LUT I noticed that I could identify wet areas, and tree cover quite easily with the following combinations: PROCESSING "LUT=50:50,60:250,70:250" is a good way to identify tree cover. PROCESSING "LUT=50:50,60:250,70:70" is a good way to identify wet areas. Thank You Sincerely, Mark Volz, GISP From: Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] Sent: Monday, May 25, 2015 9:18 AM To: Mark Volz; mapserver-users at lists.osgeo.org Subject: Re: stretching imagery in MapServer Hi, As far as I know automatic stretch by standard deviation is not supported. You can do automatic min-max stretch with PROCESSING "SCALE=AUTO". If your source data is uniform you may reach a good result with manual scale settings or with PROCESSING "LUT= " -Jukka Rahkonen- Mark Volz wrote: Hello, I added our new Pictometry Air Photos on our mapping site at http://geomoose.lyonco.org/geomoose2/geomoose.html. The air photos seem somewhat washed out. In ArcGIS I was able to get a nicer looking image by stretching the air photo using standard deviations. Can we stretch imagery in MapServer? If not please let me know if you have a comment regarding how I can improve the image quality. Thanks Sincerely, Mark Volz, GISP -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at blixtmail.se Wed May 27 07:16:45 2015 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Wed, 27 May 2015 16:16:45 +0200 Subject: [mapserver-users] Named WMS styles - CLASSGROUP and GROUP Message-ID: Hi, I have tried to understand how to create named styles in a WMS configuration, for some time. I would like to have one style that is color and one style for grey scale. The manual says the You can do that: http://mapserver.org/ogc/sld.html#named-styles-support ? With the basic set up I get this error when I try and to specify: styles=grey or styles=color msWMSLoadGetMapParams(): WMS server error. Invalid style (color). Mapserver is expecting an empty string for the STYLES : STYLES= or STYLES=,,, or using keyword default? STYLES=default,default, .. I have also looked at: http://mapserver.org/ogc/inspire.html#style-section-for-root-layer-and-possibly-existing-group-layers but I haven't understood that clearly. I don't understand how You set up the different style options. When I try to play with wms_style or wms_style_name in main WEB METADATA block and web_style_group_name in layer METEDATA block I get this this error: msWMSLoadGetMapParams(): WMS server error. Style (color) not defined on root layer. or msWMSLoadGetMapParams(): WMS server error. Style (grey) not defined on root layer. I have created one example mapfile that is easy to understand and that should isolate the problem. I works fine with styles= set to nothing. Test url used: http://localhost/cgi-bin/mapserv?map=/_YOUR_PATH_/style_test.map &SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1 &LAYERS=circles,squares &styles=grey &srs=EPSG:4326 &BBOX=0,0,20,15 &FORMAT=application/openlayers &WIDTH=200&HEIGHT=150 or mapserv -nh "QUERY_STRING=map=/_YOUR_PATH_/style_test.map\ &SERVICE=WMS\ &REQUEST=Getmap\ &VERSION=1.1.1\ &LAYERS=ST\ &styles=grey\ &srs=EPSG:4326\ &BBOX=0,0,20,15\ &FORMAT=png\ &WIDTH=200&HEIGHT=150" > test.png /Lars testfile: style_test.map ---------------------------------- MAP ??? NAME ST ??? EXTENT 0 0 20 15 ??? SIZE 200 150 ??? UNITS DD ??? IMAGECOLOR 200 200 200 ??? CONFIG "MS_ERRORFILE" "/tmp/style_test.log" ??? DEBUG 5 ??? OUTPUTFORMAT ??? ? NAME 'AGG' ??? ? DRIVER AGG/PNG ??? ? IMAGEMODE RGB ??? END ??? WEB ??? ? IMAGEPATH "/tmp/ms_tmp/" ??? ? IMAGEURL "/ms_tmp/" ??? ? METADATA ??? ??? "wms_srs" "EPSG:3006 EPSG:4326" ??? ??? "ows_enable_request" "*" ??? ? END ??? END ??? PROJECTION ??? ? "init=epsg:4326" ??? END ??? SYMBOL ??????? NAME "circle" ??????? TYPE ELLIPSE ??????? FILLED TRUE ??????? POINTS 1 1 END ??? END ??? SYMBOL ??????? NAME "square" ??????? TYPE VECTOR ??????? FILLED TRUE ??????? POINTS 0 0 0 1 1 1 1 0 0 0 END ??? END # # Start of layer definitions # ??? LAYER ??? ??? NAME "circle objects" ??? ??? TYPE POINT ??? ??? FEATURE POINTS 10 5 END END ??? ??? FEATURE POINTS 15 10 END END ??? ??? ??? METADATA ??? ??? ??? ??? "wms_title" "Cirles" ??? ??? ??? ??? "wms_enable_request"?? "*" ??? ??? ??? ??? "wms_layer_group" "/ST/circles" ??? ??? ??? END ??? ??? STATUS on ??? ??? CLASSGROUP "color" ??? ??? CLASS ??? ??? ??? NAME "circle-color" ??? ??? ??? GROUP "color" ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 255 0 0 ??? ??? ??? ??? SIZE 15 ??? ??? ??? ??? WIDTH 1 ??? ??? ??? ??? SYMBOL "circle" ??? ??? ??? END ??? ??? END ??? ??? CLASS ??? ??? ??? NAME "circle-grey" ??? ??? ??? GROUP "grey" ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 50 50 50 ??? ??? ??? ??? SIZE 15 ??? ??? ??? ??? WIDTH 1 ??? ??? ??? ??? SYMBOL "circle" ??? ??? ??? END ??? ??? END ??? END # Layer ??? LAYER ??? ??? NAME "square objects" ??? ??? TYPE POINT ??? ??? FEATURE POINTS 10 10 END END ??? ??? FEATURE POINTS 15 5 END END ??? ??? ??? METADATA ??? ??? ??? ??? "wms_title" "Squares" ??? ??? ??? ??? "wms_enable_request"?? "*" ??? ??? ??? ??? "wms_layer_group" "/ST/squares" ??? ??? ??? END ??? ??? STATUS on ??? ??? CLASSGROUP "color" ??? ??? CLASS ??? ??? ??? NAME "square-color" ??? ??? ??? GROUP "color" ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 0 0 255 ??? ??? ??? ??? SIZE 15 ??? ??? ??? ??? WIDTH 1 ??? ??? ??? ??? SYMBOL "square" ??? ??? ??? END ??? ??? END ??? ??? CLASS ??? ??? ??? NAME "square-grey" ??? ??? ??? GROUP "grey" ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 100 100 100 ??? ??? ??? ??? SIZE 15 ??? ??? ??? ??? WIDTH 1 ??? ??? ??? ??? SYMBOL "square" ??? ??? ??? END ??? ??? END ??? END # Layer END # Map File -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed May 27 07:33:55 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 27 May 2015 14:33:55 +0000 Subject: [mapserver-users] RE Setting up many vitual hosts Message-ID: <3c1d552e81e54939946433f2683c9ea4@C119S212VM017.msvyvi.vaha.local> Hi, Here comes yet another version of Apache rewrite rule spiced with a per-service list of authorized users - if WMS request goes to cgi-bin/my_wms1, use mapfile home/maps/my_wms1.map - allow the use of cgi-bin/my_wms1 only for users "user1_wms1" and " user2_wms1" RewriteRule ^/cgi-bin/my_wms1$ /cgi-bin/mapserv [L,E=MS_MAPFILE:${HOME}/maps/my_wms1.map] Require user user1_wms1 user2_wms1 -Jukka Rahkonen- Steve.Toutant at inspq.qc.ca wrote: easy yes... I suggest you read this, so you can choose your preferred method to do what you want http://mapserver.org/ogc/wms_server.html#changing-the-online-resource-url we use this method http://mapserver.org/ogc/wms_server.html#wrapper-script-unix But I just read that it is not recommended..... "M?rette,Jacques (Consultant)" > 2015-05-27 09:47 A "'Steve.Toutant at inspq.qc.ca'" > cc "'mapserver-users at lists.osgeo.org'" >, "mapserver-users-bounces at lists.osgeo.org" > Objet RE: RE [mapserver-users] Setting up many vitual hosts Bonjour Steve, Excellent.... I want to have only one instance of mapserver bit many virtual hosts on Apache. Each virtual host will have its own "mapfile" (that is what I mean by "add my data in a new virtual host"). Following my understanding, it should be quite easy.... MErci! J. From: Steve.Toutant at inspq.qc.ca [mailto:Steve.Toutant at inspq.qc.ca] Sent: 27 mai 2015 08:27 To: M?rette, Jacques (Consultant) Cc: 'mapserver-users at lists.osgeo.org'; mapserver-users-bounces at lists.osgeo.org Subject: RE [mapserver-users] Setting up many vitual hosts Jacques it is possible to create many virtual host on apache, but what do you mean by "add my data in a new virtual host". The virtual hosts can use the same mapserver....Unless you want to have several instance of mapserver...? "M?rette,Jacques (Consultant)" > Envoy? par : mapserver-users-bounces at lists.osgeo.org 2015-05-26 18:11 A "'mapserver-users at lists.osgeo.org'" > cc Objet [mapserver-users] Setting up many vitual hosts Hi, I'm installing Mapserver for the first time. The demo works fine on RHEL but I would like to add my data in a new virtual host. Is it possible to set up many vitual hosts on Apache/Mapserver? Merci! Jacques M?rette Architecte technologique Division des infrastructures technologiques Service des infrastructures technologiques appliqu?es aux op?rations Direction des technologies de l'information Minist?re des Transports du Qu?bec T?l: 418-643-5350 # 24685 jacques.merette-c at mtq.gouv.qc.ca Bo?te commune : Architectes-Technologique._C-DTI at mtq.gouv.qc.ca _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From rkottman at mpi-bremen.de Wed May 27 07:53:46 2015 From: rkottman at mpi-bremen.de (Renzo Kottmann) Date: Wed, 27 May 2015 16:53:46 +0200 Subject: [mapserver-users] getting corrupted png with WMS request to mapserv CGI on command line In-Reply-To: <5565C860.2000008@eox.at> References: <5565C860.2000008@eox.at> Message-ID: <8ee6b7dc380c4ad14c7017e45df70875@194.95.7.50> Hi Fabian, yes, that's what I do (see below) and I re-checked again. Still the same problem. thx,renzo On Wed, 27 May 2015 15:36:32 +0200, Fabian Schindler wrote: > Renzo, > As far as I remember you have to remove the HTTP headers from the > response (the first 2-4 lines or so) when you use mapserv -nh with OGC > services. > Regards, > Fabian > > On 27.05.15 13:02, Renzo Kottmann wrote: >> nope. I tried IMAGEPATH "/tmp/" and IMAGEPATH "/tmp" both still >> result in corrupt pngs. thx,renzo >> >> On Wed, 27 May 2015 12:12:02 +0200, thomas bonfort >> wrote: >>> IMAGEPATH /tmp/ should be changed to IMAGEPATH "/tmp/" >>> >>> -- thomas >>> >>> On 27 May 2015 at 11:47, Renzo Kottmann >>> wrote: >>>> Hi All, >>>> >>>> I have installed mapserver 6.4.1 in a docker container based on >>>> debian jessie (see dockerfile below) >>>> >>>> If I run: >>>> >>>> /usr/lib/cgi-bin/mapserv -nh >>>> >> "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >>>>> >> > /tmp/test.png >>>> >>>> The png is corrupt and I can not open it with neither gimp nor >>>> firefox. >>>> >>>> >>>> However, I get valid pngs using the very same map file with >>>> shp2img or mapserv -nh >>>> >> "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod >>>> >> > . >>>> >>>> >>>> Find below more details (mapserver version, exact command lines >>>> I used and resulting debug logs, map file, and docker file) >>>> >>>> >>>> I searched google, the mailing list archives, but nothing seems >>>> to be similar to this problem. Therefore, any help is very much >>>> appreciated :) >>>> >>>> ciao, renzo >>>> >>>> >>>> * Mapserver Version: >>>> >>>> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>>> OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG >>>> SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS >>>> SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI >>>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >>>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >>>> SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG >>>> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>>> >>>> >>>> * Command lines >>>> >>>> Generates valid png: >>>> >>>> /usr/lib/cgi-bin/mapserv -nh >>>> >> "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod" >>>>> >> > /tmp/test.png >>>> >>>> shp2img --all_debug 2 -m /genes-mapserver/wms_test.map -o >>>> /tmp/test.png >>>> >>>> >>>> Generates invalid corrupt png: >>>> >>>> /usr/lib/cgi-bin/mapserv -nh >>>> >> "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >>>>> >> > /tmp/test.png >>>> >>>> >>>> >>>> * Log file (for all three runs in that order): >>>> >>>> >>>> [Wed May 27 08:51:44 2015].475696 CGI Request 1 on process 79 >>>> [Wed May 27 08:51:44 2015].476881 msDrawMap(): rendering using >>>> outputformat named png (AGG/PNG). [Wed May 27 08:51:44 >>>> 2015].476916 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>>> May 27 08:51:44 2015].478222 >>>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>>> 08:51:45 2015].16608 msDrawMap(): Layer 0 (satellite_mod), >>>> 0.540s [Wed May 27 08:51:45 2015].16665 msDrawMap(): Drawing >>>> Label Cache, >> 0.000s >>>> [Wed May 27 08:51:45 2015].16677 msDrawMap() total time: >>>> 0.541s [Wed May 27 08:51:45 2015].38545 msSaveImage(stdout) >>>> total time: 0.022s [Wed May 27 08:51:45 2015].38838 mapserv >>>> request processing time (msLoadMap not incl.): 0.563s >>>> >>>> [Wed May 27 08:56:29 2015].752703 msDrawMap(): rendering using >>>> outputformat named png (AGG/PNG). [Wed May 27 08:56:29 >>>> 2015].752820 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>>> May 27 08:56:29 2015].754465 >>>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>>> 08:56:30 2015].295590 msDrawMap(): Layer 0 (satellite_mod), >>>> 0.543s [Wed May 27 08:56:30 2015].295664 msDrawMap(): Drawing >>>> Label Cache, 0.000s [Wed May 27 08:56:30 2015].295684 >>>> msDrawMap() total time: 0.544s [Wed May 27 08:56:30 >>>> 2015].323794 msSaveImage(/tmp/test.png) total time: 0.028s >>>> >>>> [Wed May 27 08:59:28 2015].995397 CGI Request 1 on process 82 >>>> [Wed May 27 08:59:28 2015].995464 msWMSLoadGetMapParams(): >>>> enabling non-square pixels. [Wed May 27 08:59:28 2015].996733 >>>> msDrawMap(): kicking into non-square pixel preserving mode. >>>> [Wed May 27 08:59:28 2015].997595 msDrawMap(): rendering using >>>> outputformat named png (AGG/PNG). [Wed May 27 08:59:28 >>>> 2015].997614 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>>> May 27 08:59:28 2015].998950 >>>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>>> 08:59:29 2015].651061 msDrawMap(): Layer 0 (satellite_mod), >>>> 0.653s [Wed May 27 08:59:29 2015].651143 msDrawMap(): Drawing >>>> Label Cache, 0.000s [Wed May 27 08:59:29 2015].651167 >>>> msDrawMap() total time: 0.656s [Wed May 27 08:59:29 >>>> 2015].681373 msSaveImage(stdout) total time: 0.030s [Wed May 27 >>>> 08:59:29 2015].681769 mapserv request processing time >>>> (msLoadMap not incl.): 0.686s >>>> >>>> >>>> * map file >>>> >>>> >>>> MAP NAME "wms_test" STATUS ON EXTENT -180 -90 180 90 IMAGECOLOR >>>> 210 210 210 IMAGETYPE png SIZE 1080 614 UNITS dd >>>> >>>> CONFIG "MS_ERRORFILE" "/tmp/wms_test_error.txt" DEBUG 2 >>>> >>>> >>>> PROJECTION #this is WGS84 "init=epsg:4326" END >>>> >>>> >>>> SYMBOLSET "etc/symbols.sym" FONTSET "etc/fonts/fonts.txt" >>>> >>>> WEB IMAGEPATH /tmp/ IMAGEURL "/tmp/" >>>> >>>> ERROR "/error.html" EMPTY "/no_result.html" >>>> >>>> >>>> METADATA ### Enable WFS support "wms_title" "wms >>>> test" "wms_onlineresource" "http://localhost/wms?" "wms_srs" >>>> "EPSG:4326" "wms_enable_request" "GetCapabilities GetMap >>>> GetFeatureInfo GetLegendGraphic" "ows_enable_request" >>>> "GetCapabilities GetMap GetFeatureInfo GetLegendGraphic" >>>> "ows_extent" "-180 -90 180 90" "wfs_title" "wfs >>>> test" #necessary for the WMS GetFeatureInfo request >>>> "WMS_FEATURE_INFO_MIME_TYPE" "text/html" END >>>> >>>> END >>>> >>>> LEGEND STATUS on KEYSIZE 10 10 LABEL SIZE 9 COLOR 0 0 0 TYPE >>>> truetype ENCODING UTF-8 FONT sans FORCE false PARTIALS true >>>> POSITION AUTO END TEMPLATE "template/legend.html" # HTML >>>> template file END >>>> >>>> LAYER NAME satellite_mod >>>> >>>> METADATA "wms_title" "World Map Lite" "unit" >>>> "false" END #end of wms metadata >>>> >>>> DATA data/satelliteMod.png TYPE RASTER STATUS ON END #map end >>>> END >>>> >>>> >>>> * Dockerfile >>>> >>>> FROM debian:jessie >>>> >>>> ENV GMS_DIR=/genes-mapserver ENV LANG C.UTF-8 >>>> >>>> # Update and upgrade system RUN apt-get -qq update >>>> --fix-missing && \ apt-get install -y cgi-mapserver >>>> mapserver-bin >>>> >>>> >>>> RUN mkdir ${GMS_DIR} >>>> >>>> VOLUME ${GMS_DIR} >>>> >>>> ENTRYPOINT ["/usr/lib/cgi-bin/mapserv"] >>>> >>>> >>>> The actual tests are done within the container by: >>>> >>>> sudo docker run -v ~/src/genes-mapserver/:/genes-mapserver >>>> --rm --entrypoint=/bin/bash -ti renzok/mapserver-cgi >>>> >>>> >>>> thanks for reading :) >>>> _______________________________________________ mapserver-users >>>> mailing list mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Renzo Kottmann PhD Max Planck Institute for Marine Microbiology Microbial Genomics and Bioinformatics Research Group Celsiusstr. 1 28359 Bremen Germany Phone: +49 421 2028 974 From MarkVolz at co.lyon.mn.us Wed May 27 14:23:49 2015 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 27 May 2015 21:23:49 +0000 Subject: [mapserver-users] stretching imagery in MapServer In-Reply-To: <5565CB7F.6030601@squeakycode.net> References: <7b7af99d56f44399ac75cfaf41d9cb76@C119S212VM017.msvyvi.vaha.local> <36CA828A36E29F45B7CF0A1766E5DFA33AEC087A@swmail01.r8nssis.local> <5565CB7F.6030601@squeakycode.net> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA33AEC0CAF@swmail01.r8nssis.local> Andy, The 2015 leaf off air photos were flown while it was still cold here, which is good because it is easy to identify buildings, but bad because the image is brown. I had experimented with a couple changes using LUT. However the Highway Department mentioned that they still prefer the brown images. Therefore I removed any lut corrections. I will try to answer your questions about the server performance tomorrow. Sincerely, Mark Volz, GISP Lyon County GIS Coordinator > -----Original Message----- > From: Andy Colson [mailto:andy at squeakycode.net] > Sent: Wednesday, May 27, 2015 8:50 AM > To: Mark Volz; Rahkonen Jukka (MML) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] stretching imagery in MapServer > > Hi Mark. Two questions for you: > > 1) I know it might be a bunch of extra work, but I don't suppose you could post > some before and after shots (or urls or whatever). I really have no idea what > sort of change your talking about. > > 2) Holy freaking cow you have fast imagery. I don't suppose you could share > some processing/hardware/setup secrets? > > Thanks > > -Andy > > > On 5/26/2015 2:07 PM, Mark Volz wrote: > > Jukka, (and others) > > > > Thank you for your reply. I think I figured out how lut works. If > > you don't mind please check and make sure I have this correct: > > > > I can use ArcGIS to report the correct input and output values for a > > n=2.5 standard deviation by going to > > layers->symbology->stretch->histograms->Info window. Once I have > > layers->symbology->stretch->histograms->those > > values I can modify my map file to include for example: > > > > PROCESSING "LUT_1=73:0,226:255" #changes red band input of 0-73 to 0, > > inputs of 226-255 to 255, inputs between 73-226 linearly interpolated. > > > > PROCESSING "LUT_2=60:0,199:255" #changes green band input of 0-60 to > > 0, inputs of 199-255 to 255, inputs between 60-199 linearly interpolated. > > > > PROCESSING "LUT_3=35:0,155:255" #changes blue band input of 0-35 to 0, > > inputs of 155-255 to 255, inputs between 35-155 linearly interpolated. > > > > P.S. > > > > Before I knew what the heck I was doing with LUT I noticed that I > > could identify wet areas, and tree cover quite easily with the > > following > > combinations: > > > > PROCESSING "LUT=50:50,60:250,70:250" is a good way to identify tree > cover. > > > > PROCESSING "LUT=50:50,60:250,70:70" is a good way to identify wet areas. > > > > Thank You > > > > Sincerely, > > > > *Mark Volz, GISP* > > > > *From:*Rahkonen Jukka (MML) > > [mailto:jukka.rahkonen at maanmittauslaitos.fi] > > *Sent:* Monday, May 25, 2015 9:18 AM > > *To:* Mark Volz; mapserver-users at lists.osgeo.org > > *Subject:* Re: stretching imagery in MapServer > > > > Hi, > > > > As far as I know automatic stretch by standard deviation is not > > supported. You can do automatic min-max stretch with PROCESSING > > "SCALE=AUTO". If your source data is uniform you may reach a good > > result with manual scale settings or with PROCESSING "LUT= " > > > > > > > > -Jukka Rahkonen- > > > > Mark Volz wrote: > > > > Hello, > > > > I added our new Pictometry Air Photos on our mapping site at > > http://geomoose.lyonco.org/geomoose2/geomoose.html. The air photos > > seem somewhat washed out. In ArcGIS I was able to get a nicer looking > > image by stretching the air photo using standard deviations. Can we > > stretch imagery in MapServer? If not please let me know if you have a > > comment regarding how I can improve the image quality. > > > > Thanks > > > > Sincerely, > > > > *Mark Volz, GISP* > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From rkottman at mpi-bremen.de Wed May 27 23:49:19 2015 From: rkottman at mpi-bremen.de (Renzo Kottmann) Date: Thu, 28 May 2015 08:49:19 +0200 Subject: [mapserver-users] getting corrupted png with WMS request to mapserv CGI on command line In-Reply-To: <5565C860.2000008@eox.at> References: <5565C860.2000008@eox.at> Message-ID: <0aad77f22fc5526a40b29e3af6e9d137@194.95.7.50> thx Fabian, indeed you are right. However, is this then a bug or a feature? In any case, I thought it might be helpful to improve the documentation to a) point out that use of OGC compliant requests is possible and b) that for creating png it is important to remove first 3 lines. See pull request https://github.com/mapserver/docs/pull/121 . bests,renzo On Wed, 27 May 2015 15:36:32 +0200, Fabian Schindler wrote: > Renzo, > As far as I remember you have to remove the HTTP headers from the > response (the first 2-4 lines or so) when you use mapserv -nh with OGC > services. > Regards, > Fabian > > On 27.05.15 13:02, Renzo Kottmann wrote: >> nope. I tried IMAGEPATH "/tmp/" and IMAGEPATH "/tmp" both still >> result in corrupt pngs. thx,renzo >> >> On Wed, 27 May 2015 12:12:02 +0200, thomas bonfort >> wrote: >>> IMAGEPATH /tmp/ should be changed to IMAGEPATH "/tmp/" >>> >>> -- thomas >>> >>> On 27 May 2015 at 11:47, Renzo Kottmann >>> wrote: >>>> Hi All, >>>> >>>> I have installed mapserver 6.4.1 in a docker container based on >>>> debian jessie (see dockerfile below) >>>> >>>> If I run: >>>> >>>> /usr/lib/cgi-bin/mapserv -nh >>>> >> "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >>>>> >> > /tmp/test.png >>>> >>>> The png is corrupt and I can not open it with neither gimp nor >>>> firefox. >>>> >>>> >>>> However, I get valid pngs using the very same map file with >>>> shp2img or mapserv -nh >>>> >> "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod >>>> >> > . >>>> >>>> >>>> Find below more details (mapserver version, exact command lines >>>> I used and resulting debug logs, map file, and docker file) >>>> >>>> >>>> I searched google, the mailing list archives, but nothing seems >>>> to be similar to this problem. Therefore, any help is very much >>>> appreciated :) >>>> >>>> ciao, renzo >>>> >>>> >>>> * Mapserver Version: >>>> >>>> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>>> OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG >>>> SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS >>>> SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI >>>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >>>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >>>> SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG >>>> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>>> >>>> >>>> * Command lines >>>> >>>> Generates valid png: >>>> >>>> /usr/lib/cgi-bin/mapserv -nh >>>> >> "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod" >>>>> >> > /tmp/test.png >>>> >>>> shp2img --all_debug 2 -m /genes-mapserver/wms_test.map -o >>>> /tmp/test.png >>>> >>>> >>>> Generates invalid corrupt png: >>>> >>>> /usr/lib/cgi-bin/mapserv -nh >>>> >> "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >>>>> >> > /tmp/test.png >>>> >>>> >>>> >>>> * Log file (for all three runs in that order): >>>> >>>> >>>> [Wed May 27 08:51:44 2015].475696 CGI Request 1 on process 79 >>>> [Wed May 27 08:51:44 2015].476881 msDrawMap(): rendering using >>>> outputformat named png (AGG/PNG). [Wed May 27 08:51:44 >>>> 2015].476916 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>>> May 27 08:51:44 2015].478222 >>>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>>> 08:51:45 2015].16608 msDrawMap(): Layer 0 (satellite_mod), >>>> 0.540s [Wed May 27 08:51:45 2015].16665 msDrawMap(): Drawing >>>> Label Cache, >> 0.000s >>>> [Wed May 27 08:51:45 2015].16677 msDrawMap() total time: >>>> 0.541s [Wed May 27 08:51:45 2015].38545 msSaveImage(stdout) >>>> total time: 0.022s [Wed May 27 08:51:45 2015].38838 mapserv >>>> request processing time (msLoadMap not incl.): 0.563s >>>> >>>> [Wed May 27 08:56:29 2015].752703 msDrawMap(): rendering using >>>> outputformat named png (AGG/PNG). [Wed May 27 08:56:29 >>>> 2015].752820 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>>> May 27 08:56:29 2015].754465 >>>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>>> 08:56:30 2015].295590 msDrawMap(): Layer 0 (satellite_mod), >>>> 0.543s [Wed May 27 08:56:30 2015].295664 msDrawMap(): Drawing >>>> Label Cache, 0.000s [Wed May 27 08:56:30 2015].295684 >>>> msDrawMap() total time: 0.544s [Wed May 27 08:56:30 >>>> 2015].323794 msSaveImage(/tmp/test.png) total time: 0.028s >>>> >>>> [Wed May 27 08:59:28 2015].995397 CGI Request 1 on process 82 >>>> [Wed May 27 08:59:28 2015].995464 msWMSLoadGetMapParams(): >>>> enabling non-square pixels. [Wed May 27 08:59:28 2015].996733 >>>> msDrawMap(): kicking into non-square pixel preserving mode. >>>> [Wed May 27 08:59:28 2015].997595 msDrawMap(): rendering using >>>> outputformat named png (AGG/PNG). [Wed May 27 08:59:28 >>>> 2015].997614 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>>> May 27 08:59:28 2015].998950 >>>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>>> 08:59:29 2015].651061 msDrawMap(): Layer 0 (satellite_mod), >>>> 0.653s [Wed May 27 08:59:29 2015].651143 msDrawMap(): Drawing >>>> Label Cache, 0.000s [Wed May 27 08:59:29 2015].651167 >>>> msDrawMap() total time: 0.656s [Wed May 27 08:59:29 >>>> 2015].681373 msSaveImage(stdout) total time: 0.030s [Wed May 27 >>>> 08:59:29 2015].681769 mapserv request processing time >>>> (msLoadMap not incl.): 0.686s >>>> >>>> >>>> * map file >>>> >>>> >>>> MAP NAME "wms_test" STATUS ON EXTENT -180 -90 180 90 IMAGECOLOR >>>> 210 210 210 IMAGETYPE png SIZE 1080 614 UNITS dd >>>> >>>> CONFIG "MS_ERRORFILE" "/tmp/wms_test_error.txt" DEBUG 2 >>>> >>>> >>>> PROJECTION #this is WGS84 "init=epsg:4326" END >>>> >>>> >>>> SYMBOLSET "etc/symbols.sym" FONTSET "etc/fonts/fonts.txt" >>>> >>>> WEB IMAGEPATH /tmp/ IMAGEURL "/tmp/" >>>> >>>> ERROR "/error.html" EMPTY "/no_result.html" >>>> >>>> >>>> METADATA ### Enable WFS support "wms_title" "wms >>>> test" "wms_onlineresource" "http://localhost/wms?" "wms_srs" >>>> "EPSG:4326" "wms_enable_request" "GetCapabilities GetMap >>>> GetFeatureInfo GetLegendGraphic" "ows_enable_request" >>>> "GetCapabilities GetMap GetFeatureInfo GetLegendGraphic" >>>> "ows_extent" "-180 -90 180 90" "wfs_title" "wfs >>>> test" #necessary for the WMS GetFeatureInfo request >>>> "WMS_FEATURE_INFO_MIME_TYPE" "text/html" END >>>> >>>> END >>>> >>>> LEGEND STATUS on KEYSIZE 10 10 LABEL SIZE 9 COLOR 0 0 0 TYPE >>>> truetype ENCODING UTF-8 FONT sans FORCE false PARTIALS true >>>> POSITION AUTO END TEMPLATE "template/legend.html" # HTML >>>> template file END >>>> >>>> LAYER NAME satellite_mod >>>> >>>> METADATA "wms_title" "World Map Lite" "unit" >>>> "false" END #end of wms metadata >>>> >>>> DATA data/satelliteMod.png TYPE RASTER STATUS ON END #map end >>>> END >>>> >>>> >>>> * Dockerfile >>>> >>>> FROM debian:jessie >>>> >>>> ENV GMS_DIR=/genes-mapserver ENV LANG C.UTF-8 >>>> >>>> # Update and upgrade system RUN apt-get -qq update >>>> --fix-missing && \ apt-get install -y cgi-mapserver >>>> mapserver-bin >>>> >>>> >>>> RUN mkdir ${GMS_DIR} >>>> >>>> VOLUME ${GMS_DIR} >>>> >>>> ENTRYPOINT ["/usr/lib/cgi-bin/mapserv"] >>>> >>>> >>>> The actual tests are done within the container by: >>>> >>>> sudo docker run -v ~/src/genes-mapserver/:/genes-mapserver >>>> --rm --entrypoint=/bin/bash -ti renzok/mapserver-cgi >>>> >>>> >>>> thanks for reading :) >>>> _______________________________________________ mapserver-users >>>> mailing list mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Renzo Kottmann PhD Max Planck Institute for Marine Microbiology Microbial Genomics and Bioinformatics Research Group Celsiusstr. 1 28359 Bremen Germany Phone: +49 421 2028 974 From jmckenna at gatewaygeomatics.com Thu May 28 04:41:22 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 28 May 2015 08:41:22 -0300 Subject: [mapserver-users] getting corrupted png with WMS request to mapserv CGI on command line In-Reply-To: <0aad77f22fc5526a40b29e3af6e9d137@194.95.7.50> References: <5565C860.2000008@eox.at> <0aad77f22fc5526a40b29e3af6e9d137@194.95.7.50> Message-ID: <5566FEE2.10805@gatewaygeomatics.com> Some thoughts on your pull request: - since you are submitting a docs enhancement, be sure to consider all platforms (e.g. in your example also include options for Windows users, where there is no 'tail' command) - consider submitting your request to the branch-7-0 -jeff On 2015-05-28 3:49 AM, Renzo Kottmann wrote: > thx Fabian, > indeed you are right. However, is this then a bug or a feature? > > In any case, I thought it might be helpful to improve the documentation to > a) point out that use of OGC compliant requests is possible and b) that for > creating png it is important to remove first 3 lines. > > See pull request https://github.com/mapserver/docs/pull/121 . > > bests,renzo > > On Wed, 27 May 2015 15:36:32 +0200, Fabian Schindler > wrote: >> Renzo, >> As far as I remember you have to remove the HTTP headers from the >> response (the first 2-4 lines or so) when you use mapserv -nh with OGC >> services. >> Regards, >> Fabian >> >> On 27.05.15 13:02, Renzo Kottmann wrote: >>> nope. I tried IMAGEPATH "/tmp/" and IMAGEPATH "/tmp" both still >>> result in corrupt pngs. thx,renzo >>> >>> On Wed, 27 May 2015 12:12:02 +0200, thomas bonfort >>> wrote: >>>> IMAGEPATH /tmp/ should be changed to IMAGEPATH "/tmp/" >>>> >>>> -- thomas >>>> >>>> On 27 May 2015 at 11:47, Renzo Kottmann >>>> wrote: >>>>> Hi All, >>>>> >>>>> I have installed mapserver 6.4.1 in a docker container based on >>>>> debian jessie (see dockerfile below) >>>>> >>>>> If I run: >>>>> >>>>> /usr/lib/cgi-bin/mapserv -nh >>>>> >>> > "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >>>>>> >>> >> /tmp/test.png >>>>> >>>>> The png is corrupt and I can not open it with neither gimp nor >>>>> firefox. >>>>> >>>>> >>>>> However, I get valid pngs using the very same map file with >>>>> shp2img or mapserv -nh >>>>> >>> > "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod >>>>> >>> >> . >>>>> >>>>> >>>>> Find below more details (mapserver version, exact command lines >>>>> I used and resulting debug logs, map file, and docker file) >>>>> >>>>> >>>>> I searched google, the mailing list archives, but nothing seems >>>>> to be similar to this problem. Therefore, any help is very much >>>>> appreciated :) >>>>> >>>>> ciao, renzo >>>>> >>>>> >>>>> * Mapserver Version: >>>>> >>>>> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>>>> OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG >>>>> SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS >>>>> SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI >>>>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >>>>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >>>>> SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG >>>>> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>>>> >>>>> >>>>> * Command lines >>>>> >>>>> Generates valid png: >>>>> >>>>> /usr/lib/cgi-bin/mapserv -nh >>>>> >>> > "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod" >>>>>> >>> >> /tmp/test.png >>>>> >>>>> shp2img --all_debug 2 -m /genes-mapserver/wms_test.map -o >>>>> /tmp/test.png >>>>> >>>>> >>>>> Generates invalid corrupt png: >>>>> >>>>> /usr/lib/cgi-bin/mapserv -nh >>>>> >>> > "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >>>>>> >>> >> /tmp/test.png >>>>> >>>>> >>>>> >>>>> * Log file (for all three runs in that order): >>>>> >>>>> >>>>> [Wed May 27 08:51:44 2015].475696 CGI Request 1 on process 79 >>>>> [Wed May 27 08:51:44 2015].476881 msDrawMap(): rendering using >>>>> outputformat named png (AGG/PNG). [Wed May 27 08:51:44 >>>>> 2015].476916 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>>>> May 27 08:51:44 2015].478222 >>>>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>>>> 08:51:45 2015].16608 msDrawMap(): Layer 0 (satellite_mod), >>>>> 0.540s [Wed May 27 08:51:45 2015].16665 msDrawMap(): Drawing >>>>> Label Cache, >>> 0.000s >>>>> [Wed May 27 08:51:45 2015].16677 msDrawMap() total time: >>>>> 0.541s [Wed May 27 08:51:45 2015].38545 msSaveImage(stdout) >>>>> total time: 0.022s [Wed May 27 08:51:45 2015].38838 mapserv >>>>> request processing time (msLoadMap not incl.): 0.563s >>>>> >>>>> [Wed May 27 08:56:29 2015].752703 msDrawMap(): rendering using >>>>> outputformat named png (AGG/PNG). [Wed May 27 08:56:29 >>>>> 2015].752820 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>>>> May 27 08:56:29 2015].754465 >>>>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>>>> 08:56:30 2015].295590 msDrawMap(): Layer 0 (satellite_mod), >>>>> 0.543s [Wed May 27 08:56:30 2015].295664 msDrawMap(): Drawing >>>>> Label Cache, 0.000s [Wed May 27 08:56:30 2015].295684 >>>>> msDrawMap() total time: 0.544s [Wed May 27 08:56:30 >>>>> 2015].323794 msSaveImage(/tmp/test.png) total time: 0.028s >>>>> >>>>> [Wed May 27 08:59:28 2015].995397 CGI Request 1 on process 82 >>>>> [Wed May 27 08:59:28 2015].995464 msWMSLoadGetMapParams(): >>>>> enabling non-square pixels. [Wed May 27 08:59:28 2015].996733 >>>>> msDrawMap(): kicking into non-square pixel preserving mode. >>>>> [Wed May 27 08:59:28 2015].997595 msDrawMap(): rendering using >>>>> outputformat named png (AGG/PNG). [Wed May 27 08:59:28 >>>>> 2015].997614 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>>>> May 27 08:59:28 2015].998950 >>>>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>>>> 08:59:29 2015].651061 msDrawMap(): Layer 0 (satellite_mod), >>>>> 0.653s [Wed May 27 08:59:29 2015].651143 msDrawMap(): Drawing >>>>> Label Cache, 0.000s [Wed May 27 08:59:29 2015].651167 >>>>> msDrawMap() total time: 0.656s [Wed May 27 08:59:29 >>>>> 2015].681373 msSaveImage(stdout) total time: 0.030s [Wed May 27 >>>>> 08:59:29 2015].681769 mapserv request processing time >>>>> (msLoadMap not incl.): 0.686s >>>>> >>>>> >>>>> * map file >>>>> >>>>> >>>>> MAP NAME "wms_test" STATUS ON EXTENT -180 -90 180 90 IMAGECOLOR >>>>> 210 210 210 IMAGETYPE png SIZE 1080 614 UNITS dd >>>>> >>>>> CONFIG "MS_ERRORFILE" "/tmp/wms_test_error.txt" DEBUG 2 >>>>> >>>>> >>>>> PROJECTION #this is WGS84 "init=epsg:4326" END >>>>> >>>>> >>>>> SYMBOLSET "etc/symbols.sym" FONTSET "etc/fonts/fonts.txt" >>>>> >>>>> WEB IMAGEPATH /tmp/ IMAGEURL "/tmp/" >>>>> >>>>> ERROR "/error.html" EMPTY "/no_result.html" >>>>> >>>>> >>>>> METADATA ### Enable WFS support "wms_title" "wms >>>>> test" "wms_onlineresource" "http://localhost/wms?" "wms_srs" >>>>> "EPSG:4326" "wms_enable_request" "GetCapabilities GetMap >>>>> GetFeatureInfo GetLegendGraphic" "ows_enable_request" >>>>> "GetCapabilities GetMap GetFeatureInfo GetLegendGraphic" >>>>> "ows_extent" "-180 -90 180 90" "wfs_title" "wfs >>>>> test" #necessary for the WMS GetFeatureInfo request >>>>> "WMS_FEATURE_INFO_MIME_TYPE" "text/html" END >>>>> >>>>> END >>>>> >>>>> LEGEND STATUS on KEYSIZE 10 10 LABEL SIZE 9 COLOR 0 0 0 TYPE >>>>> truetype ENCODING UTF-8 FONT sans FORCE false PARTIALS true >>>>> POSITION AUTO END TEMPLATE "template/legend.html" # HTML >>>>> template file END >>>>> >>>>> LAYER NAME satellite_mod >>>>> >>>>> METADATA "wms_title" "World Map Lite" "unit" >>>>> "false" END #end of wms metadata >>>>> >>>>> DATA data/satelliteMod.png TYPE RASTER STATUS ON END #map end >>>>> END >>>>> >>>>> >>>>> * Dockerfile >>>>> >>>>> FROM debian:jessie >>>>> >>>>> ENV GMS_DIR=/genes-mapserver ENV LANG C.UTF-8 >>>>> >>>>> # Update and upgrade system RUN apt-get -qq update >>>>> --fix-missing && \ apt-get install -y cgi-mapserver >>>>> mapserver-bin >>>>> >>>>> >>>>> RUN mkdir ${GMS_DIR} >>>>> >>>>> VOLUME ${GMS_DIR} >>>>> >>>>> ENTRYPOINT ["/usr/lib/cgi-bin/mapserv"] >>>>> >>>>> >>>>> The actual tests are done within the container by: >>>>> >>>>> sudo docker run -v ~/src/genes-mapserver/:/genes-mapserver >>>>> --rm --entrypoint=/bin/bash -ti renzok/mapserver-cgi >>>>> >>>>> >>>>> thanks for reading :) >>>>> _______________________________________________ mapserver-users >>>>> mailing list mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gertjan at West.NL Thu May 28 05:59:27 2015 From: gertjan at West.NL (Gertjan van Oosten) Date: Thu, 28 May 2015 14:59:27 +0200 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: References: <2569c6d566d64b2fa5f073a370e09735@C119S212VM017.msvyvi.vaha.local> Message-ID: <20150528125927.GF27882@West.NL> As quoted from "Smith, Michael ERDC-RDE-CRREL-NH" : > Its also unclear to me if XML / WFS allows other characters as a decimal > character. I've yet to find any xsd or guide docs that indicate one way or the > other. Easiest to read is from RELAX NG: http://books.xmlschemata.org/relaxng/ch19-77095.html "Restrictions The decimal separator is always a point (.), and no thousands separator may be added." For the gory details, see: http://www.w3.org/TR/xmlschema11-2/#nt-floatRep So if the WFS request contains a comma (,) as decimal separator, that's wrong. Cheers, -- -- Gertjan van Oosten, Principal Consultant, West Consulting B.V. -- gertjan at West.NL +31 15 2191 600 www.west.nl From gertjan at West.NL Thu May 28 06:06:44 2015 From: gertjan at West.NL (Gertjan van Oosten) Date: Thu, 28 May 2015 15:06:44 +0200 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: <20150528125927.GF27882@West.NL> <5646ffdee5da448f98a70fc3cf50288e@C119S212VM017.msvyvi.vaha.local> Message-ID: <20150528130643.GG27882@West.NL> As quoted from "Rahkonen Jukka (MML)" : > By reading the GML 3 standard it for example defines that Real and Number are > of type xsd:double, and following that path to > > http://books.xmlschemata.org/relaxng/ch19-77065.html [Missed Jukka's reply first time round.] Yes, xsd:double (not xsd:float as in my previous reply). Which means the gory details are in: http://www.w3.org/TR/xmlschema11-2/#nt-doubleRep but everything else remains the same, notably: a decimal *point*. Cheers, -- -- Gertjan van Oosten, Principal Consultant, West Consulting B.V. -- gertjan at West.NL +31 15 2191 600 www.west.nl From MarkVolz at co.lyon.mn.us Thu May 28 06:37:58 2015 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 28 May 2015 13:37:58 +0000 Subject: [mapserver-users] Improving Mapserver speed for air photo services Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA33AEC0D3F@swmail01.r8nssis.local> Hello, Andy Colson asked me about my interactive mapping setup and how I was able to get the air photos to run fast. I figure there may be a couple other people that might want to know what I did to improve the speed of my service at: http://geomoose.lyonco.org/geomoose2/geomoose.html#. Please note that this list is not exhaustive, nor am I an expert. So some people may want to add or refute some of this information. *Use the same projection for everything. Don't make MapServer have to deal with projecting imagery or data to a different coordinate system. *Use a map cache. Mapcache is integrated with some distributions of MapServer, but there are several out there each with their own advantages and disadvantages. *Disable fractional zoom on your application. In addition make sure your application is set up to use the same scales, tile size, and tile origin (grid) as your map cache. If any of these don't match then your mapcache will need to perform extra work for each request. *Search for "WMS Performance Shootout." They are starting to get old now, but they contain many tidbits on how to improve speed. *You may want to look at http://www.mapserver.org/optimization/raster.html. This page mentions what format you should use, and how to create internal tiles. *Use PROCESSING "OVERSAMPLE_RATIO=1". If I recall correctly MapServer uses an oversample ratio of 2.5 so it is sampling the raster at 180dpi to create a 72 dpi image. This is good for scientific applications, but it may be unnecessary for air photos. Just be warned that low oversample ratios can create grainer images. I think that by using a cache, making sure your application grid matches your cache, and configuring oversample_ratio=1 so MapServer doesn't need to do extra work will be more important than the actual server specs. What you need for a server really depends on more factors. Our server is "decent" now but we use to have an old GIS server that performed well with the above tips. Sincerely, Mark Volz, GISP Lyon County GIS Coordinator > -----Original Message----- > From: Andy Colson [mailto:andy at squeakycode.net] > Sent: Wednesday, May 27, 2015 8:50 AM > To: Mark Volz; Rahkonen Jukka (MML) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] stretching imagery in MapServer > > Hi Mark. Two questions for you: > > 1) I know it might be a bunch of extra work, but I don't suppose you could post > some before and after shots (or urls or whatever). I really have no idea what > sort of change your talking about. > > 2) Holy freaking cow you have fast imagery. I don't suppose you could share > some processing/hardware/setup secrets? > > Thanks > > -Andy > > > On 5/26/2015 2:07 PM, Mark Volz wrote: > > Jukka, (and others) > > > > Thank you for your reply. I think I figured out how lut works. If > > you don't mind please check and make sure I have this correct: > > > > I can use ArcGIS to report the correct input and output values for a > > n=2.5 standard deviation by going to > > layers->symbology->stretch->histograms->Info window. Once I have > > layers->symbology->stretch->histograms->those > > values I can modify my map file to include for example: > > > > PROCESSING "LUT_1=73:0,226:255" #changes red band input of 0-73 to 0, > > inputs of 226-255 to 255, inputs between 73-226 linearly interpolated. > > > > PROCESSING "LUT_2=60:0,199:255" #changes green band input of 0-60 to > > 0, inputs of 199-255 to 255, inputs between 60-199 linearly interpolated. > > > > PROCESSING "LUT_3=35:0,155:255" #changes blue band input of 0-35 to 0, > > inputs of 155-255 to 255, inputs between 35-155 linearly interpolated. > > > > P.S. > > > > Before I knew what the heck I was doing with LUT I noticed that I > > could identify wet areas, and tree cover quite easily with the > > following > > combinations: > > > > PROCESSING "LUT=50:50,60:250,70:250" is a good way to identify tree > cover. > > > > PROCESSING "LUT=50:50,60:250,70:70" is a good way to identify wet areas. > > > > Thank You > > > > Sincerely, > > > > *Mark Volz, GISP* > > > > *From:*Rahkonen Jukka (MML) > > [mailto:jukka.rahkonen at maanmittauslaitos.fi] > > *Sent:* Monday, May 25, 2015 9:18 AM > > *To:* Mark Volz; mapserver-users at lists.osgeo.org > > *Subject:* Re: stretching imagery in MapServer > > > > Hi, > > > > As far as I know automatic stretch by standard deviation is not > > supported. You can do automatic min-max stretch with PROCESSING > > "SCALE=AUTO". If your source data is uniform you may reach a good > > result with manual scale settings or with PROCESSING "LUT= " > > > > > > > > -Jukka Rahkonen- > > > > Mark Volz wrote: > > > > Hello, > > > > I added our new Pictometry Air Photos on our mapping site at > > http://geomoose.lyonco.org/geomoose2/geomoose.html. The air photos > > seem somewhat washed out. In ArcGIS I was able to get a nicer looking > > image by stretching the air photo using standard deviations. Can we > > stretch imagery in MapServer? If not please let me know if you have a > > comment regarding how I can improve the image quality. > > > > Thanks > > > > Sincerely, > > > > *Mark Volz, GISP* > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From lars.schylberg at blixtmail.se Thu May 28 06:37:55 2015 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Thu, 28 May 2015 15:37:55 +0200 Subject: [mapserver-users] Named WMS styles - CLASSGROUP and GROUP In-Reply-To: References: Message-ID: Hi again, I have modified my example and found out some things that works and some that don't work. Actually I got a little furhter looking at: https://github.com/mapserver/mapserver/issues/4660 One layer with "layer name" as Layer=square gives correct result with both styles=color and styles=grey. That is the layer name from the Layer name declaration. ?http://localhost/cgi-bin/mapserv?map=/home/lars/Maps/Style_test/style_test_5.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1 &LAYERS=square&styles=grey &srs=EPSG:4326&BBOX=0,0,20,15&FORMAT=image/png&WIDTH=200&HEIGHT=150 Two layers with "layer name" as Layer=square,circle? gives correct result if I give two arguments to? styles ie. styles=grey,grey or styles=color,color or styles=grey,color. http://localhost/cgi-bin/mapserv?map=/home/lars/Maps/Style_test/style_test_5.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1 &LAYERS=circle,square&styles=grey,grey &srs=EPSG:4326&BBOX=0,0,20,15&FORMAT=image/png&WIDTH=200&HEIGHT=150 If I specify the layer with layers from "wms_layer_group" "/ST/circles" and /ST/squares that is layers=circles,squares it seem like the style given with styles parameter is ignored. It is only showing the default CLASSGROUP regardless of how styles is specified. as long as I have two arguments. http://localhost/cgi-bin/mapserv?map=/home/lars/Maps/Style_test/style_test_5.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1 &LAYERS=squares,circles&styles=grey,grey &srs=EPSG:4326&BBOX=0,0,20,15&FORMAT=image/png&WIDTH=200&HEIGHT=150 It seems like the style is not assosiated with the the layer handling with wms_layer_groups. I suspect that there is some undocumented way to do that. If I specify the layers with the root layer name ,? ST http://localhost/cgi-bin/mapserv?map=/home/lars/Maps/Style_test/style_test_5.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1& LAYERS=ST&styles=grey &srs=EPSG:4326&BBOX=0,0,20,15&FORMAT=image/png&WIDTH=200&HEIGHT=150 I get the following error. msWMSLoadGetMapParams(): WMS server error. Style (grey) not defined on root layer. So to conclude, I am wordering if there is a way to? specify the style for the root layer? Because that is really what I would like to do. Second question is how do I associate the style to layers in wms_layer_group instead of the layers specified in the layer name. I hope this wasn't to long. All input would be welcome. Lars Schylberg New mapfile: style_test_5.map ------ MAP ??? NAME ST ??? EXTENT 0 0 20 15 ??? SIZE 200 150 ??? UNITS DD ??? IMAGECOLOR 200 200 200 ??? CONFIG "MS_ERRORFILE" "/tmp/style_test.log" ??? DEBUG 5 ??? OUTPUTFORMAT ??? ? NAME 'AGG' ??? ? DRIVER AGG/PNG ??? ? IMAGEMODE RGB ??? END ??? WEB ??? ? IMAGEPATH "/tmp/ms_tmp/" ??? ? IMAGEURL "/ms_tmp/" ??? ? METADATA ??? ??? "wms_srs" "EPSG:3006 EPSG:4326" ??? ??? "ows_enable_request" "*" ??? ? END ??? END ??? PROJECTION ??? ? "init=epsg:4326" ??? END ??? SYMBOL ??????? NAME "circle" ??????? TYPE ELLIPSE ??????? FILLED TRUE ??????? POINTS 1 1 END ??? END ??? SYMBOL ??????? NAME "square" ??????? TYPE VECTOR ??????? FILLED TRUE ??????? POINTS 0 0 0 1 1 1 1 0 0 0 END ??? END # # Start of layer definitions # ??? LAYER ??? ??? NAME "circle" ??? ??? TYPE POINT ??? ??? FEATURE POINTS 10 5 END END ??? ??? FEATURE POINTS 15 10 END END ??? ??? ??? METADATA ??? ??? ??? ??? "wms_title" "Circles" ??? ??? ??? ??? "wms_enable_request"?? "*" ??? ??? ??? ??? "wms_layer_group" "/ST/circles" ??? ??? ??? END ??? ??? STATUS on ??? ??? CLASSGROUP "color" ??? ??? CLASS ??? ??? ??? NAME "circle-color" ??? ??? ??? GROUP "color" ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 255 0 0 ??? ??? ??? ??? SIZE 15 ??? ??? ??? ??? WIDTH 1 ??? ??? ??? ??? SYMBOL "circle" ??? ??? ??? END ??? ??? END ??? ??? CLASS ??? ??? ??? NAME "circle-grey" ??? ??? ??? GROUP "grey" ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 50 50 50 ??? ??? ??? ??? SIZE 15 ??? ??? ??? ??? WIDTH 1 ??? ??? ??? ??? SYMBOL "circle" ??? ??? ??? END ??? ??? END ??? END # Layer ??? LAYER ??? ??? NAME "square" ??? ??? TYPE POINT ??? ??? FEATURE POINTS 10 10 END END ??? ??? FEATURE POINTS 15 5 END END ??? ??? METADATA ??? ??? ??? "wms_title" "Squares" ??? ??? ??? "wms_enable_request"?? "*" ??? ??? ??? "wms_layer_group" "/ST/squares" ??? ??? END ??? ??? STATUS on ??? ??? CLASSGROUP "color" ??? ??? CLASS ??? ??? ??? NAME "square-color" ??? ??? ??? GROUP "color" ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 0 0 255 ??? ??? ??? ??? SIZE 15 ??? ??? ??? ??? WIDTH 1 ??? ??? ??? ??? SYMBOL "square" ??? ??? ??? END ??? ??? END ??? ??? CLASS ??? ??? ??? NAME "square-grey" ??? ??? ??? GROUP "grey" ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 100 100 100 ??? ??? ??? ??? SIZE 15 ??? ??? ??? ??? WIDTH 1 ??? ??? ??? ??? SYMBOL "square" ??? ??? ??? END ??? ??? END ??? END # Layer END # Map File -------------- next part -------------- An HTML attachment was scrubbed... URL: From Weisbend at WAPA.GOV Thu May 28 11:35:23 2015 From: Weisbend at WAPA.GOV (Weisbender, Eric) Date: Thu, 28 May 2015 18:35:23 +0000 Subject: [mapserver-users] Accessing ArcSDE on secured site Message-ID: <9FE7B20682D2EE4CB9F40163E1EB4F0844EBE794@afovsml1m.WAPA.INT> Hello, I am trying to access ArcSDE with mapserver on a secured site that uses https:// not http. I keep getting an error saying Server Not Found. Is this even possible and if so I would welcome any help. Thanks in advance. Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From rkottman at mpi-bremen.de Thu May 28 23:02:00 2015 From: rkottman at mpi-bremen.de (Renzo Kottmann) Date: Fri, 29 May 2015 08:02:00 +0200 Subject: [mapserver-users] getting corrupted png with WMS request to mapserv CGI on command line In-Reply-To: <5566FEE2.10805@gatewaygeomatics.com> References: <5565C860.2000008@eox.at> <0aad77f22fc5526a40b29e3af6e9d137@194.95.7.50> <5566FEE2.10805@gatewaygeomatics.com> Message-ID: <88675eb2f932e9debf84fa7b71b42cbb@194.95.7.50> thx for input, find comments inline On Thu, 28 May 2015 08:41:22 -0300, Jeff McKenna wrote: > Some thoughts on your pull request: > > - since you are submitting a docs enhancement, be sure to consider all > platforms (e.g. in your example also include options for Windows users, > where there is no 'tail' command) I am not a windows user, therefore I con only do reseacrh and commented on pull request: https://github.com/mapserver/docs/pull/121 and hope someone verifies this :) > > - consider submitting your request to the branch-7-0 They explicitly state that pull requests shoould be on branch 6.4: https://github.com/mapserver/docs ciao,renzo > > > > -jeff > > > > > On 2015-05-28 3:49 AM, Renzo Kottmann wrote: >> thx Fabian, >> indeed you are right. However, is this then a bug or a feature? >> >> In any case, I thought it might be helpful to improve the documentation >> to >> a) point out that use of OGC compliant requests is possible and b) that >> for >> creating png it is important to remove first 3 lines. >> >> See pull request https://github.com/mapserver/docs/pull/121 . >> >> bests,renzo >> >> On Wed, 27 May 2015 15:36:32 +0200, Fabian Schindler >> wrote: >>> Renzo, >>> As far as I remember you have to remove the HTTP headers from the >>> response (the first 2-4 lines or so) when you use mapserv -nh with OGC >>> services. >>> Regards, >>> Fabian >>> >>> On 27.05.15 13:02, Renzo Kottmann wrote: >>>> nope. I tried IMAGEPATH "/tmp/" and IMAGEPATH "/tmp" both still >>>> result in corrupt pngs. thx,renzo >>>> >>>> On Wed, 27 May 2015 12:12:02 +0200, thomas bonfort >>>> wrote: >>>>> IMAGEPATH /tmp/ should be changed to IMAGEPATH "/tmp/" >>>>> >>>>> -- thomas >>>>> >>>>> On 27 May 2015 at 11:47, Renzo Kottmann >>>>> wrote: >>>>>> Hi All, >>>>>> >>>>>> I have installed mapserver 6.4.1 in a docker container based on >>>>>> debian jessie (see dockerfile below) >>>>>> >>>>>> If I run: >>>>>> >>>>>> /usr/lib/cgi-bin/mapserv -nh >>>>>> >>>> >> "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >>>>>>> >>>> >>> /tmp/test.png >>>>>> >>>>>> The png is corrupt and I can not open it with neither gimp nor >>>>>> firefox. >>>>>> >>>>>> >>>>>> However, I get valid pngs using the very same map file with >>>>>> shp2img or mapserv -nh >>>>>> >>>> >> "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod >>>>>> >>>> >>> . >>>>>> >>>>>> >>>>>> Find below more details (mapserver version, exact command lines >>>>>> I used and resulting debug logs, map file, and docker file) >>>>>> >>>>>> >>>>>> I searched google, the mailing list archives, but nothing seems >>>>>> to be similar to this problem. Therefore, any help is very much >>>>>> appreciated :) >>>>>> >>>>>> ciao, renzo >>>>>> >>>>>> >>>>>> * Mapserver Version: >>>>>> >>>>>> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>>>>> OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG >>>>>> SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS >>>>>> SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI >>>>>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >>>>>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >>>>>> SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG >>>>>> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>>>>> >>>>>> >>>>>> * Command lines >>>>>> >>>>>> Generates valid png: >>>>>> >>>>>> /usr/lib/cgi-bin/mapserv -nh >>>>>> >>>> >> "QUERY_STRING=map=/genes-mapserver/wms_test.map&mode=map&layers=satellite_mod" >>>>>>> >>>> >>> /tmp/test.png >>>>>> >>>>>> shp2img --all_debug 2 -m /genes-mapserver/wms_test.map -o >>>>>> /tmp/test.png >>>>>> >>>>>> >>>>>> Generates invalid corrupt png: >>>>>> >>>>>> /usr/lib/cgi-bin/mapserv -nh >>>>>> >>>> >> "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/genes-mapserver/wms_test.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1080&HEIGHT=614&STYLES=&LAYERS=satellite_mod" >>>>>>> >>>> >>> /tmp/test.png >>>>>> >>>>>> >>>>>> >>>>>> * Log file (for all three runs in that order): >>>>>> >>>>>> >>>>>> [Wed May 27 08:51:44 2015].475696 CGI Request 1 on process 79 >>>>>> [Wed May 27 08:51:44 2015].476881 msDrawMap(): rendering using >>>>>> outputformat named png (AGG/PNG). [Wed May 27 08:51:44 >>>>>> 2015].476916 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>>>>> May 27 08:51:44 2015].478222 >>>>>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>>>>> 08:51:45 2015].16608 msDrawMap(): Layer 0 (satellite_mod), >>>>>> 0.540s [Wed May 27 08:51:45 2015].16665 msDrawMap(): Drawing >>>>>> Label Cache, >>>> 0.000s >>>>>> [Wed May 27 08:51:45 2015].16677 msDrawMap() total time: >>>>>> 0.541s [Wed May 27 08:51:45 2015].38545 msSaveImage(stdout) >>>>>> total time: 0.022s [Wed May 27 08:51:45 2015].38838 mapserv >>>>>> request processing time (msLoadMap not incl.): 0.563s >>>>>> >>>>>> [Wed May 27 08:56:29 2015].752703 msDrawMap(): rendering using >>>>>> outputformat named png (AGG/PNG). [Wed May 27 08:56:29 >>>>>> 2015].752820 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>>>>> May 27 08:56:29 2015].754465 >>>>>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>>>>> 08:56:30 2015].295590 msDrawMap(): Layer 0 (satellite_mod), >>>>>> 0.543s [Wed May 27 08:56:30 2015].295664 msDrawMap(): Drawing >>>>>> Label Cache, 0.000s [Wed May 27 08:56:30 2015].295684 >>>>>> msDrawMap() total time: 0.544s [Wed May 27 08:56:30 >>>>>> 2015].323794 msSaveImage(/tmp/test.png) total time: 0.028s >>>>>> >>>>>> [Wed May 27 08:59:28 2015].995397 CGI Request 1 on process 82 >>>>>> [Wed May 27 08:59:28 2015].995464 msWMSLoadGetMapParams(): >>>>>> enabling non-square pixels. [Wed May 27 08:59:28 2015].996733 >>>>>> msDrawMap(): kicking into non-square pixel preserving mode. >>>>>> [Wed May 27 08:59:28 2015].997595 msDrawMap(): rendering using >>>>>> outputformat named png (AGG/PNG). [Wed May 27 08:59:28 >>>>>> 2015].997614 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed >>>>>> May 27 08:59:28 2015].998950 >>>>>> msDrawRasterLayerLow(satellite_mod): entering. [Wed May 27 >>>>>> 08:59:29 2015].651061 msDrawMap(): Layer 0 (satellite_mod), >>>>>> 0.653s [Wed May 27 08:59:29 2015].651143 msDrawMap(): Drawing >>>>>> Label Cache, 0.000s [Wed May 27 08:59:29 2015].651167 >>>>>> msDrawMap() total time: 0.656s [Wed May 27 08:59:29 >>>>>> 2015].681373 msSaveImage(stdout) total time: 0.030s [Wed May 27 >>>>>> 08:59:29 2015].681769 mapserv request processing time >>>>>> (msLoadMap not incl.): 0.686s >>>>>> >>>>>> >>>>>> * map file >>>>>> >>>>>> >>>>>> MAP NAME "wms_test" STATUS ON EXTENT -180 -90 180 90 IMAGECOLOR >>>>>> 210 210 210 IMAGETYPE png SIZE 1080 614 UNITS dd >>>>>> >>>>>> CONFIG "MS_ERRORFILE" "/tmp/wms_test_error.txt" DEBUG 2 >>>>>> >>>>>> >>>>>> PROJECTION #this is WGS84 "init=epsg:4326" END >>>>>> >>>>>> >>>>>> SYMBOLSET "etc/symbols.sym" FONTSET "etc/fonts/fonts.txt" >>>>>> >>>>>> WEB IMAGEPATH /tmp/ IMAGEURL "/tmp/" >>>>>> >>>>>> ERROR "/error.html" EMPTY "/no_result.html" >>>>>> >>>>>> >>>>>> METADATA ### Enable WFS support "wms_title" "wms >>>>>> test" "wms_onlineresource" "http://localhost/wms?" "wms_srs" >>>>>> "EPSG:4326" "wms_enable_request" "GetCapabilities GetMap >>>>>> GetFeatureInfo GetLegendGraphic" "ows_enable_request" >>>>>> "GetCapabilities GetMap GetFeatureInfo GetLegendGraphic" >>>>>> "ows_extent" "-180 -90 180 90" "wfs_title" "wfs >>>>>> test" #necessary for the WMS GetFeatureInfo request >>>>>> "WMS_FEATURE_INFO_MIME_TYPE" "text/html" END >>>>>> >>>>>> END >>>>>> >>>>>> LEGEND STATUS on KEYSIZE 10 10 LABEL SIZE 9 COLOR 0 0 0 TYPE >>>>>> truetype ENCODING UTF-8 FONT sans FORCE false PARTIALS true >>>>>> POSITION AUTO END TEMPLATE "template/legend.html" # HTML >>>>>> template file END >>>>>> >>>>>> LAYER NAME satellite_mod >>>>>> >>>>>> METADATA "wms_title" "World Map Lite" "unit" >>>>>> "false" END #end of wms metadata >>>>>> >>>>>> DATA data/satelliteMod.png TYPE RASTER STATUS ON END #map end >>>>>> END >>>>>> >>>>>> >>>>>> * Dockerfile >>>>>> >>>>>> FROM debian:jessie >>>>>> >>>>>> ENV GMS_DIR=/genes-mapserver ENV LANG C.UTF-8 >>>>>> >>>>>> # Update and upgrade system RUN apt-get -qq update >>>>>> --fix-missing && \ apt-get install -y cgi-mapserver >>>>>> mapserver-bin >>>>>> >>>>>> >>>>>> RUN mkdir ${GMS_DIR} >>>>>> >>>>>> VOLUME ${GMS_DIR} >>>>>> >>>>>> ENTRYPOINT ["/usr/lib/cgi-bin/mapserv"] >>>>>> >>>>>> >>>>>> The actual tests are done within the container by: >>>>>> >>>>>> sudo docker run -v ~/src/genes-mapserver/:/genes-mapserver >>>>>> --rm --entrypoint=/bin/bash -ti renzok/mapserver-cgi >>>>>> >>>>>> >>>>>> thanks for reading :) >>>>>> _______________________________________________ mapserver-users >>>>>> mailing list mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Renzo Kottmann PhD Max Planck Institute for Marine Microbiology Microbial Genomics and Bioinformatics Research Group Celsiusstr. 1 28359 Bremen Germany Phone: +49 421 2028 974 From Andreas.Eichner at sid.sachsen.de Thu May 28 23:43:18 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Fri, 29 May 2015 06:43:18 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: <20150528130643.GG27882@West.NL> References: <20150528125927.GF27882@West.NL> <5646ffdee5da448f98a70fc3cf50288e@C119S212VM017.msvyvi.vaha.local> <20150528130643.GG27882@West.NL> Message-ID: <6F331135492B944D90731CE93743D5681E01F9@FS-EX-DB102.fs.sachsen.de> But the original post was about a WFS filter and it's schema defines the element very loosely as And the implementation specification is also very imprecise about it: "The element is used to encode literal scalar and geometric values." So the schema does not restrict the 's value to be xsd:double nor does the spec. FES 2.0 adds a "type" attribute and uses a XML schema datatype as example. Therefore I guess it's intended that a element holds content matching the datatype advertised by a DescribeFeatureType request. > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Gertjan van Oosten > Gesendet: Donnerstag, 28. Mai 2015 15:07 > An: Rahkonen Jukka (MML); mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs > getFeature with filter on numeric field > > As quoted from "Rahkonen Jukka (MML)" > : > > By reading the GML 3 standard it for example defines that Real and > Number are > > of type xsd:double, and following that path to > > > > http://books.xmlschemata.org/relaxng/ch19-77065.html > > [Missed Jukka's reply first time round.] > Yes, xsd:double (not xsd:float as in my previous reply). > > Which means the gory details are in: > > http://www.w3.org/TR/xmlschema11-2/#nt-doubleRep > > but everything else remains the same, notably: a decimal *point*. > > Cheers, > -- > -- Gertjan van Oosten, Principal Consultant, West Consulting B.V. > -- gertjan at West.NL +31 15 2191 600 www.west.nl > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Andreas.Eichner at sid.sachsen.de Fri May 29 01:51:12 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Fri, 29 May 2015 08:51:12 +0000 Subject: [mapserver-users] Named WMS styles - CLASSGROUP and GROUP In-Reply-To: References: Message-ID: <6F331135492B944D90731CE93743D5681E0216@FS-EX-DB102.fs.sachsen.de> Have you tried using GROUP "ST" instead of wms_layer_group metadata? This seems to be the intended way to create a named group that can be requested. There seems to be no way to declare styles at group (or root) level. Requesting the group "ST" with style "grey" or "color" works but clients might be confused if the capabilities advertise a style at each leaf layer but none at group level. Changing your mapfile to LAYER NAME "circle" GROUP "ST" METADATA # "wms_layer_group" "/ST/circles" ... LAYER NAME "square" GROUP "ST" METADATA # "wms_layer_group" "/ST/squares" At least allows requesting the group "ST" with style color or grey: "...&layers=ST&styles=grey&..." or "...&layers=ST&styles=color&..." and requesting each single leaf layer: "...&layers=circle,square&styles=color,grey&..." HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von lars.schylberg at blixtmail.se > Gesendet: Donnerstag, 28. Mai 2015 15:38 > An: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] Named WMS styles - CLASSGROUP and GROUP > > Hi again, > > I have modified my example and found out some things that works and some > that don't work. > Actually I got a little furhter looking at: > https://github.com/mapserver/mapserver/issues/4660 > > One layer with "layer name" as Layer=square gives correct result with both > styles=color and styles=grey. > That is the layer name from the Layer name declaration. > > http://localhost/cgi- > bin/mapserv?map=/home/lars/Maps/Style_test/style_test_5.map&SERVICE=WMS&RE > QUEST=Getmap&VERSION=1.1.1 > &LAYERS=square&styles=grey > &srs=EPSG:4326&BBOX=0,0,20,15&FORMAT=image/png&WIDTH=200&HEIGHT=150 > > Two layers with "layer name" as Layer=square,circle gives correct result > if I give two arguments to styles ie. styles=grey,grey or > styles=color,color or styles=grey,color. > > http://localhost/cgi- > bin/mapserv?map=/home/lars/Maps/Style_test/style_test_5.map&SERVICE=WMS&RE > QUEST=Getmap&VERSION=1.1.1 > &LAYERS=circle,square&styles=grey,grey > &srs=EPSG:4326&BBOX=0,0,20,15&FORMAT=image/png&WIDTH=200&HEIGHT=150 > > If I specify the layer with layers from "wms_layer_group" "/ST/circles" > and /ST/squares that is layers=circles,squares it seem like the style > given with styles parameter is ignored. It is only showing the default > CLASSGROUP regardless of how styles is specified. as long as I have two > arguments. > > http://localhost/cgi- > bin/mapserv?map=/home/lars/Maps/Style_test/style_test_5.map&SERVICE=WMS&RE > QUEST=Getmap&VERSION=1.1.1 > &LAYERS=squares,circles&styles=grey,grey > &srs=EPSG:4326&BBOX=0,0,20,15&FORMAT=image/png&WIDTH=200&HEIGHT=150 > > It seems like the style is not assosiated with the the layer handling with > wms_layer_groups. > I suspect that there is some undocumented way to do that. > > If I specify the layers with the root layer name , ST > > http://localhost/cgi- > bin/mapserv?map=/home/lars/Maps/Style_test/style_test_5.map&SERVICE=WMS&RE > QUEST=Getmap&VERSION=1.1.1& > LAYERS=ST&styles=grey > &srs=EPSG:4326&BBOX=0,0,20,15&FORMAT=image/png&WIDTH=200&HEIGHT=150 > > I get the following error. > > > msWMSLoadGetMapParams(): WMS server error. Style (grey) not defined on > root layer. > > > So to conclude, I am wordering if there is a way to specify the style for > the root layer? > Because that is really what I would like to do. > > Second question is how do I associate the style to layers in > wms_layer_group instead of the layers specified in the layer name. > > I hope this wasn't to long. All input would be welcome. > > Lars Schylberg > > New mapfile: style_test_5.map > ------ > MAP > NAME ST > EXTENT 0 0 20 15 > SIZE 200 150 > UNITS DD > IMAGECOLOR 200 200 200 > CONFIG "MS_ERRORFILE" "/tmp/style_test.log" > DEBUG 5 > > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > WEB > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_srs" "EPSG:3006 EPSG:4326" > "ows_enable_request" "*" > END > END > > PROJECTION > "init=epsg:4326" > END > > SYMBOL > NAME "circle" > TYPE ELLIPSE > FILLED TRUE > POINTS 1 1 END > END > SYMBOL > NAME "square" > TYPE VECTOR > FILLED TRUE > POINTS 0 0 0 1 1 1 1 0 0 0 END > END > # > # Start of layer definitions > # > LAYER > NAME "circle" > TYPE POINT > FEATURE POINTS 10 5 END END > FEATURE POINTS 15 10 END END > METADATA > "wms_title" "Circles" > "wms_enable_request" "*" > "wms_layer_group" "/ST/circles" > END > STATUS on > CLASSGROUP "color" > CLASS > NAME "circle-color" > GROUP "color" > STYLE > COLOR 255 0 0 > SIZE 15 > WIDTH 1 > SYMBOL "circle" > END > END > CLASS > NAME "circle-grey" > GROUP "grey" > STYLE > COLOR 50 50 50 > SIZE 15 > WIDTH 1 > SYMBOL "circle" > END > END > END # Layer > LAYER > NAME "square" > TYPE POINT > FEATURE POINTS 10 10 END END > FEATURE POINTS 15 5 END END > METADATA > "wms_title" "Squares" > "wms_enable_request" "*" > "wms_layer_group" "/ST/squares" > END > STATUS on > CLASSGROUP "color" > CLASS > NAME "square-color" > GROUP "color" > STYLE > COLOR 0 0 255 > SIZE 15 > WIDTH 1 > SYMBOL "square" > END > END > CLASS > NAME "square-grey" > GROUP "grey" > STYLE > COLOR 100 100 100 > SIZE 15 > WIDTH 1 > SYMBOL "square" > END > END > END # Layer > END # Map File > > > From hosain.moh00 at gmail.com Fri May 29 04:18:48 2015 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Fri, 29 May 2015 15:48:48 +0430 Subject: [mapserver-users] spatial query Message-ID: Hello i want doing shortest path analysis on postgis and mapserver; how can i show the result spatial query? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gertjan at West.NL Fri May 29 06:57:04 2015 From: gertjan at West.NL (Gertjan van Oosten) Date: Fri, 29 May 2015 15:57:04 +0200 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field In-Reply-To: <6F331135492B944D90731CE93743D5681E01F9@FS-EX-DB102.fs.sachsen.de> References: <20150528125927.GF27882@West.NL> <5646ffdee5da448f98a70fc3cf50288e@C119S212VM017.msvyvi.vaha.local> <20150528130643.GG27882@West.NL> <6F331135492B944D90731CE93743D5681E01F9@FS-EX-DB102.fs.sachsen.de> Message-ID: <20150529135704.GT27882@West.NL> As quoted from "Eichner, Andreas - SID" : > And the implementation specification is also very imprecise about it: > > "The element is used to encode literal scalar and geometric values." > > So the schema does not restrict the 's value to be xsd:double > nor does the spec. FES 2.0 adds a "type" attribute and uses a XML > schema datatype as example. Therefore I guess it's intended that a > element holds content matching the datatype advertised by a > DescribeFeatureType request. In which case it boils down to: so what is actually advertised in the DescribeFeatureType response? There we see that a feature has an attribute called 'type'. In the end this will have to be a defined type with a defined representation, otherwise it will be anybody's guess what happens (e.g. if my client has a locale with decimal comma and the server has a locale with decimal point, who's to say what's the truth when I send the value 1,234 ?). If it's a standard type like xsd:double, its representation is defined in the W3C standard. Cheers, -- -- Gertjan van Oosten, Principal Consultant, West Consulting B.V. -- gertjan at West.NL +31 15 2191 600 www.west.nl From lars.schylberg at blixtmail.se Fri May 29 07:15:27 2015 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Fri, 29 May 2015 16:15:27 +0200 Subject: [mapserver-users] Named WMS styles - CLASSGROUP and GROUP In-Reply-To: <6F331135492B944D90731CE93743D5681E0216@FS-EX-DB102.fs.sachsen.de> References: <6F331135492B944D90731CE93743D5681E0216@FS-EX-DB102.fs.sachsen.de> Message-ID: Thanks for the input Andreas, Yes, your aproach works and might be part of the solution.? I think that You are right about that WMS styles are intended be used with LAYER.GROUP. What makes me wonder is the statement in the INSPIRE section of Mapserver manual about the root layer. http://mapserver.org/ogc/inspire.html#style-section-for-root-layer-and-possibly-existing-group-layers ----- The following method is implemented to support (customizable) style sections in the root layer: - use wms_style_name in the WEB.METADATA section to add a style section to the root layer - use wms_style_title to override the style title (optional) - use wms_style_legendurl_* to override width, heigth, format and href of the legendURL (optional) and possibly existing group layers: - use wms_group_style_name in the first corresponding LAYER.METADATAsection to add a style section to the group layer---- Is that only valid when INSPIRE support has been activated? Or could this be achieved with regular mapserver conf.? When I specify "wms_style_name" "grey" or "color" in the WEB.METADATA section it seems to accept that I have a root level style but it is not using it. But I can only specify one. Specifying wms_group_style_name in LAYER.METADATA seems to do nothing. So I have no way to specify the other possible style. I have tried both with Mapserver 6.4.1 and 7.0beta.? I have also tried both WMS 1.1.1 and 1.3.0. My real use case is 150 - 300 layers and 3-7 groups. Thanks again, Lars Schylberg -----Originalmeddelande----- > Fr?n: "Eichner, Andreas - SID" > Till: lars.schylberg at blixtmail.se, mapserver-users at lists.osgeo.org > Datum: 2015-05-29 10:51 > ?mne: AW: [mapserver-users] Named WMS styles - CLASSGROUP and GROUP > > Have you tried using GROUP "ST" instead of wms_layer_group metadata? This seems to be the intended way to create a named group that can be requested. There seems to be no way to declare styles at group (or root) level. Requesting the group "ST" with style "grey" or "color" works but clients might be confused if the capabilities advertise a style at each leaf layer but none at group level. > > Changing your mapfile to > > LAYER > ?????NAME "circle" > ?????GROUP "ST" > ?????METADATA > ??????????# "wms_layer_group" "/ST/circles" > ... > > LAYER > ?????NAME "square" > ?????GROUP "ST" > ?????METADATA > ??????????# "wms_layer_group" "/ST/squares" > > At least allows requesting the group "ST" with style color or grey: > ?????"...&layers=ST&styles=grey&..." or "...&layers=ST&styles=color&..." > and requesting each single leaf layer: > ?????"...&layers=circle,square&styles=color,grey&..." > > HTH > -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Fri May 29 07:52:36 2015 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 29 May 2015 14:52:36 +0000 Subject: [mapserver-users] Issue adding mapcache into AutoCAD Civil 3D via WMS Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA33AEC1056@swmail01.r8nssis.local> Hello, I am having trouble loading the MapCache WMS layers into AutoCAD Civil 3D. I set the projection to my county coordinates, which is what MapCache uses. Next I loaded the MapCache WMS server. Unfortunately I got an error: There was a problem adding data to Map. Failed to get bands data. The HTTP request could not be understood by the server due to malformed syntax. I was able to load other WMS layers in AutoCAD. In ArcMap, I initially received an error that there is no with suitable srs found for the layer. This issue was quickly resolved when I changed the coordinate system to county coordinates? Questions: If possible, What needs to be done so that I can load mapcache layers into AutoCAD Civil 3D? Do I just need to break down and cache the WGS 84 grid? Thank You Sincerely, Mark Volz -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri May 29 08:08:37 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 29 May 2015 12:08:37 -0300 Subject: [mapserver-users] Issue adding mapcache into AutoCAD Civil 3D via WMS In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA33AEC1056@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA33AEC1056@swmail01.r8nssis.local> Message-ID: <556880F5.1040002@gatewaygeomatics.com> Whenever I have problems with WMS or cache requests, I always start with the actual request (example: if QGIS has problems, either get the full WMS request through QGIS logs, or check the Apache logs on the server). Then I would paste that request in a browser window and see the actual response from the MapServer server. You might actually even paste the full WMS request here for the community to analyze. I bet that would help you diagnose your problem. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2015-05-29 11:52 AM, Mark Volz wrote: > Hello, > > I am having trouble loading the MapCache WMS layers into AutoCAD Civil > 3D. I set the projection to my county coordinates, which is what > MapCache uses. Next I loaded the MapCache WMS server. Unfortunately I > got an error: > > There was a problem adding data to Map. > > Failed to get bands data. > > The HTTP request could not be understood by the server due to malformed > syntax. > > I was able to load other WMS layers in AutoCAD. > > In ArcMap, I initially received an error that there is no with > suitable srs found for the layer. This issue was quickly resolved when > I changed the coordinate system to county coordinates? > > Questions: > > If possible, What needs to be done so that I can load mapcache layers > into AutoCAD Civil 3D? Do I just need to break down and cache the WGS > 84 grid? > > Thank You > > Sincerely, > > *Mark Volz* > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ben at ausvet.com.au Fri May 29 20:07:29 2015 From: ben at ausvet.com.au (Ben Madin) Date: Sat, 30 May 2015 11:07:29 +0800 Subject: [mapserver-users] Issue adding mapcache into AutoCAD Civil 3D via WMS In-Reply-To: <556880F5.1040002@gatewaygeomatics.com> References: <36CA828A36E29F45B7CF0A1766E5DFA33AEC1056@swmail01.r8nssis.local> <556880F5.1040002@gatewaygeomatics.com> Message-ID: <4FA93AFF-E807-4E8A-BD69-8E2CC58D1A6B@ausvet.com.au> FWIW, Firebug (Firefox add-in) or similar tools are invaluable for getting the request string if you are using openlayers. cheers Ben > On 2015-05-29, at 23:08 , Jeff McKenna wrote: > > Whenever I have problems with WMS or cache requests, I always start with the actual request (example: if QGIS has problems, either get the full WMS request through QGIS logs, or check the Apache logs on the server). > > Then I would paste that request in a browser window and see the actual response from the MapServer server. > > You might actually even paste the full WMS request here for the community to analyze. > > I bet that would help you diagnose your problem. > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2015-05-29 11:52 AM, Mark Volz wrote: >> Hello, >> >> I am having trouble loading the MapCache WMS layers into AutoCAD Civil >> 3D. I set the projection to my county coordinates, which is what >> MapCache uses. Next I loaded the MapCache WMS server. Unfortunately I >> got an error: >> >> There was a problem adding data to Map. >> >> Failed to get bands data. >> >> The HTTP request could not be understood by the server due to malformed >> syntax. >> >> I was able to load other WMS layers in AutoCAD. >> >> In ArcMap, I initially received an error that there is no with >> suitable srs found for the layer. This issue was quickly resolved when >> I changed the coordinate system to county coordinates? >> >> Questions: >> >> If possible, What needs to be done so that I can load mapcache layers >> into AutoCAD Civil 3D? Do I just need to break down and cache the WGS >> 84 grid? >> >> Thank You >> >> Sincerely, >> >> *Mark Volz* >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Ben Madin t : +61 8 6102 5535 m : +61 448 887 220 e : ben at ausvet.com.au AusVet Animal Health Services Western Australia AusVet's website: http://www.ausvet.com.au This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this email are the opinion of the writer only and are not endorsed by AusVet Animal Health Services unless expressly stated otherwise. Although AusVet uses virus scanning software we do not accept liability for viruses or similar in any attachments. Thanks for reading. From andy at squeakycode.net Sun May 31 06:13:12 2015 From: andy at squeakycode.net (Andy Colson) Date: Sun, 31 May 2015 07:13:12 -0600 Subject: [mapserver-users] Improving Mapserver speed for air photo services In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA33AEC0D3F@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA33AEC0D3F@swmail01.r8nssis.local> Message-ID: <556B08E8.3070202@squeakycode.net> Thanks Mark. Mind if I ask a few more questions? 1) Have you found jpeg encoded tif to be a fast vs mrsid/ecw? Does it even matter once you put the Mapcache in front? 2) How much drive space does your cache take compared to your imagery? Thanks again, -Andy PS: sorry if this double posts. On 05/28/2015 07:37 AM, Mark Volz wrote: > Hello, > > Andy Colson asked me about my interactive mapping setup and how I was able to get the air photos to run fast. I figure there may be a couple other people that might want to know what I did to improve the speed of my service at: http://geomoose.lyonco.org/geomoose2/geomoose.html#. Please note that this list is not exhaustive, nor am I an expert. So some people may want to add or refute some of this information. > > > *Use the same projection for everything. Don't make MapServer have to deal with projecting imagery or data to a different coordinate system. > *Use a map cache. Mapcache is integrated with some distributions of MapServer, but there are several out there each with their own advantages and disadvantages. > *Disable fractional zoom on your application. In addition make sure your application is set up to use the same scales, tile size, and tile origin (grid) as your map cache. If any of these don't match then your mapcache will need to perform extra work for each request. > *Search for "WMS Performance Shootout." They are starting to get old now, but they contain many tidbits on how to improve speed. > *You may want to look at http://www.mapserver.org/optimization/raster.html. This page mentions what format you should use, and how to create internal tiles. > *Use PROCESSING "OVERSAMPLE_RATIO=1". If I recall correctly MapServer uses an oversample ratio of 2.5 so it is sampling the raster at 180dpi to create a 72 dpi image. This is good for scientific applications, but it may be unnecessary for air photos. Just be warned that low oversample ratios can create grainer images. > > I think that by using a cache, making sure your application grid matches your cache, and configuring oversample_ratio=1 so MapServer doesn't need to do extra work will be more important than the actual server specs. What you need for a server really depends on more factors. Our server is "decent" now but we use to have an old GIS server that performed well with the above tips. > > > > Sincerely, > Mark Volz, GISP > Lyon County GIS Coordinator > > >> -----Original Message----- >> From: Andy Colson [mailto:andy at squeakycode.net] >> Sent: Wednesday, May 27, 2015 8:50 AM >> To: Mark Volz; Rahkonen Jukka (MML) >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] stretching imagery in MapServer >> >> Hi Mark. Two questions for you: >> >> 1) I know it might be a bunch of extra work, but I don't suppose you could post >> some before and after shots (or urls or whatever). I really have no idea what >> sort of change your talking about. >> >> 2) Holy freaking cow you have fast imagery. I don't suppose you could share >> some processing/hardware/setup secrets? >> >> Thanks >> >> -Andy >> >> >> On 5/26/2015 2:07 PM, Mark Volz wrote: >>> Jukka, (and others) >>> >>> Thank you for your reply. I think I figured out how lut works. If >>> you don't mind please check and make sure I have this correct: >>> >>> I can use ArcGIS to report the correct input and output values for a >>> n=2.5 standard deviation by going to >>> layers->symbology->stretch->histograms->Info window. Once I have >>> layers->symbology->stretch->histograms->those >>> values I can modify my map file to include for example: >>> >>> PROCESSING "LUT_1=73:0,226:255" #changes red band input of 0-73 to 0, >>> inputs of 226-255 to 255, inputs between 73-226 linearly interpolated. >>> >>> PROCESSING "LUT_2=60:0,199:255" #changes green band input of 0-60 to >>> 0, inputs of 199-255 to 255, inputs between 60-199 linearly interpolated. >>> >>> PROCESSING "LUT_3=35:0,155:255" #changes blue band input of 0-35 to 0, >>> inputs of 155-255 to 255, inputs between 35-155 linearly interpolated. >>> >>> P.S. >>> >>> Before I knew what the heck I was doing with LUT I noticed that I >>> could identify wet areas, and tree cover quite easily with the >>> following >>> combinations: >>> >>> PROCESSING "LUT=50:50,60:250,70:250" is a good way to identify tree >> cover. >>> >>> PROCESSING "LUT=50:50,60:250,70:70" is a good way to identify wet areas. >>> >>> Thank You >>> >>> Sincerely, >>> >>> *Mark Volz, GISP* >>> >>> *From:*Rahkonen Jukka (MML) >>> [mailto:jukka.rahkonen at maanmittauslaitos.fi] >>> *Sent:* Monday, May 25, 2015 9:18 AM >>> *To:* Mark Volz; mapserver-users at lists.osgeo.org >>> *Subject:* Re: stretching imagery in MapServer >>> >>> Hi, >>> >>> As far as I know automatic stretch by standard deviation is not >>> supported. You can do automatic min-max stretch with PROCESSING >>> "SCALE=AUTO". If your source data is uniform you may reach a good >>> result with manual scale settings or with PROCESSING "LUT= " >>> >>> >>> >>> -Jukka Rahkonen- >>> >>> Mark Volz wrote: >>> >>> Hello, >>> >>> I added our new Pictometry Air Photos on our mapping site at >>> http://geomoose.lyonco.org/geomoose2/geomoose.html. The air photos >>> seem somewhat washed out. In ArcGIS I was able to get a nicer looking >>> image by stretching the air photo using standard deviations. Can we >>> stretch imagery in MapServer? If not please let me know if you have a >>> comment regarding how I can improve the image quality. >>> >>> Thanks >>> >>> Sincerely, >>> >>> *Mark Volz, GISP* >>>