From geographika at gmail.com Sun Oct 2 06:23:26 2016 From: geographika at gmail.com (Seth G) Date: Sun, 2 Oct 2016 15:23:26 +0200 Subject: [mapserver-users] Updating MapCache on feature edits In-Reply-To: References: Message-ID: <0a438358-6ba7-2290-587e-3230056c8191@gmail.com> Hi list, I have a few MapServer layers based on data that can be edited at any time. In practice this usually happens in short bursts every month or so. The remaining time the layers would benefit greatly from using a tile cache. Are there any suggested methods on how to automatically purge/delete/change the cache when an edit happens when using MapServer and Mapcache? I see that GeoWebCache/Geoserver allows a GeoRSS feed to invalidate features http://geowebcache.org/docs/current/configuration/layers/georss.html The ows_updatesequence metadata parameter for a WMS layer looks like it could be used somehow (see http://mapserver.org/ogc/wms_server.html#web-object-metadata), but it seems that custom dimensions need to be requested by the client, and any Mapcache configurations would need Apache to be restarted. Any best practices, or solutions appreciated, Seth -- web:http://geographika.co.uk twitter: @geographika -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Tue Oct 4 06:44:27 2016 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Tue, 4 Oct 2016 13:44:27 +0000 Subject: [mapserver-users] Updating MapCache on feature edits In-Reply-To: <0a438358-6ba7-2290-587e-3230056c8191@gmail.com> References: <0a438358-6ba7-2290-587e-3230056c8191@gmail.com> Message-ID: <6F331135492B944D90731CE93743D56824100C@FS-EX-DB102.fs.sachsen.de> Seth, you can use OGR to retrieve the updated features and give it to mapcache_seed. See http://mapserver.org/mapcache/seed.html#optional-commandline-options-when-using-ogr-geos . The ows_updatesequence metadata signals changes in the metadata returned by a GetCapabilities request, i.e. when adding/removing layers, descriptions and the like. HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Im > Auftrag von Seth G > Gesendet: Sonntag, 2. Oktober 2016 15:23 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Updating MapCache on feature edits > > Hi list, > > I have a few MapServer layers based on data that can be edited at any > time. In practice this usually happens in short bursts every month or so. > The remaining time the layers would benefit greatly from using a tile > cache. > > Are there any suggested methods on how to automatically > purge/delete/change the cache when an edit happens when using MapServer > and Mapcache? > > I see that GeoWebCache/Geoserver allows a GeoRSS feed to invalidate > features > http://geowebcache.org/docs/current/configuration/layers/georss.html > > > The ows_updatesequence metadata parameter for a WMS layer looks like it > could be used somehow (see http://mapserver.org/ogc/wms_server.html#web- > object-metadata), but it seems that custom dimensions need to be requested > by the client, and any Mapcache configurations would need Apache to be > restarted. > > Any best practices, or solutions appreciated, > > Seth > > > -- > web: http://geographika.co.uk > twitter: @geographika > > From Robert.Vogt at rcis.com Tue Oct 4 08:05:17 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Tue, 4 Oct 2016 15:05:17 +0000 Subject: [mapserver-users] Mapserver speed/load test Message-ID: <6ee52f82d45441f981a5a28acd28f856@PDEXCH1301.corp.rcis.com> I'm curious if there have been any performance test performed with IIS vs. Apache. Currently I have used MS4W to install Mapserver using "Fast-cgi" however I am getting poor performance. Is there any benefit to using a IIS installation over Apache or vice versa as far a speed is concerned? -Bob From jukka.rahkonen at maanmittauslaitos.fi Tue Oct 4 08:39:06 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 4 Oct 2016 15:39:06 +0000 Subject: [mapserver-users] Mapserver speed/load test In-Reply-To: <6ee52f82d45441f981a5a28acd28f856@PDEXCH1301.corp.rcis.com> References: <6ee52f82d45441f981a5a28acd28f856@PDEXCH1301.corp.rcis.com> Message-ID: <13bea57d05724deab71a1a9e619c7d57@C119S212VM022.msvyvi.vaha.local> Hi, I would say that if web server is the slowest link in your rendering chain then you have optimized all the rest amazingly well. I am doubtful but I haven't done such comparison, though. - Jukka Rahkonen- ________________________________ L?hett?j?: Vogt, Robert (RCIS) L?hetetty: ?4.?10.?2016 18:26 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Mapserver speed/load test I'm curious if there have been any performance test performed with IIS vs. Apache. Currently I have used MS4W to install Mapserver using "Fast-cgi" however I am getting poor performance. Is there any benefit to using a IIS installation over Apache or vice versa as far a speed is concerned? -Bob _______________________________________________ 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 Mart.Reose at smit.ee Tue Oct 4 11:33:27 2016 From: Mart.Reose at smit.ee (=?utf-8?B?TcOkcnQgUmVvc2U=?=) Date: Tue, 4 Oct 2016 18:33:27 +0000 Subject: [mapserver-users] Mapserver speed/load test In-Reply-To: <6ee52f82d45441f981a5a28acd28f856@PDEXCH1301.corp.rcis.com> References: <6ee52f82d45441f981a5a28acd28f856@PDEXCH1301.corp.rcis.com> Message-ID: <2841D7977834174EBD3BCC102C914FD50116A386FA@EX-MB1.meie.politsei.ee> Hey! I would recommend running mapserver under linux. I have found that the best performance is with mapserver with fastcgi using unix socket and nginx reading directly from that socket. Nginx is good as it has a smaller memory footprint than apache and thus is more capable under heavy loads. Usually best performance gain is "caching" the images. I use mapproxy (mapproxy + gunicorn + eventlet + unix socket + nginx). Some people recommend mapcache but I havent found time to try it out yet. Ofcourse with dynamic maps caching might not be suitable. Depends on your use case. Ofcourse you can optimize your data source, if using postgis, then maybe setting up some kind of cluster or connection pooling. And if all that is not your thing, then optimize your maps.. http://www.mapserver.org/optimization/index.html That might be the easiest of them all, depending on your use case. And no matter what you try, ALWAYS performance test! Before I used jmeter, but am looking into locust.io. You should not measure performance with your gut. Use numbers. Cheers! M?rt Reose Leading Systems Administrator of Server Services Department IT and Development Centre. Ministry of Interior, Estonia -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vogt, Robert (RCIS) Sent: Tuesday, October 04, 2016 6:05 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver speed/load test I'm curious if there have been any performance test performed with IIS vs. Apache. Currently I have used MS4W to install Mapserver using "Fast-cgi" however I am getting poor performance. Is there any benefit to using a IIS installation over Apache or vice versa as far a speed is concerned? -Bob _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From alexandre.leroux at canada.ca Wed Oct 5 08:45:46 2016 From: alexandre.leroux at canada.ca (Leroux, Alexandre (EC)) Date: Wed, 5 Oct 2016 15:45:46 +0000 Subject: [mapserver-users] Mapserver speed/load test References: <6ee52f82d45441f981a5a28acd28f856@PDEXCH1301.corp.rcis.com> <13bea57d05724deab71a1a9e619c7d57@C119S212VM022.msvyvi.vaha.local> Message-ID: Hi all, On this topic, I remember seeing this FOSS4G 2016 presentation named 2016 Stress Testing and Analysing MapServer Performance (http://ftp5.gwdg.de/pub/misc/openstreetmap/FOSS4G-2016/foss4g-2016-1107-stress_testing_and_analysing_mapserver_performance-hd.mp4 ). Surprisingly, in this speaker's experience, MapServer has been much faster on Windows than on Linux, see his talk / slides that begin slightly after 15:20. I'm really no expert on the topic, but maybe this info can serve in this discussion (of course, configuration/fine tuning is probably crucial to performances)? Hope this is useful -- Alex Alexandre Leroux, M.Sc., ing. Senior geospatial specialist / Sp?cialiste principal en g?omatique Data, Performance and Standards Section / Section des Donn?es, performance et standards Meteorological Service of Canada / Service m?t?orologique du Canada Environment and Climate Change Canada / Environnement et Changement climatique Canada alexandre.leroux at canada.ca - (514) 421-5024 On 10/04/2016 11:39 AM, Rahkonen Jukka (MML) wrote: Hi, I would say that if web server is the slowest link in your rendering chain then you have optimized all the rest amazingly well. I am doubtful but I haven't done such comparison, though. - Jukka Rahkonen- ________________________________ L?hett?j?: Vogt, Robert (RCIS) L?hetetty: ?4.?10.?2016 18:26 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Mapserver speed/load test I'm curious if there have been any performance test performed with IIS vs. Apache. Currently I have used MS4W to install Mapserver using "Fast-cgi" however I am getting poor performance. Is there any benefit to using a IIS installation over Apache or vice versa as far a speed is concerned? -Bob _______________________________________________ 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 jmckenna at gatewaygeomatics.com Wed Oct 5 09:00:44 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 5 Oct 2016 13:00:44 -0300 Subject: [mapserver-users] Mapserver speed/load test In-Reply-To: <20161005154600.0B4AE611F8A3@lists.osgeo.org> References: <6ee52f82d45441f981a5a28acd28f856@PDEXCH1301.corp.rcis.com> <13bea57d05724deab71a1a9e619c7d57@C119S212VM022.msvyvi.vaha.local> <20161005154600.0B4AE611F8A3@lists.osgeo.org> Message-ID: <5bac1ede-fccd-f1d4-4cf0-4c6dc23f0458@gatewaygeomatics.com> On 2016-10-05 12:45 PM, Leroux, Alexandre (EC) wrote: > Hi all, > > On this topic, I remember seeing this FOSS4G 2016 presentation named > 2016 Stress Testing and Analysing MapServer Performance > > (http://ftp5.gwdg.de/pub/misc/openstreetmap/FOSS4G-2016/foss4g-2016-1107-stress_testing_and_analysing_mapserver_performance-hd.mp4 > ). Surprisingly, in this speaker's experience, MapServer has been much > faster on Windows than on Linux, see his talk / slides that begin > slightly after 15:20. I'm really no expert on the topic, but maybe this > info can serve in this discussion (of course, configuration/fine tuning > is probably crucial to performances)? > Yes thanks for mentioning that presentation Alex. I also confirmed with Seth (the presenter) that they run MS4W on their public-facing servers. Thank you to Seth for sharing those results! -jeff -- Jeff McKenna Developers of MS4W http://www.gatewaygeomatics.com/ From Mart.Reose at smit.ee Wed Oct 5 11:29:06 2016 From: Mart.Reose at smit.ee (=?utf-8?B?TcOkcnQgUmVvc2U=?=) Date: Wed, 5 Oct 2016 18:29:06 +0000 Subject: [mapserver-users] Mapserver speed/load test In-Reply-To: <5bac1ede-fccd-f1d4-4cf0-4c6dc23f0458@gatewaygeomatics.com> References: <6ee52f82d45441f981a5a28acd28f856@PDEXCH1301.corp.rcis.com> <13bea57d05724deab71a1a9e619c7d57@C119S212VM022.msvyvi.vaha.local> <20161005154600.0B4AE611F8A3@lists.osgeo.org> <5bac1ede-fccd-f1d4-4cf0-4c6dc23f0458@gatewaygeomatics.com> Message-ID: <2841D7977834174EBD3BCC102C914FD50116A3AEC2@EX-MB1.meie.politsei.ee> Age old battle of windows vs linux... That presentation was really good in most aspects. I was there and thats where I found about locust. Thumbs up! Though, it was really not mapserver vs linux, more like IIS vs Apache. And yes, Alexandre is most correct, so much is about configuration. Quick share of my test about 3 years ago. Do not have original data but some presentation had snippets of it. Requests are taken from real access logs. Always the same combo of different extents and layers. Flushing cashes and restarting systems between tests etc... Apache (original setup without much tuning) vs nginx with unix sockets and some other tunings. Avg (46 requests per second): Apache: 147ms Nginx: 96ms Avg (73 requests per second): A: 1400ms N: 102ms In the end, use what you are comfortable with. Remember that every change must be tested and tested again. Cheers! M?rt -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Wednesday, October 05, 2016 7:01 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver speed/load test On 2016-10-05 12:45 PM, Leroux, Alexandre (EC) wrote: > Hi all, > > On this topic, I remember seeing this FOSS4G 2016 presentation named > 2016 Stress Testing and Analysing MapServer Performance > 07-stress_testing_and_analysing_mapserver_performance-hd.mp4> > (http://ftp5.gwdg.de/pub/misc/openstreetmap/FOSS4G-2016/foss4g-2016-11 > 07-stress_testing_and_analysing_mapserver_performance-hd.mp4 > ). Surprisingly, in this speaker's experience, MapServer has been much > faster on Windows than on Linux, see his talk / slides that begin > slightly after 15:20. I'm really no expert on the topic, but maybe > this info can serve in this discussion (of course, configuration/fine > tuning is probably crucial to performances)? > Yes thanks for mentioning that presentation Alex. I also confirmed with Seth (the presenter) that they run MS4W on their public-facing servers. Thank you to Seth for sharing those results! -jeff -- Jeff McKenna Developers of MS4W 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 Wed Oct 5 12:38:14 2016 From: geographika at gmail.com (Seth G) Date: Wed, 5 Oct 2016 21:38:14 +0200 Subject: [mapserver-users] Mapserver speed/load test In-Reply-To: <2841D7977834174EBD3BCC102C914FD50116A3AEC2@EX-MB1.meie.politsei.ee> References: <6ee52f82d45441f981a5a28acd28f856@PDEXCH1301.corp.rcis.com> <13bea57d05724deab71a1a9e619c7d57@C119S212VM022.msvyvi.vaha.local> <20161005154600.0B4AE611F8A3@lists.osgeo.org> <5bac1ede-fccd-f1d4-4cf0-4c6dc23f0458@gatewaygeomatics.com> <2841D7977834174EBD3BCC102C914FD50116A3AEC2@EX-MB1.meie.politsei.ee> Message-ID: Hi all, I gave the presentation in Bonn - I've uploaded the slides to http://www.slideshare.net/CompassInformatics/stress-testing-and-analysing-mapserver-performance I was testing performance for my own use case, to see if moving to Linux would give our system a performance boost. All our data comes from MS SQL Server, and using the FreeTDS driver on Linux compared to the native MSSQL driver on Windows appears to cause our setup to run slower overall on Linux. There should be no conclusion that Windows is faster than Linux for other data sources, however it does appear that there is no huge difference between the 2 operating systems that there appeared to be several years ago (maybe due to improvements in the MSVC runtimes). I'd recommend people to test their own setups and data, as any generic conclusions are almost impossible to make. I found the Locust load testing tool to be easy to work with as a Python developer. A sample task set can be seen at https://gist.github.com/geographika/55b8f4c6ae721ce8f7986c3da790bcf6 Regards, Seth On 05/10/2016 20:29, M?rt Reose wrote: > Age old battle of windows vs linux... > > That presentation was really good in most aspects. I was there and thats where I found about locust. Thumbs up! > > Though, it was really not mapserver vs linux, more like IIS vs Apache. > > And yes, Alexandre is most correct, so much is about configuration. > > Quick share of my test about 3 years ago. Do not have original data but some presentation had snippets of it. > Requests are taken from real access logs. Always the same combo of different extents and layers. Flushing cashes and restarting systems between tests etc... > > Apache (original setup without much tuning) vs nginx with unix sockets and some other tunings. > > Avg (46 requests per second): > Apache: 147ms > Nginx: 96ms > > Avg (73 requests per second): > A: 1400ms > N: 102ms > > In the end, use what you are comfortable with. Remember that every change must be tested and tested again. > > > Cheers! > M?rt > > > -----Original Message----- > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: Wednesday, October 05, 2016 7:01 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Mapserver speed/load test > > On 2016-10-05 12:45 PM, Leroux, Alexandre (EC) wrote: >> Hi all, >> >> On this topic, I remember seeing this FOSS4G 2016 presentation named >> 2016 Stress Testing and Analysing MapServer Performance >> > 07-stress_testing_and_analysing_mapserver_performance-hd.mp4> >> (http://ftp5.gwdg.de/pub/misc/openstreetmap/FOSS4G-2016/foss4g-2016-11 >> 07-stress_testing_and_analysing_mapserver_performance-hd.mp4 >> ). Surprisingly, in this speaker's experience, MapServer has been much >> faster on Windows than on Linux, see his talk / slides that begin >> slightly after 15:20. I'm really no expert on the topic, but maybe >> this info can serve in this discussion (of course, configuration/fine >> tuning is probably crucial to performances)? >> > Yes thanks for mentioning that presentation Alex. I also confirmed with Seth (the presenter) that they run MS4W on their public-facing servers. > > Thank you to Seth for sharing those results! > > -jeff > > > -- > Jeff McKenna > Developers of MS4W > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From geographika at gmail.com Wed Oct 5 13:06:38 2016 From: geographika at gmail.com (Seth G) Date: Wed, 5 Oct 2016 22:06:38 +0200 Subject: [mapserver-users] Updating MapCache on feature edits In-Reply-To: <6F331135492B944D90731CE93743D56824100C@FS-EX-DB102.fs.sachsen.de> References: <0a438358-6ba7-2290-587e-3230056c8191@gmail.com> <6F331135492B944D90731CE93743D56824100C@FS-EX-DB102.fs.sachsen.de> Message-ID: Thanks Andreas for the OGR suggestion and clarification on ows_updatesequence. There was a tantalising sentence in https://agile-online.org/Conference_Paper/CDs/agile_2012/proceedings/papers/Paper_Loechel_Caching_techniques_for_high-performance_Web_Map_Services_2012.pdf - with no space or links to the techniques to solve the problem! " The purge effect leads to the problem, that a cache or mapserver might respond outdated maps. This is assumed to be critical in two cases: 1. Manually changing data: The map has to reflect the change immediately; otherwise users get confused and try to perform the change again. 2. Automatically changing data: public map layers with up to date information, like traffic conditions or weather data. There are special techniques to solve this problem, but these cannot be explained in detail here due to space limitations." I'm rethinking the design of my application to workaround it, and can think of 3 possible options: 1. Cache higher zoom levels, and switch to dynamic WMS at higher scales as edits are normally made when zoomed in 2. The application has a log in function, so I could switch to dynamic for users with edit-rights, and use a cache for read-only users (which would update nightly). This would solve the issue where a user makes an edit and the layer doesn't change. 3. Try and edit the XML MapCache config file and update a dimension to cause a new cache to be generated following an edit. This approach would probably lead to race conditions, and would need to be reloaded in Apache. Regards, Seth On 04/10/2016 15:44, Eichner, Andreas - SID wrote: > Seth, > > you can use OGR to retrieve the updated features and give it to mapcache_seed. > See http://mapserver.org/mapcache/seed.html#optional-commandline-options-when-using-ogr-geos . > > The ows_updatesequence metadata signals changes in the metadata returned by a GetCapabilities request, i.e. when adding/removing layers, descriptions and the like. > > HTH > >> -----Urspr?ngliche Nachricht----- >> Von: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Im >> Auftrag von Seth G >> Gesendet: Sonntag, 2. Oktober 2016 15:23 >> An: mapserver-users at lists.osgeo.org >> Betreff: [mapserver-users] Updating MapCache on feature edits >> >> Hi list, >> >> I have a few MapServer layers based on data that can be edited at any >> time. In practice this usually happens in short bursts every month or so. >> The remaining time the layers would benefit greatly from using a tile >> cache. >> >> Are there any suggested methods on how to automatically >> purge/delete/change the cache when an edit happens when using MapServer >> and Mapcache? >> >> I see that GeoWebCache/Geoserver allows a GeoRSS feed to invalidate >> features >> http://geowebcache.org/docs/current/configuration/layers/georss.html >> >> >> The ows_updatesequence metadata parameter for a WMS layer looks like it >> could be used somehow (see http://mapserver.org/ogc/wms_server.html#web- >> object-metadata), but it seems that custom dimensions need to be requested >> by the client, and any Mapcache configurations would need Apache to be >> restarted. >> >> Any best practices, or solutions appreciated, >> >> Seth >> >> >> -- >> web: http://geographika.co.uk >> twitter: @geographika >> >> From aperi2007 at gmail.com Thu Oct 6 03:43:32 2016 From: aperi2007 at gmail.com (Andrea Peri) Date: Thu, 6 Oct 2016 12:43:32 +0200 Subject: [mapserver-users] Retrieve the featureid info in a GetFeatureInfo GML response Message-ID: HI, I need to add to the GML 2 output of a GetFeatureInfo response the "featureid" standard attribute. I try to use both: "ows_featureid" "field1" "gml_featureid" "field1" But they seem to work only for WFS response not for the WMS GetFeatureInfo response. Also my datasource is a spatialite so I set this output: OUTPUTFORMAT NAME "OGRGML" MIMETYPE "text/gml" DRIVER "OGR/GML" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=multipart" FORMATOPTION "FILENAME=result.dat" FORMATOPTION "DSCO:FORMAT=GML2" END And in the metadata section: "wms_feature_info_mime_type" "text/gml,text/html,text/plain" Any hint is welcome. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From havard.tveite at nmbu.no Thu Oct 6 05:08:33 2016 From: havard.tveite at nmbu.no (Havard Tveite) Date: Thu, 6 Oct 2016 14:08:33 +0200 Subject: [mapserver-users] using MINSIZE and MAXSIZE with ANCHORPOINT In-Reply-To: References: Message-ID: Hi, I can't see any mistakes. I tried to test this on with 6.4.2 and 7.0.1 (sorry I have not installed 7.0.2 yet), and am not able to reproduce the behaviour that you describe. ANCHORPOINT seems to work as expected. Which Mapserver version are you using? I have run it using shp2img -m I attach the resulting images (the last number in the file name reflects the symbolscaledenominator that has been used). Here is my complete mapfile: MAP SIZE 100 100 EXTENT 0 0 100 100 SYMBOL NAME "arrowv" TYPE vector ANCHORPOINT 0.5 1 POINTS 0 2 1 0 2 2 -99 -99 1 0 1 3 END END SYMBOL NAME "circle" TYPE ellipse POINTS 1 1 END FILLED TRUE END LAYER NAME "arrows" TYPE POINT STATUS DEFAULT PROCESSING "Items=angle" #SYMBOLSCALEDENOM 20000 #SYMBOLSCALEDENOM 10000 SYMBOLSCALEDENOM 4000 FEATURE POINTS 50 20 END # Points ITEMS "90" END # Feature FEATURE POINTS 10 90 END # Points ITEMS "-135" END # Feature CLASS NAME "vector" STYLE SYMBOL "arrowv" MINSIZE 5 SIZE 10 MAXSIZE 40 MINWIDTH 1 MAXWIDTH 1 COLOR 0 0 255 ANGLE [angle] END # STYLE STYLE SYMBOL "circle" COLOR 255 0 0 MINSIZE 3 SIZE 3 MAXSIZE 3 END # STYLE END #class END #layer END # Map file On 23. sep. 2016 19:20, Richard Greenwood wrote: > It seems like my symbol's ANCHORPOINT is not being scaled when my style > definition uses MINSIZE, MAXSIZE and MAXSCALEDENOM. > > Here's my symbol definition: > > SYMBOL > NAME "arrowv" > TYPE vector > ANCHORPOINT 0.5 1 > POINTS > 0 2 > 1 0 > 2 2 > -99 -99 > 1 0 > 1 3 > END > END > > and my style definition: > > STYLE > SYMBOL "arrowv" > SIZE 40 > COLOR 0 0 255 > ANGLE [angle] > END > > Which produces what I want: > > (?The red dot is the map x, y insertion point) > but when I add SYMBOLSCALEDENOM and change my symbol definition to: > > STYLE > SYMBOL "arrowv" > MINSIZE 15 > MAXSIZE 40 > COLOR 0 0 255 > MINWIDTH 1 > MAXWIDTH 1 > ANGLE [angle] > END > > I get: > > The ANCHORPOINT is not scaled along with the symbol. A little hard to > see in these two, but the ANCHORPOINT is being used, just not scaled: > > ANCHORPOINT 0 0 > > ANCHORPOINT 1 1 > > ? > ?Am I doing something wrong? > > Thanks, > Rich > > -- > 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 > -- H?vard Tveite Department of Mathematical Sciences and Technology, NMBU Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 67231548 Fax: +47 64965401 http://www.nmbu.no/imt/ -------------- next part -------------- A non-text attachment was scrubbed... Name: anchorpointscale7_20000.png Type: image/png Size: 848 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: anchorpointscale6_20000.png Type: image/png Size: 848 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: anchorpointscale7_4000.png Type: image/png Size: 659 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: anchorpointscale6_4000.png Type: image/png Size: 659 bytes Desc: not available URL: From aperi2007 at gmail.com Thu Oct 6 05:42:57 2016 From: aperi2007 at gmail.com (Andrea Peri) Date: Thu, 6 Oct 2016 14:42:57 +0200 Subject: [mapserver-users] Retrieve the featureid info in a GetFeatureInfo GML response In-Reply-To: References: Message-ID: I resolved defining an alias named "featureid". "gml_msFID_alias" "featureid" "ows_msFID_alias" "featureid" Regards, A. 2016-10-06 12:43 GMT+02:00 Andrea Peri : > HI, > I need to add to the GML 2 output of a GetFeatureInfo response the > "featureid" standard attribute. > > I try to use both: > > "ows_featureid" "field1" > "gml_featureid" "field1" > > But they seem to work only for WFS response not for the WMS > GetFeatureInfo response. > > Also my datasource is a spatialite so I set this output: > > OUTPUTFORMAT > NAME "OGRGML" > MIMETYPE "text/gml" > DRIVER "OGR/GML" > FORMATOPTION "STORAGE=filesystem" > FORMATOPTION "FORM=multipart" > FORMATOPTION "FILENAME=result.dat" > FORMATOPTION "DSCO:FORMAT=GML2" > END > > And in the metadata section: > > "wms_feature_info_mime_type" "text/gml,text/html,text/plain" > > > > Any hint is welcome. > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From richard.greenwood at gmail.com Sun Oct 9 07:39:41 2016 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sun, 9 Oct 2016 08:39:41 -0600 Subject: [mapserver-users] using MINSIZE and MAXSIZE with ANCHORPOINT In-Reply-To: References: Message-ID: Hello Havard, Thank you so much for taking the time to create such a great example. It helped me find my problem. I was missing SIZE. When I specified MINSIZE and MAXSIZE I had left out SIZE. I would not have found my mistake without your help, so thank you very much. Best regards, Rich On Thu, Oct 6, 2016 at 6:08 AM, Havard Tveite wrote: > Hi, > > I can't see any mistakes. > > I tried to test this on with 6.4.2 and 7.0.1 (sorry I have not > installed 7.0.2 yet), and am not able to reproduce the behaviour > that you describe. ANCHORPOINT seems to work as expected. > Which Mapserver version are you using? > > I have run it using shp2img -m > > I attach the resulting images (the last number in the file name > reflects the symbolscaledenominator that has been used). > > Here is my complete mapfile: > > MAP > SIZE 100 100 > EXTENT 0 0 100 100 > SYMBOL > NAME "arrowv" > TYPE vector > ANCHORPOINT 0.5 1 > POINTS > 0 2 > 1 0 > 2 2 > -99 -99 > 1 0 > 1 3 > END > END > SYMBOL > NAME "circle" > TYPE ellipse > POINTS > 1 1 > END > FILLED TRUE > END > LAYER > NAME "arrows" > TYPE POINT > STATUS DEFAULT > PROCESSING "Items=angle" > #SYMBOLSCALEDENOM 20000 > #SYMBOLSCALEDENOM 10000 > SYMBOLSCALEDENOM 4000 > FEATURE > POINTS > 50 20 > END # Points > ITEMS "90" > END # Feature > FEATURE > POINTS > 10 90 > END # Points > ITEMS "-135" > END # Feature > CLASS > NAME "vector" > STYLE > SYMBOL "arrowv" > MINSIZE 5 > SIZE 10 > MAXSIZE 40 > MINWIDTH 1 > MAXWIDTH 1 > COLOR 0 0 255 > ANGLE [angle] > END # STYLE > STYLE > SYMBOL "circle" > COLOR 255 0 0 > MINSIZE 3 > SIZE 3 > MAXSIZE 3 > END # STYLE > END #class > END #layer > END # Map file > > > On 23. sep. 2016 19:20, Richard Greenwood wrote: > >> It seems like my symbol's ANCHORPOINT is not being scaled when my style >> definition uses MINSIZE, MAXSIZE and MAXSCALEDENOM. >> >> Here's my symbol definition: >> >> SYMBOL >> NAME "arrowv" >> TYPE vector >> ANCHORPOINT 0.5 1 >> POINTS >> 0 2 >> 1 0 >> 2 2 >> -99 -99 >> 1 0 >> 1 3 >> END >> END >> >> and my style definition: >> >> STYLE >> SYMBOL "arrowv" >> SIZE 40 >> COLOR 0 0 255 >> ANGLE [angle] >> END >> >> Which produces what I want: >> >> (?The red dot is the map x, y insertion point) >> but when I add SYMBOLSCALEDENOM and change my symbol definition to: >> >> STYLE >> SYMBOL "arrowv" >> MINSIZE 15 >> MAXSIZE 40 >> COLOR 0 0 255 >> MINWIDTH 1 >> MAXWIDTH 1 >> ANGLE [angle] >> END >> >> I get: >> >> The ANCHORPOINT is not scaled along with the symbol. A little hard to >> see in these two, but the ANCHORPOINT is being used, just not scaled: >> >> ANCHORPOINT 0 0 >> >> ANCHORPOINT 1 1 >> >> ? >> ?Am I doing something wrong? >> >> Thanks, >> Rich >> >> -- >> 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 >> >> > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, NMBU > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > Phone: +47 67231548 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave at phased.co.uk Mon Oct 10 08:58:13 2016 From: dave at phased.co.uk (Dave Barter) Date: Mon, 10 Oct 2016 16:58:13 +0100 Subject: [mapserver-users] Single image mapfile Message-ID: <2FC6EC61-D5C6-48FD-AB13-F53DFE31DD17@phased.co.uk> Would this be feasible in a mapfile alone? I pass in a url with a feature_id in it. Say:- [URL TO MAP FILE]?feature_id=124 The map file uses a postgres query to retrieve the feature_id?s geometry as a point and then clips a raster layer to a kilometre bounding box around the point. A single jpg/tif/png would be returned with the point marked in the correct position on the raster This url could then be used on a webpage to show a small map snippet for the feature?s location. Dave Barter dave at phased.co.uk @citizenfishy www.phased.co.uk From Steve.Lime at state.mn.us Mon Oct 10 11:58:06 2016 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 10 Oct 2016 18:58:06 +0000 Subject: [mapserver-users] Single image mapfile In-Reply-To: <2FC6EC61-D5C6-48FD-AB13-F53DFE31DD17@phased.co.uk> References: <2FC6EC61-D5C6-48FD-AB13-F53DFE31DD17@phased.co.uk> Message-ID: It is possible but it's a two-step process within MapServer. It looks like so (I think): MAP EXTENT [bbox of whole dataset] LAYER NAME 'myraster' TYPE RASTER STATUS OFF ... stuff to draw the raster ... END LAYER NAME 'myfeature' TYPE QUERY STATUS OFF CONNTECTIONTYPE POSTGIS CONNECTION ... DATA 'shape FROM (SELECT * FROM myfeatures) as foo USING UNIQUE feature_id' VALIDATION 'qstring' '^[0-9]{1,5}$' END TEMPLATE 'http://your_base_url_for_mapserver?mode=map&map=[map]&layer=myraster&mapext=[shpext expand="1000" escape="url"]' END END To make a map you'd issue a query against the myfeature layer. http://your_base_url_for_mapserver?map=yourmapfile.map&mode=itemquery&qlayer=myfeature&qitem=feature_id&qstring=123 The query does an item query against the myfeature where feature_id=123. The validation block allows you to limit values for the feature_id. The TEMPLATE then determines where MapServer should redirect the request based on the selected feature ? this gets you the right map. The shpext tag will take the point geometry extent (minx=maxx and miny=maxy) and then expands it by 1000 map units before returning the string as a space delimited (and escaped) extent. I've used this strategy before and it works well... Steve -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dave Barter Sent: Monday, October 10, 2016 10:58 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Single image mapfile Would this be feasible in a mapfile alone? I pass in a url with a feature_id in it. Say:- [URL TO MAP FILE]?feature_id=124 The map file uses a postgres query to retrieve the feature_id?s geometry as a point and then clips a raster layer to a kilometre bounding box around the point. A single jpg/tif/png would be returned with the point marked in the correct position on the raster This url could then be used on a webpage to show a small map snippet for the feature?s location. Dave Barter dave at phased.co.uk @citizenfishy www.phased.co.uk _______________________________________________ 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 bob.basques at ci.stpaul.mn.us Tue Oct 11 11:27:47 2016 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 11 Oct 2016 18:27:47 +0000 Subject: [mapserver-users] Over-riding the extents based on SQL query. Message-ID: <07070CD9-0B6D-4A1F-97F2-F75D9520ABEE@ci.stpaul.mn.us> All, I have a mechanism to build these for each day of the week: https://www.dropbox.com/s/4hg38jqg0jd9otg/Wed.webm?dl=0 This is out Public Works fleet GPS trails for the day. I build them by generating a single image each minute, and then assemble them into a video each night. The extents is currently hardcoded into query. If you notice at the 25 and 37 sec marks into the video that a trail goes off screen (out of the City limits) to the north and back again. I want to be able to expand the view to include those trails that go outside of the predefined City limits and then shrink the extents back again when they come back into the City. I can write the Query easy enough with a CASE statement and use the same predefined EXTENT, but how do I make the SQL be the primary mechanism for defining the EXTENTS of the image returned, I guess this is related to a ?zoom-to" function of sorts? I think I may need to do this as a middle step (with a wrapper) in each images creation. I?m just looking for a way to run this with a MAPFILE only if possible. Thoughts? bobb The trouble with the rat race is that even if you win, you?re still a rat. ?Lily Tomlin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Oct 11 12:05:18 2016 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 11 Oct 2016 19:05:18 +0000 Subject: [mapserver-users] Over-riding the extents based on SQL query. In-Reply-To: <07070CD9-0B6D-4A1F-97F2-F75D9520ABEE@ci.stpaul.mn.us> References: <07070CD9-0B6D-4A1F-97F2-F75D9520ABEE@ci.stpaul.mn.us> Message-ID: Bob: See the ?single image mapfile? thread for an example of how this might be done with a combination of query and map requests chained together. --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Tuesday, October 11, 2016 1:28 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Over-riding the extents based on SQL query. All, I have a mechanism to build these for each day of the week: https://www.dropbox.com/s/4hg38jqg0jd9otg/Wed.webm?dl=0 This is out Public Works fleet GPS trails for the day. I build them by generating a single image each minute, and then assemble them into a video each night. The extents is currently hardcoded into query. If you notice at the 25 and 37 sec marks into the video that a trail goes off screen (out of the City limits) to the north and back again. I want to be able to expand the view to include those trails that go outside of the predefined City limits and then shrink the extents back again when they come back into the City. I can write the Query easy enough with a CASE statement and use the same predefined EXTENT, but how do I make the SQL be the primary mechanism for defining the EXTENTS of the image returned, I guess this is related to a ?zoom-to" function of sorts? I think I may need to do this as a middle step (with a wrapper) in each images creation. I?m just looking for a way to run this with a MAPFILE only if possible. Thoughts? bobb The trouble with the rat race is that even if you win, you?re still a rat. ?Lily Tomlin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Vogt at rcis.com Thu Oct 13 07:12:27 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Thu, 13 Oct 2016 14:12:27 +0000 Subject: [mapserver-users] MapServer IIS7 Message-ID: <6f390da98f1042f28164a875236ef713@PDEXCH1301.corp.rcis.com> Good morning, I originally set up MapServer with WS4W and Apache server...I now have a requirement to put this on the same domain as our application which runs in IIS7. I have created the site and pointed my application at it and the results are mixed... Map files that are pointed at lizardtech for their source are working but map files that are pointed at SQL for their source are giving a 502(bad gateway) error. All map files worked when served through Apache, has anyone run into this or know what I should look at to fix it? Your help is greatly appreciated!! ******************************************* ******** Map File *************************** MAP IMAGETYPE PNG24 CONFIG "PROJ_LIB" "E:/RCIS/Web/MapServerDlls/projlib" SIZE 256 256 FONTSET "E:/RCIS/Web/MapServerDlls/content/fontset.txt" IMAGECOLOR 255 255 255 TRANSPARENT ON PROJECTION "init=epsg:4326" END WEB METADATA "wms_title" "sections" "wms_enable_request" "*" END END LAYER NAME "States" TYPE POLYGON STATUS ON LABELCACHE ON PROCESSING 'LABEL_NO_CLIP=1' CONNECTIONTYPE PLUGIN PLUGIN "msplugin_mssql2008.dll" CONNECTION "OurConnectionString" DATA "shape(geography),ST_NAME_MC from NATIONALDB.sde.STATES USING INDEX STATES_SIDX USING UNIQUE STATES_ID USING SRID=4269" LABELITEM "ST_NAME_MC" PROCESSING "CLOSE_CONNECTION=DEFER" CLASS STYLE OUTLINECOLOR 000 153 000 WIDTH 3 END LABEL COLOR 000 153 000 TYPE TRUETYPE FONT Arial SIZE 12 ANTIALIAS FALSE POSITION AUTO PARTIALS FALSE END END PROJECTION "init=epsg:4326" END END END From Robert.Vogt at rcis.com Thu Oct 13 07:18:47 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Thu, 13 Oct 2016 14:18:47 +0000 Subject: [mapserver-users] MapServer IIS7 In-Reply-To: <6f390da98f1042f28164a875236ef713@PDEXCH1301.corp.rcis.com> References: <6f390da98f1042f28164a875236ef713@PDEXCH1301.corp.rcis.com> Message-ID: <2add369a07094eb6871b93f78fe7e0af@PDEXCH1301.corp.rcis.com> This is the full error... 502 - Web server received an invalid response while acting as a gateway or proxy server. There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server. -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vogt, Robert (RCIS) Sent: Thursday, October 13, 2016 10:12 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer IIS7 Good morning, I originally set up MapServer with WS4W and Apache server...I now have a requirement to put this on the same domain as our application which runs in IIS7. I have created the site and pointed my application at it and the results are mixed... Map files that are pointed at lizardtech for their source are working but map files that are pointed at SQL for their source are giving a 502(bad gateway) error. All map files worked when served through Apache, has anyone run into this or know what I should look at to fix it? Your help is greatly appreciated!! ******************************************* ******** Map File *************************** MAP IMAGETYPE PNG24 CONFIG "PROJ_LIB" "E:/RCIS/Web/MapServerDlls/projlib" SIZE 256 256 FONTSET "E:/RCIS/Web/MapServerDlls/content/fontset.txt" IMAGECOLOR 255 255 255 TRANSPARENT ON PROJECTION "init=epsg:4326" END WEB METADATA "wms_title" "sections" "wms_enable_request" "*" END END LAYER NAME "States" TYPE POLYGON STATUS ON LABELCACHE ON PROCESSING 'LABEL_NO_CLIP=1' CONNECTIONTYPE PLUGIN PLUGIN "msplugin_mssql2008.dll" CONNECTION "OurConnectionString" DATA "shape(geography),ST_NAME_MC from NATIONALDB.sde.STATES USING INDEX STATES_SIDX USING UNIQUE STATES_ID USING SRID=4269" LABELITEM "ST_NAME_MC" PROCESSING "CLOSE_CONNECTION=DEFER" CLASS STYLE OUTLINECOLOR 000 153 000 WIDTH 3 END LABEL COLOR 000 153 000 TYPE TRUETYPE FONT Arial SIZE 12 ANTIALIAS FALSE POSITION AUTO PARTIALS FALSE END END PROJECTION "init=epsg:4326" END END END _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Thu Oct 13 07:31:04 2016 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 13 Oct 2016 10:31:04 -0400 Subject: [mapserver-users] MapServer IIS7 In-Reply-To: <2add369a07094eb6871b93f78fe7e0af@PDEXCH1301.corp.rcis.com> References: <6f390da98f1042f28164a875236ef713@PDEXCH1301.corp.rcis.com> <2add369a07094eb6871b93f78fe7e0af@PDEXCH1301.corp.rcis.com> Message-ID: Have you tried to connect to the sql server outside of mapserver using the same credentials? ie: make sure the the mapserver user is a valid user to do the connection with. -Steve W On 10/13/2016 10:18 AM, Vogt, Robert (RCIS) wrote: > This is the full error... > 502 - Web server received an invalid response while acting as a gateway or proxy server. > There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server. > > -----Original Message----- > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vogt, Robert (RCIS) > Sent: Thursday, October 13, 2016 10:12 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] MapServer IIS7 > > Good morning, > > I originally set up MapServer with WS4W and Apache server...I now have a requirement to put this on the same domain as our application which runs in IIS7. > > I have created the site and pointed my application at it and the results are mixed... > > Map files that are pointed at lizardtech for their source are working but map files that are pointed at SQL for their source are giving a 502(bad gateway) error. > > All map files worked when served through Apache, has anyone run into this or know what I should look at to fix it? > > Your help is greatly appreciated!! > > ******************************************* > ******** Map File *************************** > > MAP > IMAGETYPE PNG24 > CONFIG "PROJ_LIB" "E:/RCIS/Web/MapServerDlls/projlib" > SIZE 256 256 > FONTSET "E:/RCIS/Web/MapServerDlls/content/fontset.txt" > IMAGECOLOR 255 255 255 > TRANSPARENT ON > PROJECTION > "init=epsg:4326" > END > WEB > METADATA > "wms_title" "sections" > "wms_enable_request" "*" > END > END > LAYER > NAME "States" > TYPE POLYGON > STATUS ON > LABELCACHE ON > PROCESSING 'LABEL_NO_CLIP=1' > CONNECTIONTYPE PLUGIN > PLUGIN "msplugin_mssql2008.dll" > CONNECTION "OurConnectionString" > DATA "shape(geography),ST_NAME_MC from NATIONALDB.sde.STATES USING INDEX STATES_SIDX USING UNIQUE STATES_ID USING SRID=4269" > LABELITEM "ST_NAME_MC" > PROCESSING "CLOSE_CONNECTION=DEFER" > CLASS > STYLE > OUTLINECOLOR 000 153 000 > WIDTH 3 > END > LABEL > COLOR 000 153 000 > TYPE TRUETYPE > FONT Arial > SIZE 12 > ANTIALIAS FALSE > POSITION AUTO > PARTIALS FALSE > > END > END > PROJECTION > "init=epsg:4326" > END > END > END > _______________________________________________ > 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 > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From Robert.Vogt at rcis.com Thu Oct 13 08:10:39 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Thu, 13 Oct 2016 15:10:39 +0000 Subject: [mapserver-users] MapServer IIS7 In-Reply-To: References: <6f390da98f1042f28164a875236ef713@PDEXCH1301.corp.rcis.com> <2add369a07094eb6871b93f78fe7e0af@PDEXCH1301.corp.rcis.com> Message-ID: I have and it also works in mapserver but only while using Apache as the server. -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Thursday, October 13, 2016 10:31 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer IIS7 Have you tried to connect to the sql server outside of mapserver using the same credentials? ie: make sure the the mapserver user is a valid user to do the connection with. -Steve W On 10/13/2016 10:18 AM, Vogt, Robert (RCIS) wrote: > This is the full error... > 502 - Web server received an invalid response while acting as a gateway or proxy server. > There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server. > > -----Original Message----- > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] > On Behalf Of Vogt, Robert (RCIS) > Sent: Thursday, October 13, 2016 10:12 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] MapServer IIS7 > > Good morning, > > I originally set up MapServer with WS4W and Apache server...I now have a requirement to put this on the same domain as our application which runs in IIS7. > > I have created the site and pointed my application at it and the results are mixed... > > Map files that are pointed at lizardtech for their source are working but map files that are pointed at SQL for their source are giving a 502(bad gateway) error. > > All map files worked when served through Apache, has anyone run into this or know what I should look at to fix it? > > Your help is greatly appreciated!! > > ******************************************* > ******** Map File *************************** > > MAP > IMAGETYPE PNG24 > CONFIG "PROJ_LIB" "E:/RCIS/Web/MapServerDlls/projlib" > SIZE 256 256 > FONTSET "E:/RCIS/Web/MapServerDlls/content/fontset.txt" > IMAGECOLOR 255 255 255 > TRANSPARENT ON > PROJECTION > "init=epsg:4326" > END > WEB > METADATA > "wms_title" "sections" > "wms_enable_request" "*" > END > END > LAYER > NAME "States" > TYPE POLYGON > STATUS ON > LABELCACHE ON > PROCESSING 'LABEL_NO_CLIP=1' > CONNECTIONTYPE PLUGIN > PLUGIN "msplugin_mssql2008.dll" > CONNECTION "OurConnectionString" > DATA "shape(geography),ST_NAME_MC from NATIONALDB.sde.STATES USING INDEX STATES_SIDX USING UNIQUE STATES_ID USING SRID=4269" > LABELITEM "ST_NAME_MC" > PROCESSING "CLOSE_CONNECTION=DEFER" > CLASS > STYLE > OUTLINECOLOR 000 153 000 > WIDTH 3 > END > LABEL > COLOR 000 153 000 > TYPE TRUETYPE > FONT Arial > SIZE 12 > ANTIALIAS FALSE > POSITION AUTO > PARTIALS FALSE > > END > END > PROJECTION > "init=epsg:4326" > END > END > END > _______________________________________________ > 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 > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Thu Oct 13 08:57:27 2016 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 13 Oct 2016 11:57:27 -0400 Subject: [mapserver-users] MapServer IIS7 In-Reply-To: References: <6f390da98f1042f28164a875236ef713@PDEXCH1301.corp.rcis.com> <2add369a07094eb6871b93f78fe7e0af@PDEXCH1301.corp.rcis.com> Message-ID: <67508168-24a3-c9da-f6e8-297b8e370e9c@swoodbridge.com> On 10/13/2016 11:10 AM, Vogt, Robert (RCIS) wrote: > I have and it also works in mapserver but only while using Apache as the server. My point is that the apache service probably runs under a user like "apache", I'm sure IIS runs under some other user. Your SQL server and database needs to be configured to accept connections from whatever user IIS runs under, which is probably different from apache or even your user account. -Steve W > -----Original Message----- > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge > Sent: Thursday, October 13, 2016 10:31 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MapServer IIS7 > > Have you tried to connect to the sql server outside of mapserver using the same credentials? ie: make sure the the mapserver user is a valid user to do the connection with. > > -Steve W > > On 10/13/2016 10:18 AM, Vogt, Robert (RCIS) wrote: >> This is the full error... >> 502 - Web server received an invalid response while acting as a gateway or proxy server. >> There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server. >> >> -----Original Message----- >> From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] >> On Behalf Of Vogt, Robert (RCIS) >> Sent: Thursday, October 13, 2016 10:12 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] MapServer IIS7 >> >> Good morning, >> >> I originally set up MapServer with WS4W and Apache server...I now have a requirement to put this on the same domain as our application which runs in IIS7. >> >> I have created the site and pointed my application at it and the results are mixed... >> >> Map files that are pointed at lizardtech for their source are working but map files that are pointed at SQL for their source are giving a 502(bad gateway) error. >> >> All map files worked when served through Apache, has anyone run into this or know what I should look at to fix it? >> >> Your help is greatly appreciated!! >> >> ******************************************* >> ******** Map File *************************** >> >> MAP >> IMAGETYPE PNG24 >> CONFIG "PROJ_LIB" "E:/RCIS/Web/MapServerDlls/projlib" >> SIZE 256 256 >> FONTSET "E:/RCIS/Web/MapServerDlls/content/fontset.txt" >> IMAGECOLOR 255 255 255 >> TRANSPARENT ON >> PROJECTION >> "init=epsg:4326" >> END >> WEB >> METADATA >> "wms_title" "sections" >> "wms_enable_request" "*" >> END >> END >> LAYER >> NAME "States" >> TYPE POLYGON >> STATUS ON >> LABELCACHE ON >> PROCESSING 'LABEL_NO_CLIP=1' >> CONNECTIONTYPE PLUGIN >> PLUGIN "msplugin_mssql2008.dll" >> CONNECTION "OurConnectionString" >> DATA "shape(geography),ST_NAME_MC from NATIONALDB.sde.STATES USING INDEX STATES_SIDX USING UNIQUE STATES_ID USING SRID=4269" >> LABELITEM "ST_NAME_MC" >> PROCESSING "CLOSE_CONNECTION=DEFER" >> CLASS >> STYLE >> OUTLINECOLOR 000 153 000 >> WIDTH 3 >> END >> LABEL >> COLOR 000 153 000 >> TYPE TRUETYPE >> FONT Arial >> SIZE 12 >> ANTIALIAS FALSE >> POSITION AUTO >> PARTIALS FALSE >> >> END >> END >> PROJECTION >> "init=epsg:4326" >> END >> END >> END >> _______________________________________________ >> 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 >> > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From jmckenna at gatewaygeomatics.com Fri Oct 14 15:58:37 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 14 Oct 2016 19:58:37 -0300 Subject: [mapserver-users] PSC Meeting Minutes Message-ID: <6958e898-7466-7628-01eb-21648b4f43f1@gatewaygeomatics.com> Great news is that the MapServer Project Steering Committee (PSC) is now meeting monthly, to get the momentum going and continue the great work for the MapServer community. Note that anyone can attend the meeting, and feedback from all users and developers is very important. The first meeting was held yesterday, and a summary is below. PSC Meeting Page: https://github.com/mapserver/mapserver/wiki/PSCMeetings IRC log of yesterday's meeting: http://irclogs.geoapt.com/mapserver/%23mapserver.2016-10-13.log Summary ------- * Attending: * Tom Kralidis * Jukka Rahkonen * Jeff McKenna * Mike Smith * Thomas Bonfort * Daniel Morissette * Stephan Meissl * Steven Woodbridge * Tanya Haddad * Assefa Yewondwossen * Steve Lime * Olivier Courtin * Even Rouault * Sends regrets: Perry Nacionales * Discussion * Considered a change in the Chair of the PSC, but all in favor of Steve Lime's continued leadership * Agreement on meeting frequency of once a month, noting that all PSC members cannot attend each meeting * Discussion of developing a release plan that the project will follow * Discussion of possible items to include in next major release, such as * jpeg-png output (in master) * vector tiles (unfinished) * PHP 7 mapscript support (needs effort) * Python3 support (needs cleanup & testing) * Discussion on needing funding for development (unresolved) * Discussion on the 2017 code sprint possible locations (Daytona Beach, Victoria) * Discussion on promoting MapServer implementations (possibly through case studies, to randomly share on the main site) * Agreement on next meeting date: 2016-11-17 http://www.timeanddate.com/worldclock/fixedtime.html?year=2016&month=11&day=17&hour=15&min=0&sec=0%2016.00UTC * **Action Items** * DanielM, StephanM, JeffM: discuss code sprint with Steve Lehr (Daytona Beach) * JeffM: draft and propose 7.2 release plan https://github.com/mapserver/mapserver/wiki/MapServer-7.2-Release-Plan * TomK, TanyaH, JeffM: draft a case study template on the wiki -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From yves.moisan at canada.ca Tue Oct 18 13:45:31 2016 From: yves.moisan at canada.ca (Moisan, Yves (EC)) Date: Tue, 18 Oct 2016 20:45:31 +0000 Subject: [mapserver-users] KML output 6.4.2 Message-ID: <42c474f7637847259f32c29f6a717522@PELEPCDEXC013.birch.int.bell.ca> Hi All, Haven't been here in a while ... I'm striving to find out how to either query MS or run a command to generate a KML document ready to be ingested by Google Earth. I've seen the documentation mentioning "Output can then be generated using MapServer cgi (example mode=map) or through a WMS request." [1] and I understand the capability has been there since 6.0, but I can't get around to obtaining a KML document that has elements pointing to the GetMap requests of particular layers. I do get KML documents (with FORMAT=kml), but they miss a element in the element corresponding to a layer from which GE could fetch an image : MyName 1 #LayerFolder_check Examples or pointers anyone ? TIA, Yves [1] http://mapserver.org/output/kml_output.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Oct 18 15:00:24 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 18 Oct 2016 19:00:24 -0300 Subject: [mapserver-users] KML output 6.4.2 In-Reply-To: <42c474f7637847259f32c29f6a717522@PELEPCDEXC013.birch.int.bell.ca> References: <42c474f7637847259f32c29f6a717522@PELEPCDEXC013.birch.int.bell.ca> Message-ID: Hi Yves! Not sure if this helps, but...I remember testing KMZ output through WMS (in 2011), and I had found an issue with the output coordinates and had filed a ticket: https://github.com/mapserver/mapserver/issues/3928 Note that I just now dug up that old sample mapfile and data and added the working link at the bottom of that old ticket. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-10-18 5:45 PM, Moisan, Yves (EC) wrote: > Hi All, > > > > Haven?t been here in a while ? I?m striving to find out how to either > query MS or run a command to generate a KML document ready to be > ingested by Google Earth. I?ve seen the documentation mentioning > ?Output can then be generated using MapServer cgi (example mode=map) or > through a WMS request.? [1] and I understand the capability has been > there since 6.0, but I can?t get around to obtaining a KML document that > has elements pointing to the GetMap requests of particular > layers. I do get KML documents (with FORMAT=kml), but they miss a > element in the element corresponding to a layer > from which GE could fetch an image : > > > > > > MyName > > 1 > > #LayerFolder_check > > > > > > > > Examples or pointers anyone ? > > > > TIA, > > > > Yves > > > > [1] http://mapserver.org/output/kml_output.html > > From jmckenna at gatewaygeomatics.com Tue Oct 18 15:13:29 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 18 Oct 2016 19:13:29 -0300 Subject: [mapserver-users] KML output 6.4.2 In-Reply-To: <42c474f7637847259f32c29f6a717522@PELEPCDEXC013.birch.int.bell.ca> References: <42c474f7637847259f32c29f6a717522@PELEPCDEXC013.birch.int.bell.ca> Message-ID: I have been more successful with KML output through WFS, by setting an OUTPUTFORMAT block in your mapfile and then passing &outputformat=kml in your WFS request. Is that an option for you?? -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-10-18 5:45 PM, Moisan, Yves (EC) wrote: > Hi All, > > > > Haven?t been here in a while ? I?m striving to find out how to either > query MS or run a command to generate a KML document ready to be > ingested by Google Earth. I?ve seen the documentation mentioning > ?Output can then be generated using MapServer cgi (example mode=map) or > through a WMS request.? [1] and I understand the capability has been > there since 6.0, but I can?t get around to obtaining a KML document that > has elements pointing to the GetMap requests of particular > layers. I do get KML documents (with FORMAT=kml), but they miss a > element in the element corresponding to a layer > from which GE could fetch an image : > > > > > > MyName > > 1 > > #LayerFolder_check > > > > > > > > Examples or pointers anyone ? > > > > TIA, > > > > Yves > > > > [1] http://mapserver.org/output/kml_output.html > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From DeDuikertjes at xs4all.nl Wed Oct 19 00:03:21 2016 From: DeDuikertjes at xs4all.nl (deduikertjes) Date: Wed, 19 Oct 2016 00:03:21 -0700 (MST) Subject: [mapserver-users] Finding (and modifying?) status codes of mapserver responses Message-ID: <1476860601167-5291371.post@n6.nabble.com> Finding and modifying status codes I'd like to find out (and maybe modify) the HTML status codes mapserver attaches to a WMS service exception report. I deploy mapserver behind Nginx with supervisord as a fastcgi provider and process manager. Nginx does caching of responses on getmap requests. As I don't want Service Exception reports to be cached I've added a directive to the Nginx config not to cache error documents containing 'serviceException'. This is not working properly, I think because nginx only regards a response as an error when a non-200 status code is attached. So I'm trying to find the status codes mapserver attaches to a response. If I do from command line mapserv7 QUERY_STRING="map=my.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&....(rest of valid wms request)" I see the headers (and the png) when te request leads to a response containing a map. If I do the same with a request that generates an service exception report I get back error messages instead of the response I see in my browser. So, how to find out the headers of the response before it goes trough supervisord an nginx? Or does anyone know what status code the header contains? And the million dollar question: can we stick a 500 status code header on the response if it's not there? Any help greatly appreciated, MArco -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Finding-and-modifying-status-codes-of-mapserver-responses-tp5291371.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Wed Oct 19 05:41:33 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 19 Oct 2016 09:41:33 -0300 Subject: [mapserver-users] KML output 6.4.2 In-Reply-To: References: <42c474f7637847259f32c29f6a717522@PELEPCDEXC013.birch.int.bell.ca> Message-ID: <3937b3d6-1d31-521f-c90b-feccc126c1f5@gatewaygeomatics.com> Great, keep us all in the loop with how it goes. You'll find that using the WFS outputformat for KML/KMZ works very well, as it is passed through the OGR driver; I'm not aware of many using WMS for KML/KMZ output. But yes, I imagine if you travel down that path you may eventually hit my same issue from 2011 :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-10-19 9:29 AM, Moisan, Yves (EC) wrote: > Hi Jeff, > > Thanx for the info. There may be something missing in the mapfile, I'll double check. > > WFS is not an option for me. I need a element that points to a GetMap request for each layer. > > Cheers, > > Yves > > -----Message d'origine----- > De : mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Jeff McKenna > Envoy? : 18 October 2016 6:13 > ? : mapserver-users at lists.osgeo.org > Objet : Re: [mapserver-users] KML output 6.4.2 > > I have been more successful with KML output through WFS, by setting an OUTPUTFORMAT block in your mapfile and then passing &outputformat=kml in your WFS request. Is that an option for you?? > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ > > > > > > On 2016-10-18 5:45 PM, Moisan, Yves (EC) wrote: >> Hi All, >> >> >> >> Haven?t been here in a while ? I?m striving to find out how to either >> query MS or run a command to generate a KML document ready to be >> ingested by Google Earth. I?ve seen the documentation mentioning >> ?Output can then be generated using MapServer cgi (example mode=map) or >> through a WMS request.? [1] and I understand the capability has been >> there since 6.0, but I can?t get around to obtaining a KML document that >> has elements pointing to the GetMap requests of particular >> layers. I do get KML documents (with FORMAT=kml), but they miss a >> element in the element corresponding to a layer >> from which GE could fetch an image : >> >> >> >> >> >> MyName >> >> 1 >> >> #LayerFolder_check >> >> >> >> >> >> >> >> Examples or pointers anyone ? >> >> >> >> TIA, >> >> >> >> Yves >> >> >> >> [1] http://mapserver.org/output/kml_output.html >> >> >> From thomas.bonfort at gmail.com Wed Oct 19 05:50:33 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 19 Oct 2016 12:50:33 +0000 Subject: [mapserver-users] Finding (and modifying?) status codes of mapserver responses In-Reply-To: <1476860601167-5291371.post@n6.nabble.com> References: <1476860601167-5291371.post@n6.nabble.com> Message-ID: Marco, It's the WMS spec itself that requires 200 response codes. You can hack the code or even add a configuration option to return something other than 200, but you'll risk breaking your clients. Also note that checking for specific text is not going to work all the time, as the client can request an "inimage" exception text, i.e. returned as pixels in a png image. -- thomas On Wed, Oct 19, 2016 at 9:03 AM deduikertjes wrote: > Finding and modifying status codes > > I'd like to find out (and maybe modify) the HTML status codes mapserver > attaches to a WMS service exception report. > > I deploy mapserver behind Nginx with supervisord as a fastcgi provider and > process manager. Nginx does caching of responses on getmap requests. > > As I don't want Service Exception reports to be cached I've added a > directive to the Nginx config not to cache error documents containing > 'serviceException'. > This is not working properly, I think because nginx only regards a response > as an error when a non-200 status code is attached. > > So I'm trying to find the status codes mapserver attaches to a response. > If I do from command line mapserv7 > QUERY_STRING="map=my.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&....(rest > of valid wms request)" I see the headers (and the png) when te request > leads > to a response containing a map. > If I do the same with a request that generates an service exception report > I > get back error messages instead of the response I see in my browser. > > So, how to find out the headers of the response before it goes trough > supervisord an nginx? > Or does anyone know what status code the header contains? > And the million dollar question: can we stick a 500 status code header on > the response if it's not there? > > Any help greatly appreciated, MArco > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Finding-and-modifying-status-codes-of-mapserver-responses-tp5291371.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From deduikertjes at xs4all.nl Wed Oct 19 09:08:47 2016 From: deduikertjes at xs4all.nl (deduikertjes) Date: Wed, 19 Oct 2016 18:08:47 +0200 Subject: [mapserver-users] Finding (and modifying?) status codes of mapserver responses In-Reply-To: References: <1476860601167-5291371.post@n6.nabble.com> Message-ID: Thomas, Thank you. Interesting remark you make on the WMS-spec. Never thought of that. You say that I can add a config option to return something other than 200. I suppose by that you mean that such a config option does not exits, but that I can hack it in? Can you please elaborate a bit on how non 200 status codes on service exception reports could break a client. No map is no map? Marco On 19-10-16 14:50, thomas bonfort wrote: > Marco, > It's the WMS spec itself that requires 200 response codes. You can > hack the code or even add a configuration option to return something > other than 200, but you'll risk breaking your clients. Also note that > checking for specific text is not going to work all the time, as the > client can request an "inimage" exception text, i.e. returned as > pixels in a png image. > > -- > thomas > > On Wed, Oct 19, 2016 at 9:03 AM deduikertjes > wrote: > > Finding and modifying status codes > > I'd like to find out (and maybe modify) the HTML status codes > mapserver > attaches to a WMS service exception report. > > I deploy mapserver behind Nginx with supervisord as a fastcgi > provider and > process manager. Nginx does caching of responses on getmap requests. > > As I don't want Service Exception reports to be cached I've added a > directive to the Nginx config not to cache error documents containing > 'serviceException'. > This is not working properly, I think because nginx only regards a > response > as an error when a non-200 status code is attached. > > So I'm trying to find the status codes mapserver attaches to a > response. > If I do from command line mapserv7 > QUERY_STRING="map=my.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&....(rest > of valid wms request)" I see the headers (and the png) when te > request leads > to a response containing a map. > If I do the same with a request that generates an service > exception report I > get back error messages instead of the response I see in my browser. > > So, how to find out the headers of the response before it goes trough > supervisord an nginx? > Or does anyone know what status code the header contains? > And the million dollar question: can we stick a 500 status code > header on > the response if it's not there? > > Any help greatly appreciated, MArco > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Finding-and-modifying-status-codes-of-mapserver-responses-tp5291371.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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Oct 19 09:25:50 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 19 Oct 2016 16:25:50 +0000 Subject: [mapserver-users] Finding (and modifying?) status codes of mapserver responses In-Reply-To: References: <1476860601167-5291371.post@n6.nabble.com> Message-ID: 1. Yes, you'd need to hack it in yourself. 2. No idea... you'd be out of spec and that might be enough to break a client. (I agree that the risk is low) -- thomas On Wed, Oct 19, 2016 at 6:08 PM deduikertjes wrote: > Thomas, > > Thank you. > Interesting remark you make on the WMS-spec. Never thought of that. > You say that I can add a config option to return something other than 200. > I suppose by that you mean that such a config option does not exits, but > that I can hack it in? > > Can you please elaborate a bit on how non 200 status codes on service > exception reports could break a client. No map is no map? > > Marco > > > > On 19-10-16 14:50, thomas bonfort wrote: > > Marco, > It's the WMS spec itself that requires 200 response codes. You can hack > the code or even add a configuration option to return something other than > 200, but you'll risk breaking your clients. Also note that checking for > specific text is not going to work all the time, as the client can request > an "inimage" exception text, i.e. returned as pixels in a png image. > > -- > thomas > > On Wed, Oct 19, 2016 at 9:03 AM deduikertjes > wrote: > > Finding and modifying status codes > > I'd like to find out (and maybe modify) the HTML status codes mapserver > attaches to a WMS service exception report. > > I deploy mapserver behind Nginx with supervisord as a fastcgi provider and > process manager. Nginx does caching of responses on getmap requests. > > As I don't want Service Exception reports to be cached I've added a > directive to the Nginx config not to cache error documents containing > 'serviceException'. > This is not working properly, I think because nginx only regards a response > as an error when a non-200 status code is attached. > > So I'm trying to find the status codes mapserver attaches to a response. > If I do from command line mapserv7 > QUERY_STRING="map=my.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&....(rest > of valid wms request)" I see the headers (and the png) when te request > leads > to a response containing a map. > If I do the same with a request that generates an service exception report > I > get back error messages instead of the response I see in my browser. > > So, how to find out the headers of the response before it goes trough > supervisord an nginx? > Or does anyone know what status code the header contains? > And the million dollar question: can we stick a 500 status code header on > the response if it's not there? > > Any help greatly appreciated, MArco > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Finding-and-modifying-status-codes-of-mapserver-responses-tp5291371.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 > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From edmar.moretti at gmail.com Wed Oct 19 19:12:57 2016 From: edmar.moretti at gmail.com (Moretti Edmar) Date: Thu, 20 Oct 2016 00:12:57 -0200 Subject: [mapserver-users] querybyattributes in version 7 Message-ID: Hello. How to make a query using "querybyattributes" and operators such as AND, OR ? example: $Layer-> querybyattibutes ( "col", "col > 0 AND col < 100"). I'm using MapScript 7.x. In previous versions it worked, but in version 7 no longer works. -- ___________________________________________________________________________ Edmar Moretti http://www.edmarmoretti.com.br Skype: edmar.moretti gTalk: edmar.moretti Para tirar d?vidas sobre o i3Geo utilize a lista: https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo https://gratipay.com/~edmar.moretti/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at nd.gov Thu Oct 20 13:47:53 2016 From: pmoen at nd.gov (Moen, Paul T.) Date: Thu, 20 Oct 2016 20:47:53 +0000 Subject: [mapserver-users] querybyattributes in version 7 In-Reply-To: References: Message-ID: Try putting brackets around the field and parenthesis around the query string. $Layer-> querybyattibutes ( "col", "([col] > 0 AND [col] < 100)?) Paul From: mapserver-users on behalf of Moretti Edmar Date: Wednesday, October 19, 2016 at 9:12 PM To: MapserverList OSGEO Subject: [mapserver-users] querybyattributes in version 7 Hello. How to make a query using "querybyattributes" and operators such as AND, OR ? example: $Layer-> querybyattibutes ( "col", "col > 0 AND col < 100"). I'm using MapScript 7.x. In previous versions it worked, but in version 7 no longer works. -- ___________________________________________________________________________ Edmar Moretti http://www.edmarmoretti.com.br Skype: edmar.moretti gTalk: edmar.moretti Para tirar d?vidas sobre o i3Geo utilize a lista: https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo https://gratipay.com/~edmar.moretti/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at nd.gov Thu Oct 20 14:30:54 2016 From: pmoen at nd.gov (Moen, Paul T.) Date: Thu, 20 Oct 2016 21:30:54 +0000 Subject: [mapserver-users] IN operator via queryByAttribute no longer works in php-mapscript Mapserver 7.0.2 Message-ID: <864433AB-AB81-43D4-A1B8-9A22ABF28B43@nd.gov> I cannot get the IN operator to work with queryByAttributes in the new version of php_mapscript. I see nothing obvious mentioned in the migration guide and have found no examples in the documentation on the syntax expected by Mapserver 7.0.2. The following queryByAttribute using an IN clause worked with MapServer version 6.4.2. queryByAttributes(site_id,(site_id IN (4243,4468,3142)),MS_MULTIPLE); The following select was created. msPostGISLayerWhichShapes query: select "site_id","county","station_location","longitude","latitude","status",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex') as geom,"site_id" from (select p.site_id,p.the_geom,p.county,p.station_location, p.longitude,p.latitude,p.status from precip.station p) as foo where the_geom && ST_GeomFromText('POLYGON((1026879.66418811 54774.2883737648,1026879.66418811 1331032.73787942,2999091.34586756 1331032.73787942,2999091.34586756 54774.2883737648,1026879.66418811 54774.2883737648))',2266) and (site_id IN (4243,4468,3142)) The same queryByAttribute as above fails with Mapserver version 7.0.2 and listed below is the select statement that is created. msPostGISLayerWhichShapes query: select "site_id","county","station_location","longitude","latitude","status",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex') as geom,"site_id" from (select p.site_id,p.the_geom,p.county,p.station_location, p.longitude,p.latitude,p.status from precip.station p) as foo where the_geom && ST_GeomFromText('POLYGON((1026879.66418811 54774.2883737648,1026879.66418811 1331032.73787942,2999091.34586756 1331032.73787942,2999091.34586756 54774.2883737648,1026879.66418811 54774.2883737648))',2266) and ((4243.000000,4468.000000,3142.000000)) The select statement created by 7.0.2 is incorrect with the parameters that I passed in in the previous version. Specifically, the final and of the where clause went from 'and (site_id IN (4243,4468,3142))' to 'and ((4243.000000,4468.000000,3142.000000))'. I then tried to figure out the correct syntax of a mapserver expressions and added brackets around the parameter. queryByAttributes(site_id,([site_id] IN (4243,4468,3142)),MS_MULTIPLE); This gave the following select statement. msPostGISLayerWhichShapes query: select "site_id","county","station_location","longitude","latitude","status",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex') as geom,"site_id" from (select p.site_id,p.the_geom,p.county,p.station_location, p.longitude,p.latitude,p.status from precip.station p) as foo where the_geom && ST_GeomFromText('POLYGON((1026879.66418811 54774.2883737648,1026879.66418811 1331032.73787942,2999091.34586756 1331032.73787942,2999091.34586756 54774.2883737648,1026879.66418811 54774.2883737648))',2266) and ("site_id"(4243.000000,4468.000000,3142.000000)) Now the where clause looks like ("site_id"(4243.000000,4468.000000,3142.000000)). This is close but the IN disappears between site_id and the list of values. The only way I can get this to work is to use a regular expression. This seems like a work around since an integer field is being cast as text in order to do a regular expression. queryByAttributes(site_id,([site_id] ~* "^(4243|4468|3142)$"),MS_MULTIPLE); Resulting select statement. msPostGISLayerWhichShapes query: select "site_id","county","station_location","longitude","latitude","status",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex') as geom,"site_id" from (select p.site_id,p.the_geom,p.county,p.station_location, p.longitude,p.latitude,p.status from precip.station p) as foo where the_geom && ST_GeomFromText('POLYGON((1026879.66418811 54774.2883737648,1026879.66418811 1331032.73787942,2999091.34586756 1331032.73787942,2999091.34586756 54774.2883737648,1026879.66418811 54774.2883737648))',2266) and ("site_id"::text ~* '^(4243|4468)$') How do I properly format the query string for queryByAttributes to search for an attribute using a where in clause? Is the regular expression approach the only way to accomplish the search? Thanks for the help, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Thu Oct 20 14:54:43 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Thu, 20 Oct 2016 21:54:43 +0000 Subject: [mapserver-users] IN operator via queryByAttribute no longer works in php-mapscript Mapserver 7.0.2 In-Reply-To: <864433AB-AB81-43D4-A1B8-9A22ABF28B43@nd.gov> References: <864433AB-AB81-43D4-A1B8-9A22ABF28B43@nd.gov> Message-ID: Hi, This question in gis.stackexchange is also about using IN in FILTER http://gis.stackexchange.com/questions/214899/in-operator-in-filter-in-my-mapfile/214921#214921. Could they be related? -Jukka Rahkonen- ________________________________ L?hett?j?: Moen, Paul T. L?hetetty: ?21.?10.?2016 0:31 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] IN operator via queryByAttribute no longer works in php-mapscript Mapserver 7.0.2 I cannot get the IN operator to work with queryByAttributes in the new version of php_mapscript. I see nothing obvious mentioned in the migration guide and have found no examples in the documentation on the syntax expected by Mapserver 7.0.2. The following queryByAttribute using an IN clause worked with MapServer version 6.4.2. queryByAttributes(site_id,(site_id IN (4243,4468,3142)),MS_MULTIPLE); The following select was created. msPostGISLayerWhichShapes query: select "site_id","county","station_location","longitude","latitude","status",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex') as geom,"site_id" from (select p.site_id,p.the_geom,p.county,p.station_location, p.longitude,p.latitude,p.status from precip.station p) as foo where the_geom && ST_GeomFromText('POLYGON((1026879.66418811 54774.2883737648,1026879.66418811 1331032.73787942,2999091.34586756 1331032.73787942,2999091.34586756 54774.2883737648,1026879.66418811 54774.2883737648))',2266) and (site_id IN (4243,4468,3142)) The same queryByAttribute as above fails with Mapserver version 7.0.2 and listed below is the select statement that is created. msPostGISLayerWhichShapes query: select "site_id","county","station_location","longitude","latitude","status",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex') as geom,"site_id" from (select p.site_id,p.the_geom,p.county,p.station_location, p.longitude,p.latitude,p.status from precip.station p) as foo where the_geom && ST_GeomFromText('POLYGON((1026879.66418811 54774.2883737648,1026879.66418811 1331032.73787942,2999091.34586756 1331032.73787942,2999091.34586756 54774.2883737648,1026879.66418811 54774.2883737648))',2266) and ((4243.000000,4468.000000,3142.000000)) The select statement created by 7.0.2 is incorrect with the parameters that I passed in in the previous version. Specifically, the final and of the where clause went from 'and (site_id IN (4243,4468,3142))' to 'and ((4243.000000,4468.000000,3142.000000))'. I then tried to figure out the correct syntax of a mapserver expressions and added brackets around the parameter. queryByAttributes(site_id,([site_id] IN (4243,4468,3142)),MS_MULTIPLE); This gave the following select statement. msPostGISLayerWhichShapes query: select "site_id","county","station_location","longitude","latitude","status",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex') as geom,"site_id" from (select p.site_id,p.the_geom,p.county,p.station_location, p.longitude,p.latitude,p.status from precip.station p) as foo where the_geom && ST_GeomFromText('POLYGON((1026879.66418811 54774.2883737648,1026879.66418811 1331032.73787942,2999091.34586756 1331032.73787942,2999091.34586756 54774.2883737648,1026879.66418811 54774.2883737648))',2266) and ("site_id"(4243.000000,4468.000000,3142.000000)) Now the where clause looks like ("site_id"(4243.000000,4468.000000,3142.000000)). This is close but the IN disappears between site_id and the list of values. The only way I can get this to work is to use a regular expression. This seems like a work around since an integer field is being cast as text in order to do a regular expression. queryByAttributes(site_id,([site_id] ~* "^(4243|4468|3142)$"),MS_MULTIPLE); Resulting select statement. msPostGISLayerWhichShapes query: select "site_id","county","station_location","longitude","latitude","status",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex') as geom,"site_id" from (select p.site_id,p.the_geom,p.county,p.station_location, p.longitude,p.latitude,p.status from precip.station p) as foo where the_geom && ST_GeomFromText('POLYGON((1026879.66418811 54774.2883737648,1026879.66418811 1331032.73787942,2999091.34586756 1331032.73787942,2999091.34586756 54774.2883737648,1026879.66418811 54774.2883737648))',2266) and ("site_id"::text ~* '^(4243|4468)$') How do I properly format the query string for queryByAttributes to search for an attribute using a where in clause? Is the regular expression approach the only way to accomplish the search? Thanks for the help, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From edmar.moretti at gmail.com Thu Oct 20 15:18:23 2016 From: edmar.moretti at gmail.com (Moretti Edmar) Date: Thu, 20 Oct 2016 20:18:23 -0200 Subject: [mapserver-users] querybyattributes in version 7 In-Reply-To: References: Message-ID: Paul, thank you, your example solved my problem in Postgis and Shapefile layers (Mapserver version 7) Edmar 2016-10-20 18:47 GMT-02:00 Moen, Paul T. : > Try putting brackets around the field and parenthesis around the query > string. > > > > $Layer-> querybyattibutes ( "col", "([col] > 0 AND [col] < 100)?) > > > > Paul > > > > > > > *From: *mapserver-users on > behalf of Moretti Edmar > *Date: *Wednesday, October 19, 2016 at 9:12 PM > *To: *MapserverList OSGEO > *Subject: *[mapserver-users] querybyattributes in version 7 > > > > Hello. > > How to make a query using "querybyattributes" and operators such as AND, OR ? example: > > $Layer-> querybyattibutes ( "col", "col > 0 AND col < 100"). I'm using MapScript 7.x. In previous versions it worked, but in version 7 no longer works. > > > > -- > > ____________________________________________________________ > _______________ > > Edmar Moretti > > http://www.edmarmoretti.com.br > > Skype: edmar.moretti > > gTalk: edmar.moretti > > > > Para tirar d?vidas sobre o i3Geo utilize a lista: > > https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo > > > > https://gratipay.com/~edmar.moretti/ > > > > > -- ___________________________________________________________________________ Edmar Moretti http://www.edmarmoretti.com.br Skype: edmar.moretti gTalk: edmar.moretti Para tirar d?vidas sobre o i3Geo utilize a lista: https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo https://gratipay.com/~edmar.moretti/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.mohr at geobasis-bb.de Mon Oct 24 03:37:46 2016 From: marcus.mohr at geobasis-bb.de (mmohr) Date: Mon, 24 Oct 2016 03:37:46 -0700 (MST) Subject: [mapserver-users] Layer opacity not working Message-ID: <1477305466074-5292269.post@n6.nabble.com> Hello, somehow the layer opacity isn?t working. I tried to configure a WMS with MS 7.0.1 and 7.0.2 but mostly my response is non-transparent? The transparency appears only sometimes. I?m using ?LAYER->COMPOSITE->OPACITY?: LAYER [?] COMPOSITE OPACITY 50 END [?] END What am I doing wrong? Does someone else observes this magical behavior? Hope someone can help. Best regards Marcus -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Layer-opacity-not-working-tp5292269.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Marcus.Mohr at geobasis-bb.de Mon Oct 24 03:31:49 2016 From: Marcus.Mohr at geobasis-bb.de (Mohr, Marcus) Date: Mon, 24 Oct 2016 10:31:49 +0000 Subject: [mapserver-users] Layer opacity not working Message-ID: <18A4C76590D9764A8B86893416ADF743012087@PMMX-MBX07.LandBB.ad.lvnbb.de> Hello, somehow the layer opacity isn't working. I tried to configure a WMS with MS 7.0.1 and 7.0.2 but mostly my response is non-transparent... The transparency appears only sometimes. I'm using "LAYER->COMPOSITE->OPACITY": LAYER [...] COMPOSITE OPACITY 50 END [...] END What am I doing wrong? Does someone else observes this magical behavior? Hope someone can help. Best regards Marcus -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at blixtmail.se Mon Oct 24 04:15:50 2016 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Mon, 24 Oct 2016 13:15:50 +0200 Subject: [mapserver-users] Layer opacity not working In-Reply-To: <18A4C76590D9764A8B86893416ADF743012087@PMMX-MBX07.LandBB.ad.lvnbb.de> References: <18A4C76590D9764A8B86893416ADF743012087@PMMX-MBX07.LandBB.ad.lvnbb.de> Message-ID: I am experiencing exactly the same thing.? Trying to find out when it happens just now. I had this problem in February, but then it disappeared after a while. Now it started to happen sometimes again last week. Lars S. -----Originalmeddelande----- Fr?n: "Mohr, Marcus" Till: mapserver-users at lists.osgeo.org Datum: 2016-10-24 12:41 ?mne: [mapserver-users] Layer opacity not working Hello, somehow the layer opacity isn?t working. I tried to configure a WMS with MS 7.0.1 and 7.0.2 but mostly my response is non-transparent? The transparency appears only sometimes. ? I?m using ?LAYER->COMPOSITE->OPACITY?: ? LAYER ? [?] ? COMPOSITE ??? OPACITY 50 ? END ? [?] END ? What am I doing wrong? Does someone else observes this magical behavior? ? Hope someone can help. ? Best regards Marcus ? _______________________________________________ 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 faracosmin_n at yahoo.com Mon Oct 24 07:42:42 2016 From: faracosmin_n at yahoo.com (fara cosmin_n) Date: Mon, 24 Oct 2016 14:42:42 +0000 (UTC) Subject: [mapserver-users] How to make MapServer to support multi-band raster data. References: <1781979370.1089059.1477320162697.ref@mail.yahoo.com> Message-ID: <1781979370.1089059.1477320162697@mail.yahoo.com> I'm tryingto add GeoTIFF format raster data maps with multiple bands to MapServer. However, being a novice in MapServer makes the process of solvingthis matter quite challenging. My targetis to make a request which takes my map containing 3 multibands color and addthem to MapServer. Nevertheless, I am not sure this will be possible.? As a map file result it would be great if Icould get the map Fig 1 in MapServer.Pasteboard ? Uploaded Image | | | Pasteboard ? Uploaded Image Super simple and lightning fast image sharing. Upload clipboard images with Copy & Paste and image files wit... | | | Fig 1 InputMap The figurebelow frames what I have done so far in MapServer and how my code looks like.The map still does not look like the map above:Pasteboard ? Uploaded Image | | | Pasteboard ? Uploaded Image Super simple and lightning fast image sharing. Upload clipboard images with Copy & Paste and image files wit... | | | [XML] map - Pastebin.com | | [XML] map - Pastebin.com | | Fig 2MapServer map .I want tomention that I?m working with a raster that has UInt16 as a data type, not sureif this would affect the results.What shouldI change in the code window in order to get the map fig 1?Any helpwould be highly appreciated. I lookforward to hearing from you as soon as possible. Best regards, Cosmin Fara? -------------- next part -------------- An HTML attachment was scrubbed... URL: From pschmitt at gmail.com Mon Oct 24 19:22:27 2016 From: pschmitt at gmail.com (Peter Schmitt) Date: Mon, 24 Oct 2016 20:22:27 -0600 Subject: [mapserver-users] Refreshing AWS credentials for the /vsis3/ driver In-Reply-To: References: Message-ID: What is the best way to update Mapserver with current AWS credentials for the /vsis3/ driver? I am using the /vsis3/ driver to render images in a private S3 bucket. I am currently setting the credentials as fastcgi parameters in my nginx conf. I would like to use temporary credentials provided by IAM roles, which change periodically. When the credentials change, I currently have to restart Nginx. Ideally I would define the environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN) in my Mapfile. Since Mapserver reads the mapfile for every request, I could just update the Mapfile when the credentials change. I think this would give me uninterrupted access to serving imagery using /vsis3/. Thanks, Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at spatialys.com Tue Oct 25 01:04:36 2016 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 25 Oct 2016 10:04:36 +0200 Subject: [mapserver-users] Refreshing AWS credentials for the /vsis3/ driver In-Reply-To: References: Message-ID: <201610251004.36845.even.rouault@spatialys.com> Le mardi 25 octobre 2016 04:22:27, Peter Schmitt a ?crit : > What is the best way to update Mapserver with current AWS credentials for > the /vsis3/ driver? > > I am using the /vsis3/ driver to render images in a private S3 bucket. I > am currently setting the credentials as fastcgi parameters in my nginx > conf. I would like to use temporary credentials provided by IAM roles, > which change periodically. When the credentials change, I currently have > to restart Nginx. Ideally I would define the environment variables > (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN) in my > Mapfile. Since Mapserver reads the mapfile for every request, I could just > update the Mapfile when the credentials change. I think this would give me > uninterrupted access to serving imagery using /vsis3/. Pete, You're the first user of MapServer I'm aware of reporting use of /vsis3/ (for those wondering what it is, see http://www.gdal.org/cpl__vsi_8h.html#a5b4754999acd06444bfda172ff2aaa16) Congrats ! You could do just what you mention by using the "CONFIG key value" syntax in the MAP object. See http://mapserver.org/mapfile/map.html As mentionned in the doc, it is for MapServer config options, but also for any GDAL config option. You could put the elements that change in a separate mapfile to avoid rewriting the whole mapfile, by using the INCLUDE directive ( http://mapserver.org/mapfile/include.html ) There's a tiny risk you would get a race between a incoming request and the file being rewritten at the same time and thus incomplete. To eliminate that risk, and get atomicity, you could write completely the new file with a temporary filename, and rename it as the wished filename at the end. Even -- Spatialys - Geospatial professional services http://www.spatialys.com From jukka.rahkonen at maanmittauslaitos.fi Tue Oct 25 03:55:31 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 25 Oct 2016 10:55:31 +0000 Subject: [mapserver-users] [mapserver-dev] MapServer tutorial - symbology Message-ID: <1dadf1edcee24f249e45393c5b35c6b3@C119S212VM022.msvyvi.vaha.local> Hi, I think that this kind of discussion belongs to mapserver-users (cc:ed). I hope that developers read also the users mailing list, and users may have more to say about what they consider hard with styles. Also, Mapserver users learn from reading mails like this, and that there are mails on the list at all proves that the project is not dead. Developers can discuss on the dev list or in GitHub about how to implement the ?size by expression? with C++ and so on. One thing that always feels odd to me is that why we do not have any default style for points but we must especially define some symbol in the mapfile. I have been thinking that perhaps we could have internal, hard coded symbols at least for these 6 which are defined in the SLD standard: ?The WellKnownName element gives the well-known name of the shape of the mark. Allowed values include at least ?square?, ?circle?, ?triangle?, ?star?, ?cross?, and ?x?, though map servers may draw a different symbol instead if they don't have a shape for all of these. The default WellKnownName is ?square?. Renderings of these marks may be made solid or hollow depending on Fill and Stroke elements. These elements are discussed in Subclauses 11.2.2 and 11.1.3, respectively.? If user gives no symbol in the mapfile for points it would mean ?square?. If symbol with the same name than WellKnownName is defined in mapfile or in symbolset it would override the standard symbol. If there is a special need for non-visible points we could have one more: SYMBOL ?NONE?. -Jukka Rahkonen- L?hett?j?: mapserver-dev [mailto:mapserver-dev-bounces at lists.osgeo.org] Puolesta Seth G L?hetetty: 25. lokakuuta 2016 13:20 Vastaanottaja: mapserver-dev at lists.osgeo.org Aihe: [mapserver-dev] MapServer tutorial - symbology Hi all, I have updated the second quick start tutorial on SYMBOLS and symbolizing data. A draft page is available at: https://geographika.github.io/tutorial/quickstart/symbolizing.html I ran through this with around 6 people, and a few questions came up. If anyone can provide details that would be very helpful. Also comments/improvements on the tutorials are very welcome. 1. Are there any performance or other benefits of VECTOR symbols over IMAGE/SVG? (Although I think SVG is currently not available in ms4w - http://www.ms4w.com/trac/ticket/3 ). The manual entering of coordinate details seems pretty difficult compared to using/making SVGs. 2. At the top of the http://mapserver.org/mapfile/style.html#style page there is the sentence "The final intent is to have named styles (Not yet supported) that will be re-usable through the mapfile." I presume this means there was a plan to use STYLES similar to a SYMBOLSET? Are there still any plans to do this? 3. I was looking to create circle symbols of different sizes based on an attribute, using one of the datasets from Natural Earth. The cities with large populations has a smaller "RANK_MAX" - so the size needs to be inverse to an attribute. There does not appear to be any easy way to do this without modifying the data. You can set the size using an attribute e.g. "SIZE [MYHEIGHT]" but is there a good reason why a MapServer expression couldn't be used here? I can add as a feature request to GitHub if it could be a nice addition. A final question - should I post these emails to the dev or users MapServers lists? Regards, Seth -- web: http://geographika.co.uk twitter: @geographika -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwkorver at gmail.com Tue Oct 25 10:26:45 2016 From: mwkorver at gmail.com (Mark Korver) Date: Tue, 25 Oct 2016 12:26:45 -0500 Subject: [mapserver-users] Refreshing AWS credentials for the /vsis3/ driver In-Reply-To: References: Message-ID: The AWS SDKs take care of getting the keys made available to the EC2 instance via IAM Roles. But if you are running something custom you can get the key info using a meta data call. See this doc page. http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html#instance-metadata-security-credentials The keys are rotated so you need to do this using something like cron. example: curl http://169.254.169.254/latest/meta-data/iam/security-credentials/your-IAM-Role-here You could for example run this every 5 minutes and update environment vars or check the expiration time and update 15 minutes before etc. The expiration time is included in the information that is returned in the iam/security-credentials/role-name category. -Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From pschmitt at gmail.com Wed Oct 26 12:37:14 2016 From: pschmitt at gmail.com (Peter Schmitt) Date: Wed, 26 Oct 2016 13:37:14 -0600 Subject: [mapserver-users] Refreshing AWS credentials for the /vsis3/ driver In-Reply-To: <201610251004.36845.even.rouault@spatialys.com> References: <201610251004.36845.even.rouault@spatialys.com> Message-ID: On Tue, Oct 25, 2016 at 2:04 AM, Even Rouault wrote: > > You're the first user of MapServer I'm aware of reporting use of /vsis3/ > (for > those wondering what it is, see > http://www.gdal.org/cpl__vsi_8h.html#a5b4754999acd06444bfda172ff2aaa16) > Congrats ! > > You could do just what you mention by using the "CONFIG key value" syntax > in > the MAP object. See http://mapserver.org/mapfile/map.html > As mentionned in the doc, it is for MapServer config options, but also for > any > GDAL config option. > > Thanks Even, this is exactly what I was looking for! Mapserver rendering images with /vsis3/ works surprisingly for data appropriately prepared (JPEG-compressed with ycbcr, internal tiling, overview levels added). Nice work on the vsis3 driver! Cheers, Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at spatialys.com Wed Oct 26 12:39:49 2016 From: even.rouault at spatialys.com (Even Rouault) Date: Wed, 26 Oct 2016 21:39:49 +0200 Subject: [mapserver-users] Refreshing AWS credentials for the /vsis3/ driver In-Reply-To: References: <201610251004.36845.even.rouault@spatialys.com> Message-ID: <201610262139.49911.even.rouault@spatialys.com> Le mercredi 26 octobre 2016 21:37:14, Peter Schmitt a ?crit : > On Tue, Oct 25, 2016 at 2:04 AM, Even Rouault > > wrote: > > You're the first user of MapServer I'm aware of reporting use of /vsis3/ > > (for > > those wondering what it is, see > > http://www.gdal.org/cpl__vsi_8h.html#a5b4754999acd06444bfda172ff2aaa16) > > Congrats ! > > > > You could do just what you mention by using the "CONFIG key value" syntax > > in > > the MAP object. See http://mapserver.org/mapfile/map.html > > As mentionned in the doc, it is for MapServer config options, but also > > for any > > GDAL config option. > > Thanks Even, this is exactly what I was looking for! Mapserver rendering > images with /vsis3/ works surprisingly for data appropriately prepared > (JPEG-compressed with ycbcr, internal tiling, overview levels added). Nice > work on the vsis3 driver! I've written recently a best practice for generating cloud optimized geotiffs: https://trac.osgeo.org/gdal/wiki/CloudOptimizedGeoTIFF (it mentions deflate compression, but jpeg-compressed can work of course) > > Cheers, > Pete -- Spatialys - Geospatial professional services http://www.spatialys.com From jmckenna at gatewaygeomatics.com Wed Oct 26 12:43:51 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 26 Oct 2016 16:43:51 -0300 Subject: [mapserver-users] Refreshing AWS credentials for the /vsis3/ driver In-Reply-To: References: <201610251004.36845.even.rouault@spatialys.com> Message-ID: <55705884-d2b9-b507-9824-a1267d8224c0@gatewaygeomatics.com> On 2016-10-26 4:37 PM, Peter Schmitt wrote: > > > Thanks Even, this is exactly what I was looking for! Mapserver > rendering images with /vsis3/ works surprisingly for data appropriately > prepared (JPEG-compressed with ycbcr, internal tiling, overview levels > added). Nice work on the vsis3 driver! > Peter, a great way to give back to the community, for the great software that you leverage, and for some good Open Source karma, is to create a wiki page describing your /vsis3/ AWS magic: create a new page in the "Tips, Trick, Howtos" section at https://github.com/mapserver/mapserver/wiki Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From pschmitt at gmail.com Wed Oct 26 21:23:29 2016 From: pschmitt at gmail.com (Peter Schmitt) Date: Wed, 26 Oct 2016 22:23:29 -0600 Subject: [mapserver-users] Refreshing AWS credentials for the /vsis3/ driver In-Reply-To: <55705884-d2b9-b507-9824-a1267d8224c0@gatewaygeomatics.com> References: <201610251004.36845.even.rouault@spatialys.com> <55705884-d2b9-b507-9824-a1267d8224c0@gatewaygeomatics.com> Message-ID: On Wed, Oct 26, 2016 at 1:43 PM, Jeff McKenna wrote: > > Peter, a great way to give back to the community, for the great software > that you leverage, and for some good Open Source karma, is to create a wiki > page describing your /vsis3/ AWS magic: create a new page in the "Tips, > Trick, Howtos" section at https://github.com/mapserver/mapserver/wiki > > Good idea. I just added this page https://github.com/mapserver/mapserver/wiki/Render-images-straight-out-of-S3-with-the-vsicurl-driver . I have prepared a sample setup via a Docker image here: https://github.com/pedros007/mapserver-docker . This gives the general idea of how to get it working, but the /vsis3/ example wont work out of the box as I cannot release the data. Cheers, Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From villermois.soline at gmail.com Thu Oct 27 02:30:53 2016 From: villermois.soline at gmail.com (Soline Villermois) Date: Thu, 27 Oct 2016 09:30:53 +0000 Subject: [mapserver-users] Need examples of UTFGrid Mapserver + Ol3 Message-ID: Hi, 'm having troubles using utfgrid module with openlayers. The implementation on Mapserver's side is quite simple, even if i have doubts about the imagetype : MAP IMAGETYPE UTFGRID SIZE 2000 2000 CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt" #DEBUG 4 EXTENT -176.197 -31.0869 181.47 81.8381 NAME "allexmaple" PROJECTION "init=epsg:4326" END QUERYMAP STATUS ON END OUTPUTFORMAT NAME "utfgrid" DRIVER UTFGRID MIMETYPE "application/json" EXTENSION "json" FORMATOPTION "UTFRESOLUTION=4" FORMATOPTION "DUPLICATES=false" END WEB IMAGEPATH "tmp/" IMAGEURL "tmp/" END SYMBOL NAME "mysymbol" TYPE pixmap ANCHORPOINT 0.5 0.5 IMAGE "icons/mysymbol.png" END LAYER TOLERANCE 10 CONNECTIONTYPE postgis NAME "example" CONNECTION "host=127.0.0.1 dbname=ais_data user=postgres password=admin port=5432" DATA "geom from mytable using srid=4326" STATUS ON TYPE POINT UTFITEM "id" UTFDATA "{\"id\":\"[id]\",\"name\":\"[name]\"}" TEMPLATE 'query.html' HEADER 'header.html' FOOTER 'footer.html' CLASSITEM "ct" CLASS EXPRESSION "mysymbol" STYLE ANGLE [angle] SYMBOL 'mysymbol' END # style END # class END END Openlayers, on the other hand, doesn't have efficient example. I don't know what to provide in my url. Here's what I tried: var gridSource = new ol.source.TileUTFGrid({ url: 'http://localhost:5000/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/essai.map&layers=example&tiled=true&mode=map&type=utfgrid&format=application/json' }); var mySuperLayer = new ol.layer.Tile({ source: gridSource }); But nothing appears and my url stays in pending until timeout I just don't know how to debug that, any help would be highly appreciated -------------- next part -------------- An HTML attachment was scrubbed... URL: From pschmitt at gmail.com Thu Oct 27 09:33:01 2016 From: pschmitt at gmail.com (Peter Schmitt) Date: Thu, 27 Oct 2016 10:33:01 -0600 Subject: [mapserver-users] Refreshing AWS credentials for the /vsis3/ driver In-Reply-To: <201610262139.49911.even.rouault@spatialys.com> References: <201610251004.36845.even.rouault@spatialys.com> <201610262139.49911.even.rouault@spatialys.com> Message-ID: On Wed, Oct 26, 2016 at 1:39 PM, Even Rouault wrote: > I've written recently a best practice for generating cloud optimized > geotiffs: > https://trac.osgeo.org/gdal/wiki/CloudOptimizedGeoTIFF > (it mentions deflate compression, but jpeg-compressed can work of course) > > Thanks again, Even! I did some experimentation with a 19584x19584 file with 6 overview levels. When the image is deflate-compressed: > gdal_translate in.tif deflate.tif -co TILED=YES -co COMPRESS=DEFLATE -co COPY_SRC_OVERVIEWS=YES then this gdalinfo command does two range requests: > env AWS_ACCESS_KEY_ID=foo AWS_SECRET_ACCESS_KEY=bar CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.tif CPL_CURL_VERBOSE=YES VSI_CACHE=TRUE gdalinfo /vsis3/pschmitt-test/deflate.tif 2>&1 | grep "Content-Range:" > < Content-Range: bytes 0-49151/1038305419 > < Content-Range: bytes 49152-147455/1038305419 When I jpeg-compress > gdal_translate deflate.tif jpeg.tif -co TILED=YES -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR -co COPY_SRC_OVERVIEWS=YES then gdalinfo on the jpeg-compressed image does 13 range requests: > env AWS_ACCESS_KEY_ID=foo AWS_SECRET_ACCESS_KEY=bar CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.tif CPL_CURL_VERBOSE=YES VSI_CACHE=TRUE gdalinfo /vsis3/pschmitt-test/jpeg.tif 2>&1 | grep "Content-Range:" > < Content-Range: bytes 0-49151/83731710 > < Content-Range: bytes 83656704-83705855/83731710 > < Content-Range: bytes 83722240-83731709/83731710 > < Content-Range: bytes 83705856-83722239/83731710 > < Content-Range: bytes 25231360-25280511/83731710 > < Content-Range: bytes 25165824-25214975/83731710 > < Content-Range: bytes 25214976-25231359/83731710 > < Content-Range: bytes 7602176-7651327/83731710 > < Content-Range: bytes 2228224-2310143/83731710 > < Content-Range: bytes 655360-704511/83731710 > < Content-Range: bytes 229376-278527/83731710 > < Content-Range: bytes 131072-180223/83731710 > < Content-Range: bytes 98304-131071/83731710 and 16 range requests if it also has an internal mask band. It seems JPEG compression greatly increases the size of the image metadata. Cheers, Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at spatialys.com Thu Oct 27 09:42:51 2016 From: even.rouault at spatialys.com (Even Rouault) Date: Thu, 27 Oct 2016 18:42:51 +0200 Subject: [mapserver-users] Refreshing AWS credentials for the /vsis3/ driver In-Reply-To: References: <201610262139.49911.even.rouault@spatialys.com> Message-ID: <201610271842.52210.even.rouault@spatialys.com> Le jeudi 27 octobre 2016 18:33:01, Peter Schmitt a ?crit : > On Wed, Oct 26, 2016 at 1:39 PM, Even Rouault > > wrote: > > I've written recently a best practice for generating cloud optimized > > geotiffs: > > https://trac.osgeo.org/gdal/wiki/CloudOptimizedGeoTIFF > > (it mentions deflate compression, but jpeg-compressed can work of course) > > Thanks again, Even! I did some experimentation with a 19584x19584 file with > > 6 overview levels. When the image is deflate-compressed: > > gdal_translate in.tif deflate.tif -co TILED=YES -co COMPRESS=DEFLATE -co > > COPY_SRC_OVERVIEWS=YES > > then this gdalinfo command does two range requests: > > env AWS_ACCESS_KEY_ID=foo > > AWS_SECRET_ACCESS_KEY=bar CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.tif > CPL_CURL_VERBOSE=YES > VSI_CACHE=TRUE gdalinfo /vsis3/pschmitt-test/deflate.tif 2>&1 | grep > "Content-Range:" > > > < Content-Range: bytes 0-49151/1038305419 > > < Content-Range: bytes 49152-147455/1038305419 > > When I jpeg-compress > > > gdal_translate deflate.tif jpeg.tif -co TILED=YES -co COMPRESS=JPEG -co > > PHOTOMETRIC=YCBCR -co COPY_SRC_OVERVIEWS=YES > > then gdalinfo on the jpeg-compressed image does 13 range requests: > > env AWS_ACCESS_KEY_ID=foo > > AWS_SECRET_ACCESS_KEY=bar CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.tif > CPL_CURL_VERBOSE=YES > VSI_CACHE=TRUE gdalinfo /vsis3/pschmitt-test/jpeg.tif 2>&1 | grep > "Content-Range:" > > > < Content-Range: bytes 0-49151/83731710 > > < Content-Range: bytes 83656704-83705855/83731710 > > < Content-Range: bytes 83722240-83731709/83731710 > > < Content-Range: bytes 83705856-83722239/83731710 > > < Content-Range: bytes 25231360-25280511/83731710 > > < Content-Range: bytes 25165824-25214975/83731710 > > < Content-Range: bytes 25214976-25231359/83731710 > > < Content-Range: bytes 7602176-7651327/83731710 > > < Content-Range: bytes 2228224-2310143/83731710 > > < Content-Range: bytes 655360-704511/83731710 > > < Content-Range: bytes 229376-278527/83731710 > > < Content-Range: bytes 131072-180223/83731710 > > < Content-Range: bytes 98304-131071/83731710 Could you post the outpout of "tiffdump jpeg.tif" ? There are some hacks in libtiff regarding JPEG compression and in particular JPEG tables that might perhaps cause spurious IFD rewriting. > > and 16 range requests if it also has an internal mask band. It seems JPEG > compression greatly increases the size of the image metadata. > > Cheers, > Pete -- Spatialys - Geospatial professional services http://www.spatialys.com From pschmitt at gmail.com Thu Oct 27 09:47:38 2016 From: pschmitt at gmail.com (Peter Schmitt) Date: Thu, 27 Oct 2016 10:47:38 -0600 Subject: [mapserver-users] Refreshing AWS credentials for the /vsis3/ driver In-Reply-To: <201610271842.52210.even.rouault@spatialys.com> References: <201610262139.49911.even.rouault@spatialys.com> <201610271842.52210.even.rouault@spatialys.com> Message-ID: On Thu, Oct 27, 2016 at 10:42 AM, Even Rouault wrote: > Le jeudi 27 octobre 2016 18:33:01, Peter Schmitt a ?crit : > > On Wed, Oct 26, 2016 at 1:39 PM, Even Rouault < > even.rouault at spatialys.com> > > > > wrote: > > > I've written recently a best practice for generating cloud optimized > > > geotiffs: > > > https://trac.osgeo.org/gdal/wiki/CloudOptimizedGeoTIFF > > > (it mentions deflate compression, but jpeg-compressed can work of > course) > > > > Thanks again, Even! I did some experimentation with a 19584x19584 file > with > > > > 6 overview levels. When the image is deflate-compressed: > > > gdal_translate in.tif deflate.tif -co TILED=YES -co COMPRESS=DEFLATE > -co > > > > COPY_SRC_OVERVIEWS=YES > > > > then this gdalinfo command does two range requests: > > > env AWS_ACCESS_KEY_ID=foo > > > > AWS_SECRET_ACCESS_KEY=bar CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.tif > > CPL_CURL_VERBOSE=YES > > VSI_CACHE=TRUE gdalinfo /vsis3/pschmitt-test/deflate.tif 2>&1 | grep > > "Content-Range:" > > > > > < Content-Range: bytes 0-49151/1038305419 > > > < Content-Range: bytes 49152-147455/1038305419 > > > > When I jpeg-compress > > > > > gdal_translate deflate.tif jpeg.tif -co TILED=YES -co COMPRESS=JPEG -co > > > > PHOTOMETRIC=YCBCR -co COPY_SRC_OVERVIEWS=YES > > > > then gdalinfo on the jpeg-compressed image does 13 range requests: > > > env AWS_ACCESS_KEY_ID=foo > > > > AWS_SECRET_ACCESS_KEY=bar CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.tif > > CPL_CURL_VERBOSE=YES > > VSI_CACHE=TRUE gdalinfo /vsis3/pschmitt-test/jpeg.tif 2>&1 | grep > > "Content-Range:" > > > > > < Content-Range: bytes 0-49151/83731710 > > > < Content-Range: bytes 83656704-83705855/83731710 > > > < Content-Range: bytes 83722240-83731709/83731710 > > > < Content-Range: bytes 83705856-83722239/83731710 > > > < Content-Range: bytes 25231360-25280511/83731710 > > > < Content-Range: bytes 25165824-25214975/83731710 > > > < Content-Range: bytes 25214976-25231359/83731710 > > > < Content-Range: bytes 7602176-7651327/83731710 > > > < Content-Range: bytes 2228224-2310143/83731710 > > > < Content-Range: bytes 655360-704511/83731710 > > > < Content-Range: bytes 229376-278527/83731710 > > > < Content-Range: bytes 131072-180223/83731710 > > > < Content-Range: bytes 98304-131071/83731710 > > Could you post the outpout of "tiffdump jpeg.tif" ? There are some hacks in > libtiff regarding JPEG compression and in particular JPEG tables that might > perhaps cause spurious IFD rewriting. > > Here's the ouput of "tiffdump jpeg.tif": http://pastebin.com/raw/pX6XMYVT -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at spatialys.com Thu Oct 27 10:10:17 2016 From: even.rouault at spatialys.com (Even Rouault) Date: Thu, 27 Oct 2016 19:10:17 +0200 Subject: [mapserver-users] Refreshing AWS credentials for the /vsis3/ driver In-Reply-To: References: <201610271842.52210.even.rouault@spatialys.com> Message-ID: <201610271910.17353.even.rouault@spatialys.com> Le jeudi 27 octobre 2016 18:47:38, Peter Schmitt a ?crit : > On Thu, Oct 27, 2016 at 10:42 AM, Even Rouault > > wrote: > > Le jeudi 27 octobre 2016 18:33:01, Peter Schmitt a ?crit : > > > On Wed, Oct 26, 2016 at 1:39 PM, Even Rouault < > > > > even.rouault at spatialys.com> > > > > > wrote: > > > > I've written recently a best practice for generating cloud optimized > > > > geotiffs: > > > > https://trac.osgeo.org/gdal/wiki/CloudOptimizedGeoTIFF > > > > (it mentions deflate compression, but jpeg-compressed can work of > > > > course) > > > > > Thanks again, Even! I did some experimentation with a 19584x19584 file > > > > with > > > > > 6 overview levels. When the image is deflate-compressed: > > > > gdal_translate in.tif deflate.tif -co TILED=YES -co COMPRESS=DEFLATE > > > > -co > > > > > COPY_SRC_OVERVIEWS=YES > > > > > > then this gdalinfo command does two range requests: > > > > env AWS_ACCESS_KEY_ID=foo > > > > > > AWS_SECRET_ACCESS_KEY=bar CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.tif > > > CPL_CURL_VERBOSE=YES > > > VSI_CACHE=TRUE gdalinfo /vsis3/pschmitt-test/deflate.tif 2>&1 | grep > > > "Content-Range:" > > > > > > > < Content-Range: bytes 0-49151/1038305419 > > > > < Content-Range: bytes 49152-147455/1038305419 > > > > > > When I jpeg-compress > > > > > > > gdal_translate deflate.tif jpeg.tif -co TILED=YES -co COMPRESS=JPEG > > > > -co > > > > > > PHOTOMETRIC=YCBCR -co COPY_SRC_OVERVIEWS=YES > > > > > > then gdalinfo on the jpeg-compressed image does 13 range requests: > > > > env AWS_ACCESS_KEY_ID=foo > > > > > > AWS_SECRET_ACCESS_KEY=bar CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.tif > > > CPL_CURL_VERBOSE=YES > > > VSI_CACHE=TRUE gdalinfo /vsis3/pschmitt-test/jpeg.tif 2>&1 | grep > > > "Content-Range:" > > > > > > > < Content-Range: bytes 0-49151/83731710 > > > > < Content-Range: bytes 83656704-83705855/83731710 > > > > < Content-Range: bytes 83722240-83731709/83731710 > > > > < Content-Range: bytes 83705856-83722239/83731710 > > > > < Content-Range: bytes 25231360-25280511/83731710 > > > > < Content-Range: bytes 25165824-25214975/83731710 > > > > < Content-Range: bytes 25214976-25231359/83731710 > > > > < Content-Range: bytes 7602176-7651327/83731710 > > > > < Content-Range: bytes 2228224-2310143/83731710 > > > > < Content-Range: bytes 655360-704511/83731710 > > > > < Content-Range: bytes 229376-278527/83731710 > > > > < Content-Range: bytes 131072-180223/83731710 > > > > < Content-Range: bytes 98304-131071/83731710 > > > > Could you post the outpout of "tiffdump jpeg.tif" ? There are some hacks > > in libtiff regarding JPEG compression and in particular JPEG tables that > > might perhaps cause spurious IFD rewriting. > > Here's the ouput of "tiffdump jpeg.tif": http://pastebin.com/raw/pX6XMYVT That's what I suspected. The IFD are not placed at the beginning of the file, but rather rewritten after each "data section". Which libtiff version is used in your GDAL build: internal libtiff or system libtiff (if so, which version)? But I wouldn't surprise that the issue exists with any libtiff version because of what I mentionned with jpeg compression. That might probably be fixable (likely with some headaches) -- Spatialys - Geospatial professional services http://www.spatialys.com From pschmitt at gmail.com Thu Oct 27 10:25:31 2016 From: pschmitt at gmail.com (Peter Schmitt) Date: Thu, 27 Oct 2016 11:25:31 -0600 Subject: [mapserver-users] Refreshing AWS credentials for the /vsis3/ driver In-Reply-To: <201610271910.17353.even.rouault@spatialys.com> References: <201610271842.52210.even.rouault@spatialys.com> <201610271910.17353.even.rouault@spatialys.com> Message-ID: On Thu, Oct 27, 2016 at 11:10 AM, Even Rouault wrote: > > > > > When the image is deflate-compressed, gdalinfo command does two > range requests. > > > > When the image is jpeg-compressed, gdalinfo does 13 range requests. > > > > > > Could you post the outpout of "tiffdump jpeg.tif" ? There are some > hacks > > > in libtiff regarding JPEG compression and in particular JPEG tables > that > > > might perhaps cause spurious IFD rewriting. > > > > Here's the ouput of "tiffdump jpeg.tif": http://pastebin.com/raw/ > pX6XMYVT > > That's what I suspected. The IFD are not placed at the beginning of the > file, > but rather rewritten after each "data section". > Which libtiff version is used in your GDAL build: internal libtiff or > system > libtiff (if so, which version)? But I wouldn't surprise that the issue > exists > with any libtiff version because of what I mentionned with jpeg > compression. > That might probably be fixable (likely with some headaches) > > I built GDAL-2.1.1 with these flags: https://github.com/pedros007/mapserver-docker/blob/master/gdal-build.sh --with-rename-internal-libtiff-symbols=yes \ --with-rename-internal-libgeotiff-symbols=yes \ --with-libtiff=internal \ --with-geotiff=internal \ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Vogt at rcis.com Thu Oct 27 13:57:33 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Thu, 27 Oct 2016 20:57:33 +0000 Subject: [mapserver-users] SQL credentials Message-ID: <7e2c8db3e3f44e3992e5e1e2c70d2924@PDEXCH1301.corp.rcis.com> In my connection is it possible to replace the ?uid? and ?pwd? with an environmental variable that mapserver would look up? Or some other way obfuscating the credentials? CONNECTION "server=stgissql01.dvcorp.rcis.com,5208;uid=MS_UID;pwd=MS_PASS;Initial Catalog=NATIONALDB;Integrated Security=False" -Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at yahoo.com Thu Oct 27 14:54:05 2016 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 27 Oct 2016 21:54:05 +0000 (UTC) Subject: [mapserver-users] SQL credentials In-Reply-To: <7e2c8db3e3f44e3992e5e1e2c70d2924@PDEXCH1301.corp.rcis.com> References: <7e2c8db3e3f44e3992e5e1e2c70d2924@PDEXCH1301.corp.rcis.com> Message-ID: <972162599.97405.1477605245377@mail.yahoo.com> Hi Bob, Yes, take a look to msencrypt utility: msencrypt ? MapServer 7.0.2 documentation | | | msencrypt ? MapServer 7.0.2 documentation | | | Best regards From: "Vogt, Robert (RCIS)" To: "mapserver-users at lists.osgeo.org" Sent: Thursday, October 27, 2016 3:57 PM Subject: [mapserver-users] SQL credentials In my connection is it possible to replace the ?uid? and ?pwd?? with an environmental variable that mapserver would look up? Or some other way obfuscating the credentials? ? CONNECTION "server=stgissql01.dvcorp.rcis.com,5208;uid=MS_UID;pwd=MS_PASS;Initial Catalog=NATIONALDB;Integrated Security=False" ? -Bob ? _______________________________________________ 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 axel.bayerl at r2software.net Thu Oct 27 15:14:08 2016 From: axel.bayerl at r2software.net (Axel Bayerl) Date: Thu, 27 Oct 2016 19:14:08 -0300 Subject: [mapserver-users] Using CLASS and SCALE at the same time Message-ID: Hello, i was wondering if it is possible to use PROCESSING "SCALE=min,max", and the output of that feed it to CLASS to classify the data. Example: I have a image which min and max is 0 and 5.4 respectively. I want to SCALE it to get it in the 0-255 range. PROCESSING "SCALE=0,5.4" Then i want to apply a LUT, and classify the values (all with the 0-255 range) PROCESSING "LUT=u.curve" CLASS NAME "0" EXPRESSION ([pixel] = 0) STYLE COLOR 0 0 0 END END CLASS NAME "1" EXPRESSION ([pixel] >= 1 AND [pixel] < 3) STYLE COLOR 255 0 0 END END CLASS NAME "2" EXPRESSION ([pixel] >= 3 AND [pixel] < 7) STYLE COLOR 255 23 0 END END CLASS NAME "3" EXPRESSION ([pixel] >= 7 AND [pixel] < 11) STYLE COLOR 255 47 0 END END CLASS NAME "4" EXPRESSION ([pixel] >= 11 AND [pixel] < 15) STYLE COLOR 255 71 0 END END .... But when i classify the processing scale is ignored (and LUT). In short, i want for the expression of class to manage the scaled (and LUTed) value of the pixel, not the pixel value itself. Thanks. Axel. PS: the raster is of type Float32. From richard.greenwood at gmail.com Fri Oct 28 16:15:34 2016 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Fri, 28 Oct 2016 17:15:34 -0600 Subject: [mapserver-users] SQL credentials In-Reply-To: <7e2c8db3e3f44e3992e5e1e2c70d2924@PDEXCH1301.corp.rcis.com> References: <7e2c8db3e3f44e3992e5e1e2c70d2924@PDEXCH1301.corp.rcis.com> Message-ID: Does this meet your needs? http://mapserver.org/utilities/msencrypt.html Another option might be to INCLUDE the connection info and then limit the user permissions on the INCLUDE-ed file. Rich On Thu, Oct 27, 2016 at 2:57 PM, Vogt, Robert (RCIS) wrote: > In my connection is it possible to replace the ?uid? and ?pwd? with an > environmental variable that mapserver would look up? > > Or some other way obfuscating the credentials? > > > > CONNECTION "server=stgissql01.dvcorp.rcis.com,5208;uid=MS_UID;pwd=MS_PASS;Initial > Catalog=NATIONALDB;Integrated Security=False" > > > > -Bob > > > > _______________________________________________ > 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 geographika at gmail.com Sun Oct 30 13:35:27 2016 From: geographika at gmail.com (Seth G) Date: Sun, 30 Oct 2016 21:35:27 +0100 Subject: [mapserver-users] Need examples of UTFGrid Mapserver + Ol3 In-Reply-To: References: Message-ID: <13455bd0-7a5a-a2eb-8a80-d2a6ce2e2c62@gmail.com> Hi, I also tried to get an example of the UTFGrid working with OL3. I was using MapServer running under IIS on a Windows Server, and after debugging it looks like there is a problem with MapServer/Windows and text encoding that causes the UTFGrid output to be corrupt. I have created a pull request with a fix for this issue at https://github.com/mapserver/mapserver/pull/5342 Are you also using Windows? You should be able to see the browser requests/responses using Chrome developer tools, Firebug for Firefox, or Fiddler. At least then you will know if MapServer is returning useful output. Regards, Seth -- web:http://geographika.co.uk twitter: @geographika On 27/10/2016 11:30, Soline Villermois wrote: > Hi, > > 'm having troubles using utfgrid module with openlayers. The > implementation on Mapserver's side is quite simple, even if i have > doubts about the imagetype : > > |MAP IMAGETYPE UTFGRID SIZE 20002000CONFIG > "MS_ERRORFILE""/ms4w/tmp/ms_error.txt"#DEBUG 4EXTENT > -176.197-31.0869181.4781.8381NAME "allexmaple"PROJECTION > "init=epsg:4326"END QUERYMAP STATUS ON END OUTPUTFORMAT NAME > "utfgrid"DRIVER UTFGRID MIMETYPE "application/json"EXTENSION > "json"FORMATOPTION "UTFRESOLUTION=4"FORMATOPTION "DUPLICATES=false"END > WEB IMAGEPATH "tmp/"IMAGEURL "tmp/"END SYMBOL NAME "mysymbol"TYPE > pixmap ANCHORPOINT 0.50.5IMAGE "icons/mysymbol.png"END LAYER TOLERANCE > 10CONNECTIONTYPE postgis NAME "example"CONNECTION "host=127.0.0.1 > dbname=ais_data user=postgres password=admin port=5432"DATA "geom from > mytable using srid=4326"STATUS ON TYPE POINT UTFITEM "id"UTFDATA > "{\"id\":\"[id]\",\"name\":\"[name]\"}"TEMPLATE 'query.html'HEADER > 'header.html'FOOTER 'footer.html'CLASSITEM "ct"CLASS EXPRESSION > "mysymbol"STYLE ANGLE [angle]SYMBOL 'mysymbol'END #style END #classEND| > > END > > Openlayers, on the other hand, doesn't have efficient example. I don't > know what to provide in my url. Here's what I tried: > > |vargridSource > =newol.source.TileUTFGrid({url:'http://localhost:5000/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/essai.map&layers=example&tiled=true&mode=map&type=utfgrid&format=application/json'});varmySuperLayer > =newol.layer.Tile({source:gridSource });| > > But nothing appears and my url stays in pending until timeout > > I just don't know how to debug that, any help would be highly appreciated > > > > _______________________________________________ > 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 myrrdyn2001 at yahoo.fr Mon Oct 31 04:26:17 2016 From: myrrdyn2001 at yahoo.fr (myrrdyn) Date: Mon, 31 Oct 2016 04:26:17 -0700 (MST) Subject: [mapserver-users] Mapserver Symbol's problem Message-ID: <1477913177804-5293584.post@n6.nabble.com> Hello everyone, I have a little problem with symbols in mapserver. As seen in the image below, when my symbols are one above the other, they seem to have been cut. My symbol is in PNG with transparent background format. The image will immediately show you the trouble: http://www.hostingpics.net/viewer.php?id=294605prob1.jpg And here's the code that I use in my map file MAP SYMBOL NAME "pt2" TYPE PIXMAP IMAGE "symbols/redmarker24.png" END ... LAYER NAME "liscai" METADATA "ows_title" "Estimation" "ows_srs" "EPSG:4326" "gml_include_items" "all" "gml_featureid" "ID" "ows_enable_request" "*" "wms_enable_request" "*" "gml_include_items" "all" "wms_include_items" "all" END HEADER "template/gfihe.html" # header html template TEMPLATE "template/gfice.html" # content html template FOOTER "template/gfife.html" # footer html template DUMP TRUE STATUS ON DATA 'data/liscai' PROJECTION "init=epsg:4326" END TYPE POINT CLASS SYMBOL "pt2" SIZE 24 END END If someone has an idea, I'm interested. Thank you all, -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-Symbol-s-problem-tp5293584.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jukka.rahkonen at maanmittauslaitos.fi Mon Oct 31 04:51:12 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 31 Oct 2016 11:51:12 +0000 Subject: [mapserver-users] Mapserver Symbol's problem Message-ID: <4752fe6d69f24ee394a789ac483d38ad@C119S212VM022.msvyvi.vaha.local> Hi, For making it even more easy to reproduce, could you send also the "redmarker24.png" symbol? -Jukka Rahkonen- myrrdyn wrote: > Hello everyone, > I have a little problem with symbols in mapserver. >As seen in the image below, when my symbols are one above the other, they seem to have been cut. > My symbol is in PNG with transparent background format. > The image will immediately show you the trouble: http://www.hostingpics.net/viewer.php?id=294605prob1.jpg And here's the code that I use in my map file MAP SYMBOL NAME "pt2" TYPE PIXMAP IMAGE "symbols/redmarker24.png" END ... LAYER NAME "liscai" METADATA "ows_title" "Estimation" "ows_srs" "EPSG:4326" "gml_include_items" "all" "gml_featureid" "ID" "ows_enable_request" "*" "wms_enable_request" "*" "gml_include_items" "all" "wms_include_items" "all" END HEADER "template/gfihe.html" # header html template TEMPLATE "template/gfice.html" # content html template FOOTER "template/gfife.html" # footer html template DUMP TRUE STATUS ON DATA 'data/liscai' PROJECTION "init=epsg:4326" END TYPE POINT CLASS SYMBOL "pt2" SIZE 24 END END If someone has an idea, I'm interested. Thank you all, -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-Symbol-s-problem-tp5293584.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 myrrdyn2001 at yahoo.fr Mon Oct 31 05:29:28 2016 From: myrrdyn2001 at yahoo.fr (myrrdyn) Date: Mon, 31 Oct 2016 05:29:28 -0700 (MST) Subject: [mapserver-users] Mapserver Symbol's problem In-Reply-To: <1477913177804-5293584.post@n6.nabble.com> References: <1477913177804-5293584.post@n6.nabble.com> Message-ID: <1477916968139-5293590.post@n6.nabble.com> Here is the symbol : H?bergez
vos fichiers - K-upload -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-Symbol-s-problem-tp5293584p5293590.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jukka.rahkonen at maanmittauslaitos.fi Mon Oct 31 06:21:52 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 31 Oct 2016 13:21:52 +0000 Subject: [mapserver-users] Mapserver Symbol's problem Message-ID: <977c73906e3840d3a64d75a23db879bc@C119S212VM022.msvyvi.vaha.local> Hi, I could not reproduce with Mapserver 7.0.2 on Linux. Attached screenshot is from WMS client to avoid issues with clients which make tiled requests. Tiled maps tend to suffer from clipped labels and symbols at the tile boundaries but your screenshot does not seem like that. It is like transparent colour of the symbols paints also the underlying symbols with transparent colour. It works for me but not for your so we must have something different. Which Mapserver version do you have? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta myrrdyn L?hetetty: 31. lokakuuta 2016 14:29 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Mapserver Symbol's problem Here is the symbol : H?bergez vos fichiers - K-upload -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-Symbol-s-problem-tp5293584p5293590.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 -------------- next part -------------- A non-text attachment was scrubbed... Name: overlapping_png_markers_ms_702.png Type: image/png Size: 13180 bytes Desc: overlapping_png_markers_ms_702.png URL: From myrrdyn2001 at yahoo.fr Mon Oct 31 08:11:43 2016 From: myrrdyn2001 at yahoo.fr (myrrdyn) Date: Mon, 31 Oct 2016 08:11:43 -0700 (MST) Subject: [mapserver-users] Mapserver Symbol's problem In-Reply-To: <977c73906e3840d3a64d75a23db879bc@C119S212VM022.msvyvi.vaha.local> References: <1477913177804-5293584.post@n6.nabble.com> <977c73906e3840d3a64d75a23db879bc@C119S212VM022.msvyvi.vaha.local> Message-ID: <1477926703728-5293632.post@n6.nabble.com> The website is on Alwaysdata.com The version of Mapserver is 5.6.5 This may perhaps explain the worries :( -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-Symbol-s-problem-tp5293584p5293632.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Mon Oct 31 10:48:27 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 31 Oct 2016 14:48:27 -0300 Subject: [mapserver-users] Layer opacity not working In-Reply-To: <1477305466074-5292269.post@n6.nabble.com> References: <1477305466074-5292269.post@n6.nabble.com> Message-ID: <3ad489a1-6b80-d1c7-0687-4093397ae913@gatewaygeomatics.com> I haven't been able to reproduce this with 7.0.2 -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-10-24 7:37 AM, mmohr wrote: > Hello, somehow the layer opacity isn?t working. I tried to configure a WMS > with MS 7.0.1 and 7.0.2 but mostly my response is non-transparent? The > transparency appears only sometimes. > > I?m using ?LAYER->COMPOSITE->OPACITY?: > > LAYER > [?] > COMPOSITE > OPACITY 50 > END > [?] > END > > What am I doing wrong? Does someone else observes this magical behavior? > > Hope someone can help. > > Best regards > Marcus > > From jmckenna at gatewaygeomatics.com Mon Oct 31 11:28:44 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 31 Oct 2016 15:28:44 -0300 Subject: [mapserver-users] Layer opacity not working In-Reply-To: <1477305466074-5292269.post@n6.nabble.com> References: <1477305466074-5292269.post@n6.nabble.com> Message-ID: <3342e709-87c8-a7ff-3fda-dc096a8671c5@gatewaygeomatics.com> Oh, I *can* reproduce in 7.0.2 but only with a GetMap request (normal CGI returns correct image with transparency, but a GetMap request shows the same layer with no transparency). The same GetMap request to 7.0.1 returns the correct image. Is this what others are seeing?? -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-10-24 7:37 AM, mmohr wrote: > Hello, somehow the layer opacity isn?t working. I tried to configure a WMS > with MS 7.0.1 and 7.0.2 but mostly my response is non-transparent? The > transparency appears only sometimes. > > I?m using ?LAYER->COMPOSITE->OPACITY?: > > LAYER > [?] > COMPOSITE > OPACITY 50 > END > [?] > END > > What am I doing wrong? Does someone else observes this magical behavior? > > Hope someone can help. > > Best regards > Marcus > > > From Robert.Vogt at rcis.com Mon Oct 31 11:50:38 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Mon, 31 Oct 2016 18:50:38 +0000 Subject: [mapserver-users] ogrinfo not recognized Message-ID: I'm trying to test my connection string in ogrinfo. These are the steps I'm taking... 1. Open PowerShell as administrator 2. Navigate to directory where ogrinfo.exe is located 3. Enter command "ogrinfo MySQL:DatabaseName,host=Server,user=myUserName,password=myPassword,port=myPort" Then I receive an error stating "ogrinfo : The term 'ogrinfo' is not recognized as the name of a cmdlet" Not sure what I am doing wrong? From jmckenna at gatewaygeomatics.com Mon Oct 31 12:15:31 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 31 Oct 2016 16:15:31 -0300 Subject: [mapserver-users] Layer opacity not working In-Reply-To: <1477305466074-5292269.post@n6.nabble.com> References: <1477305466074-5292269.post@n6.nabble.com> Message-ID: <8510c308-44f4-39c3-719d-fd604b0379c3@gatewaygeomatics.com> I've created a small test case to reproduce (and included the commands to run) and filed a ticket: https://github.com/mapserver/mapserver/issues/5343 Also, I've noticed that when running the GetMap request at the commandline, 7.0.2 returns this odd error message (works fine with 7.0.1): *** BUG *** In ???: The expression bits == NULL || (rowstride_bytes % sizeof (uint32_t)) == 0 was false Set a breakpoint on '_pixman_log_error' to debug -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-10-24 7:37 AM, mmohr wrote: > Hello, somehow the layer opacity isn?t working. I tried to configure a WMS > with MS 7.0.1 and 7.0.2 but mostly my response is non-transparent? The > transparency appears only sometimes. > > I?m using ?LAYER->COMPOSITE->OPACITY?: > > LAYER > [?] > COMPOSITE > OPACITY 50 > END > [?] > END > > What am I doing wrong? Does someone else observes this magical behavior? > > Hope someone can help. > > Best regards > Marcus > > From mafonso333 at gmail.com Mon Oct 31 12:26:24 2016 From: mafonso333 at gmail.com (Marco Afonso) Date: Mon, 31 Oct 2016 19:26:24 +0000 Subject: [mapserver-users] ogrinfo not recognized In-Reply-To: References: Message-ID: Hello, If you are using MapSever for Windows (MS4W), first you need to run setenv.bat located in the ms4w directory. This will add libraries paths to windows enviroment variable. 2016-10-31 18:50 GMT+00:00 Vogt, Robert (RCIS) : > I'm trying to test my connection string in ogrinfo. > These are the steps I'm taking... > > 1. Open PowerShell as administrator > 2. Navigate to directory where ogrinfo.exe is located > 3. Enter command "ogrinfo MySQL:DatabaseName,host=Server,user=myUserName, > password=myPassword,port=myPort" > > Then I receive an error stating "ogrinfo : The term 'ogrinfo' is not > recognized as the name of a cmdlet" > > Not sure what I am doing wrong? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Regards, Marco Afonso http://goo.gl/ZDtQjm -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Mon Oct 31 12:27:49 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 31 Oct 2016 19:27:49 +0000 Subject: [mapserver-users] Layer opacity not working In-Reply-To: <8510c308-44f4-39c3-719d-fd604b0379c3@gatewaygeomatics.com> References: <1477305466074-5292269.post@n6.nabble.com> <8510c308-44f4-39c3-719d-fd604b0379c3@gatewaygeomatics.com> Message-ID: <5302d6b863664bacbfd43f411159346d@C119S212VM022.msvyvi.vaha.local> Hi, I can confirm with Linux and Mapserver 7.0.2. I found also an easy workaround: go back to deprecated style - opacity STYLE OUTLINECOLOR "#000000" COLOR "#98C06B" OPACITY 50 END -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Jeff McKenna L?hetetty: 31. lokakuuta 2016 21:16 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Layer opacity not working I've created a small test case to reproduce (and included the commands to run) and filed a ticket: https://github.com/mapserver/mapserver/issues/5343 Also, I've noticed that when running the GetMap request at the commandline, 7.0.2 returns this odd error message (works fine with 7.0.1): *** BUG *** In ???: The expression bits == NULL || (rowstride_bytes % sizeof (uint32_t)) == 0 was false Set a breakpoint on '_pixman_log_error' to debug -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-10-24 7:37 AM, mmohr wrote: > Hello, somehow the layer opacity isn?t working. I tried to configure a WMS > with MS 7.0.1 and 7.0.2 but mostly my response is non-transparent? The > transparency appears only sometimes. > > I?m using ?LAYER->COMPOSITE->OPACITY?: > > LAYER > [?] > COMPOSITE > OPACITY 50 > END > [?] > END > > What am I doing wrong? Does someone else observes this magical behavior? > > Hope someone can help. > > Best regards > Marcus > > _______________________________________________ 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 Oct 31 12:12:05 2016 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 31 Oct 2016 19:12:05 +0000 Subject: [mapserver-users] Layer opacity not working In-Reply-To: <3342e709-87c8-a7ff-3fda-dc096a8671c5@gatewaygeomatics.com> References: <1477305466074-5292269.post@n6.nabble.com> <3342e709-87c8-a7ff-3fda-dc096a8671c5@gatewaygeomatics.com> Message-ID: What's the requested image type? -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Monday, October 31, 2016 1:29 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Layer opacity not working Oh, I *can* reproduce in 7.0.2 but only with a GetMap request (normal CGI returns correct image with transparency, but a GetMap request shows the same layer with no transparency). The same GetMap request to 7.0.1 returns the correct image. Is this what others are seeing?? -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-10-24 7:37 AM, mmohr wrote: > Hello, somehow the layer opacity isn?t working. I tried to configure a WMS > with MS 7.0.1 and 7.0.2 but mostly my response is non-transparent? The > transparency appears only sometimes. > > I?m using ?LAYER->COMPOSITE->OPACITY?: > > LAYER > [?] > COMPOSITE > OPACITY 50 > END > [?] > END > > What am I doing wrong? Does someone else observes this magical behavior? > > Hope someone can help. > > Best regards > Marcus > > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Robert.Vogt at rcis.com Mon Oct 31 12:53:00 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Mon, 31 Oct 2016 19:53:00 +0000 Subject: [mapserver-users] ogrinfo not recognized In-Reply-To: References: Message-ID: <47d3d21b2a24467698649596d54eccec@PDEXCH1301.corp.rcis.com> Thanks for the reply, I?m not using MS4w because of some restrictions I have. I did figure out that I needed to run ogrinfo like this though ?.\ogrinfo? This at least launched ogrinfo however passing my connection string ?MySQL:DatabaseName,host=Server,user=myUserName,password=myPassword,port=myPort? caused ogrinfo to crash?does the connection string look correct? Is there somewhere an error might have been written? Thanks for the help!! From: Marco Afonso [mailto:mafonso333 at gmail.com] Sent: Monday, October 31, 2016 3:26 PM To: Vogt, Robert (RCIS); mapserver Subject: Re: [mapserver-users] ogrinfo not recognized Hello, If you are using MapSever for Windows (MS4W), first you need to run setenv.bat located in the ms4w directory. This will add libraries paths to windows enviroment variable. 2016-10-31 18:50 GMT+00:00 Vogt, Robert (RCIS) >: I'm trying to test my connection string in ogrinfo. These are the steps I'm taking... 1. Open PowerShell as administrator 2. Navigate to directory where ogrinfo.exe is located 3. Enter command "ogrinfo MySQL:DatabaseName,host=Server,user=myUserName,password=myPassword,port=myPort" Then I receive an error stating "ogrinfo : The term 'ogrinfo' is not recognized as the name of a cmdlet" Not sure what I am doing wrong? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Regards, Marco Afonso http://goo.gl/ZDtQjm [https://dl.dropboxusercontent.com/u/17607469/qr.png] -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Mon Oct 31 13:12:40 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 31 Oct 2016 20:12:40 +0000 Subject: [mapserver-users] ogrinfo not recognized Message-ID: <276895dfb07c4c4e8a84cb3079881f2f@C119S212VM022.msvyvi.vaha.local> Hi, How did you install Mapserver then? From OSGeo4W, from the gisinternals binaries, or by compiling by yourself? In any case it if not enough to locale the ogrinfo.exe but you must set the environment so that all the dependencies are found. You can use the setenv.bat from MS4W as an example: @ECHO OFF REM Execute this file before running the GDAL, MapServer, and other commandline utilities. REM After executing this file you should be able REM to run the utilities from any commandline location. set PATH=C:\ms4w;C:\ms4w\Apache\cgi-bin;C:\ms4w\tools\gdal-ogr;C:\ms4w\tools\mapserv;C:\ms4w\tools\shapelib;C:\ms4w\proj\bin;C:\ms4w\tools\shp2tile;C:\ms4w\tools\shpdiff;C:\ms4w\tools\avce00;C:\ms4w\python\gdal;C:\ms4w\tools\php;C:\ms4w\tools\mapcache;C:\ms4w\tools\berkeley-db;C:\ms4w\tools\sqlite;C:\ms4w\tools\spatialite;C:\ms4w\tools\unixutils;C:\ms4w\tools\openssl;%PATH% echo GDAL, mapserv, and commandline MS4W tools path set set GDAL_DATA=C:\ms4w\gdaldata set GDAL_DRIVER_PATH=C:\ms4w\gdalplugins set PROJ_LIB=C:\ms4w\proj\nad set CURL_CA_BUNDLE=C:\ms4w\Apache\conf\ca-bundle\cacert.pem :ALL_DONE -Jukka Rahkonen- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Vogt, Robert (RCIS) L?hetetty: 31. lokakuuta 2016 21:53 Vastaanottaja: 'Marco Afonso' ; mapserver Aihe: Re: [mapserver-users] ogrinfo not recognized Thanks for the reply, I?m not using MS4w because of some restrictions I have. I did figure out that I needed to run ogrinfo like this though ?.\ogrinfo? This at least launched ogrinfo however passing my connection string ?MySQL:DatabaseName,host=Server,user=myUserName,password=myPassword,port=myPort? caused ogrinfo to crash?does the connection string look correct? Is there somewhere an error might have been written? Thanks for the help!! From: Marco Afonso [mailto:mafonso333 at gmail.com] Sent: Monday, October 31, 2016 3:26 PM To: Vogt, Robert (RCIS); mapserver Subject: Re: [mapserver-users] ogrinfo not recognized Hello, If you are using MapSever for Windows (MS4W), first you need to run setenv.bat located in the ms4w directory. This will add libraries paths to windows enviroment variable. 2016-10-31 18:50 GMT+00:00 Vogt, Robert (RCIS) >: I'm trying to test my connection string in ogrinfo. These are the steps I'm taking... 1. Open PowerShell as administrator 2. Navigate to directory where ogrinfo.exe is located 3. Enter command "ogrinfo MySQL:DatabaseName,host=Server,user=myUserName,password=myPassword,port=myPort" Then I receive an error stating "ogrinfo : The term 'ogrinfo' is not recognized as the name of a cmdlet" Not sure what I am doing wrong? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Regards, Marco Afonso http://goo.gl/ZDtQjm [L?hett?j? poisti kuvan.] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ~WRD000.jpg Type: image/jpeg Size: 823 bytes Desc: ~WRD000.jpg URL: From jmckenna at gatewaygeomatics.com Mon Oct 31 13:16:35 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 31 Oct 2016 17:16:35 -0300 Subject: [mapserver-users] Layer opacity not working In-Reply-To: <1477305466074-5292269.post@n6.nabble.com> References: <1477305466074-5292269.post@n6.nabble.com> Message-ID: Thanks to Even, who noticed a related ticket (https://github.com/mapserver/mapserver/issues/5181). I disabled pixman and recompiled and 7.0.2 opacity is working again. Maybe the other reporters hit the same problem with pixman. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-10-24 7:37 AM, mmohr wrote: > Hello, somehow the layer opacity isn?t working. I tried to configure a WMS > with MS 7.0.1 and 7.0.2 but mostly my response is non-transparent? The > transparency appears only sometimes. > > I?m using ?LAYER->COMPOSITE->OPACITY?: > > LAYER > [?] > COMPOSITE > OPACITY 50 > END > [?] > END > > What am I doing wrong? Does someone else observes this magical behavior? > > Hope someone can help. > > Best regards > Marcus > > From Robert.Sanson at asurequality.com Mon Oct 31 13:11:38 2016 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Mon, 31 Oct 2016 20:11:38 +0000 Subject: [mapserver-users] ogrinfo not recognized In-Reply-To: <47d3d21b2a24467698649596d54eccec@PDEXCH1301.corp.rcis.com> References: <47d3d21b2a24467698649596d54eccec@PDEXCH1301.corp.rcis.com> Message-ID: Have you tried semi-colons between the parameters? ?MySQL:DatabaseName;host=Server;user=myUserName;password=myPassword;port=myPort? From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vogt, Robert (RCIS) Sent: Tuesday, 1 November 2016 8:53 a.m. To: 'Marco Afonso' ; mapserver Subject: Re: [mapserver-users] ogrinfo not recognized Thanks for the reply, I?m not using MS4w because of some restrictions I have. I did figure out that I needed to run ogrinfo like this though ?.\ogrinfo? This at least launched ogrinfo however passing my connection string ?MySQL:DatabaseName,host=Server,user=myUserName,password=myPassword,port=myPort? caused ogrinfo to crash?does the connection string look correct? Is there somewhere an error might have been written? Thanks for the help!! From: Marco Afonso [mailto:mafonso333 at gmail.com] Sent: Monday, October 31, 2016 3:26 PM To: Vogt, Robert (RCIS); mapserver Subject: Re: [mapserver-users] ogrinfo not recognized Hello, If you are using MapSever for Windows (MS4W), first you need to run setenv.bat located in the ms4w directory. This will add libraries paths to windows enviroment variable. 2016-10-31 18:50 GMT+00:00 Vogt, Robert (RCIS) >: I'm trying to test my connection string in ogrinfo. These are the steps I'm taking... 1. Open PowerShell as administrator 2. Navigate to directory where ogrinfo.exe is located 3. Enter command "ogrinfo MySQL:DatabaseName,host=Server,user=myUserName,password=myPassword,port=myPort" Then I receive an error stating "ogrinfo : The term 'ogrinfo' is not recognized as the name of a cmdlet" Not sure what I am doing wrong? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Regards, Marco Afonso http://goo.gl/ZDtQjm [https://dl.dropboxusercontent.com/u/17607469/qr.png] -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at blixtmail.se Mon Oct 31 13:29:21 2016 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Mon, 31 Oct 2016 21:29:21 +0100 Subject: [mapserver-users] Layer opacity not working In-Reply-To: References: <1477305466074-5292269.post@n6.nabble.com> Message-ID: Thanks Jeff and Even, Now I also understand.? I have been using a Debian standard built Mapserver 7.01 for development and a Centos Mapserver 7.01 as target env.? It was in the Centos environment I had the trouble last week with the Layer opacity.? I guess we built the Centos Mapserver with pixman for some reason. Lars S. -----Originalmeddelande----- > Fr?n: "Jeff McKenna" > Till: mapserver-users at lists.osgeo.org > Datum: 2016-10-31 21:18 > ?mne: Re: [mapserver-users] Layer opacity not working > > Thanks to Even, who noticed a related ticket > (https://github.com/mapserver/mapserver/issues/5181). ?I disabled pixman > and recompiled and 7.0.2 opacity is working again. ?Maybe the other > reporters hit the same problem with pixman. > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > On 2016-10-24 7:37 AM, mmohr wrote: > > Hello, somehow the layer opacity isn?t working. I tried to configure a WMS > > with MS 7.0.1 and 7.0.2 but mostly my response is non-transparent? The > > transparency appears only sometimes. > > > > I?m using ?LAYER->COMPOSITE->OPACITY?: > > > > LAYER > > ? [?] > > ? COMPOSITE > > ? ? OPACITY 50 > > ? END > > ? [?] > > END > > > > What am I doing wrong? Does someone else observes this magical behavior? > > > > Hope someone can help. > > > > Best regards > > Marcus > > > > > > > _______________________________________________ > 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 Mon Oct 31 13:36:22 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 31 Oct 2016 20:36:22 +0000 Subject: [mapserver-users] Layer opacity not working Message-ID: Hi, I have not compiled myself but I can see pixman-0.34.0 in the build directory so I guess that it has been used. But how do you explain that OPACITY within STYLE works but not within the composite layer? -Jukka- Jeff McKenna wrote: L?hetetty: 31. lokakuuta 2016 22:17 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Layer opacity not working Thanks to Even, who noticed a related ticket (https://github.com/mapserver/mapserver/issues/5181). I disabled pixman and recompiled and 7.0.2 opacity is working again. Maybe the other reporters hit the same problem with pixman. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-10-24 7:37 AM, mmohr wrote: > Hello, somehow the layer opacity isn?t working. I tried to configure a WMS > with MS 7.0.1 and 7.0.2 but mostly my response is non-transparent? The > transparency appears only sometimes. > > I?m using ?LAYER->COMPOSITE->OPACITY?: > > LAYER > [?] > COMPOSITE > OPACITY 50 > END > [?] > END > > What am I doing wrong? Does someone else observes this magical behavior? > > Hope someone can help. > > Best regards > Marcus > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Mon Oct 31 14:37:15 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 31 Oct 2016 18:37:15 -0300 Subject: [mapserver-users] Layer opacity not working In-Reply-To: References: Message-ID: On 2016-10-31 5:36 PM, Rahkonen Jukka (MML) wrote: > Hi, > > I have not compiled myself but I can see pixman-0.34.0 in the build directory so I guess that it has been used. > > But how do you explain that OPACITY within STYLE works but not within the composite layer? > I believe the pixman library is explicitly used for the COMPOSITE object, as the build options state: "WITH_PIXMAN - use (experimental) support for pixman for layer compositing operations" -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/