From schepers at rvr-online.de Thu Jun 1 06:35:31 2017 From: schepers at rvr-online.de (Schepers, Benjamin) Date: Thu, 1 Jun 2017 13:35:31 +0000 Subject: [mapserver-users] OpenGL on Linux (Debian/Ubunu) Message-ID: <7088A26751CB34409B159B4237D510A87C9D15F3@W2K8-EXDB02.VERBAND.LOCAL> Hi list, has anyone of you made some experience with mapserver and GPU-rendering on Linux (Debian preferred)? The use case would be to speed up raster-resampling on the fly (nearest <-> average) in WMS and maybe later vector-rendering on complex symbology. For now raster-rendering in average-mode is three-times slower than resampling with nearest neighbor (which looks worse, indeed). Are there some pitfalls? Maybe compiling with openGL-driver, other issues, etc.... Would GDAL benefit from using GPU on processing very large rasters (aerialimage-BigTIFFs). How would this be done? OpenGL / OpenCL? Any hints are welcome, I couldn't find that much info on this... Regards Ben From dmorissette at mapgears.com Thu Jun 1 07:04:53 2017 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 1 Jun 2017 10:04:53 -0400 Subject: [mapserver-users] OpenGL on Linux (Debian/Ubunu) In-Reply-To: <7088A26751CB34409B159B4237D510A87C9D15F3@W2K8-EXDB02.VERBAND.LOCAL> References: <7088A26751CB34409B159B4237D510A87C9D15F3@W2K8-EXDB02.VERBAND.LOCAL> Message-ID: <21bdbb05-beab-6b34-4337-0c6094230ee0@mapgears.com> There have been some experiments a few years ago but I don't remember how far the implementation went, how much real testing it got and whether it is still maintained. You may want to look at http://mapserver.org/development/rfc/ms-rfc-50.html and search for discussions on the dev list around 2008-2011 for the full history. But for your specific problem, have you considered simply generating overviews in your source images using average resampling? This way you would pay the price of (average or bilinear) resampling only once and your WMS requests could use nearest neighbor on the overviews to provide much better quality results without the processing cost. More info about optimizing raster access is available here (in case you had not seen it yet): http://mapserver.org/input/raster.html#preprocessing-rasters Daniel On 2017-06-01 9:35 AM, Schepers, Benjamin wrote: > Hi list, > > has anyone of you made some experience with mapserver and GPU-rendering on Linux (Debian preferred)? > > The use case would be to speed up raster-resampling on the fly (nearest <-> average) in WMS and maybe later vector-rendering on complex symbology. > For now raster-rendering in average-mode is three-times slower than resampling with nearest neighbor (which looks worse, indeed). > > Are there some pitfalls? Maybe compiling with openGL-driver, other issues, etc.... > > Would GDAL benefit from using GPU on processing very large rasters (aerialimage-BigTIFFs). How would this be done? OpenGL / OpenCL? > Any hints are welcome, I couldn't find that much info on this... > > Regards > Ben > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 From traviskirstine at gmail.com Thu Jun 1 08:19:50 2017 From: traviskirstine at gmail.com (Travis Kirstine) Date: Thu, 1 Jun 2017 11:19:50 -0400 Subject: [mapserver-users] mapcache geopackage Message-ID: Would it be possible to use a geopackage raster table as pre-seeded cache using a sqlite custom schema? Something like this: gmaps /tmp/sqlitefile.db select 1 from user_data_pyramid tile_column=:x and tile_row=:y and zoom_level=:z select tile_data from user_data_pyramid where tile_column=:x and tile_row=:y and zoom_level=:z GoogleMapsCompatible urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible -20037508.3427892480 -20037508.3427892480 20037508.3427892480 20037508.3427892480 EPSG:3857 EPSG:900913 m 256 256 156543.0339280410 78271.51696402048 39135.75848201023 19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640 1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525 76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032 4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395 0.29858214173896975 0.149291070869484875 0.0746455354347424375 Where the geopackage was created with GDAL $ gdal_translate -of GPKG byte.tif byte.gpkg -co RASTER_TABLE=user_data_pyramid -co TILING_SCHEME=GoogleMapsCompatible Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From pe_lord at yahoo.ca Thu Jun 1 10:26:23 2017 From: pe_lord at yahoo.ca (pe_lord) Date: Thu, 1 Jun 2017 10:26:23 -0700 (MST) Subject: [mapserver-users] Class maxscaledenom performance In-Reply-To: References: <1496248892253-5322521.post@n6.nabble.com> Message-ID: <1496337983994-5322693.post@n6.nabble.com> I've verified if the issue was not linked to WMS. shp2img succeed to produce the png. But it's quite long. I have tried at *1:102 000 * PGIS Query = 4 sec Nb of recors = 2859 records Mapserver render by WMS = 2.5 sec Mapserver render by shp2img = shp2img total time: 3.677s select "classitem_field",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex') as geom,"ogc_fid" from ori_pee where the_geom && ST_GeomFromText('POLYGON((-8871026 6114309.70958512,-8871026 6140241.29041488,-8834701 6140241.29041488,-8834701 6114309.70958512,-8871026 6114309.70958512))',3857) *1:1 002 000* PGIS Query = 26 minutes Nb of records = 242832 records Mapserver render by WMS = "internal server error" = timout Mapserver render by shp2img = shp2img total time: 156.299s select "classitem_field",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex') as geom,"ogc_fid" from ori_pee where the_geom && ST_GeomFromText('POLYGON((-9031284 5999904.71459227,-9031284 6254645.28540772,-8674443 6254645.28540772,-8674443 5999904.71459227,-9031284 5999904.71459227))',3857) Here my validations 1-My layer have EXTENT 2-Mapserver do not reproject data 3-My layer has no label 4-Myconnection on postgis "DEFER" 5-My table have no OIDS 6-My table have GIST index on the_geom field 7-My table have a btree index on classitem field. 8-No warning in my GetCapabilities I have tried loading a new table with OIDS set to TRUE (on table, not on database) and it's seem to be the same behavior? Do I really need to modify postgresql.conf? When I read the query called from mapserver, I think there is a way to improve performance on maxscaledenom. Do you think there is a way for mapserver to know which class to render at current scale (based on bbox ) and filter on them ... the query might look like this: select "classitem_field",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex') as geom,"ogc_fid" from ori_pee where the_geom && ST_GeomFromText('POLYGON((-9031284 5999904.71459227,-9031284 6254645.28540772,-8674443 6254645.28540772,-8674443 5999904.71459227,-9031284 5999904.71459227))',3857) and classitem_field = 'BBOX' I think I will work on union layers :) . -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Class-maxscaledenom-performance-tp5322521p5322693.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kinju59 at gmail.com Thu Jun 1 13:52:27 2017 From: kinju59 at gmail.com (=?UTF-8?B?QXVyw6lsaWVuIC4uLi4=?=) Date: Thu, 1 Jun 2017 22:52:27 +0200 Subject: [mapserver-users] mapserver and expressjs Message-ID: Hi, I have a mapserver mounted with the mapcache extension in a docker container and I would like to add an authorization layer in order to give an access only for my users using an ExpressJS server. The pragmatic solution would be to hide the map container from the external network and make an ExpressJS service to verify the identity / autorization of the user and forward the http request in case of success. The schema would be client <-> http (Express) <-> http (apache / CGI) <-> mapserv But I'm asking myself if it could be possible to use the mapserv executable directly from the ExpressJS server using some CGI module(s) ? Is there is someone which already tried this kind of stuff ? Thank you and sorry for my bad english, Kin -------------- next part -------------- An HTML attachment was scrubbed... URL: From schepers at rvr-online.de Thu Jun 1 22:57:25 2017 From: schepers at rvr-online.de (Schepers, Benjamin) Date: Fri, 2 Jun 2017 05:57:25 +0000 Subject: [mapserver-users] OpenGL on Linux (Debian/Ubunu) In-Reply-To: <21bdbb05-beab-6b34-4337-0c6094230ee0@mapgears.com> References: <7088A26751CB34409B159B4237D510A87C9D15F3@W2K8-EXDB02.VERBAND.LOCAL> <21bdbb05-beab-6b34-4337-0c6094230ee0@mapgears.com> Message-ID: <7088A26751CB34409B159B4237D510A87C9D2191@W2K8-EXDB02.VERBAND.LOCAL> Hi Daniel, thanks for your advice - I've done exactly the same way you as you described it for some years now (doing the painful "average"-resampling due to preprocessing the overviews with GDAL and nesrest in WMS-postprocessing). The servers and services are "highly optimized" and generally fast - thanks to GDAL's and mapserver's functionality and performance and community hints. But I wasn't really satisfied with final image-quality, because of the trade-of between performance and image-quality on WMS-postprocessing - I decided for performance. From my point of view it still makes a difference in image quality, whether I use nearest or average on WMS-postprocessing, especially the aliasing-effects on edges of buildings, bridges, etc. would be nearly totally eliminated with "average"postprocessing , I did some tests! My guess was, that resampling could be done much better by the GPU (having a look in the world of gaming, where some "super-mega-ultra-antialiasing" is done with more than 100 frames per seconds in highest resolutions. Now there is an option to get some new servers with integrated GPUs (Nvidia GTX1080) and asked myself (and now the community ;-) ) whether it would make sense to exercise that option... Regards Ben -----Urspr?ngliche Nachricht----- Von: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Daniel Morissette Gesendet: Donnerstag, 1. Juni 2017 16:05 An: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] OpenGL on Linux (Debian/Ubunu) There have been some experiments a few years ago but I don't remember how far the implementation went, how much real testing it got and whether it is still maintained. You may want to look at http://mapserver.org/development/rfc/ms-rfc-50.html and search for discussions on the dev list around 2008-2011 for the full history. But for your specific problem, have you considered simply generating overviews in your source images using average resampling? This way you would pay the price of (average or bilinear) resampling only once and your WMS requests could use nearest neighbor on the overviews to provide much better quality results without the processing cost. More info about optimizing raster access is available here (in case you had not seen it yet): http://mapserver.org/input/raster.html#preprocessing-rasters Daniel On 2017-06-01 9:35 AM, Schepers, Benjamin wrote: > Hi list, > > has anyone of you made some experience with mapserver and GPU-rendering on Linux (Debian preferred)? > > The use case would be to speed up raster-resampling on the fly (nearest <-> average) in WMS and maybe later vector-rendering on complex symbology. > For now raster-rendering in average-mode is three-times slower than resampling with nearest neighbor (which looks worse, indeed). > > Are there some pitfalls? Maybe compiling with openGL-driver, other issues, etc.... > > Would GDAL benefit from using GPU on processing very large rasters (aerialimage-BigTIFFs). How would this be done? OpenGL / OpenCL? > Any hints are welcome, I couldn't find that much info on this... > > Regards > Ben > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From even.rouault at spatialys.com Fri Jun 2 00:54:26 2017 From: even.rouault at spatialys.com (Even Rouault) Date: Fri, 02 Jun 2017 09:54:26 +0200 Subject: [mapserver-users] OpenGL on Linux (Debian/Ubunu) In-Reply-To: <7088A26751CB34409B159B4237D510A87C9D2191@W2K8-EXDB02.VERBAND.LOCAL> References: <7088A26751CB34409B159B4237D510A87C9D15F3@W2K8-EXDB02.VERBAND.LOCAL> <21bdbb05-beab-6b34-4337-0c6094230ee0@mapgears.com> <7088A26751CB34409B159B4237D510A87C9D2191@W2K8-EXDB02.VERBAND.LOCAL> Message-ID: <3515704.p614xl1Iyv@even-i700> On vendredi 2 juin 2017 05:57:25 CEST Schepers, Benjamin wrote: > Hi Daniel, > > thanks for your advice - I've done exactly the same way you as you described > it for some years now (doing the painful "average"-resampling due to > preprocessing the overviews with GDAL and nesrest in WMS-postprocessing). > The servers and services are "highly optimized" and generally fast - thanks > to GDAL's and mapserver's functionality and performance and community > hints. But I wasn't really satisfied with final image-quality, because of > the trade-of between performance and image-quality on WMS-postprocessing - > I decided for performance. > From my point of view it still makes a difference in image quality, whether > I use nearest or average on WMS-postprocessing, especially the > aliasing-effects on edges of buildings, bridges, etc. would be nearly > totally eliminated with "average"postprocessing , I did some tests! > My guess was, that resampling could be done much better by the GPU (having a > look in the world of gaming, where some "super-mega-ultra-antialiasing" is > done with more than 100 frames per seconds in highest resolutions. Before going to the GPU, I would look if the MapServer resampling code couldn't already be optimized on the CPU. There's likely room for improvements. > Now there is an option to get some new servers with integrated GPUs (Nvidia > GTX1080) and asked myself (and now the community ;-) ) whether it would > make sense to exercise that option... What is not obvious performance wise is that you would need to transfer buffers back and forth between the CPU and GPU. Even -- Spatialys - Geospatial professional services http://www.spatialys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Fri Jun 2 00:57:01 2017 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Fri, 2 Jun 2017 07:57:01 +0000 Subject: [mapserver-users] Class maxscaledenom performance In-Reply-To: <1496337983994-5322693.post@n6.nabble.com> References: <1496248892253-5322521.post@n6.nabble.com> <1496337983994-5322693.post@n6.nabble.com> Message-ID: <6F331135492B944D90731CE93743D5685626BA@FS-EX-DB102.fs.sachsen.de> What about http://mapserver.org/development/rfc/ms-rfc-86.html ? > -----Urspr?ngliche Nachricht----- > Von: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Im > Auftrag von pe_lord > Gesendet: Donnerstag, 1. Juni 2017 19:26 > An: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] Class maxscaledenom performance > > I've verified if the issue was not linked to WMS. shp2img succeed to > produce > the png. But it's quite long. > > I have tried at > *1:102 000 * > PGIS Query = 4 sec > Nb of recors = 2859 records > Mapserver render by WMS = 2.5 sec > Mapserver render by shp2img = shp2img total time: 3.677s > > select > "classitem_field",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex' > ) as > geom,"ogc_fid" from ori_pee > where the_geom && ST_GeomFromText('POLYGON((-8871026 > 6114309.70958512,-8871026 6140241.29041488,-8834701 > 6140241.29041488,-8834701 6114309.70958512,-8871026 > 6114309.70958512))',3857) > > > *1:1 002 000* > PGIS Query = 26 minutes > Nb of records = 242832 records > Mapserver render by WMS = "internal server error" = timout > Mapserver render by shp2img = shp2img total time: 156.299s > > select > "classitem_field",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex' > ) as > geom,"ogc_fid" from ori_pee > where the_geom && ST_GeomFromText('POLYGON((-9031284 > 5999904.71459227,-9031284 6254645.28540772,-8674443 > 6254645.28540772,-8674443 5999904.71459227,-9031284 > 5999904.71459227))',3857) > > Here my validations > 1-My layer have EXTENT > 2-Mapserver do not reproject data > 3-My layer has no label > 4-Myconnection on postgis "DEFER" > 5-My table have no OIDS > 6-My table have GIST index on the_geom field > 7-My table have a btree index on classitem field. > 8-No warning in my GetCapabilities > > > I have tried loading a new table with OIDS set to TRUE (on table, not on > database) and it's seem to be the same behavior? Do I really need to > modify > postgresql.conf? > > > > When I read the query called from mapserver, I think there is a way to > improve performance on maxscaledenom. Do you think there is a way for > mapserver to know which class to render at current scale (based on bbox > ) > and filter on them ... > > the query might look like this: > select > "classitem_field",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex' > ) as > geom,"ogc_fid" from ori_pee > where the_geom && ST_GeomFromText('POLYGON((-9031284 > 5999904.71459227,-9031284 6254645.28540772,-8674443 > 6254645.28540772,-8674443 5999904.71459227,-9031284 > 5999904.71459227))',3857) and classitem_field = 'BBOX' > > I think I will work on union layers :) . > > > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/Class- > maxscaledenom-performance-tp5322521p5322693.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From Simon.Schneegans at dlr.de Fri Jun 2 02:11:56 2017 From: Simon.Schneegans at dlr.de (Simon.Schneegans at dlr.de) Date: Fri, 2 Jun 2017 09:11:56 +0000 Subject: [mapserver-users] Reprojection error for CONNECTIONTYPE WMS Message-ID: Hi there! I tested some more and it seems that this is not only a problem for WMS layers, but for Raster layers as well. Here is an example GeoTiff: https://github.com/mapserver/mapserver/files/1047153/test.zip I can warp this to HEALPix using GDAL on the command line: gdalwarp -t_srs '+proj=healpix +a=1 +b=1 +wktext' -te -0.5 0.6 0.5 1 test.tiff healpix.tiff The result looks as supposed (see example in the original issue: https://github.com/mapserver/mapserver/issues/5437). However, if I let mapserver do the reprojection, the result is distorted (e.g. Libya is missing on the map). This is my layer (except for some metadata): LAYER name "test" status ON type RASTER data "test.tiff" PROJECTION AUTO END END This is in my epsg file: <900916> +proj=healpix +a=1 +b=1 <> This is the relevant part of the WMS request: ...&LAYERS=test&WIDTH=600&HEIGHT=300&SRS=EPSG:900916&BBOX=-0.5,0.6,0.5,1 The example test.tiff I linked above covers exactly the area I am requesting to be reprojected to HEALPix. As soon as this input tiff is larger, the reprojection works as supposed. I guess that this is the reason why I observed the issue with CONNECTIONTYPE WMS first: Here the input data is usually exactly as large as required by the reprojection! Where do I have to go bug hunting? Is it a configuration issue? Is it a reprojection issue specific to HEALPix? Thank you for your support! Simon Von: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Simon.Schneegans at dlr.de Gesendet: Dienstag, 30. Mai 2017 13:17 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] Reprojection error for CONNECTIONTYPE WMS Hi there! I am happily using mapserver to reproject raster data to the HEALPix projection from proj.4. This works pretty well for local raster sources, however I get severe reprojection problems when using an external WMS as source for my layer. I reported this issue on Github (https://github.com/mapserver/mapserver/issues/5437) but was told to ask here for assistance. Instead of copy-pasting the text from the Github issue to this mail, I kindly ask you to refer to this Github issue for further information; there I also included several images illustrating the problem. I am looking forward to get any feedback or input that helps me solving this issue! Thank you very much! Simon -------------------------- Deutsches Zentrum f?r Luft- und Raumfahrt e. V. (DLR) German Aerospace Center Simulation and Software Technology | Software for Space Systems and Interactive Visualization | Lilienthalplatz 7 | 38108 Braunschweig | Germany Simon Schneegans, M. Sc. Telephone +49 531 295-2333 | Telefax +49 531 295-12100 | simon.schneegans at dlr.de DLR.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From pe_lord at yahoo.ca Fri Jun 2 06:40:29 2017 From: pe_lord at yahoo.ca (pe_lord) Date: Fri, 2 Jun 2017 06:40:29 -0700 (MST) Subject: [mapserver-users] Class maxscaledenom performance In-Reply-To: <6F331135492B944D90731CE93743D5685626BA@FS-EX-DB102.fs.sachsen.de> References: <1496248892253-5322521.post@n6.nabble.com> <1496337983994-5322693.post@n6.nabble.com> <6F331135492B944D90731CE93743D5685626BA@FS-EX-DB102.fs.sachsen.de> Message-ID: <1496410829406-5322827.post@n6.nabble.com> It is precisely what I expect. The solution is to use scaletoken. As proposed on Github RFC86 , I think it should be documented into the layer description section: http://www.mapserver.org/mapfile/layer.html Pierre -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Class-maxscaledenom-performance-tp5322521p5322827.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andy at squeakycode.net Sat Jun 3 07:15:31 2017 From: andy at squeakycode.net (Andy Colson) Date: Sat, 3 Jun 2017 09:15:31 -0500 Subject: [mapserver-users] Class maxscaledenom performance In-Reply-To: References: <1496248892253-5322521.post@n6.nabble.com> Message-ID: On 05/31/2017 09:56 PM, Richard Greenwood wrote: > On Wed, May 31, 2017 at 2:40 PM, Jeff McKenna > wrote: > > - be sure to have PostGIS create OIDs by default in your databases (see the "default_with_oids" setting in postgresql.conf) > > > I have not seen that recommendation before. Can you explain why it is beneficial? > > Thanks, > Rich > Agreed. This sounds wrong to me, and I can't imagine how it would improve performance. I can, however, see it causing problems. The documentation says: > The use of OIDs in user tables is considered deprecated And slightly paraphrased: > OIDs are four-byte integer and therefore not large enough to provide uniqueness to large individual tables Please explain. -Andy From Brent.Wood at niwa.co.nz Sat Jun 3 14:40:31 2017 From: Brent.Wood at niwa.co.nz (Brent Wood) Date: Sat, 3 Jun 2017 21:40:31 +0000 Subject: [mapserver-users] problem serving postgis raster as WMS In-Reply-To: References: , Message-ID: Hi, I'm looking to (eventually) manage several hundred raster layers in Postgis. I have prototyped a single layer using a worldclim file, and can open the Postgis raster table in QGIS (using db manager) and display it as expected with pseudocolour. It is a single band layer, with pixel values in the -36 to 30 range (avg temperatures). I have set up a mapfile to serve this as a WMS. I can connect to the service with QGIS, see the layer listed and add it to the canvas. The legend shows the three colours I have set as classes for the layer, but the layer does not appear on the canvas (or if it does it is invisible). The mapserver log suggests (to me anyway) that it is working OK. I have added a global land shapefile, also served as WMS to the same mapfile to give some context, which opens and displays OK as a WMS layer in QGIS. The mapfile, along with the mapserver log entry, are at https://pastebin.com/2jjGFYaW If anyone can help me sort out why I'm not seeing any data in QGIS from the Postgis raster WMS layer, I'd appreciate it! Thanks Brent Wood Programme leader: Environmental Information Delivery NIWA DDI: +64 (4) 3860529 Brent Wood Principal Technician - GIS and Spatial Data Management Programme Leader - Environmental Information Delivery +64-4-386-0529 | 301 Evans Bay Parade, Greta Point, Wellington | www.niwa.co.nz [NIWA] To ensure compliance with legal requirements and to maintain cyber security standards, NIWA's IT systems are subject to ongoing monitoring, activity logging and auditing. This monitoring and auditing service may be provided by third parties. Such third parties can access information transmitted to, processed by and stored on NIWA's IT systems. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image525148.JPG Type: image/jpeg Size: 20819 bytes Desc: image525148.JPG URL: From woodbri at swoodbridge.com Sat Jun 3 18:25:37 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 3 Jun 2017 21:25:37 -0400 Subject: [mapserver-users] problem serving postgis raster as WMS In-Reply-To: References: Message-ID: Brent, Does this help: https://postgis.net/docs/RT_FAQ.html#idm27746 What version of gdal do you have installed. You might need the mode=2 argument on the DATA statement. -Steve W On 6/3/2017 5:40 PM, Brent Wood wrote: > > Hi, > > I'm looking to (eventually) manage several hundred raster layers in Postgis. > > I have prototyped a single layer using a worldclim file, and can open > the Postgis raster table in QGIS (using db manager) and display it as > expected with pseudocolour. It is a single band layer, with pixel values > in the -36 to 30 range (avg temperatures). > > I have set up a mapfile to serve this as a WMS. I can connect to the > service with QGIS, see the layer listed and add it to the canvas. The > legend shows the three colours I have set as classes for the layer, but > the layer does not appear on the canvas (or if it does it is invisible). > > The mapserver log suggests (to me anyway) that it is working OK. > > I have added a global land shapefile, also served as WMS to the same > mapfile to give some context, which opens and displays OK as a WMS layer > in QGIS. > > The mapfile, along with the mapserver log entry, are at > https://pastebin.com/2jjGFYaW > > If anyone can help me sort out why I'm not seeing any data in QGIS from > the Postgis raster WMS layer, I'd appreciate it! > > > Thanks > > Brent Wood > > Programme leader: Environmental Information Delivery > NIWA > DDI: +64 (4) 3860529 > > > Brent Wood > Principal Technician - GIS and Spatial Data Management > Programme Leader - Environmental Information Delivery > > +64-4-386-0529| 301 Evans Bay Parade, Greta Point, Wellington| > www.niwa.co.nz > > NIWA > > To ensure compliance with legal requirements and to maintain cyber > security standards, NIWA's IT systems are subject to ongoing monitoring, > activity logging and auditing. This monitoring and auditing service may > be provided by third parties. Such third parties can access information > transmitted to, processed by and stored on NIWA's IT systems. > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From Brent.Wood at niwa.co.nz Sat Jun 3 18:44:41 2017 From: Brent.Wood at niwa.co.nz (Brent Wood) Date: Sun, 4 Jun 2017 01:44:41 +0000 Subject: [mapserver-users] problem serving postgis raster as WMS In-Reply-To: References: , Message-ID: <854f24c55dd54f048168a7b5780fbab3@welwex02.niwa.local> Perfect!!! Solved, much appreciated!!! Brent Wood Programme leader: Environmental Information Delivery NIWA DDI: +64 (4) 3860529 Brent Wood Principal Technician - GIS and Spatial Data Management Programme Leader - Environmental Information Delivery +64-4-386-0529 | 301 Evans Bay Parade, Greta Point, Wellington | www.niwa.co.nz [NIWA] To ensure compliance with legal requirements and to maintain cyber security standards, NIWA's IT systems are subject to ongoing monitoring, activity logging and auditing. This monitoring and auditing service may be provided by third parties. Such third parties can access information transmitted to, processed by and stored on NIWA's IT systems. ________________________________________ From: mapserver-users [mapserver-users-bounces at lists.osgeo.org] on behalf of Stephen Woodbridge [woodbri at swoodbridge.com] Sent: Sunday, June 4, 2017 1:25 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] problem serving postgis raster as WMS Brent, Does this help: https://postgis.net/docs/RT_FAQ.html#idm27746 What version of gdal do you have installed. You might need the mode=2 argument on the DATA statement. -Steve W -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image3543c3.JPG Type: image/jpeg Size: 20819 bytes Desc: image3543c3.JPG URL: From domenico.febbo at gmail.com Tue Jun 6 06:12:10 2017 From: domenico.febbo at gmail.com (Domenico Febbo) Date: Tue, 6 Jun 2017 15:12:10 +0200 Subject: [mapserver-users] Kernel Density maps and WMS Time Message-ID: Dear All, there is a way to pass TIME parameter using WMS Time protocol from Kernel Density map to the base layer connected to POSTGIS? I want to create an animated density map using TIME parameter. ###### MAPFILE Extract ####### LAYER CONNECTION "host=localhost port=5432 dbname=postgres user=postgres password=postgres" CONNECTIONTYPE POSTGIS DATA "the_geom from (select * from table) as foo using unique gid using srid=4326" NAME "the_geom" PROCESSING "CLOSE_CONNECTION=DEFER" PROJECTION "init=epsg:4326" END # PROJECTION STATUS ON METADATA "wms_timeextent" "2017-04-01/2017-06-10" "wms_timeitem" "datetime" #datetime is a column in postgis table of type timestamp "wms_timedefault" "2017-06-06" "wms_enable_request" "*" END TEMPLATE "fooOnlyForWMSGetFeatureInfo" TYPE POINT CLASS NAME "a" STYLE SIZE 4 COLOR "#FF00FF" SYMBOL "circle_fill" END # style END #class END # final layer LAYER NAME "the_geom_denisty" TYPE RASTER CONNECTIONTYPE KERNELDENSITY CONNECTION "the_geom" STATUS ON PROCESSING "RANGE_COLORSPACE=HSL" PROCESSING "KERNELDENSITY_RADIUS=20" PROCESSING "KERNELDENSITY_COMPUTE_BORDERS=ON" PROCESSING "KERNELDENSITY_NORMALIZATION=2.0" OFFSITE 0 0 0 METADATA "wms_title" "the_geom_denisty WMS-T" "wms_timeextent" "2017-04-01/2017-06-10" "wms_timeitem" "datetime" #datetime is a column in postgis table of type timestamp "wms_timedefault" "2017-06-06" "wms_enable_request" "*" END CLASS STYLE COLORRANGE "#f46d43FF" "#d73027FF" DATARANGE 0 255 END END END ############################### tag: HEATMAP, WMS-T Regards, Domenico. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cora.berger at bezreg-koeln.nrw.de Tue Jun 6 23:06:47 2017 From: cora.berger at bezreg-koeln.nrw.de (Berger, Cora) Date: Wed, 7 Jun 2017 06:06:47 +0000 Subject: [mapserver-users] Kernel Density maps and WMS Time Message-ID: <5D5AE574FB890744BCB91DE22F3A53C1014A49BCE2@vbrk21mx01.bezreg-koeln.nrw.de> Dear Domenico, I created a WMS with TIME-Parameter successfully for historical orthophotos. You find the documentation for the time-parameter in mapfiles here: http://mapserver.org/de/ogc/wms_time.html In your second layer try to change this: Instead of CONNECTIONTYPE KERNELDENSITY CONNECTION "the_geom" Try TILEINDEX "the_geom" TILEITEM "location" #if the name of the column with the information where the data is stored is called like this FILTER (`[datetime]` = `2006-06-23T03:10:00Z`) In my case only the tileindex is stored in postgis and the raster data is stored in a filesystem. The column "location" of the tileindex contains the path to the folder where the raster data is stored. Have you set up a mapfile using raster data and tileindex before? Maybe it helps to read the tileindex-documentation, too to get a better understanding of how the tileindex works. The WCS documentation also contains a part about spatio-temporal-tileindexes http://mapserver.org/ogc/wcs_server.html#spatio-temporal-indexes Cheers Cora >---------------------------------------------------------------------- > >Message: 1 >Date: Tue, 6 Jun 2017 15:12:10 +0200 >From: Domenico Febbo >To: mapserver-users at lists.osgeo.org >Subject: [mapserver-users] Kernel Density maps and WMS Time >Message-ID: > Qjg at mail.gmail.com> >Content-Type: text/plain; charset="utf-8" > >Dear All, >there is a way to pass TIME parameter using WMS Time protocol from Kernel >Density map to the base layer connected to POSTGIS? > >I want to create an animated density map using TIME parameter. > >###### MAPFILE Extract ####### > >LAYER > CONNECTION "host=localhost port=5432 dbname=postgres user=postgres >password=postgres" > CONNECTIONTYPE POSTGIS > DATA "the_geom from (select * from table) as foo using unique gid using >srid=4326" > NAME "the_geom" > PROCESSING "CLOSE_CONNECTION=DEFER" > PROJECTION > "init=epsg:4326" > END # PROJECTION > STATUS ON > METADATA > "wms_timeextent" "2017-04-01/2017-06-10" > "wms_timeitem" "datetime" #datetime is a column in postgis table of >type timestamp > "wms_timedefault" "2017-06-06" > "wms_enable_request" "*" > END > TEMPLATE "fooOnlyForWMSGetFeatureInfo" > TYPE POINT > CLASS > NAME "a" > STYLE > SIZE 4 > COLOR "#FF00FF" > SYMBOL "circle_fill" > END # style > END #class >END # final layer > > LAYER > NAME "the_geom_denisty" > TYPE RASTER > CONNECTIONTYPE KERNELDENSITY > CONNECTION "the_geom" > STATUS ON > PROCESSING "RANGE_COLORSPACE=HSL" > PROCESSING "KERNELDENSITY_RADIUS=20" > PROCESSING "KERNELDENSITY_COMPUTE_BORDERS=ON" > PROCESSING "KERNELDENSITY_NORMALIZATION=2.0" > OFFSITE 0 0 0 > > METADATA > "wms_title" "the_geom_denisty WMS-T" > "wms_timeextent" "2017-04-01/2017-06-10" > "wms_timeitem" "datetime" #datetime is a column in postgis table of >type timestamp > "wms_timedefault" "2017-06-06" > "wms_enable_request" "*" > END > > CLASS > STYLE > COLORRANGE "#f46d43FF" "#d73027FF" > DATARANGE 0 255 > END > END > END > >############################### >tag: HEATMAP, WMS-T > >Regards, Domenico. >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: users/attachments/20170606/ac764e0b/attachment-0001.html> > >------------------------------ > >Subject: Digest Footer > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >https://lists.osgeo.org/mailman/listinfo/mapserver-users > >------------------------------ > >End of mapserver-users Digest, Vol 113, Issue 7 >*********************************************** From crankycyclops at gmail.com Tue Jun 6 23:45:49 2017 From: crankycyclops at gmail.com (James Colannino) Date: Wed, 7 Jun 2017 14:45:49 +0800 Subject: [mapserver-users] Mapserver 7.0.5, PostGIS and Query Errors Message-ID: Hi everyone, I have a problem that's got me stumped. I have the following layer defined in a mapfile: LAYER NAME "aggregates" TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "host=localhost port=5432 dbname=*** user=*** password=***" DATA "geom FROM (SELECT b.geom AS geom, a.peril_id, a.portfolio_id, a.tiv, a.thematic_tiv, a.aggregates_id FROM schema.aggregates a INNER JOIN gisdata.adm_1 b on a.gid = b.gid) AS c using SRID=4326 using unique aggregates_id" PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END END This works perfectly on Mapserver 6.4, but on 7.0.5 it's failing (for what it's worth, I compiled 7.0.5 myself because my OS didn't have binary packages for it that supported php5-mapscript.) I turned on debugging and watched what kind of errors I was getting whenever I made tile requests. Here's what I found: [Wed Jun 7 03:42:43 2017].502983 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed Jun 7 03:42:43 2017].503018 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed Jun 7 03:42:43 2017].523359 msPostGISLayerWhichShapes(): Error (ERROR: syntax error at or near ")" LINE 1: ...2300166285,129.462890606979 36.6292300166285))',4326) and () ^ ) executing query: select "thematic_tiv",encode(ST_ AsBinary(ST_Force2D("geom"),'NDR'),'hex') as geom,"aggregates_id" from (SELECT b.geom AS geom, a.peril_id, a.portfolio_id, a.tiv, a.thematic_tiv, a.aggregates_id FROM portfolios.aggregates a INNER JOIN gisdata.adm_1 b on a.gid = b.gid) AS c where geom && ST_GeomFromText('POLYGON((129.462890606979 36.6292300166285,129.462890606979 68.6423395678331,179.999999974944 68.6423395678331,179.999999974944 36.6292300166285,129.462890606979 36.6292300166285))',4326) and () [Wed Jun 7 03:42:43 2017].523377 msPostGISLayerWhichShapes(): Query error. Error executing query. Check server logs [Wed Jun 7 03:42:43 2017].523434 msDrawMap(): Image handling error. Failed to draw layer named 'area_aggregates_tiv'. [Wed Jun 7 03:42:43 2017].523927 msFreeMap(): freeing map at 0x560aa573b6c0. That "and ()" at the end of the query causing the syntax error is very strange. It's like it's adding on a blank filter. I tried making the query as simple as possible, so I created another table that contained all the required information and changed the DATA line to: DATA "geom from portfolios.area_aggregates_join using SRID=4326 using unique aggregates_id" However, I still got the same type of error. I'm completely stumped. Does anyone have an idea what could be happening? I've spent the past 4 hours Googling with no success. Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From joerg.thomsen at wheregroup.com Wed Jun 7 00:27:20 2017 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Wed, 7 Jun 2017 09:27:20 +0200 Subject: [mapserver-users] Mapserver 7.0.5, PostGIS and Query Errors In-Reply-To: References: Message-ID: Hi, had the same problem a few weeks ago. The solution was to fix the FILTER or EXPRESSION within the classes. I don't remember exactly... J?rg Am 07.06.2017 um 08:45 schrieb James Colannino: > Hi everyone, > > I have a problem that's got me stumped. > > I have the following layer defined in a mapfile: > > LAYER > > NAME "aggregates" > TYPE POLYGON > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost port=5432 dbname=*** user=*** password=***" > DATA "geom FROM (SELECT b.geom AS geom, a.peril_id, a.portfolio_id, > a.tiv, a.thematic_tiv, a.aggregates_id FROM schema.aggregates a INNER > JOIN gisdata.adm_1 b on a.gid = b.gid) AS c using SRID=4326 using unique > aggregates_id" > > PROJECTION > "proj=longlat" > "ellps=WGS84" > "datum=WGS84" > "no_defs" > END > > END > > This works perfectly on Mapserver 6.4, but on 7.0.5 it's failing (for > what it's worth, I compiled 7.0.5 myself because my OS didn't have > binary packages for it that supported php5-mapscript.) I turned on > debugging and watched what kind of errors I was getting whenever I made > tile requests. Here's what I found: > > [Wed Jun 7 03:42:43 2017].502983 msDrawMap(): rendering using > outputformat named png (AGG/PNG). > [Wed Jun 7 03:42:43 2017].503018 msDrawMap(): WMS/WFS set-up and query, > 0.000s > [Wed Jun 7 03:42:43 2017].523359 msPostGISLayerWhichShapes(): Error > (ERROR: syntax error at or near ")" > LINE 1: ...2300166285,129.462890606979 36.6292300166285))',4326) and () > ^ > ) executing query: select > "thematic_tiv",encode(ST_AsBinary(ST_Force2D("geom"),'NDR'),'hex') as > geom,"aggregates_id" from (SELECT b.geom AS geom, a.peril_id, > a.portfolio_id, a.tiv, a.thematic_tiv, a.aggregates_id FROM > portfolios.aggregates a INNER JOIN gisdata.adm_1 b on a.gid = b.gid) AS > c where geom && ST_GeomFromText('POLYGON((129.462890606979 > 36.6292300166285,129.462890606979 68.6423395678331,179.999999974944 > 68.6423395678331,179.999999974944 36.6292300166285,129.462890606979 > 36.6292300166285))',4326) and () > [Wed Jun 7 03:42:43 2017].523377 msPostGISLayerWhichShapes(): Query > error. Error executing query. Check server logs > [Wed Jun 7 03:42:43 2017].523434 msDrawMap(): Image handling error. > Failed to draw layer named 'area_aggregates_tiv'. > [Wed Jun 7 03:42:43 2017].523927 msFreeMap(): freeing map at > 0x560aa573b6c0. > > That "and ()" at the end of the query causing the syntax error is very > strange. It's like it's adding on a blank filter. I tried making the > query as simple as possible, so I created another table that contained > all the required information and changed the DATA line to: > > DATA "geom from portfolios.area_aggregates_join using SRID=4326 using > unique aggregates_id" > > However, I still got the same type of error. I'm completely stumped. > Does anyone have an idea what could be happening? I've spent the past 4 > hours Googling with no success. > > Thank you! > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- ********************************** AGIT 2017 5.-7. Juli 2017 in Salzburg Besuchen Sie uns an Stand Nr. 31 www.agit.at ********************************** J?rg Thomsen WhereGroup GmbH & Co. KG Gillweg 3 14193 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 89 09 53 21 joerg.thomsen at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From woodbri at swoodbridge.com Wed Jun 7 07:02:09 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 7 Jun 2017 10:02:09 -0400 Subject: [mapserver-users] Mapserver 7.0.5, PostGIS and Query Errors In-Reply-To: References: Message-ID: <77561847-bbc5-29df-bcfe-01ceae13c18d@swoodbridge.com> Try adding FILTER "t" and see if that fixes the issue. If it does, please write it up as a bug. -Steve W On 6/7/2017 3:27 AM, J?rg Thomsen (WhereGroup) wrote: > Hi, > > had the same problem a few weeks ago. The solution was to fix the FILTER > or EXPRESSION within the classes. I don't remember exactly... > > J?rg > > > > > Am 07.06.2017 um 08:45 schrieb James Colannino: >> Hi everyone, >> >> I have a problem that's got me stumped. >> >> I have the following layer defined in a mapfile: >> >> LAYER >> >> NAME "aggregates" >> TYPE POLYGON >> CONNECTIONTYPE POSTGIS >> CONNECTION "host=localhost port=5432 dbname=*** user=*** password=***" >> DATA "geom FROM (SELECT b.geom AS geom, a.peril_id, a.portfolio_id, >> a.tiv, a.thematic_tiv, a.aggregates_id FROM schema.aggregates a INNER >> JOIN gisdata.adm_1 b on a.gid = b.gid) AS c using SRID=4326 using unique >> aggregates_id" >> >> PROJECTION >> "proj=longlat" >> "ellps=WGS84" >> "datum=WGS84" >> "no_defs" >> END >> >> END >> >> This works perfectly on Mapserver 6.4, but on 7.0.5 it's failing (for >> what it's worth, I compiled 7.0.5 myself because my OS didn't have >> binary packages for it that supported php5-mapscript.) I turned on >> debugging and watched what kind of errors I was getting whenever I made >> tile requests. Here's what I found: >> >> [Wed Jun 7 03:42:43 2017].502983 msDrawMap(): rendering using >> outputformat named png (AGG/PNG). >> [Wed Jun 7 03:42:43 2017].503018 msDrawMap(): WMS/WFS set-up and query, >> 0.000s >> [Wed Jun 7 03:42:43 2017].523359 msPostGISLayerWhichShapes(): Error >> (ERROR: syntax error at or near ")" >> LINE 1: ...2300166285,129.462890606979 36.6292300166285))',4326) and () >> ^ >> ) executing query: select >> "thematic_tiv",encode(ST_AsBinary(ST_Force2D("geom"),'NDR'),'hex') as >> geom,"aggregates_id" from (SELECT b.geom AS geom, a.peril_id, >> a.portfolio_id, a.tiv, a.thematic_tiv, a.aggregates_id FROM >> portfolios.aggregates a INNER JOIN gisdata.adm_1 b on a.gid = b.gid) AS >> c where geom && ST_GeomFromText('POLYGON((129.462890606979 >> 36.6292300166285,129.462890606979 68.6423395678331,179.999999974944 >> 68.6423395678331,179.999999974944 36.6292300166285,129.462890606979 >> 36.6292300166285))',4326) and () >> [Wed Jun 7 03:42:43 2017].523377 msPostGISLayerWhichShapes(): Query >> error. Error executing query. Check server logs >> [Wed Jun 7 03:42:43 2017].523434 msDrawMap(): Image handling error. >> Failed to draw layer named 'area_aggregates_tiv'. >> [Wed Jun 7 03:42:43 2017].523927 msFreeMap(): freeing map at >> 0x560aa573b6c0. >> >> That "and ()" at the end of the query causing the syntax error is very >> strange. It's like it's adding on a blank filter. I tried making the >> query as simple as possible, so I created another table that contained >> all the required information and changed the DATA line to: >> >> DATA "geom from portfolios.area_aggregates_join using SRID=4326 using >> unique aggregates_id" >> >> However, I still got the same type of error. I'm completely stumped. >> Does anyone have an idea what could be happening? I've spent the past 4 >> hours Googling with no success. >> >> Thank you! >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > Viele Gr??e, > J?rg Thomsen > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From crankycyclops at gmail.com Wed Jun 7 18:23:14 2017 From: crankycyclops at gmail.com (James Colannino) Date: Thu, 8 Jun 2017 09:23:14 +0800 Subject: [mapserver-users] Mapserver 7.0.5, PostGIS and Query Errors In-Reply-To: <77561847-bbc5-29df-bcfe-01ceae13c18d@swoodbridge.com> References: <77561847-bbc5-29df-bcfe-01ceae13c18d@swoodbridge.com> Message-ID: I've done some more digging, and I've realized we're using PHP Mapscript to further configure the map tiles that are coming back. I'm using the mapfile to generate a map object in PHP using: $map = ms_newMapObj(mapfile_filename); I then get the layer using: $map->getLayer(0); Finally, I set filters on the layer like this: $layer->setFilter(...); The filters being passed are native filters, and I see from the documentation that behavior regarding native filters has changed. I think this might be related to my problem. Does anyone know if the setFilter function accepts native filters as of Mapserver 7, and if not, if there's an equivalent function that does? I couldn't find it when referring to the Mapscript API. Thank you so much! On Wed, Jun 7, 2017 at 10:02 PM, Stephen Woodbridge wrote: > Try adding FILTER "t" and see if that fixes the issue. If it does, please > write it up as a bug. > > -Steve W > > > On 6/7/2017 3:27 AM, J?rg Thomsen (WhereGroup) wrote: > >> Hi, >> >> had the same problem a few weeks ago. The solution was to fix the FILTER >> or EXPRESSION within the classes. I don't remember exactly... >> >> J?rg >> >> >> >> >> Am 07.06.2017 um 08:45 schrieb James Colannino: >> >>> Hi everyone, >>> >>> I have a problem that's got me stumped. >>> >>> I have the following layer defined in a mapfile: >>> >>> LAYER >>> >>> NAME "aggregates" >>> TYPE POLYGON >>> CONNECTIONTYPE POSTGIS >>> CONNECTION "host=localhost port=5432 dbname=*** user=*** >>> password=***" >>> DATA "geom FROM (SELECT b.geom AS geom, a.peril_id, a.portfolio_id, >>> a.tiv, a.thematic_tiv, a.aggregates_id FROM schema.aggregates a INNER >>> JOIN gisdata.adm_1 b on a.gid = b.gid) AS c using SRID=4326 using unique >>> aggregates_id" >>> >>> PROJECTION >>> "proj=longlat" >>> "ellps=WGS84" >>> "datum=WGS84" >>> "no_defs" >>> END >>> >>> END >>> >>> This works perfectly on Mapserver 6.4, but on 7.0.5 it's failing (for >>> what it's worth, I compiled 7.0.5 myself because my OS didn't have >>> binary packages for it that supported php5-mapscript.) I turned on >>> debugging and watched what kind of errors I was getting whenever I made >>> tile requests. Here's what I found: >>> >>> [Wed Jun 7 03:42:43 2017].502983 msDrawMap(): rendering using >>> outputformat named png (AGG/PNG). >>> [Wed Jun 7 03:42:43 2017].503018 msDrawMap(): WMS/WFS set-up and query, >>> 0.000s >>> [Wed Jun 7 03:42:43 2017].523359 msPostGISLayerWhichShapes(): Error >>> (ERROR: syntax error at or near ")" >>> LINE 1: ...2300166285,129.462890606979 36.6292300166285))',4326) and () >>> ^ >>> ) executing query: select >>> "thematic_tiv",encode(ST_AsBinary(ST_Force2D("geom"),'NDR'),'hex') as >>> geom,"aggregates_id" from (SELECT b.geom AS geom, a.peril_id, >>> a.portfolio_id, a.tiv, a.thematic_tiv, a.aggregates_id FROM >>> portfolios.aggregates a INNER JOIN gisdata.adm_1 b on a.gid = b.gid) AS >>> c where geom && ST_GeomFromText('POLYGON((129.462890606979 >>> 36.6292300166285,129.462890606979 68.6423395678331,179.999999974944 >>> 68.6423395678331,179.999999974944 36.6292300166285,129.462890606979 >>> 36.6292300166285))',4326) and () >>> [Wed Jun 7 03:42:43 2017].523377 msPostGISLayerWhichShapes(): Query >>> error. Error executing query. Check server logs >>> [Wed Jun 7 03:42:43 2017].523434 msDrawMap(): Image handling error. >>> Failed to draw layer named 'area_aggregates_tiv'. >>> [Wed Jun 7 03:42:43 2017].523927 msFreeMap(): freeing map at >>> 0x560aa573b6c0. >>> >>> That "and ()" at the end of the query causing the syntax error is very >>> strange. It's like it's adding on a blank filter. I tried making the >>> query as simple as possible, so I created another table that contained >>> all the required information and changed the DATA line to: >>> >>> DATA "geom from portfolios.area_aggregates_join using SRID=4326 using >>> unique aggregates_id" >>> >>> However, I still got the same type of error. I'm completely stumped. >>> Does anyone have an idea what could be happening? I've spent the past 4 >>> hours Googling with no success. >>> >>> Thank you! >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> Viele Gr??e, >> J?rg Thomsen >> >> > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From crankycyclops at gmail.com Wed Jun 7 20:55:13 2017 From: crankycyclops at gmail.com (James Colannino) Date: Thu, 8 Jun 2017 11:55:13 +0800 Subject: [mapserver-users] Mapserver 7.0.5, PostGIS and Query Errors In-Reply-To: References: <77561847-bbc5-29df-bcfe-01ceae13c18d@swoodbridge.com> Message-ID: I finally figured it out. I replaced calls to $layer->setFilter('column=value') with calls to $layer->setProcessing('NATIVE_FILTER=column=value'). I finally have map tiles rendering again! Thanks for the help, everyone! James Colannino, Modern Literary Fantasy Author (writing as Jeff Coleman) https://blog.jeffcolemanwrites.com/ On Thu, Jun 8, 2017 at 9:23 AM, James Colannino wrote: > I've done some more digging, and I've realized we're using PHP Mapscript > to further configure the map tiles that are coming back. > > I'm using the mapfile to generate a map object in PHP using: > > $map = ms_newMapObj(mapfile_filename); > > I then get the layer using: > > $map->getLayer(0); > > Finally, I set filters on the layer like this: > > $layer->setFilter(...); > > The filters being passed are native filters, and I see from the > documentation that behavior regarding native filters has changed. I think > this might be related to my problem. Does anyone know if the setFilter > function accepts native filters as of Mapserver 7, and if not, if there's > an equivalent function that does? I couldn't find it when referring to the > Mapscript API. > > Thank you so much! > > > On Wed, Jun 7, 2017 at 10:02 PM, Stephen Woodbridge < > woodbri at swoodbridge.com> wrote: > >> Try adding FILTER "t" and see if that fixes the issue. If it does, please >> write it up as a bug. >> >> -Steve W >> >> >> On 6/7/2017 3:27 AM, J?rg Thomsen (WhereGroup) wrote: >> >>> Hi, >>> >>> had the same problem a few weeks ago. The solution was to fix the FILTER >>> or EXPRESSION within the classes. I don't remember exactly... >>> >>> J?rg >>> >>> >>> >>> >>> Am 07.06.2017 um 08:45 schrieb James Colannino: >>> >>>> Hi everyone, >>>> >>>> I have a problem that's got me stumped. >>>> >>>> I have the following layer defined in a mapfile: >>>> >>>> LAYER >>>> >>>> NAME "aggregates" >>>> TYPE POLYGON >>>> CONNECTIONTYPE POSTGIS >>>> CONNECTION "host=localhost port=5432 dbname=*** user=*** >>>> password=***" >>>> DATA "geom FROM (SELECT b.geom AS geom, a.peril_id, a.portfolio_id, >>>> a.tiv, a.thematic_tiv, a.aggregates_id FROM schema.aggregates a INNER >>>> JOIN gisdata.adm_1 b on a.gid = b.gid) AS c using SRID=4326 using unique >>>> aggregates_id" >>>> >>>> PROJECTION >>>> "proj=longlat" >>>> "ellps=WGS84" >>>> "datum=WGS84" >>>> "no_defs" >>>> END >>>> >>>> END >>>> >>>> This works perfectly on Mapserver 6.4, but on 7.0.5 it's failing (for >>>> what it's worth, I compiled 7.0.5 myself because my OS didn't have >>>> binary packages for it that supported php5-mapscript.) I turned on >>>> debugging and watched what kind of errors I was getting whenever I made >>>> tile requests. Here's what I found: >>>> >>>> [Wed Jun 7 03:42:43 2017].502983 msDrawMap(): rendering using >>>> outputformat named png (AGG/PNG). >>>> [Wed Jun 7 03:42:43 2017].503018 msDrawMap(): WMS/WFS set-up and >>>> query, >>>> 0.000s >>>> [Wed Jun 7 03:42:43 2017].523359 msPostGISLayerWhichShapes(): Error >>>> (ERROR: syntax error at or near ")" >>>> LINE 1: ...2300166285,129.462890606979 36.6292300166285))',4326) and () >>>> ^ >>>> ) executing query: select >>>> "thematic_tiv",encode(ST_AsBinary(ST_Force2D("geom"),'NDR'),'hex') as >>>> geom,"aggregates_id" from (SELECT b.geom AS geom, a.peril_id, >>>> a.portfolio_id, a.tiv, a.thematic_tiv, a.aggregates_id FROM >>>> portfolios.aggregates a INNER JOIN gisdata.adm_1 b on a.gid = b.gid) AS >>>> c where geom && ST_GeomFromText('POLYGON((129.462890606979 >>>> 36.6292300166285,129.462890606979 68.6423395678331,179.999999974944 >>>> 68.6423395678331,179.999999974944 36.6292300166285,129.462890606979 >>>> 36.6292300166285))',4326) and () >>>> [Wed Jun 7 03:42:43 2017].523377 msPostGISLayerWhichShapes(): Query >>>> error. Error executing query. Check server logs >>>> [Wed Jun 7 03:42:43 2017].523434 msDrawMap(): Image handling error. >>>> Failed to draw layer named 'area_aggregates_tiv'. >>>> [Wed Jun 7 03:42:43 2017].523927 msFreeMap(): freeing map at >>>> 0x560aa573b6c0. >>>> >>>> That "and ()" at the end of the query causing the syntax error is very >>>> strange. It's like it's adding on a blank filter. I tried making the >>>> query as simple as possible, so I created another table that contained >>>> all the required information and changed the DATA line to: >>>> >>>> DATA "geom from portfolios.area_aggregates_join using SRID=4326 using >>>> unique aggregates_id" >>>> >>>> However, I still got the same type of error. I'm completely stumped. >>>> Does anyone have an idea what could be happening? I've spent the past 4 >>>> hours Googling with no success. >>>> >>>> Thank you! >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >>> Viele Gr??e, >>> J?rg Thomsen >>> >>> >> >> --- >> This email has been checked for viruses by Avast antivirus software. >> https://www.avast.com/antivirus >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pe_lord at yahoo.ca Tue Jun 13 11:38:03 2017 From: pe_lord at yahoo.ca (pe_lord) Date: Tue, 13 Jun 2017 11:38:03 -0700 (MST) Subject: [mapserver-users] Multi template In-Reply-To: References: <1492520742623-5317599.post@n6.nabble.com> <1492534338162-5317655.post@n6.nabble.com> <1492543876608-5317677.post@n6.nabble.com> <1493293693420-5318595.post@n6.nabble.com> <1494524136059-5320221.post@n6.nabble.com> Message-ID: <1497379083589-5324075.post@n6.nabble.com> This is working properly with your proposal. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Multi-template-tp5317599p5324075.html Sent from the Mapserver - User mailing list archive at Nabble.com. From samara.ebinger at gmail.com Wed Jun 14 11:16:30 2017 From: samara.ebinger at gmail.com (Samara Ebinger) Date: Wed, 14 Jun 2017 14:16:30 -0400 Subject: [mapserver-users] MapServer Installation on Mac Message-ID: Hi, Just curious if there are any other Mac users out there who have successfully installed MapServer recently or if anyone has any suggestions on how to successfully install it? I?m trying to install MapServer on my MacBook Pro (OS X El Capitan) but am having some problems. I used the KyngChaos site (link from MapServer website) to download MapServer 6.0.3-1. I installed the GDAL framework 2.1 which is available from that site. However, when I try to install MapServer, I get a message saying that GDAL 1.9 framework is needed which I can?t find anywhere. Thanks for any help. Samara -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Wed Jun 14 14:57:20 2017 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 14 Jun 2017 16:57:20 -0500 Subject: [mapserver-users] MapServer Installation on Mac In-Reply-To: References: Message-ID: Look in the archives on my site. But, I'd be careful, I never updated the installation to handle changes in the way OS X does its webserver configuration, and it may damage the webserver config files. I don't have any recommendations about other OS X mapserver installations. Maybe homebrew. You'd have to figure out the webserver configuration. > On Jun 14, 2017, at 1:16 PM, Samara Ebinger wrote: > > Hi, > Just curious if there are any other Mac users out there who have successfully installed MapServer recently or if anyone has any suggestions on how to successfully install it? > > I?m trying to install MapServer on my MacBook Pro (OS X El Capitan) but am having some problems. > I used the KyngChaos site (link from MapServer website) to download MapServer 6.0.3-1. I installed the GDAL framework 2.1 which is available from that site. However, when I try to install MapServer, I get a message saying that GDAL 1.9 framework is needed which I can?t find anywhere. > > Thanks for any help. > > Samara > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ First Pogril: Why is life like sticking your head in a bucket filled with hyena offal? Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal? First Pogril: I don't know either. Wretched, isn't it? -HitchHiker's Guide to the Galaxy -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Thu Jun 15 11:22:04 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Thu, 15 Jun 2017 20:22:04 +0200 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: References: Message-ID: Hi, I need to force the remove from the wfs response of the geometry . I need to avoid that the users could take the geometry and allow only the alphanumeric attributes. Is this allowed from mapserver ? Many thx, Andrea -------------- next part -------------- An HTML attachment was scrubbed... URL: From apollolm at gmail.com Thu Jun 15 15:23:00 2017 From: apollolm at gmail.com (apollolm) Date: Thu, 15 Jun 2017 15:23:00 -0700 (MST) Subject: [mapserver-users] Reversed Arabic Words/Numbers Message-ID: <1497565380820-5324414.post@n6.nabble.com> Hi - I opened an Issue in the Git repo here: https://github.com/mapserver/mapserver/issues/5426, but wanted to also ask here if anybody has encountered this same issue with Mapserver 7.0.4. Copied from Github: We recently upgraded from MapServer 6.2.1 to 7.0.4. One issue we're seeing is that Arabic road labels that contain a number and a word like ???? 30 is being displayed with the 30 to the right of the phrase. (So Road 30 instead of 30 Road) (See the link for screenshots of 6.2.1 vs. 7.0.4) The '30' should appear to the left of the word. We are using fribidi_0.19.6 and harfbuzz_1.4.1 (both in our new and previous versions of MapServer). This is happening on both a Windows and Ubuntu 16.04 environment, and seems to only affect the ordering of labels when a number is present in an Arabic label. One thing that changed in our installation had to do with a freetype/harfbuzz circular dependency: I had to compile and install freetype w/o harfbuzz. Then install harfbuzz. And then compile and install freetype w/ harfbuzz on top of existing freetype. I am pretty sure that when I installed freetype the second time it overwrote the freetype libraries from the first installation of freetype. Here are the options we used when compiling: -DWITH_GDAL=1 -DWITH_HARFBUZZ=1 -DWITH_THREAD_SAFETY=1 -DWITH_JAVA=1 -DWITH_CAIRO=0 -DWITH_GEOS=0 -DWITH_POSTGIS=0 -DWITH_RSVG=0 -DWITH_CLIENT_WMS=0 -DWITH_CLIENT_WFS=0 -DWITH_WFS=0 -DWITH_LIBXML2=0 -DWITH_KML=0 -DWITH_GIF=0 -DWITH_EXEMPI=0 -DWITH_FCGI=0 The input data for both versions is identical - the only thing I can tell that is different is the version of MapServer. Based on the comments in the Git issue, I tried using the ENCODING block as well with no effect. Thanks! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Reversed-Arabic-Words-Numbers-tp5324414.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joerg.thomsen at wheregroup.com Thu Jun 15 23:56:06 2017 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Fri, 16 Jun 2017 08:56:06 +0200 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: References: Message-ID: <140f1226-48c5-c9de-b338-40fbce76bdac@wheregroup.com> Hello Andrea, Am 15.06.2017 um 20:22 schrieb Andrea Peri: > Hi, > I need to force the remove from the wfs response of the geometry . I > need to avoid that the users could take the geometry and allow only the > alphanumeric attributes. > Is this allowed from mapserver ? This is not the purpose of a WFS. A WFS-Client would expect a gemoemtry und couldn't handle the answer. You may use WMS-GetFeatureInfo with GML-Output. Regards, J?rg > Many thx, > Andrea > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- ********************************** AGIT 2017 5.-7. Juli 2017 in Salzburg Besuchen Sie uns an Stand Nr. 31 www.agit.at ********************************** J?rg Thomsen WhereGroup GmbH & Co. KG Gillweg 3 14193 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 89 09 53 21 joerg.thomsen at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From inna.nogeste at bom.gov.au Fri Jun 16 00:20:00 2017 From: inna.nogeste at bom.gov.au (Inna Nogeste) Date: Fri, 16 Jun 2017 07:20:00 +0000 Subject: [mapserver-users] GEOMTRANSFORM (buffer([shape], -x) - displays error for GETLEGENDGRAPHIC [SEC=UNCLASSIFIED] Message-ID: <6687345684d84e8981e3382e095a7625@iss-exch13-02.bom.gov.au> I've designed a map so that polygon outlines are moved inside the polygons so adjacent polygon boundaries do not overlap. I've included GEOMTRANSFORM (buffer([shape], -1) in the STYLE. The map displays as expected but adding the WMS layer to QGIS displays an error for the legend "Error downloading http:// server/directory etc" When requesting GETLEGENDGRAPHIC in the browser, a 500 Internal Server Error is displayed. However, when I comment out the GEOMTRANSFORM (buffer([shape], -1) in the STYLE then there are no errors in QGIS, nor in the browser when requesting GETLEGENDGRAPHIC. It seems as though the legend can't be drawn if GEOMTRANSFORM (buffer([shape], -x) is used in the STYLE. Regards, Inna Nogeste?| Spatial Information Specialist Geospatial Data and Services Information Systems and Services Division Bureau of Meteorology www.bom.gov.au From joerg.thomsen at wheregroup.com Fri Jun 16 00:38:47 2017 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Fri, 16 Jun 2017 09:38:47 +0200 Subject: [mapserver-users] GEOMTRANSFORM (buffer([shape], -x) - displays error for GETLEGENDGRAPHIC [SEC=UNCLASSIFIED] In-Reply-To: <6687345684d84e8981e3382e095a7625@iss-exch13-02.bom.gov.au> References: <6687345684d84e8981e3382e095a7625@iss-exch13-02.bom.gov.au> Message-ID: <0e3e393c-57a2-dff5-4109-21d7b77315d0@wheregroup.com> Hi, which Version do you use? Should be fixed since 6.4.3 / 7.0 https://github.com/mapserver/mapserver/issues/5193 J?rg Am 16.06.2017 um 09:20 schrieb Inna Nogeste: > I've designed a map so that polygon outlines are moved inside the polygons so adjacent polygon boundaries do not overlap. > I've included GEOMTRANSFORM (buffer([shape], -1) in the STYLE. > > The map displays as expected but adding the WMS layer to QGIS displays an error for the legend "Error downloading http:// server/directory etc" > When requesting GETLEGENDGRAPHIC in the browser, a 500 Internal Server Error is displayed. > > However, when I comment out the GEOMTRANSFORM (buffer([shape], -1) in the STYLE then there are no errors in QGIS, nor in the browser when requesting GETLEGENDGRAPHIC. > It seems as though the legend can't be drawn if GEOMTRANSFORM (buffer([shape], -x) is used in the STYLE. > > Regards, > Inna Nogeste | Spatial Information Specialist > > Geospatial Data and Services > Information Systems and Services Division > Bureau of Meteorology > www.bom.gov.au > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- ********************************** AGIT 2017 5.-7. Juli 2017 in Salzburg Besuchen Sie uns an Stand Nr. 31 www.agit.at ********************************** J?rg Thomsen WhereGroup GmbH & Co. KG Gillweg 3 14193 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 89 09 53 21 joerg.thomsen at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From aperi2007 at gmail.com Fri Jun 16 01:44:36 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Fri, 16 Jun 2017 10:44:36 +0200 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: <140f1226-48c5-c9de-b338-40fbce76bdac@wheregroup.com> References: <140f1226-48c5-c9de-b338-40fbce76bdac@wheregroup.com> Message-ID: Hi Jorg, I know the spec allow to reduce the attribute returned. The WFS spec give the parameter "propertyname" is possible to give a list of attribute returned. If in the propertyname is not list the "geometry" field it is not returned. So the wfs can have a response without the geometry as allowed from the wfs spec. Also I know the mapserver allow to set and exclude some attribute to avoid sensible information from the response using the parameter "gml_exclude_items" and "ows_exclude_items". Unfortunatelly the two parameter seem ignore the geometry field as field name. A. 2017-06-16 8:56 GMT+02:00 J?rg Thomsen (WhereGroup) : > Hello Andrea, > > Am 15.06.2017 um 20:22 schrieb Andrea Peri: >> Hi, >> I need to force the remove from the wfs response of the geometry . I >> need to avoid that the users could take the geometry and allow only the >> alphanumeric attributes. >> Is this allowed from mapserver ? > > This is not the purpose of a WFS. A WFS-Client would expect a gemoemtry > und couldn't handle the answer. > You may use WMS-GetFeatureInfo with GML-Output. > > Regards, J?rg > >> Many thx, >> Andrea >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > Viele Gr??e, > J?rg Thomsen > > -- > > ********************************** > AGIT 2017 > 5.-7. Juli 2017 in Salzburg > Besuchen Sie uns an Stand Nr. 31 > www.agit.at > ********************************** > > J?rg Thomsen > WhereGroup GmbH & Co. KG > Gillweg 3 > 14193 Berlin > Germany > > Fon: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 89 09 53 21 > > joerg.thomsen at wheregroup.com > www.wheregroup.com > Amtsgericht Bonn, HRA 6788 > ------------------------------- > Komplement?rin: > WhereGroup Verwaltungs GmbH > vertreten durch: > Olaf Knopp, Peter Stamm > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From jpass at bgs.ac.uk Fri Jun 16 02:20:31 2017 From: jpass at bgs.ac.uk (Passmore, James H.) Date: Fri, 16 Jun 2017 09:20:31 +0000 Subject: [mapserver-users] how remove the geometry from wfs response Message-ID: The purpose of a WFS is to return features, which are spatial objects plus properties. If I understand it you want to return just the properties? If so what you are getting are not features, and therefore a WFS is not an appropriate mechanism for you to get the data you want. IMHO MapServer shouldn't allow this through the WFS interface (and neither should any other WFS software). James Date: Thu, 15 Jun 2017 20:22:04 +0200 From: Andrea Peri Hi, I need to force the remove from the wfs response of the geometry . I need to avoid that the users could take the geometry and allow only the alphanumeric attributes. Is this allowed from mapserver ? Many thx, Andrea ________________________________ This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. ________________________________ From joerg.thomsen at wheregroup.com Fri Jun 16 02:38:41 2017 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Fri, 16 Jun 2017 11:38:41 +0200 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: References: <140f1226-48c5-c9de-b338-40fbce76bdac@wheregroup.com> Message-ID: Hi Andrea, Am 16.06.2017 um 10:44 schrieb Andrea Peri: > Hi Jorg, > > I know the spec allow to reduce the attribute returned. > > The WFS spec give the parameter "propertyname" is possible to give a > list of attribute returned. > If in the propertyname is not list the "geometry" field it is not returned. > > So the wfs can have a response without the geometry as allowed from > the wfs spec. > Also I know the mapserver allow to set and exclude some attribute to > avoid sensible information from the response using the > parameter "gml_exclude_items" and "ows_exclude_items". > > Unfortunatelly the two parameter seem ignore the geometry field as field name. you are right, but this concerns the request, not the service. You are talking about attributes. The gemometry is not an attribute, but the feature itself and a WebFeatureService which does not provide the feautures/geometries wouldn't be a FeatureService. Perhaps there is anybody else, who can explain it better .... J?rg > > A. > > > 2017-06-16 8:56 GMT+02:00 J?rg Thomsen (WhereGroup) > : >> Hello Andrea, >> >> Am 15.06.2017 um 20:22 schrieb Andrea Peri: >>> Hi, >>> I need to force the remove from the wfs response of the geometry . I >>> need to avoid that the users could take the geometry and allow only the >>> alphanumeric attributes. >>> Is this allowed from mapserver ? >> >> This is not the purpose of a WFS. A WFS-Client would expect a gemoemtry >> und couldn't handle the answer. >> You may use WMS-GetFeatureInfo with GML-Output. >> >> Regards, J?rg >> >>> Many thx, >>> Andrea >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> >> Viele Gr??e, >> J?rg Thomsen >> >> -- >> >> ********************************** >> AGIT 2017 >> 5.-7. Juli 2017 in Salzburg >> Besuchen Sie uns an Stand Nr. 31 >> www.agit.at >> ********************************** >> >> J?rg Thomsen >> WhereGroup GmbH & Co. KG >> Gillweg 3 >> 14193 Berlin >> Germany >> >> Fon: +49 (0)30 / 5130 278 74 >> Fax: +49 (0)30 / 89 09 53 21 >> >> joerg.thomsen at wheregroup.com >> www.wheregroup.com >> Amtsgericht Bonn, HRA 6788 >> ------------------------------- >> Komplement?rin: >> WhereGroup Verwaltungs GmbH >> vertreten durch: >> Olaf Knopp, Peter Stamm >> ------------------------------- >> Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > Viele Gr??e, J?rg Thomsen -- ********************************** AGIT 2017 5.-7. Juli 2017 in Salzburg Besuchen Sie uns an Stand Nr. 31 www.agit.at ********************************** J?rg Thomsen WhereGroup GmbH & Co. KG Gillweg 3 14193 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 89 09 53 21 joerg.thomsen at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From jukka.rahkonen at maanmittauslaitos.fi Fri Jun 16 02:52:34 2017 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Fri, 16 Jun 2017 09:52:34 +0000 Subject: [mapserver-users] how remove the geometry from wfs response Message-ID: Hi, I don't quite agree with you claim that geometry is somehow compulsory in WFS. See for example these capabilities: http://demo.geo-solutions.it/geoserver/wfs?request=describefeaturetype&version=1.0.0&service=wfs&typename=topp:states You can see that geometry is just one attribute among all the others and it has minOccurs=0 and nillable=true You can also make a GetFeature request that drops the geometry out. In this case the coordinates are revealed in the bounding box but that is another story. http://demo.geo-solutions.it/geoserver/wfs?request=getfeature&version=1.0.0&service=wfs&typename=topp:states&propertyname=STATE_NAME,EMPLOYED&SORTBY=EMPLOYED&maxfeatures=1 What Andrea wants is a valid wish but it may be a bit difficult to configure WFS servers to drop the geometries by default and unexpected things may happen is user sends requests with spatial filters. One alternatively could be to create a WFS 2.0 stored query that does not return geometry and somehow allow users to make queries only through that stored query. Also application schemas are used for all kind of oddities but those are not supported by Mapserver. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta J?rg Thomsen (WhereGroup) L?hetetty: 16. kes?kuuta 2017 12:39 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] how remove the geometry from wfs response Hi Andrea, Am 16.06.2017 um 10:44 schrieb Andrea Peri: > Hi Jorg, > > I know the spec allow to reduce the attribute returned. > > The WFS spec give the parameter "propertyname" is possible to give a > list of attribute returned. > If in the propertyname is not list the "geometry" field it is not returned. > > So the wfs can have a response without the geometry as allowed from > the wfs spec. > Also I know the mapserver allow to set and exclude some attribute to > avoid sensible information from the response using the parameter > "gml_exclude_items" and "ows_exclude_items". > > Unfortunatelly the two parameter seem ignore the geometry field as field name. you are right, but this concerns the request, not the service. You are talking about attributes. The gemometry is not an attribute, but the feature itself and a WebFeatureService which does not provide the feautures/geometries wouldn't be a FeatureService. Perhaps there is anybody else, who can explain it better .... J?rg > > A. > > > 2017-06-16 8:56 GMT+02:00 J?rg Thomsen (WhereGroup) > : >> Hello Andrea, >> >> Am 15.06.2017 um 20:22 schrieb Andrea Peri: >>> Hi, >>> I need to force the remove from the wfs response of the geometry . I >>> need to avoid that the users could take the geometry and allow only >>> the alphanumeric attributes. >>> Is this allowed from mapserver ? >> >> This is not the purpose of a WFS. A WFS-Client would expect a >> gemoemtry und couldn't handle the answer. >> You may use WMS-GetFeatureInfo with GML-Output. >> >> Regards, J?rg >> >>> Many thx, >>> Andrea >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> >> Viele Gr??e, >> J?rg Thomsen >> >> -- >> >> ********************************** >> AGIT 2017 >> 5.-7. Juli 2017 in Salzburg >> Besuchen Sie uns an Stand Nr. 31 >> www.agit.at >> ********************************** >> >> J?rg Thomsen >> WhereGroup GmbH & Co. KG >> Gillweg 3 >> 14193 Berlin >> Germany >> >> Fon: +49 (0)30 / 5130 278 74 >> Fax: +49 (0)30 / 89 09 53 21 >> >> joerg.thomsen at wheregroup.com >> www.wheregroup.com >> Amtsgericht Bonn, HRA 6788 >> ------------------------------- >> Komplement?rin: >> WhereGroup Verwaltungs GmbH >> vertreten durch: >> Olaf Knopp, Peter Stamm >> ------------------------------- >> Folgen Sie der WhereGroup auf twitter: >> http://twitter.com/WhereGroup_com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > Viele Gr??e, J?rg Thomsen -- ********************************** AGIT 2017 5.-7. Juli 2017 in Salzburg Besuchen Sie uns an Stand Nr. 31 www.agit.at ********************************** J?rg Thomsen WhereGroup GmbH & Co. KG Gillweg 3 14193 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 89 09 53 21 joerg.thomsen at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Fri Jun 16 03:17:03 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 16 Jun 2017 07:17:03 -0300 Subject: [mapserver-users] Reversed Arabic Words/Numbers In-Reply-To: <1497565380820-5324414.post@n6.nabble.com> References: <1497565380820-5324414.post@n6.nabble.com> Message-ID: <6e6435c4-69db-02ef-d693-5ce99927fb19@gatewaygeomatics.com> Here is the small sample that I put together for that ticket, so you can test locally and provide feedback: https://github.com/mapserver/mapserver/files/1005449/ticket-5426-arabic-labels.zip -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-06-15 7:23 PM, apollolm wrote: > Hi - I opened an Issue in the Git repo here: > https://github.com/mapserver/mapserver/issues/5426, but wanted to also ask > here if anybody has encountered this same issue with Mapserver 7.0.4. > > Copied from Github: > > We recently upgraded from MapServer 6.2.1 to 7.0.4. > > One issue we're seeing is that Arabic road labels that contain a number and > a word like ???? 30 is being displayed with the 30 to the right of the > phrase. (So Road 30 instead of 30 Road) > > (See the link for screenshots of 6.2.1 vs. 7.0.4) > > The '30' should appear to the left of the word. > > We are using fribidi_0.19.6 and harfbuzz_1.4.1 (both in our new and previous > versions of MapServer). This is happening on both a Windows and Ubuntu 16.04 > environment, and seems to only affect the ordering of labels when a number > is present in an Arabic label. > > One thing that changed in our installation had to do with a > freetype/harfbuzz circular dependency: > I had to compile and install freetype w/o harfbuzz. Then install harfbuzz. > And then compile and install freetype w/ harfbuzz on top of existing > freetype. I am pretty sure that when I installed freetype the second time it > overwrote the freetype libraries from the first installation of freetype. > > Here are the options we used when compiling: > -DWITH_GDAL=1 -DWITH_HARFBUZZ=1 -DWITH_THREAD_SAFETY=1 -DWITH_JAVA=1 > -DWITH_CAIRO=0 -DWITH_GEOS=0 -DWITH_POSTGIS=0 -DWITH_RSVG=0 > -DWITH_CLIENT_WMS=0 -DWITH_CLIENT_WFS=0 -DWITH_WFS=0 -DWITH_LIBXML2=0 > -DWITH_KML=0 -DWITH_GIF=0 -DWITH_EXEMPI=0 -DWITH_FCGI=0 > > The input data for both versions is identical - the only thing I can tell > that is different is the version of MapServer. > > Based on the comments in the Git issue, I tried using the ENCODING block as > well with no effect. > > Thanks! > > From even.rouault at spatialys.com Fri Jun 16 03:25:50 2017 From: even.rouault at spatialys.com (Even Rouault) Date: Fri, 16 Jun 2017 12:25:50 +0200 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: References: Message-ID: <4408956.2lW1a4g4gv@even-i700> On jeudi 15 juin 2017 20:22:04 CEST Andrea Peri wrote: > Hi, > I need to force the remove from the wfs response of the geometry . I need > to avoid that the users could take the geometry and allow only the > alphanumeric attributes. > Is this allowed from mapserver ? Andrea, Digging into the code, I found that setting in the LAYER.METADATA "gml_geometries" "none" will do the job. This trick is used internally in particular to implement GetPropertyValue. But digging into history, I actually see it was done on purpose for GetFeature as well per https://github.com/mapserver/mapserver/issues/1718 It is just that the documentation for it in is missing in http://mapserver.org/ogc/wfs_server.html . Doesn't seem to be tested in the regression suite as far as I can see, so lucky it still works. Note: this trick will only work for MapServer integrated GML output. OGR outputformat doesn't honour this setting. Even -- Spatialys - Geospatial professional services http://www.spatialys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Fri Jun 16 03:34:30 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Fri, 16 Jun 2017 12:34:30 +0200 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: <4408956.2lW1a4g4gv@even-i700> References: <4408956.2lW1a4g4gv@even-i700> Message-ID: hi even, thx for hint. Could this trick work with wfs 2.0? it is the only mapserver wfs version with some optimization for spatialite. Il 16 Giu 2017 12:25, "Even Rouault" ha scritto: > On jeudi 15 juin 2017 20:22:04 CEST Andrea Peri wrote: > > > Hi, > > > I need to force the remove from the wfs response of the geometry . I need > > > to avoid that the users could take the geometry and allow only the > > > alphanumeric attributes. > > > Is this allowed from mapserver ? > > > > Andrea, > > > > Digging into the code, I found that setting in the LAYER.METADATA > > > > "gml_geometries" "none" > > > > will do the job. > > > > This trick is used internally in particular to implement GetPropertyValue. > But digging into history, I actually see it was done on purpose for > GetFeature as well per > > https://github.com/mapserver/mapserver/issues/1718 > > > > It is just that the documentation for it in is missing in > > http://mapserver.org/ogc/wfs_server.html . Doesn't seem to be tested in > the regression suite as far as I can see, so lucky it still works. > > > > Note: this trick will only work for MapServer integrated GML output. OGR > outputformat doesn't honour this setting. > > > > > > Even > > > > -- > > Spatialys - Geospatial professional services > > http://www.spatialys.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at spatialys.com Fri Jun 16 03:38:07 2017 From: even.rouault at spatialys.com (Even Rouault) Date: Fri, 16 Jun 2017 12:38:07 +0200 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: References: <4408956.2lW1a4g4gv@even-i700> Message-ID: <2525453.qPbCWhf7EG@even-i700> On vendredi 16 juin 2017 12:34:30 CEST Andrea Peri wrote: > hi even, thx for hint. > > Could this trick work with wfs 2.0? Works will WFS 1.0.0, 1.1.0 and 2.0.0 > it is the only mapserver wfs version with some optimization for spatialite. I don't recall the spatialite optimizations to be specific of a particular WFS version, but my memory can be wrong. -- Spatialys - Geospatial professional services http://www.spatialys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Fri Jun 16 03:46:38 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Fri, 16 Jun 2017 12:46:38 +0200 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: <2525453.qPbCWhf7EG@even-i700> References: <4408956.2lW1a4g4gv@even-i700> <2525453.qPbCWhf7EG@even-i700> Message-ID: You have right I should wrote ogr not spatialite. We use always spatialite, but of course the driver is ogr. A. Il 16 Giu 2017 12:38, "Even Rouault" ha scritto: > On vendredi 16 juin 2017 12:34:30 CEST Andrea Peri wrote: > > > hi even, thx for hint. > > > > > > Could this trick work with wfs 2.0? > > > > Works will WFS 1.0.0, 1.1.0 and 2.0.0 > > > > > it is the only mapserver wfs version with some optimization for > spatialite. > > > > I don't recall the spatialite optimizations to be specific of a particular > WFS version, but my memory can be wrong. > > > > -- > > Spatialys - Geospatial professional services > > http://www.spatialys.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri Jun 16 05:46:20 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 16 Jun 2017 08:46:20 -0400 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: <4408956.2lW1a4g4gv@even-i700> References: <4408956.2lW1a4g4gv@even-i700> Message-ID: <5ee53bb6-63d9-0a77-1396-7cff19885dfb@swoodbridge.com> Should an issue(s) be opened against this: * for the doc? * for adding something to the test suite? * for the WFS non compliance with ogr? -Steve W On 6/16/2017 6:25 AM, Even Rouault wrote: > On jeudi 15 juin 2017 20:22:04 CEST Andrea Peri wrote: > > > Hi, > > > I need to force the remove from the wfs response of the geometry . I need > > > to avoid that the users could take the geometry and allow only the > > > alphanumeric attributes. > > > Is this allowed from mapserver ? > > Andrea, > > Digging into the code, I found that setting in the LAYER.METADATA > > "gml_geometries" "none" > > will do the job. > > This trick is used internally in particular to implement > GetPropertyValue. But digging into history, I actually see it was done > on purpose for GetFeature as well per > > https://github.com/mapserver/mapserver/issues/1718 > > It is just that the documentation for it in is missing in > > http://mapserver.org/ogc/wfs_server.html . Doesn't seem to be tested in > the regression suite as far as I can see, so lucky it still works. > > Note: this trick will only work for MapServer integrated GML output. OGR > outputformat doesn't honour this setting. > > Even > > -- > > Spatialys - Geospatial professional services > > http://www.spatialys.com > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From jmckenna at gatewaygeomatics.com Fri Jun 16 06:00:08 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 16 Jun 2017 10:00:08 -0300 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: <5ee53bb6-63d9-0a77-1396-7cff19885dfb@swoodbridge.com> References: <4408956.2lW1a4g4gv@even-i700> <5ee53bb6-63d9-0a77-1396-7cff19885dfb@swoodbridge.com> Message-ID: <78dc4a6c-5a9a-ee79-83bf-da1eb2bf0f65@gatewaygeomatics.com> On 2017-06-16 9:46 AM, Stephen Woodbridge wrote: > Should an issue(s) be opened against this: > > * for the doc? yes, please file this doc ticket at https://github.com/mapserver/docs Thanks SteveW. > * for adding something to the test suite? > * for the WFS non compliance with ogr? > -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From woodbri at swoodbridge.com Fri Jun 16 06:09:51 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 16 Jun 2017 09:09:51 -0400 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: <78dc4a6c-5a9a-ee79-83bf-da1eb2bf0f65@gatewaygeomatics.com> References: <4408956.2lW1a4g4gv@even-i700> <5ee53bb6-63d9-0a77-1396-7cff19885dfb@swoodbridge.com> <78dc4a6c-5a9a-ee79-83bf-da1eb2bf0f65@gatewaygeomatics.com> Message-ID: https://github.com/mapserver/docs/issues/179 On 6/16/2017 9:00 AM, Jeff McKenna wrote: > On 2017-06-16 9:46 AM, Stephen Woodbridge wrote: >> Should an issue(s) be opened against this: >> >> * for the doc? > > yes, please file this doc ticket at https://github.com/mapserver/docs > Thanks SteveW. > >> * for adding something to the test suite? >> * for the WFS non compliance with ogr? >> --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From woodbri at swoodbridge.com Fri Jun 16 07:04:11 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 16 Jun 2017 10:04:11 -0400 Subject: [mapserver-users] Upgraded to Xenial and mapserver does not work Message-ID: Hi all, I just upgraded my system from trusty to xenial and mapserver does not work: $ /usr/bin/mapserv -v /usr/bin/mapserv: error while loading shared libraries: libproj.so.0: cannot open shared object file: No such file or directory $ apt-show-versions | grep mapserv cgi-mapserver:amd64/xenial 7.0.4-1~xenial5 uptodate libmapserver2:amd64/xenial 7.0.4-1~xenial5 uptodate mapserver-bin:amd64/xenial 7.0.4-1~xenial5 uptodate $ apt-show-versions | grep proj libproj-dev:amd64/xenial 4.9.2-2 uptodate libproj9:amd64/xenial 4.9.2-2 uptodate proj-bin:amd64/xenial 4.9.2-2 uptodate proj-data:all/xenial 4.9.2-2 uptodate $ ldd /usr/bin/mapserv | grep "not found" libproj.so.0 => not found libgif.so.4 => not found $ ls /usr/lib/x86_64-linux-gnu/libproj.* /usr/lib/x86_64-linux-gnu/libproj.a /usr/lib/x86_64-linux-gnu/libproj.la /usr/lib/x86_64-linux-gnu/libproj.so /usr/lib/x86_64-linux-gnu/libproj.so.9 /usr/lib/x86_64-linux-gnu/libproj.so.9.1.0 Any ideas on how to fix this? I added ubuntugis-unstable ppa after I found this issue, and uninstalled and then installed the packages but that did not fix it. -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From even.rouault at spatialys.com Fri Jun 16 08:03:50 2017 From: even.rouault at spatialys.com (Even Rouault) Date: Fri, 16 Jun 2017 17:03:50 +0200 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: References: <4408956.2lW1a4g4gv@even-i700> Message-ID: <4758591.PBBU6UvZ00@even-i700> On vendredi 16 juin 2017 14:51:35 CEST Lime, Steve D (MNIT) wrote: > This behavior is documented http://mapserver.org/ogc/wfs_server.html and > http://mapserver.org/output/ogr_output.html. The latter seems to contradict > the documentation on the former that states that OGR output doesn't honor > that metadata setting. > Steve, Are you pointing to """ *ows/wfs_geomtype* (Optional, metadata shared with OGR output[1]). Set the geometry type of OGR layers created from this MapServer LAYER. One of ?Point?, ?LineString?, ?Polygon?, ?MultiPoint?, ?MultiLineString?, ?MultiPolygon?, ?GeometryCollection?, ?Geometry?, or ?None? """ ??? I don't see any contradiction between the 2 pages, so not sure you are pointing to this. What I pointed to was "gml_geometries" "none" Actually when looking in the code, my feeling is that "ows_geomtype" "None" works mostly for OGR output. "ows_geomtype" is only taken into account by GML output to determine if the geometry is 2.5D or not. What a mess ! > Steve > > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On > Behalf Of Even Rouault Sent: Friday, June 16, 2017 5:26 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] how remove the geometry from wfs response > > On jeudi 15 juin 2017 20:22:04 CEST Andrea Peri wrote: > > Hi, > > > > I need to force the remove from the wfs response of the geometry . I need > > > > to avoid that the users could take the geometry and allow only the > > > > alphanumeric attributes. > > > > Is this allowed from mapserver ? > > Andrea, > > > > Digging into the code, I found that setting in the LAYER.METADATA > > > > "gml_geometries" "none" > > > > will do the job. > > > > This trick is used internally in particular to implement GetPropertyValue. > But digging into history, I actually see it was done on purpose for > GetFeature as well per > > https://github.com/mapserver/mapserver/issues/1718 > > > > It is just that the documentation for it in is missing in > > http://mapserver.org/ogc/wfs_server.html . Doesn't seem to be tested in the > regression suite as far as I can see, so lucky it still works. > > > > Note: this trick will only work for MapServer integrated GML output. OGR > outputformat doesn't honour this setting. > > > > > > Even > > > > -- > > Spatialys - Geospatial professional services > > http://www.spatialys.com -- Spatialys - Geospatial professional services http://www.spatialys.com -------- [1] http://mapserver.org/output/ogr_output.html#ogr-output -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Fri Jun 16 07:51:35 2017 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 16 Jun 2017 14:51:35 +0000 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: <4408956.2lW1a4g4gv@even-i700> References: <4408956.2lW1a4g4gv@even-i700> Message-ID: This behavior is documented http://mapserver.org/ogc/wfs_server.html and http://mapserver.org/output/ogr_output.html. The latter seems to contradict the documentation on the former that states that OGR output doesn't honor that metadata setting. Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Even Rouault Sent: Friday, June 16, 2017 5:26 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] how remove the geometry from wfs response On jeudi 15 juin 2017 20:22:04 CEST Andrea Peri wrote: > Hi, > I need to force the remove from the wfs response of the geometry . I need > to avoid that the users could take the geometry and allow only the > alphanumeric attributes. > Is this allowed from mapserver ? Andrea, Digging into the code, I found that setting in the LAYER.METADATA "gml_geometries" "none" will do the job. This trick is used internally in particular to implement GetPropertyValue. But digging into history, I actually see it was done on purpose for GetFeature as well per https://github.com/mapserver/mapserver/issues/1718 It is just that the documentation for it in is missing in http://mapserver.org/ogc/wfs_server.html . Doesn't seem to be tested in the regression suite as far as I can see, so lucky it still works. Note: this trick will only work for MapServer integrated GML output. OGR outputformat doesn't honour this setting. Even -- Spatialys - Geospatial professional services http://www.spatialys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri Jun 16 08:17:55 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 16 Jun 2017 11:17:55 -0400 Subject: [mapserver-users] Upgraded to Xenial and mapserver does not work In-Reply-To: References: Message-ID: <73bf10b0-2d9f-b651-6205-b4cbd24e5297@swoodbridge.com> Solved it. Had a ancient /etc/ld.so.conf.d/libc.conf messing things up. Removed it and things are working. Sorry for the noise. -Steve W On 6/16/2017 10:04 AM, Stephen Woodbridge wrote: > Hi all, > > I just upgraded my system from trusty to xenial and mapserver does not > work: > > $ /usr/bin/mapserv -v > /usr/bin/mapserv: error while loading shared libraries: libproj.so.0: > cannot open shared object file: No such file or directory > > $ apt-show-versions | grep mapserv > cgi-mapserver:amd64/xenial 7.0.4-1~xenial5 uptodate > libmapserver2:amd64/xenial 7.0.4-1~xenial5 uptodate > mapserver-bin:amd64/xenial 7.0.4-1~xenial5 uptodate > > $ apt-show-versions | grep proj > libproj-dev:amd64/xenial 4.9.2-2 uptodate > libproj9:amd64/xenial 4.9.2-2 uptodate > proj-bin:amd64/xenial 4.9.2-2 uptodate > proj-data:all/xenial 4.9.2-2 uptodate > > $ ldd /usr/bin/mapserv | grep "not found" > libproj.so.0 => not found > libgif.so.4 => not found > > $ ls /usr/lib/x86_64-linux-gnu/libproj.* > /usr/lib/x86_64-linux-gnu/libproj.a > /usr/lib/x86_64-linux-gnu/libproj.la > /usr/lib/x86_64-linux-gnu/libproj.so > /usr/lib/x86_64-linux-gnu/libproj.so.9 > /usr/lib/x86_64-linux-gnu/libproj.so.9.1.0 > > Any ideas on how to fix this? > > I added ubuntugis-unstable ppa after I found this issue, and uninstalled > and then installed the packages but that did not fix it. > > -Steve W > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Fri Jun 16 16:30:19 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Sat, 17 Jun 2017 01:30:19 +0200 Subject: [mapserver-users] how remove the geometry from wfs response In-Reply-To: <4408956.2lW1a4g4gv@even-i700> References: <4408956.2lW1a4g4gv@even-i700> Message-ID: Hi Even, It work ! Now is possible for us to exclude the geometry from the response. Really thx, Andrea. 2017-06-16 12:25 GMT+02:00 Even Rouault : > On jeudi 15 juin 2017 20:22:04 CEST Andrea Peri wrote: > >> Hi, > >> I need to force the remove from the wfs response of the geometry . I need > >> to avoid that the users could take the geometry and allow only the > >> alphanumeric attributes. > >> Is this allowed from mapserver ? > > > > Andrea, > > > > Digging into the code, I found that setting in the LAYER.METADATA > > > > "gml_geometries" "none" > > > > will do the job. > > > > This trick is used internally in particular to implement GetPropertyValue. > But digging into history, I actually see it was done on purpose for > GetFeature as well per > > https://github.com/mapserver/mapserver/issues/1718 > > > > It is just that the documentation for it in is missing in > > http://mapserver.org/ogc/wfs_server.html . Doesn't seem to be tested in the > regression suite as far as I can see, so lucky it still works. > > > > Note: this trick will only work for MapServer integrated GML output. OGR > outputformat doesn't honour this setting. > > > > > > Even > > > > -- > > Spatialys - Geospatial professional services > > http://www.spatialys.com -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From inna.nogeste at bom.gov.au Sun Jun 18 17:29:56 2017 From: inna.nogeste at bom.gov.au (Inna Nogeste) Date: Mon, 19 Jun 2017 00:29:56 +0000 Subject: [mapserver-users] GEOMTRANSFORM (buffer([shape], -x) - displays error for GETLEGENDGRAPHIC [SEC=UNCLASSIFIED] In-Reply-To: <0e3e393c-57a2-dff5-4109-21d7b77315d0@wheregroup.com> References: <6687345684d84e8981e3382e095a7625@iss-exch13-02.bom.gov.au> <0e3e393c-57a2-dff5-4109-21d7b77315d0@wheregroup.com> Message-ID: <75877c756c664b04b301f66e7baad914@iss-exch13-02.bom.gov.au> Hi J?rg, Thanks for your help, we have v6.4.2. Regards, Inna -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of J?rg Thomsen (WhereGroup) Sent: Friday, 16 June 2017 5:39 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GEOMTRANSFORM (buffer([shape], -x) - displays error for GETLEGENDGRAPHIC [SEC=UNCLASSIFIED] Hi, which Version do you use? Should be fixed since 6.4.3 / 7.0 https://github.com/mapserver/mapserver/issues/5193 J?rg Am 16.06.2017 um 09:20 schrieb Inna Nogeste: > I've designed a map so that polygon outlines are moved inside the polygons so adjacent polygon boundaries do not overlap. > I've included GEOMTRANSFORM (buffer([shape], -1) in the STYLE. > > The map displays as expected but adding the WMS layer to QGIS displays an error for the legend "Error downloading http:// server/directory etc" > When requesting GETLEGENDGRAPHIC in the browser, a 500 Internal Server Error is displayed. > > However, when I comment out the GEOMTRANSFORM (buffer([shape], -1) in the STYLE then there are no errors in QGIS, nor in the browser when requesting GETLEGENDGRAPHIC. > It seems as though the legend can't be drawn if GEOMTRANSFORM (buffer([shape], -x) is used in the STYLE. > > Regards, > Inna Nogeste | Spatial Information Specialist > > Geospatial Data and Services > Information Systems and Services Division Bureau of Meteorology > www.bom.gov.au _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- ********************************** AGIT 2017 5.-7. Juli 2017 in Salzburg Besuchen Sie uns an Stand Nr. 31 www.agit.at ********************************** J?rg Thomsen WhereGroup GmbH & Co. KG Gillweg 3 14193 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 89 09 53 21 joerg.thomsen at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From bob.basques at ci.stpaul.mn.us Mon Jun 19 12:06:50 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 19 Jun 2017 19:06:50 +0000 Subject: [mapserver-users] TCMUG meetup Message-ID: Anyone game? SeaSalt June 21st. 5:00pm bobb "I meant what I said and I said what I meant. " - Dr. Seuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Jun 21 11:54:29 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 21 Jun 2017 15:54:29 -0300 Subject: [mapserver-users] maintenance version 7.0.6 released In-Reply-To: References: Message-ID: <297ecaf0-c205-64c2-1cba-a572c90b9af4@gatewaygeomatics.com> The maintenance release of MapServer 7.0.6 is now available for download: http://mapserver.org/download.html This release fixes several recent regressions (error reporting, label drop shadow, rendering rasters with non-square pixels). For a list of the many changes please see the changelog: http://mapserver.org/development/changelog/changelog-7-0.html#changelog-7-0-6 Thank you to all of the users, developers, documenters, and packagers for sharing the passion for such a great project. -- The MapServer Team From Frank.Lautenbach at heuboe.de Mon Jun 26 06:41:30 2017 From: Frank.Lautenbach at heuboe.de (Frank Lautenbach) Date: Mon, 26 Jun 2017 15:41:30 +0200 Subject: [mapserver-users] MapCache - How can some layers always be queried by the Mapserver? Message-ID: Hello everybody, we are trying to switch from MapProxy (www.mapproxy.org) to MapCache within our map applications. We managed to start MapCache with a simple configuration. Caching works well with a good performance. As far so good. But we have to disable the caching for a few layers because they are very dynamic and have to be requested by Mapserver each time. In MapProxy that is possible in the way that a layer source can be either a cache type or a servers end point. Similary in MapCache it could be a Tileset without or a cache with type=none. Does MapCache support such a requirement or does a known workaround exist? Thanks in advance for any reply Frank -------------- next part -------------- An HTML attachment was scrubbed... URL: From swathiv.mca at gmail.com Mon Jun 26 22:34:35 2017 From: swathiv.mca at gmail.com (swathi v) Date: Tue, 27 Jun 2017 11:04:35 +0530 Subject: [mapserver-users] Working with raster's elevation data in MapServer Message-ID: Hi, I had installed MS4W 3.1.4 on Windows 8 and working on PHP, Javascript, HTML, Apache web server. Please let me know how to retrieve the elevation data from the raster (geotiff) files on mouse move on the map. -- - swathi.m -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Jun 27 10:10:43 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 27 Jun 2017 14:10:43 -0300 Subject: [mapserver-users] Working with raster's elevation data in MapServer In-Reply-To: References: Message-ID: <710fade8-6d54-a2c9-2c18-f6b56b372453@gatewaygeomatics.com> Hello swathi.m, I am glad to hear that your installation was successful. MS4W comes packaged with several front-end applications, that you can configure to allow queries to your data, that include GeoMOOSE, Mapbender, and p.mapper (these are all vibrant Open Source communities, and each have their own mailing list to help you along). You can see a full list of the applications configured for MS4W at the bottom of http://ms4w.com/download.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-06-27 2:34 AM, swathi v wrote: > > Hi, > > I had installed MS4W 3.1.4 on Windows 8 and working on PHP, Javascript, > HTML, Apache web server. > > Please let me know how to retrieve the elevation data from the raster > (geotiff) files on mouse move on the map. > > > -- > - swathi.m > > From hardes at 3dis.de Fri Jun 30 02:49:16 2017 From: hardes at 3dis.de (Daniel Hardes) Date: Fri, 30 Jun 2017 11:49:16 +0200 (CEST) Subject: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS Message-ID: <181672609.404197.1498816156718@communicator.strato.de> Hello, i have a PostGIS database with point, line and polygon geometries and all have a Z-coordinate. First problem: Is it possible to create a layer in the mapfile without a fixes type? i think a layer has to have a Type property but there ist no general geometry type. Second problem: All coordinates have only X and Y values.... but no Z value... they have the value in the database. Is it possible zu get the Z-coordinate from the WFS? Greetings Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From hardes at 3dis.de Fri Jun 30 03:12:42 2017 From: hardes at 3dis.de (Daniel Hardes) Date: Fri, 30 Jun 2017 12:12:42 +0200 (CEST) Subject: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS In-Reply-To: <6357908E-8D8F-47B7-ADD6-6367A77B0802@gmail.com> References: <181672609.404197.1498816156718@communicator.strato.de> <6357908E-8D8F-47B7-ADD6-6367A77B0802@gmail.com> Message-ID: <713969561.405715.1498817562148@communicator.strato.de> Ok. Is there a prebuild version with USE_POINT_Z_M somewhere? > Michael Smith hat am 30. Juni 2017 um 12:02 geschrieben: > > Daniel, > > There is a section in the OGC WFS Server docs that explains this. Look at http://mapserver.org/ogc/wfs_server.html#reference-section, specifically the Layer section. You have to have mapserver compiled with USE_POINT_Z_M support and you have to set the geometry type to a 2.5D type, eg something like "ows_geomtype" "Polygon25D" > > Michael Smith > Remote Sensing/GIS Center > US Army Corps of Engineers > > On Jun 30, 2017, at 5:49 AM, Daniel Hardes wrote: > > > > > > > Hello, > > > > i have a PostGIS database with point, line and polygon geometries and all have a Z-coordinate. > > > > First problem: Is it possible to create a layer in the mapfile without a fixes type? i think a layer has to have a Type property but there ist no general geometry type. > > > > Second problem: All coordinates have only X and Y values.... but no Z value... they have the value in the database. Is it possible zu get the Z-coordinate from the WFS? > > > > > > Greetings Daniel > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org mailto:mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith.erdc at gmail.com Fri Jun 30 04:00:40 2017 From: michael.smith.erdc at gmail.com (Michael Smith) Date: Fri, 30 Jun 2017 07:00:40 -0400 Subject: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS In-Reply-To: <713969561.405715.1498817562148@communicator.strato.de> References: <181672609.404197.1498816156718@communicator.strato.de> <6357908E-8D8F-47B7-ADD6-6367A77B0802@gmail.com> <713969561.405715.1498817562148@communicator.strato.de> Message-ID: <0208A506-7565-48B5-A7A7-8FF53D2B4507@gmail.com> What os? I know the mapserver docker packages (https://hub.docker.com/r/mapserver/mapserver/) have it but most of the windows versions, MS4W, GisInternals, don?t. Don?t know about OSGeo4W. Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers > On Jun 30, 2017, at 6:12 AM, Daniel Hardes wrote: > > Ok. Is there a prebuild version with USE_POINT_Z_M somewhere? > >> Michael Smith hat am 30. Juni 2017 um 12:02 geschrieben: >> >> Daniel, >> >> There is a section in the OGC WFS Server docs that explains this. Look at http://mapserver.org/ogc/wfs_server.html#reference-section, specifically the Layer section. You have to have mapserver compiled with USE_POINT_Z_M support and you have to set the geometry type to a 2.5D type, eg something like "ows_geomtype" "Polygon25D" >> >> Michael Smith >> Remote Sensing/GIS Center >> US Army Corps of Engineers >> >>> On Jun 30, 2017, at 5:49 AM, Daniel Hardes wrote: >>> >>> Hello, >>> >>> i have a PostGIS database with point, line and polygon geometries and all have a Z-coordinate. >>> >>> First problem: Is it possible to create a layer in the mapfile without a fixes type? i think a layer has to have a Type property but there ist no general geometry type. >>> >>> Second problem: All coordinates have only X and Y values.... but no Z value... they have the value in the database. Is it possible zu get the Z-coordinate from the WFS? >>> >>> >>> >>> Greetings Daniel >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Jun 30 06:31:46 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 30 Jun 2017 10:31:46 -0300 Subject: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS In-Reply-To: <0208A506-7565-48B5-A7A7-8FF53D2B4507@gmail.com> References: <181672609.404197.1498816156718@communicator.strato.de> <6357908E-8D8F-47B7-ADD6-6367A77B0802@gmail.com> <713969561.405715.1498817562148@communicator.strato.de> <0208A506-7565-48B5-A7A7-8FF53D2B4507@gmail.com> Message-ID: <49e8da13-a5b2-a238-9b28-fde46bc360a7@gatewaygeomatics.com> On 2017-06-30 8:00 AM, Michael Smith wrote: > What os? I know the mapserver docker packages > (https://hub.docker.com/r/mapserver/mapserver/) have it but most of the > windows versions, MS4W, GisInternals, don?t. Don?t know about OSGeo4W. > > Thanks for mentioning this Mike, I've filed a ticket to include this in the upcoming MS4W release: http://www.ms4w.com/trac/ticket/120 -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From dmorissette at mapgears.com Fri Jun 30 06:48:46 2017 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 30 Jun 2017 09:48:46 -0400 Subject: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS In-Reply-To: <49e8da13-a5b2-a238-9b28-fde46bc360a7@gatewaygeomatics.com> References: <181672609.404197.1498816156718@communicator.strato.de> <6357908E-8D8F-47B7-ADD6-6367A77B0802@gmail.com> <713969561.405715.1498817562148@communicator.strato.de> <0208A506-7565-48B5-A7A7-8FF53D2B4507@gmail.com> <49e8da13-a5b2-a238-9b28-fde46bc360a7@gatewaygeomatics.com> Message-ID: <140d9762-eb5e-10ae-79fb-f5bd332853de@mapgears.com> Quick reminder for the archives: the reason for the USE_POINT_Z_M option is that there is (or at least used to be at the time) a non trivial performance impact (15%-50% performance hit) likely related to the increase in size of the pointObj struct when Z and M are added: https://github.com/mapserver/mapserver-import/issues/1244 It may be nice to have some updated benchmarks comparing with and without USE_POINT_Z_M with recent releases, but I just wanted to point out that if one cares about performance and doesn't need the Z,M then is preferable to keep this option turned off in their builds. Daniel On 2017-06-30 9:31 AM, Jeff McKenna wrote: > On 2017-06-30 8:00 AM, Michael Smith wrote: >> What os? I know the mapserver docker packages >> (https://hub.docker.com/r/mapserver/mapserver/) have it but most of >> the windows versions, MS4W, GisInternals, don?t. Don?t know about >> OSGeo4W. >> >> > > Thanks for mentioning this Mike, I've filed a ticket to include this in > the upcoming MS4W release: http://www.ms4w.com/trac/ticket/120 > > > -jeff > > > -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 From even.rouault at spatialys.com Fri Jun 30 06:50:09 2017 From: even.rouault at spatialys.com (Even Rouault) Date: Fri, 30 Jun 2017 15:50:09 +0200 Subject: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS In-Reply-To: <0208A506-7565-48B5-A7A7-8FF53D2B4507@gmail.com> References: <181672609.404197.1498816156718@communicator.strato.de> <713969561.405715.1498817562148@communicator.strato.de> <0208A506-7565-48B5-A7A7-8FF53D2B4507@gmail.com> Message-ID: <1955827.x8ZuCkUGdK@even-i700> On vendredi 30 juin 2017 07:00:40 CEST Michael Smith wrote: > What os? I know the mapserver docker packages > (https://hub.docker.com/r/mapserver/mapserver/) have it but most of the > windows versions, MS4W, GisInternals, don?t. Don?t know about OSGeo4W. I'm wondering if we shouldn't revisit the decision to have USE_POINT_Z_M disabled by default. This is often annoying. Apparently, adding USE_POINT_Z_M defaulting to OFF was driven by performance reasons per https://github.com/mapserver/mapserver/issues/1244 . But this was 12 years ago. Perhaps with recent hardware the performance difference isn't that big. The ticket unfortunately doesn't contain a test case to bench (likely lots of lines/polygons, or large lines/polygons to render). If the perf difference is still there, a more involved change would be indeed to move the z and m components into separate arrays. > > > Michael Smith > Remote Sensing/GIS Center > US Army Corps of Engineers > > > On Jun 30, 2017, at 6:12 AM, Daniel Hardes wrote: > > > > Ok. Is there a prebuild version with USE_POINT_Z_M somewhere? > > > >> Michael Smith hat am 30. Juni 2017 um > >> 12:02 geschrieben: > >> > >> Daniel, > >> > >> There is a section in the OGC WFS Server docs that explains this. Look at > >> http://mapserver.org/ogc/wfs_server.html#reference-section, specifically > >> the Layer section. You have to have mapserver compiled with > >> USE_POINT_Z_M support and you have to set the geometry type to a 2.5D > >> type, eg something like "ows_geomtype" "Polygon25D" > >> > >> Michael Smith > >> Remote Sensing/GIS Center > >> US Army Corps of Engineers > >> > >>> On Jun 30, 2017, at 5:49 AM, Daniel Hardes wrote: > >>> > >>> Hello, > >>> > >>> i have a PostGIS database with point, line and polygon geometries and > >>> all have a Z-coordinate. > >>> > >>> First problem: Is it possible to create a layer in the mapfile without a > >>> fixes type? i think a layer has to have a Type property but there ist > >>> no general geometry type. > >>> > >>> Second problem: All coordinates have only X and Y values.... but no Z > >>> value... they have the value in the database. Is it possible zu get the > >>> Z-coordinate from the WFS? > >>> > >>> > >>> > >>> Greetings Daniel > >>> > >>> _______________________________________________ > >>> mapserver-users mailing list > >>> mapserver-users at lists.osgeo.org > >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Spatialys - Geospatial professional services http://www.spatialys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri Jun 30 06:59:30 2017 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 30 Jun 2017 09:59:30 -0400 Subject: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS In-Reply-To: <1955827.x8ZuCkUGdK@even-i700> References: <181672609.404197.1498816156718@communicator.strato.de> <713969561.405715.1498817562148@communicator.strato.de> <0208A506-7565-48B5-A7A7-8FF53D2B4507@gmail.com> <1955827.x8ZuCkUGdK@even-i700> Message-ID: On 2017-06-30 9:50 AM, Even Rouault wrote: > > I'm wondering if we shouldn't revisit the decision to have USE_POINT_Z_M > disabled by default. This is often annoying. > > Apparently, adding USE_POINT_Z_M defaulting to OFF was driven by > performance reasons per > https://github.com/mapserver/mapserver/issues/1244 . But this was 12 > years ago. Perhaps with recent hardware the performance difference isn't > that big. The ticket unfortunately doesn't contain a test case to bench > (likely lots of lines/polygons, or large lines/polygons to render). If > the perf difference is still there, a more involved change would be > indeed to move the z and m components into separate arrays. > #1244 refers to #1224 which is using the gmap demo mapfile... which is a relatively small dataset, so it should be easy to verify if the issue is still relevant on more recent hardware using gmap or probably any other dataset. https://github.com/mapserver/mapserver-import/issues/1224 -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 From even.rouault at spatialys.com Fri Jun 30 07:40:15 2017 From: even.rouault at spatialys.com (Even Rouault) Date: Fri, 30 Jun 2017 16:40:15 +0200 Subject: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS In-Reply-To: References: <181672609.404197.1498816156718@communicator.strato.de> <1955827.x8ZuCkUGdK@even-i700> Message-ID: <30592666.N1sx6gYq4p@even-i700> On vendredi 30 juin 2017 09:59:30 CEST Daniel Morissette wrote: > On 2017-06-30 9:50 AM, Even Rouault wrote: > > I'm wondering if we shouldn't revisit the decision to have USE_POINT_Z_M > > disabled by default. This is often annoying. > > > > Apparently, adding USE_POINT_Z_M defaulting to OFF was driven by > > performance reasons per > > https://github.com/mapserver/mapserver/issues/1244 . But this was 12 > > years ago. Perhaps with recent hardware the performance difference isn't > > that big. The ticket unfortunately doesn't contain a test case to bench > > (likely lots of lines/polygons, or large lines/polygons to render). If > > the perf difference is still there, a more involved change would be > > indeed to move the z and m components into separate arrays. > > #1244 refers to #1224 which is using the gmap demo mapfile... which is a > relatively small dataset, so it should be easy to verify if the issue is > still relevant on more recent hardware using gmap or probably any other > dataset. > > https://github.com/mapserver/mapserver-import/issues/1224 OK, I downloaded http://dl.maptools.org/dl/gmap-ms46.tar.gz (not sure if there's a more uptodate version of it). Added the necessary MAP and SYMBOLSET keywords in the mapfile and symbolset file. With master, compiled in Release (-O3) and the following Python mapscript bench.py {{{ import mapscript for i in range(200): map = mapscript.mapObj('gmap75.map') img1 = map.draw() }}} I ran it 10 times consecutively with each config and took the smallest time ("real" figure) With USE_POINT_Z_M=OFF time python bench.py real 0m4.167s user 0m3.964s sys 0m0.200s With USE_POINT_Z_M=ON time python bench.py real 0m4.252s user 0m3.972s sys 0m0.260s So USE_POINT_Z_M=ON is 2% slower than OFF On a recent (~ 1 year old) laptop with a Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz Even -- Spatialys - Geospatial professional services http://www.spatialys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: