From luke at slingshotaerospace.com Wed Aug 1 09:31:48 2018 From: luke at slingshotaerospace.com (Luke Wendling) Date: Wed, 1 Aug 2018 11:31:48 -0500 Subject: [mapserver-users] Bitmask created from vector layer Message-ID: Mapserver version 7.1 Hi, To create a bitmask image (for computer vision model training), I'm creating a mapserver vector layer with TYPE POLYGON and setting the map IMAGECOLOR as 0 0 0. The Layer config is CLASS STYLE COLOR 255 255 255 ANTIALIAS false However the resulting raster image has gray spots as shown below: [image: image.png] I'm less concerned about the outer edge (maybe antialiasing?) and more interested in the inner gray areas. Can anyone help explain what's happening or give pointers on how to create a proper bitmask (all black or white)? Full mapfile is below MAP NAME valid STATUS ON PROJECTION "init=epsg:4326" END IMAGECOLOR 0 0 0 # Register the image/tiff format so we can return 4 band images. OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE BYTE EXTENSION "tif" FORMATOPTION "ALPHA=UNSPECIFIED" FORMATOPTION "TILED=YES" {# FORMATOPTION "COMPRESS=JPEG" #} END CONFIG "AWS_ACCESS_KEY_ID" "{{ AWS_ACCESS_KEY_ID }}" CONFIG "AWS_SECRET_ACCESS_KEY" "{{ AWS_SECRET_ACCESS_KEY }}" CONFIG "DEFAULT_REGION" "{{ DEFAULT_REGION }}" WEB METADATA "wms_title" "Slingshot WMS Server" "wms_onlineresource" "{{ wms_onlineresource }}" "wms_enable_request" "GetCapabilities GetMap GetFeatureInfo" "wms_srs" "EPSG:4326 EPSG:3857" END END {% for layer in layers %} # =========== {{layer.title}} =========== {% if layer.is_vector %} LAYER NAME "{{ layer.name }}" STATUS ON TYPE POLYGON {{ layer_params(layer) }} CONNECTIONTYPE POSTGIS CONNECTION "host={{db.host}} port={{db.port}} dbname={{db.name}} user={{db. user}} password={{db.password}}" {% if 'sql' in layer.metadata.mapserver %} DATA "geometry from ({{ layer.metadata.mapserver.sql }}) as geometry using unique id" {% else %} DATA "geometry from (select v.geometry, v.id from images_vector v inner join images_provider p on (v.source_id = p.id) where p.name = '{{ layer. metadata.provider }}') as geometry using unique id" {% endif %} PROJECTION "init=epsg:4326" END CLASS STYLE COLOR 255 255 255 ANTIALIAS false END END END {% endif %} {% endfor %} END -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 7026 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2018-07-25 14-37-43.png Type: image/png Size: 4660 bytes Desc: not available URL: From bob.basques at ci.stpaul.mn.us Thu Aug 2 09:28:08 2018 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 2 Aug 2018 16:28:08 +0000 Subject: [mapserver-users] OSGeo Local Chapter Annual report. Message-ID: <9A66B7A6-F2D1-4BC2-9816-3A6F97BAE6A9@ci.stpaul.mn.us> All, Need some help putting together a slide for the Annual report. They are looking for a photograph, maybe one of the Meeting photos, would work ok, and they want a logo of some sort? Any ideas? bobb "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Thu Aug 2 09:30:00 2018 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 2 Aug 2018 16:30:00 +0000 Subject: [mapserver-users] OSGeo Local Chapter Annual report. In-Reply-To: <9A66B7A6-F2D1-4BC2-9816-3A6F97BAE6A9@ci.stpaul.mn.us> References: <9A66B7A6-F2D1-4BC2-9816-3A6F97BAE6A9@ci.stpaul.mn.us> Message-ID: <054BE66C-F7F8-43B1-B564-88C7A0032D0D@ci.stpaul.mn.us> Also, if any of you have wording about accomplishments (as you see them) from attending the local meet ups, please pass those back as well. bobb On Aug 2, 2018, at 11:28 AM, Basques, Bob (CI-StPaul) > wrote: All, Need some help putting together a slide for the Annual report. They are looking for a photograph, maybe one of the Meeting photos, would work ok, and they want a logo of some sort? Any ideas? bobb "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users "The power of accurate observation is frequently called cynicism by those who don't have it." - George Bernard Shaw -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Aug 2 11:03:02 2018 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 2 Aug 2018 18:03:02 +0000 Subject: [mapserver-users] Bitmask created from vector layer In-Reply-To: References: Message-ID: those artifacts are most likely due to jpeg compression. you can force the output to be aliased and contain only your requested colors by hand crafting a special palette; search the docs for "formatoption + palette" Thomas Le mer. 1 ao?t 2018 ? 16:32, Luke Wendling a ?crit : > Mapserver version 7.1 > > Hi, To create a bitmask image (for computer vision model training), I'm > creating a mapserver vector layer with TYPE POLYGON and setting the map > IMAGECOLOR as 0 0 0. The Layer config is > CLASS > STYLE > COLOR 255 255 255 > ANTIALIAS false > > However the resulting raster image has gray spots as shown below: > > [image: image.png] > > I'm less concerned about the outer edge (maybe antialiasing?) and more > interested in the inner gray areas. Can anyone help explain what's > happening or give pointers on how to create a proper bitmask (all black or > white)? > > Full mapfile is below > > > MAP > NAME valid > STATUS ON > PROJECTION > "init=epsg:4326" > END > > IMAGECOLOR 0 0 0 > > # Register the image/tiff format so we can return 4 band images. > OUTPUTFORMAT > NAME GEOTIFF > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE BYTE > EXTENSION "tif" > FORMATOPTION "ALPHA=UNSPECIFIED" > FORMATOPTION "TILED=YES" > {# FORMATOPTION "COMPRESS=JPEG" #} > END > > CONFIG "AWS_ACCESS_KEY_ID" "{{ AWS_ACCESS_KEY_ID }}" > CONFIG "AWS_SECRET_ACCESS_KEY" "{{ AWS_SECRET_ACCESS_KEY }}" > CONFIG "DEFAULT_REGION" "{{ DEFAULT_REGION }}" > > WEB > METADATA > "wms_title" "Slingshot WMS Server" > "wms_onlineresource" "{{ wms_onlineresource }}" > "wms_enable_request" "GetCapabilities GetMap GetFeatureInfo" > "wms_srs" "EPSG:4326 EPSG:3857" > END > END > > {% for layer in layers %} > # =========== {{layer.title}} =========== > {% if layer.is_vector %} > LAYER > NAME "{{ layer.name }}" > STATUS ON > TYPE POLYGON > {{ layer_params(layer) }} > CONNECTIONTYPE POSTGIS > CONNECTION "host={{db.host}} port={{db.port}} dbname={{db.name}} user={{db > .user}} password={{db.password}}" > {% if 'sql' in layer.metadata.mapserver %} > DATA "geometry from ({{ layer.metadata.mapserver.sql }}) as geometry > using unique id" > {% else %} > DATA "geometry from (select v.geometry, v.id from images_vector v inner > join images_provider p on (v.source_id = p.id) where p.name = '{{ layer. > metadata.provider }}') as geometry using unique id" > {% endif %} > PROJECTION > "init=epsg:4326" > END > CLASS > STYLE > COLOR 255 255 255 > ANTIALIAS false > END > END > END > {% endif %} > {% endfor %} > > END > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 7026 bytes Desc: not available URL: From dbaston at gmail.com Mon Aug 6 14:59:03 2018 From: dbaston at gmail.com (Daniel Baston) Date: Mon, 6 Aug 2018 17:59:03 -0400 Subject: [mapserver-users] Obtaining range values from GDAL stats Message-ID: Hello, Is it possible to scale a raster based on min and max values determined on a per-file basis, rather than a per-layer or per-WMS-request basis? I have a layer that reads data from one of many possible GeoTIFFs, depending on variables that are provided as query-string parameters. Each file has different ranges of values, so I can't manually specify a scaling range with PROCESSING "SCALE_1=200,400" or the like. But if I use PROCESSING "SCALE=AUTO" then a range is determined for each request, which produces discontinuities when clients generated tiled requests. Is it possible for MapServer to load raster min and max values from statistics written by GDAL to raster metadata, or is there some other way to solve the problem? Thanks, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at spatialys.com Mon Aug 6 15:13:10 2018 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 07 Aug 2018 00:13:10 +0200 Subject: [mapserver-users] Obtaining range values from GDAL stats In-Reply-To: References: Message-ID: <3003946.CBalMJkyqe@even-i700> On lundi 6 ao?t 2018 17:59:03 CEST Daniel Baston wrote: > Hello, > > Is it possible to scale a raster based on min and max values determined on > a per-file basis, rather than a per-layer or per-WMS-request basis? I have > a layer that reads data from one of many possible GeoTIFFs, depending on > variables that are provided as query-string parameters. Each file has > different ranges of values, so I can't manually specify a scaling range > with PROCESSING "SCALE_1=200,400" or the like. But if I use PROCESSING > "SCALE=AUTO" then a range is determined for each request, which produces > discontinuities when clients generated tiled requests. > > Is it possible for MapServer to load raster min and max values from > statistics written by GDAL to raster metadata, or is there some other way > to solve the problem? You could create a VRT that would already by rescaled with gdal_translate -scale -- Spatialys - Geospatial professional services http://www.spatialys.com From caleblee at hotmail.com Wed Aug 8 07:47:16 2018 From: caleblee at hotmail.com (Caleb Lee) Date: Wed, 8 Aug 2018 14:47:16 +0000 Subject: [mapserver-users] Getting an empty MVT output for a point layer Message-ID: I am using MapServer 7.2.0 to generate mvt for two layers (one line layer and one point layer). I am able to generate mvt output for a line layer but is having problem with a point layer. The mvt output is kind of empty (just contains layer name and column names). I am getting correct geojson outputs for both layers using WFS. Here is the URL that I use to get MVT output: mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&mode=tile&tilemode=gmap&tile=18+24+6&layers=nodes&map.imagetype=mvt Here is the map file: MAP EXTENT -9036156 4707746 -8243569 5174793 CONFIG "PROJ_LIB" "D:\proj\SHARE" NAME "TestMap" WEB METADATA "ows_enable_request" "*" END END PROJECTION "init=epsg:3857" END OUTPUTFORMAT NAME "mvt" DRIVER MVT FORMATOPTION "EDGE_BUFFER=20" END LAYER NAME "nodes" TYPE POINT STATUS DEFAULT CONNECTIONTYPE PLUGIN PLUGIN "msplugin_mssql2008.dll" CONNECTION "Connection to SQL Server Spatial" DATA "GeomCol from MyTable USING UNIQUE id USING SRID=3857" CLASS STYLE COLOR 0 0 0 END END PROJECTION "+init=epsg:3857" END METADATA "wfs_title" "WFS service for Nodes" "wfs_srs" "EPSG:3857 EPSG:4326" "wfs_abstract" "WFS service for Nodes" "wfs_enable_request" "*" "gml_include_items" "all" END END END With almost an identical map file and an url (layer name and table name differ), I am getting a good mvt output for my line layer. Any suggestions would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed Aug 8 09:00:42 2018 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 8 Aug 2018 16:00:42 +0000 Subject: [mapserver-users] Getting an empty MVT output for a point layer Message-ID: <65223114ab4b434790eca9ce36b9f787@C119S212VM042.msvyvi.vaha.local> Hi, We do not have your data for testing but please modify your mapfile a bit and make it to work with some public dataset, like Natural Earth populated places https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_populated_places.zip? -Jukka Rahkonen. L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Caleb Lee L?hetetty: 8. elokuuta 2018 17:47 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Getting an empty MVT output for a point layer I am using MapServer 7.2.0 to generate mvt for two layers (one line layer and one point layer). I am able to generate mvt output for a line layer but is having problem with a point layer. The mvt output is kind of empty (just contains layer name and column names). I am getting correct geojson outputs for both layers using WFS. Here is the URL that I use to get MVT output: mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&mode=tile&tilemode=gmap&tile=18+24+6&layers=nodes&map.imagetype=mvt Here is the map file: MAP EXTENT -9036156 4707746 -8243569 5174793 CONFIG "PROJ_LIB" "D:\proj\SHARE" NAME "TestMap" WEB METADATA "ows_enable_request" "*" END END PROJECTION "init=epsg:3857" END OUTPUTFORMAT NAME "mvt" DRIVER MVT FORMATOPTION "EDGE_BUFFER=20" END LAYER NAME "nodes" TYPE POINT STATUS DEFAULT CONNECTIONTYPE PLUGIN PLUGIN "msplugin_mssql2008.dll" CONNECTION "Connection to SQL Server Spatial" DATA "GeomCol from MyTable USING UNIQUE id USING SRID=3857" CLASS STYLE COLOR 0 0 0 END END PROJECTION "+init=epsg:3857" END METADATA "wfs_title" "WFS service for Nodes" "wfs_srs" "EPSG:3857 EPSG:4326" "wfs_abstract" "WFS service for Nodes" "wfs_enable_request" "*" "gml_include_items" "all" END END END With almost an identical map file and an url (layer name and table name differ), I am getting a good mvt output for my line layer. Any suggestions would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From caleblee at hotmail.com Wed Aug 8 10:39:58 2018 From: caleblee at hotmail.com (Caleb Lee) Date: Wed, 8 Aug 2018 17:39:58 +0000 Subject: [mapserver-users] Getting an empty MVT output for a point layer In-Reply-To: <65223114ab4b434790eca9ce36b9f787@C119S212VM042.msvyvi.vaha.local> References: <65223114ab4b434790eca9ce36b9f787@C119S212VM042.msvyvi.vaha.local> Message-ID: I will be away for a while so I cannot do that right now. However, I can do that probably early next week. If it helps, I just tried WMS request to generate both png and mvt and I got the similar result: 1. WMS request with FORMAT set to image/png - I got a png image with 50k points drawn) mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=image/png 2. WMS request with application/x-protobuf - got the same result like the following:  nodesIdName(? x mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=application/x-protobuf Thanks, Caleb ________________________________ From: Rahkonen Jukka (MML) Sent: Wednesday, August 8, 2018 12:00 PM To: Caleb Lee; mapserver-users at lists.osgeo.org Subject: Re: Getting an empty MVT output for a point layer Hi, We do not have your data for testing but please modify your mapfile a bit and make it to work with some public dataset, like Natural Earth populated places https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_populated_places.zip? -Jukka Rahkonen. L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Caleb Lee L?hetetty: 8. elokuuta 2018 17:47 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Getting an empty MVT output for a point layer I am using MapServer 7.2.0 to generate mvt for two layers (one line layer and one point layer). I am able to generate mvt output for a line layer but is having problem with a point layer. The mvt output is kind of empty (just contains layer name and column names). I am getting correct geojson outputs for both layers using WFS. Here is the URL that I use to get MVT output: mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&mode=tile&tilemode=gmap&tile=18+24+6&layers=nodes&map.imagetype=mvt Here is the map file: MAP EXTENT -9036156 4707746 -8243569 5174793 CONFIG "PROJ_LIB" "D:\proj\SHARE" NAME "TestMap" WEB METADATA "ows_enable_request" "*" END END PROJECTION "init=epsg:3857" END OUTPUTFORMAT NAME "mvt" DRIVER MVT FORMATOPTION "EDGE_BUFFER=20" END LAYER NAME "nodes" TYPE POINT STATUS DEFAULT CONNECTIONTYPE PLUGIN PLUGIN "msplugin_mssql2008.dll" CONNECTION "Connection to SQL Server Spatial" DATA "GeomCol from MyTable USING UNIQUE id USING SRID=3857" CLASS STYLE COLOR 0 0 0 END END PROJECTION "+init=epsg:3857" END METADATA "wfs_title" "WFS service for Nodes" "wfs_srs" "EPSG:3857 EPSG:4326" "wfs_abstract" "WFS service for Nodes" "wfs_enable_request" "*" "gml_include_items" "all" END END END With almost an identical map file and an url (layer name and table name differ), I am getting a good mvt output for my line layer. Any suggestions would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Wed Aug 8 11:14:07 2018 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 8 Aug 2018 18:14:07 +0000 Subject: [mapserver-users] Getting an empty MVT output for a point layer In-Reply-To: References: <65223114ab4b434790eca9ce36b9f787@C119S212VM042.msvyvi.vaha.local> Message-ID: I?ll have a look at this too. My demo instance had a point player so it certainly should be working. Can you share your data (contact me off list if you?d like)? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Caleb Lee Sent: Wednesday, August 08, 2018 12:40 PM To: Rahkonen Jukka (MML) ; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer I will be away for a while so I cannot do that right now. However, I can do that probably early next week. If it helps, I just tried WMS request to generate both png and mvt and I got the similar result: 1. WMS request with FORMAT set to image/png - I got a png image with 50k points drawn) mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=image/png 2. WMS request with application/x-protobuf - got the same result like the following: nodesIdName(? x mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=application/x-protobuf Thanks, Caleb ________________________________ From: Rahkonen Jukka (MML) > Sent: Wednesday, August 8, 2018 12:00 PM To: Caleb Lee; mapserver-users at lists.osgeo.org Subject: Re: Getting an empty MVT output for a point layer Hi, We do not have your data for testing but please modify your mapfile a bit and make it to work with some public dataset, like Natural Earth populated places https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_populated_places.zip? -Jukka Rahkonen. L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Caleb Lee L?hetetty: 8. elokuuta 2018 17:47 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Getting an empty MVT output for a point layer I am using MapServer 7.2.0 to generate mvt for two layers (one line layer and one point layer). I am able to generate mvt output for a line layer but is having problem with a point layer. The mvt output is kind of empty (just contains layer name and column names). I am getting correct geojson outputs for both layers using WFS. Here is the URL that I use to get MVT output: mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&mode=tile&tilemode=gmap&tile=18+24+6&layers=nodes&map.imagetype=mvt Here is the map file: MAP EXTENT -9036156 4707746 -8243569 5174793 CONFIG "PROJ_LIB" "D:\proj\SHARE" NAME "TestMap" WEB METADATA "ows_enable_request" "*" END END PROJECTION "init=epsg:3857" END OUTPUTFORMAT NAME "mvt" DRIVER MVT FORMATOPTION "EDGE_BUFFER=20" END LAYER NAME "nodes" TYPE POINT STATUS DEFAULT CONNECTIONTYPE PLUGIN PLUGIN "msplugin_mssql2008.dll" CONNECTION "Connection to SQL Server Spatial" DATA "GeomCol from MyTable USING UNIQUE id USING SRID=3857" CLASS STYLE COLOR 0 0 0 END END PROJECTION "+init=epsg:3857" END METADATA "wfs_title" "WFS service for Nodes" "wfs_srs" "EPSG:3857 EPSG:4326" "wfs_abstract" "WFS service for Nodes" "wfs_enable_request" "*" "gml_include_items" "all" END END END With almost an identical map file and an url (layer name and table name differ), I am getting a good mvt output for my line layer. Any suggestions would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Thu Aug 9 07:18:25 2018 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Thu, 9 Aug 2018 14:18:25 +0000 Subject: [mapserver-users] Getting an empty MVT output for a point layer Message-ID: <5c5cf4bd32a24e3f8135991a274e1726@C119S212VM042.msvyvi.vaha.local> Hi, My colleague has suffered from the same issue. Here is a link to a directory with a mapfile and corresponding datasets (OSM data as GeoPackage and Natural earth populated places as shapefile) http://193.167.189.71/temppi/ -Jukka Rahkonen- L?hett?j?: Lime, Steve D (MNIT) [mailto:steve.lime at state.mn.us] L?hetetty: 8. elokuuta 2018 21:14 Vastaanottaja: Caleb Lee >; Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Aihe: RE: Getting an empty MVT output for a point layer I?ll have a look at this too. My demo instance had a point player so it certainly should be working. Can you share your data (contact me off list if you?d like)? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Caleb Lee Sent: Wednesday, August 08, 2018 12:40 PM To: Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer I will be away for a while so I cannot do that right now. However, I can do that probably early next week. If it helps, I just tried WMS request to generate both png and mvt and I got the similar result: 1. WMS request with FORMAT set to image/png - I got a png image with 50k points drawn) mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=image/png 2. WMS request with application/x-protobuf - got the same result like the following: nodesIdName(? x mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=application/x-protobuf Thanks, Caleb -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Thu Aug 9 16:40:24 2018 From: sethg at geographika.co.uk (Seth G) Date: Fri, 10 Aug 2018 01:40:24 +0200 Subject: [mapserver-users] Filtering Layer Legend Icons Message-ID: <1533858024.3517015.1469334928.4F5FE9BB@webmail.messagingengine.com> Hi list, Just some brief(ish) notes on attempts to how to limit what is displayed in layer legends in MapServer that may be of use to someone else - and any simpler alternatives welcome! I wanted to display only certain icons in a WMS legend, to match parameters passed to the WMS service which filtered the data in the layer using run time substitution. E.g. &RATING=1,3,5 only displays records with values 1,3,5 by filtering in the DATA clause. See https://mapserver.org/cgi/runsub.html Content Dependent Legend Responses https://www.mapserver.org/development/rfc/ms-rfc-101.html almost does what I want, but I wanted to display the legend based on what was filtered by the user rather than what remained to be displayed in the map. I then looked at the CGI approach to creating legends and altering Mapfiles from a URL - https://www.mapserver.org/cgi/controls.html I knew that setting a CLASS NAME to an empty string, or removing it would remove the icon from the legend, but you can't remove items from a Mapfile via a URL. It also became apparent you can't change a CLASS NAME - a list of all keywords that can be changed can be found in https://github.com/mapserver/mapserver/blob/branch-7-2/maplexer.l If the keyword is prefixed with URL_STRING then it can be modified e.g. expression A CLASS STATUS can be changed. However STATUS+OFF does not affect if a CLASS is displayed in a legend. There is a mention of this in this ticket - https://github.com/mapserver/mapserver/issues/2431, and I'm of the opinion this should probably be logged as an issue/bug. Thoughts on this welcome. Finally I found that the CLASS GROUP is available for changing, which led to my current solution. All classes selected by a user would have their CLASS GROUP set to a "visible" string in the URL and I could then generate the layer legend using the CLASSGROUP "visible". http://localhost/mapserver/?MODE=legend&LAYER=MyLayer&map.layer[MyLayer].class[MyClass1]=GROUP filtered+CLASSGROUP=filtered A few notes on the above: - The CLASSGROUP sent via the URL needed to be lowercase, yet any case could be used for the GROUP name in the Mapfile snippet e.g. GROUP+vISible - CLASSGROUP had to be added to the end of the URL after the Mapfile snippets. - "group" "^filtered$" needed to be added to the LAYER's VALIDATION block or you get the following error: "loadClass(): General error message. URL-based GROUP configuration failed pattern validation." Then "all" that remains was to generate the querystring in JavaScript based on the user selected filters, and load the filtered legend into the browser. Hope the above helps someone in the future, Seth -- web:http://geographika.co.uk twitter: @geographika From aimdev at mail.com Fri Aug 10 05:58:45 2018 From: aimdev at mail.com (aimdev) Date: Fri, 10 Aug 2018 13:58:45 +0100 Subject: [mapserver-users] Xml mapfile Support Message-ID: Hi I enabled DWITH_XMLMAPFILE, built and installed the binaries. When I ran mapserv -v, the option was not shown, I expected to see supports=XMLMAPFILE or something similar. Please can someone clarify if this is the case? Is xmlmapfile supported? Thanks Aimee -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvenegasperu at gmail.com Fri Aug 10 06:52:29 2018 From: jvenegasperu at gmail.com (jvenegasperu) Date: Fri, 10 Aug 2018 08:52:29 -0500 Subject: [mapserver-users] Error: (70007) The timeout specified expired: ap_content_length_filter: apr_bucket_ read () failed Message-ID: good day I'm trying to use version 3.2.7 of ms4w but when loading the website of a modified version of pmapper I get this error Error: (70007) The timeout specified expired: ap_content_length_filter: apr_bucket_ read () failed and my web page sometimes loads full and in others it does not or just lets it work and in log the error appears many times in my case the layers are not shape all layers are connected to a postgis database some idea of how to solve this problem in several forums indicate that these lines are placed Timeout 300 ProxyTimeout 300 But if I put these lines in Apache's httpd.conf I can not start the service anymore Please Help ESPA?OL Buen dia estoy intentando utilizar la version 3.2.7 de ms4w pero al cargar la pagina web de una version modificada de pmapper obtengo este error Error:(70007)The timeout specified has expired: ap_content_length_filter: apr_bucket_ read() failed y mi pagina web a veces carga completo y en otras no o simplemente deja funcionar y en log aparece el error muchas veces en mi caso las capas no son shape todas las capas se conectan a una base de datos postgis alguna idea de como resolver este problema en varios foros indican que se coloque estas lineas Timeout 300 ProxyTimeout 300 Pero si coloco estas lineas en el httpd.conf de Apache Ya no puedo iniciar el servicio Por favor ayuda -- Jos? Mercedes Venegas Acevedo cel Mov RPC 964185205 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Aug 10 14:01:11 2018 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 10 Aug 2018 18:01:11 -0300 Subject: [mapserver-users] Error: (70007) The timeout specified expired: ap_content_length_filter: apr_bucket_ read () failed In-Reply-To: References: Message-ID: <7cddef56-87af-ac31-d7db-cfb22521dd6c@gatewaygeomatics.com> Hi Jos?, In the following file: /ms4w/apps/pmapper/pmapper-4.4.0/incphp/common.php around line 104 (before the line of $errlog_dir) add: ini_set("error_log", "/ms4w/Apache/logs/error_log.txt"); do the same for the file: /ms4w/apps/pmapper/pmapper-4.4.0/plugins/dynlayercat/dynlayercat.php around line 449 (before the line of $errlog_dir) add: ini_set("error_log", "/ms4w/Apache/logs/error_log.txt"); (be sure to clear your browser cache) Hope that helps, -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2018-08-10 10:52 AM, jvenegasperu wrote: > good day > > I'm trying to use version 3.2.7 of ms4w > > but when loading the website of a modified version of pmapper I get this > error > > Error: (70007) The timeout specified expired: ap_content_length_filter: > apr_bucket_ > read () failed > > and my web page sometimes loads full and in others it does not or just > lets it work and in log the error appears many times > > in my case the layers are not shape > > all layers are connected to a postgis database > > some idea of how to solve this problem > > in several forums indicate that these lines are placed > > Timeout 300 > ProxyTimeout 300 > > But if I put these lines in Apache's httpd.conf > I can not start the service anymore > > Please Help > > ESPA?OL > > Buen dia > > estoy intentando utilizar la version 3.2.7 de ms4w > > pero al cargar la pagina web de una version modificada de pmapper > obtengo este error > > Error:(70007)The timeout specified has expired: > ap_content_length_filter: apr_bucket_ > read() failed > > y mi pagina web a veces carga completo y en otras no o simplemente deja > funcionar y en log aparece el error muchas veces > > en mi caso las capas no son shape > > todas las capas se conectan a una base de datos postgis > > alguna idea de como resolver este problema > > en varios foros indican que se coloque estas lineas > > Timeout 300 > ProxyTimeout 300 > > Pero si coloco estas lineas en el httpd.conf de Apache > Ya no puedo iniciar el servicio > > Por favor ayuda > > -- > Jos? Mercedes Venegas Acevedo > cel Mov RPC 964185205 > > > From andy at planetnomad.com Tue Aug 14 02:38:13 2018 From: andy at planetnomad.com (coastalrocket) Date: Tue, 14 Aug 2018 02:38:13 -0700 (MST) Subject: [mapserver-users] MapCache Time Dimension Message-ID: <1534239493679-0.post@n6.nabble.com> Hi there, I'm having issue with MapCache with a time dimension. The image returned is blank with "no tiles containing image data could be retrieved to create map (not in cache, and/or no source configured)" in my apache error log. When I hit the WMS-T directly I get images containing data so I'm confident that this working as intended. Without the dimensions section in my MapCache tileset definition it returns an image with the default time. Default time is set in my .map file. So I've concentrated on checking the dimensions section on my configuration. Like others I'm sure I've taken copy from https://mapserver.org/mapcache/dimensions.html. I've tested the query in sqlite and that appears ok. The table definition is CREATE TABLE random_crime_time(the_date date); which contains a distinct datetime values from my spatial dataset ordered by the_date desc. I hope this sounds reasonable. Here's the tileset definition: random_crime_wms stack true false E:\\ms4w\\tmp\\random_crime.db SELECT strftime("%Y-%m-%dT%H:%M:%SZ",the_date) FROM random_crime_time WHERE the_date >= datetime(:start_timestamp,"unixepoch") AND the_date <= datetime(:end_timestamp,"unixepoch") ORDER BY the_date DESC time_disk_cache png_best bng_grid 5 5 10 3600 I'm running 3.2.7 ms4w: MapServer CGI 7.0.7 and MapCache 1.6.1. My next thoughts are to work out how to place a trace on sqlite. Any pointers much appreciated AndyB Here's the apache access log: ::1 - - [14/Aug/2018:10:36:18 +0100] "GET /mapcache?TIME=2011-01-10&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=random_crime&STYLES=&WIDTH=800&HEIGHT=600&FORMAT=image/png&SRS=EPSG:27700&TILED=true&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE&BBOX=484031.98297410696977749,158902.34551714232657105,492935.18127151770750061,164805.54381455303519033 HTTP/1.1" 200 3134 Here's the apache error log: [Tue Aug 14 10:36:16.879152 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(448): [client ::1:49513] mapcache quick handler hook on uri /mapcache [Tue Aug 14 10:36:16.879152 2018] [authz_core:debug] [pid 4180:tid 972] mod_authz_core.c(806): [client ::1:49513] AH01626: authorization result of Require all granted: granted [Tue Aug 14 10:36:16.879152 2018] [authz_core:debug] [pid 4180:tid 972] mod_authz_core.c(806): [client ::1:49513] AH01626: authorization result of : granted [Tue Aug 14 10:36:16.880103 2018] [:debug] [pid 4180:tid 1012] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/077.png [Tue Aug 14 10:36:16.880103 2018] [:debug] [pid 4180:tid 1016] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/080.png [Tue Aug 14 10:36:16.880103 2018] [:debug] [pid 4180:tid 1028] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/080.png [Tue Aug 14 10:36:16.884154 2018] [:debug] [pid 4180:tid 1020] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/077.png [Tue Aug 14 10:36:16.888155 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/078.png [Tue Aug 14 10:36:16.891151 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/079.png [Tue Aug 14 10:36:16.895154 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/077.png [Tue Aug 14 10:36:16.898153 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/078.png [Tue Aug 14 10:36:16.901154 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/079.png [Tue Aug 14 10:36:16.904121 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/080.png [Tue Aug 14 10:36:16.907198 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/077.png [Tue Aug 14 10:36:16.912155 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/078.png [Tue Aug 14 10:36:16.915154 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/079.png [Tue Aug 14 10:36:16.918153 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/080.png [Tue Aug 14 10:36:16.920151 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/077.png [Tue Aug 14 10:36:16.924153 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/078.png [Tue Aug 14 10:36:16.927154 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/079.png [Tue Aug 14 10:36:16.930153 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/080.png [Tue Aug 14 10:36:16.932151 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/078.png [Tue Aug 14 10:36:16.935153 2018] [:debug] [pid 4180:tid 972] mod_mapcache.c(164): [client ::1:49513] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/079.png [Tue Aug 14 10:36:16.939154 2018] [:error] [pid 4180:tid 972] [client ::1:49513] no tiles containing image data could be retrieved to create map (not in cache, and/or no source configured) [Tue Aug 14 10:36:17.215152 2018] [mpm_winnt:notice] [pid 1456:tid 520] AH00428: Parent: child process 4180 exited with status 3221225477 -- Restarting. [Tue Aug 14 10:36:18.147130 2018] [:info] [pid 1456:tid 520] loaded mapcache configuration file from E:/ms4w/apps/mapcache/mapcache.xml on endpoint /mapcache [Tue Aug 14 10:36:18.157127 2018] [mpm_winnt:notice] [pid 1456:tid 520] AH00455: Apache/2.4.33 (Win32) mod_fcgid/2.3.9 mod-mapcache/1.6.1 configured -- resuming normal operations [Tue Aug 14 10:36:18.157127 2018] [mpm_winnt:notice] [pid 1456:tid 520] AH00456: Server built: Apr 30 2018 12:56:38 [Tue Aug 14 10:36:18.157127 2018] [core:notice] [pid 1456:tid 520] AH00094: Command line: 'E:\\ms4w\\Apache\\bin\\httpd.exe -d E:/ms4w/Apache' [Tue Aug 14 10:36:18.157127 2018] [core:debug] [pid 1456:tid 520] log.c(1567): AH02639: Using SO_REUSEPORT: no (0) [Tue Aug 14 10:36:18.160128 2018] [mpm_winnt:notice] [pid 1456:tid 520] AH00418: Parent: Created child process 4268 [Tue Aug 14 10:36:18.160128 2018] [mpm_winnt:debug] [pid 1456:tid 520] mpm_winnt.c(429): AH00402: Parent: Sent the scoreboard to the child [Tue Aug 14 10:36:18.434129 2018] [:info] [pid 4268:tid 356] loaded mapcache configuration file from E:/ms4w/apps/mapcache/mapcache.xml on endpoint /mapcache [Tue Aug 14 10:36:18.464126 2018] [:info] [pid 4268:tid 356] loaded mapcache configuration file from E:/ms4w/apps/mapcache/mapcache.xml on endpoint /mapcache [Tue Aug 14 10:36:18.474126 2018] [mpm_winnt:debug] [pid 4268:tid 356] mpm_winnt.c(1718): AH00453: Child process is running [Tue Aug 14 10:36:18.474126 2018] [:debug] [pid 4268:tid 356] mod_mapcache.c(316): creating a child process mapcache connection pool on server www.example.com for alias /mapcache [Tue Aug 14 10:36:18.474126 2018] [mpm_winnt:debug] [pid 4268:tid 356] mpm_winnt.c(343): AH00391: Child: Retrieved our scoreboard from the parent. [Tue Aug 14 10:36:18.474126 2018] [mpm_winnt:debug] [pid 1456:tid 520] mpm_winnt.c(512): AH00408: Parent: Duplicating socket 432 ([::]:8080) and sending it to child process 4268 [Tue Aug 14 10:36:18.474126 2018] [mpm_winnt:debug] [pid 4268:tid 356] mpm_winnt.c(465): AH00403: Child: Waiting for data for listening socket 0.0.0.0:8080 [Tue Aug 14 10:36:18.474126 2018] [mpm_winnt:debug] [pid 1456:tid 520] mpm_winnt.c(512): AH00408: Parent: Duplicating socket 456 (0.0.0.0:8080) and sending it to child process 4268 [Tue Aug 14 10:36:18.474126 2018] [mpm_winnt:debug] [pid 1456:tid 520] mpm_winnt.c(531): AH00411: Parent: Sent 2 listeners to child 4268 [Tue Aug 14 10:36:18.475127 2018] [mpm_winnt:debug] [pid 4268:tid 356] mpm_winnt.c(465): AH00403: Child: Waiting for data for listening socket [::]:8080 [Tue Aug 14 10:36:18.475127 2018] [mpm_winnt:debug] [pid 4268:tid 356] mpm_winnt.c(490): AH00407: Child: retrieved 2 listeners from parent [Tue Aug 14 10:36:18.475127 2018] [mpm_winnt:debug] [pid 4268:tid 356] child.c(947): AH00352: Child: Acquired the start mutex. [Tue Aug 14 10:36:18.475127 2018] [mpm_winnt:notice] [pid 4268:tid 356] AH00354: Child: Starting 64 worker threads. [Tue Aug 14 10:36:18.476096 2018] [mpm_winnt:debug] [pid 4268:tid 836] child.c(411): AH00334: Child: Accept thread listening on 0.0.0.0:8080 using AcceptFilter none [Tue Aug 14 10:36:18.476096 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(448): [client ::1:49514] mapcache quick handler hook on uri /mapcache [Tue Aug 14 10:36:18.477126 2018] [authz_core:debug] [pid 4268:tid 824] mod_authz_core.c(806): [client ::1:49514] AH01626: authorization result of Require all granted: granted [Tue Aug 14 10:36:18.477126 2018] [authz_core:debug] [pid 4268:tid 824] mod_authz_core.c(806): [client ::1:49514] AH01626: authorization result of : granted [Tue Aug 14 10:36:18.477126 2018] [:debug] [pid 4268:tid 864] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/077.png [Tue Aug 14 10:36:18.477126 2018] [:debug] [pid 4268:tid 924] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/077.png [Tue Aug 14 10:36:18.478091 2018] [mpm_winnt:debug] [pid 4268:tid 1028] child.c(411): AH00334: Child: Accept thread listening on [::]:8080 using AcceptFilter none [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 916] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/080.png [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 928] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/080.png [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/078.png [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/079.png [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/077.png [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/078.png [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/079.png [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/080.png [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/077.png [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/078.png [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/079.png [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/080.png [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/077.png [Tue Aug 14 10:36:18.479127 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/078.png [Tue Aug 14 10:36:18.479127 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/079.png [Tue Aug 14 10:36:18.479127 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/080.png [Tue Aug 14 10:36:18.479127 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/078.png [Tue Aug 14 10:36:18.479127 2018] [:debug] [pid 4268:tid 824] mod_mapcache.c(164): [client ::1:49514] checking for tile E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/079.png [Tue Aug 14 10:36:18.859100 2018] [mpm_winnt:notice] [pid 1456:tid 520] AH00428: Parent: child process 4268 exited with status 3221225477 -- Restarting. [Tue Aug 14 10:36:19.193061 2018] [:info] [pid 1456:tid 520] loaded mapcache configuration file from E:/ms4w/apps/mapcache/mapcache.xml on endpoint /mapcache [Tue Aug 14 10:36:19.202104 2018] [mpm_winnt:notice] [pid 1456:tid 520] AH00455: Apache/2.4.33 (Win32) mod_fcgid/2.3.9 mod-mapcache/1.6.1 configured -- resuming normal operations [Tue Aug 14 10:36:19.202104 2018] [mpm_winnt:notice] [pid 1456:tid 520] AH00456: Server built: Apr 30 2018 12:56:38 [Tue Aug 14 10:36:19.202104 2018] [core:notice] [pid 1456:tid 520] AH00094: Command line: 'E:\\ms4w\\Apache\\bin\\httpd.exe -d E:/ms4w/Apache' [Tue Aug 14 10:36:19.202104 2018] [core:debug] [pid 1456:tid 520] log.c(1567): AH02639: Using SO_REUSEPORT: no (0) [Tue Aug 14 10:36:19.205101 2018] [mpm_winnt:notice] [pid 1456:tid 520] AH00418: Parent: Created child process 1648 [Tue Aug 14 10:36:19.205101 2018] [mpm_winnt:debug] [pid 1456:tid 520] mpm_winnt.c(429): AH00402: Parent: Sent the scoreboard to the child [Tue Aug 14 10:36:19.489101 2018] [:info] [pid 1648:tid 356] loaded mapcache configuration file from E:/ms4w/apps/mapcache/mapcache.xml on endpoint /mapcache [Tue Aug 14 10:36:19.519101 2018] [:info] [pid 1648:tid 356] loaded mapcache configuration file from E:/ms4w/apps/mapcache/mapcache.xml on endpoint /mapcache [Tue Aug 14 10:36:19.529102 2018] [mpm_winnt:debug] [pid 1648:tid 356] mpm_winnt.c(1718): AH00453: Child process is running [Tue Aug 14 10:36:19.530101 2018] [:debug] [pid 1648:tid 356] mod_mapcache.c(316): creating a child process mapcache connection pool on server www.example.com for alias /mapcache [Tue Aug 14 10:36:19.530101 2018] [mpm_winnt:debug] [pid 1648:tid 356] mpm_winnt.c(343): AH00391: Child: Retrieved our scoreboard from the parent. [Tue Aug 14 10:36:19.530101 2018] [mpm_winnt:debug] [pid 1648:tid 356] mpm_winnt.c(465): AH00403: Child: Waiting for data for listening socket 0.0.0.0:8080 [Tue Aug 14 10:36:19.530101 2018] [mpm_winnt:debug] [pid 1456:tid 520] mpm_winnt.c(512): AH00408: Parent: Duplicating socket 456 (0.0.0.0:8080) and sending it to child process 1648 [Tue Aug 14 10:36:19.530101 2018] [mpm_winnt:debug] [pid 1456:tid 520] mpm_winnt.c(512): AH00408: Parent: Duplicating socket 432 ([::]:8080) and sending it to child process 1648 [Tue Aug 14 10:36:19.530101 2018] [mpm_winnt:debug] [pid 1456:tid 520] mpm_winnt.c(531): AH00411: Parent: Sent 2 listeners to child 1648 [Tue Aug 14 10:36:19.531099 2018] [mpm_winnt:debug] [pid 1648:tid 356] mpm_winnt.c(465): AH00403: Child: Waiting for data for listening socket [::]:8080 [Tue Aug 14 10:36:19.531099 2018] [mpm_winnt:debug] [pid 1648:tid 356] mpm_winnt.c(490): AH00407: Child: retrieved 2 listeners from parent [Tue Aug 14 10:36:19.531099 2018] [mpm_winnt:debug] [pid 1648:tid 356] child.c(947): AH00352: Child: Acquired the start mutex. [Tue Aug 14 10:36:19.531099 2018] [mpm_winnt:notice] [pid 1648:tid 356] AH00354: Child: Starting 64 worker threads. [Tue Aug 14 10:36:19.534049 2018] [mpm_winnt:debug] [pid 1648:tid 876] child.c(411): AH00334: Child: Accept thread listening on [::]:8080 using AcceptFilter none [Tue Aug 14 10:36:19.534049 2018] [mpm_winnt:debug] [pid 1648:tid 940] child.c(411): AH00334: Child: Accept thread listening on 0.0.0.0:8080 using AcceptFilter none -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From stephenwoodbridge37 at gmail.com Tue Aug 14 05:40:32 2018 From: stephenwoodbridge37 at gmail.com (Stephen Woodbridge) Date: Tue, 14 Aug 2018 08:40:32 -0400 Subject: [mapserver-users] MapCache Time Dimension In-Reply-To: <1534239493679-0.post@n6.nabble.com> References: <1534239493679-0.post@n6.nabble.com> Message-ID: The error message says " (not in cache, and/or no source configured) " if you don't have the tile in the cache then mapcache needs to know how to generate the tile which is defined by the source definition and it can not find a source definition for "random_crime_wms". What does the source definition look like? -Steve W On 8/14/2018 5:38 AM, coastalrocket wrote: > Hi there, > > I'm having issue with MapCache with a time dimension. The image returned is > blank with "no tiles containing image data could be retrieved to create map > (not in cache, and/or no source configured)" in my apache error log. > > When I hit the WMS-T directly I get images containing data so I'm confident > that this working as intended. > Without the dimensions section in my MapCache tileset definition it returns > an image with the default time. Default time is set in my .map file. > > So I've concentrated on checking the dimensions section on my configuration. > Like others I'm sure I've taken copy from > https://mapserver.org/mapcache/dimensions.html. I've tested the query in > sqlite and that appears ok. The table definition is CREATE TABLE > random_crime_time(the_date date); which contains a distinct datetime values > from my spatial dataset ordered by the_date desc. I hope this sounds > reasonable. > > Here's the tileset definition: > > random_crime_wms > > stack > true > false > > E:\\ms4w\\tmp\\random_crime.db > SELECT strftime("%Y-%m-%dT%H:%M:%SZ",the_date) FROM > random_crime_time WHERE the_date >= > datetime(:start_timestamp,"unixepoch") AND the_date <= > datetime(:end_timestamp,"unixepoch") ORDER BY the_date DESC > > > time_disk_cache > png_best > bng_grid > 5 5 > 10 > 3600 > > > I'm running 3.2.7 ms4w: MapServer CGI 7.0.7 and MapCache 1.6.1. My next > thoughts are to work out how to place a trace on sqlite. > > Any pointers much appreciated > AndyB > > Here's the apache access log: > ::1 - - [14/Aug/2018:10:36:18 +0100] "GET > /mapcache?TIME=2011-01-10&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=random_crime&STYLES=&WIDTH=800&HEIGHT=600&FORMAT=image/png&SRS=EPSG:27700&TILED=true&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE&BBOX=484031.98297410696977749,158902.34551714232657105,492935.18127151770750061,164805.54381455303519033 > HTTP/1.1" 200 3134 > > Here's the apache error log: > [Tue Aug 14 10:36:16.879152 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(448): [client ::1:49513] mapcache quick handler hook on uri > /mapcache > [Tue Aug 14 10:36:16.879152 2018] [authz_core:debug] [pid 4180:tid 972] > mod_authz_core.c(806): [client ::1:49513] AH01626: authorization result of > Require all granted: granted > [Tue Aug 14 10:36:16.879152 2018] [authz_core:debug] [pid 4180:tid 972] > mod_authz_core.c(806): [client ::1:49513] AH01626: authorization result of > : granted > [Tue Aug 14 10:36:16.880103 2018] [:debug] [pid 4180:tid 1012] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/077.png > [Tue Aug 14 10:36:16.880103 2018] [:debug] [pid 4180:tid 1016] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/080.png > [Tue Aug 14 10:36:16.880103 2018] [:debug] [pid 4180:tid 1028] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/080.png > [Tue Aug 14 10:36:16.884154 2018] [:debug] [pid 4180:tid 1020] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/077.png > [Tue Aug 14 10:36:16.888155 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/078.png > [Tue Aug 14 10:36:16.891151 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/079.png > [Tue Aug 14 10:36:16.895154 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/077.png > [Tue Aug 14 10:36:16.898153 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/078.png > [Tue Aug 14 10:36:16.901154 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/079.png > [Tue Aug 14 10:36:16.904121 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/080.png > [Tue Aug 14 10:36:16.907198 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/077.png > [Tue Aug 14 10:36:16.912155 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/078.png > [Tue Aug 14 10:36:16.915154 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/079.png > [Tue Aug 14 10:36:16.918153 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/080.png > [Tue Aug 14 10:36:16.920151 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/077.png > [Tue Aug 14 10:36:16.924153 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/078.png > [Tue Aug 14 10:36:16.927154 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/079.png > [Tue Aug 14 10:36:16.930153 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/080.png > [Tue Aug 14 10:36:16.932151 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/078.png > [Tue Aug 14 10:36:16.935153 2018] [:debug] [pid 4180:tid 972] > mod_mapcache.c(164): [client ::1:49513] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/079.png > [Tue Aug 14 10:36:16.939154 2018] [:error] [pid 4180:tid 972] [client > ::1:49513] no tiles containing image data could be retrieved to create map > (not in cache, and/or no source configured) > [Tue Aug 14 10:36:17.215152 2018] [mpm_winnt:notice] [pid 1456:tid 520] > AH00428: Parent: child process 4180 exited with status 3221225477 -- > Restarting. > [Tue Aug 14 10:36:18.147130 2018] [:info] [pid 1456:tid 520] loaded mapcache > configuration file from E:/ms4w/apps/mapcache/mapcache.xml on endpoint > /mapcache > [Tue Aug 14 10:36:18.157127 2018] [mpm_winnt:notice] [pid 1456:tid 520] > AH00455: Apache/2.4.33 (Win32) mod_fcgid/2.3.9 mod-mapcache/1.6.1 configured > -- resuming normal operations > [Tue Aug 14 10:36:18.157127 2018] [mpm_winnt:notice] [pid 1456:tid 520] > AH00456: Server built: Apr 30 2018 12:56:38 > [Tue Aug 14 10:36:18.157127 2018] [core:notice] [pid 1456:tid 520] AH00094: > Command line: 'E:\\ms4w\\Apache\\bin\\httpd.exe -d E:/ms4w/Apache' > [Tue Aug 14 10:36:18.157127 2018] [core:debug] [pid 1456:tid 520] > log.c(1567): AH02639: Using SO_REUSEPORT: no (0) > [Tue Aug 14 10:36:18.160128 2018] [mpm_winnt:notice] [pid 1456:tid 520] > AH00418: Parent: Created child process 4268 > [Tue Aug 14 10:36:18.160128 2018] [mpm_winnt:debug] [pid 1456:tid 520] > mpm_winnt.c(429): AH00402: Parent: Sent the scoreboard to the child > [Tue Aug 14 10:36:18.434129 2018] [:info] [pid 4268:tid 356] loaded mapcache > configuration file from E:/ms4w/apps/mapcache/mapcache.xml on endpoint > /mapcache > [Tue Aug 14 10:36:18.464126 2018] [:info] [pid 4268:tid 356] loaded mapcache > configuration file from E:/ms4w/apps/mapcache/mapcache.xml on endpoint > /mapcache > [Tue Aug 14 10:36:18.474126 2018] [mpm_winnt:debug] [pid 4268:tid 356] > mpm_winnt.c(1718): AH00453: Child process is running > [Tue Aug 14 10:36:18.474126 2018] [:debug] [pid 4268:tid 356] > mod_mapcache.c(316): creating a child process mapcache connection pool on > server www.example.com for alias /mapcache > [Tue Aug 14 10:36:18.474126 2018] [mpm_winnt:debug] [pid 4268:tid 356] > mpm_winnt.c(343): AH00391: Child: Retrieved our scoreboard from the parent. > [Tue Aug 14 10:36:18.474126 2018] [mpm_winnt:debug] [pid 1456:tid 520] > mpm_winnt.c(512): AH00408: Parent: Duplicating socket 432 ([::]:8080) and > sending it to child process 4268 > [Tue Aug 14 10:36:18.474126 2018] [mpm_winnt:debug] [pid 4268:tid 356] > mpm_winnt.c(465): AH00403: Child: Waiting for data for listening socket > 0.0.0.0:8080 > [Tue Aug 14 10:36:18.474126 2018] [mpm_winnt:debug] [pid 1456:tid 520] > mpm_winnt.c(512): AH00408: Parent: Duplicating socket 456 (0.0.0.0:8080) and > sending it to child process 4268 > [Tue Aug 14 10:36:18.474126 2018] [mpm_winnt:debug] [pid 1456:tid 520] > mpm_winnt.c(531): AH00411: Parent: Sent 2 listeners to child 4268 > [Tue Aug 14 10:36:18.475127 2018] [mpm_winnt:debug] [pid 4268:tid 356] > mpm_winnt.c(465): AH00403: Child: Waiting for data for listening socket > [::]:8080 > [Tue Aug 14 10:36:18.475127 2018] [mpm_winnt:debug] [pid 4268:tid 356] > mpm_winnt.c(490): AH00407: Child: retrieved 2 listeners from parent > [Tue Aug 14 10:36:18.475127 2018] [mpm_winnt:debug] [pid 4268:tid 356] > child.c(947): AH00352: Child: Acquired the start mutex. > [Tue Aug 14 10:36:18.475127 2018] [mpm_winnt:notice] [pid 4268:tid 356] > AH00354: Child: Starting 64 worker threads. > [Tue Aug 14 10:36:18.476096 2018] [mpm_winnt:debug] [pid 4268:tid 836] > child.c(411): AH00334: Child: Accept thread listening on 0.0.0.0:8080 using > AcceptFilter none > [Tue Aug 14 10:36:18.476096 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(448): [client ::1:49514] mapcache quick handler hook on uri > /mapcache > [Tue Aug 14 10:36:18.477126 2018] [authz_core:debug] [pid 4268:tid 824] > mod_authz_core.c(806): [client ::1:49514] AH01626: authorization result of > Require all granted: granted > [Tue Aug 14 10:36:18.477126 2018] [authz_core:debug] [pid 4268:tid 824] > mod_authz_core.c(806): [client ::1:49514] AH01626: authorization result of > : granted > [Tue Aug 14 10:36:18.477126 2018] [:debug] [pid 4268:tid 864] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/077.png > [Tue Aug 14 10:36:18.477126 2018] [:debug] [pid 4268:tid 924] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/077.png > [Tue Aug 14 10:36:18.478091 2018] [mpm_winnt:debug] [pid 4268:tid 1028] > child.c(411): AH00334: Child: Accept thread listening on [::]:8080 using > AcceptFilter none > [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 916] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/080.png > [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 928] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/080.png > [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/078.png > [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/236/000/000/079.png > [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/077.png > [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/078.png > [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/079.png > [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/237/000/000/080.png > [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/077.png > [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/078.png > [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/079.png > [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/238/000/000/080.png > [Tue Aug 14 10:36:18.478091 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/077.png > [Tue Aug 14 10:36:18.479127 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/078.png > [Tue Aug 14 10:36:18.479127 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/079.png > [Tue Aug 14 10:36:18.479127 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/239/000/000/080.png > [Tue Aug 14 10:36:18.479127 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/078.png > [Tue Aug 14 10:36:18.479127 2018] [:debug] [pid 4268:tid 824] > mod_mapcache.c(164): [client ::1:49514] checking for tile > E:/ms4w/tmp/ms_tmp/cache//random_crime/bng_grid/2011-01-10/17/000/000/240/000/000/079.png > [Tue Aug 14 10:36:18.859100 2018] [mpm_winnt:notice] [pid 1456:tid 520] > AH00428: Parent: child process 4268 exited with status 3221225477 -- > Restarting. > [Tue Aug 14 10:36:19.193061 2018] [:info] [pid 1456:tid 520] loaded mapcache > configuration file from E:/ms4w/apps/mapcache/mapcache.xml on endpoint > /mapcache > [Tue Aug 14 10:36:19.202104 2018] [mpm_winnt:notice] [pid 1456:tid 520] > AH00455: Apache/2.4.33 (Win32) mod_fcgid/2.3.9 mod-mapcache/1.6.1 configured > -- resuming normal operations > [Tue Aug 14 10:36:19.202104 2018] [mpm_winnt:notice] [pid 1456:tid 520] > AH00456: Server built: Apr 30 2018 12:56:38 > [Tue Aug 14 10:36:19.202104 2018] [core:notice] [pid 1456:tid 520] AH00094: > Command line: 'E:\\ms4w\\Apache\\bin\\httpd.exe -d E:/ms4w/Apache' > [Tue Aug 14 10:36:19.202104 2018] [core:debug] [pid 1456:tid 520] > log.c(1567): AH02639: Using SO_REUSEPORT: no (0) > [Tue Aug 14 10:36:19.205101 2018] [mpm_winnt:notice] [pid 1456:tid 520] > AH00418: Parent: Created child process 1648 > [Tue Aug 14 10:36:19.205101 2018] [mpm_winnt:debug] [pid 1456:tid 520] > mpm_winnt.c(429): AH00402: Parent: Sent the scoreboard to the child > [Tue Aug 14 10:36:19.489101 2018] [:info] [pid 1648:tid 356] loaded mapcache > configuration file from E:/ms4w/apps/mapcache/mapcache.xml on endpoint > /mapcache > [Tue Aug 14 10:36:19.519101 2018] [:info] [pid 1648:tid 356] loaded mapcache > configuration file from E:/ms4w/apps/mapcache/mapcache.xml on endpoint > /mapcache > [Tue Aug 14 10:36:19.529102 2018] [mpm_winnt:debug] [pid 1648:tid 356] > mpm_winnt.c(1718): AH00453: Child process is running > [Tue Aug 14 10:36:19.530101 2018] [:debug] [pid 1648:tid 356] > mod_mapcache.c(316): creating a child process mapcache connection pool on > server www.example.com for alias /mapcache > [Tue Aug 14 10:36:19.530101 2018] [mpm_winnt:debug] [pid 1648:tid 356] > mpm_winnt.c(343): AH00391: Child: Retrieved our scoreboard from the parent. > [Tue Aug 14 10:36:19.530101 2018] [mpm_winnt:debug] [pid 1648:tid 356] > mpm_winnt.c(465): AH00403: Child: Waiting for data for listening socket > 0.0.0.0:8080 > [Tue Aug 14 10:36:19.530101 2018] [mpm_winnt:debug] [pid 1456:tid 520] > mpm_winnt.c(512): AH00408: Parent: Duplicating socket 456 (0.0.0.0:8080) and > sending it to child process 1648 > [Tue Aug 14 10:36:19.530101 2018] [mpm_winnt:debug] [pid 1456:tid 520] > mpm_winnt.c(512): AH00408: Parent: Duplicating socket 432 ([::]:8080) and > sending it to child process 1648 > [Tue Aug 14 10:36:19.530101 2018] [mpm_winnt:debug] [pid 1456:tid 520] > mpm_winnt.c(531): AH00411: Parent: Sent 2 listeners to child 1648 > [Tue Aug 14 10:36:19.531099 2018] [mpm_winnt:debug] [pid 1648:tid 356] > mpm_winnt.c(465): AH00403: Child: Waiting for data for listening socket > [::]:8080 > [Tue Aug 14 10:36:19.531099 2018] [mpm_winnt:debug] [pid 1648:tid 356] > mpm_winnt.c(490): AH00407: Child: retrieved 2 listeners from parent > [Tue Aug 14 10:36:19.531099 2018] [mpm_winnt:debug] [pid 1648:tid 356] > child.c(947): AH00352: Child: Acquired the start mutex. > [Tue Aug 14 10:36:19.531099 2018] [mpm_winnt:notice] [pid 1648:tid 356] > AH00354: Child: Starting 64 worker threads. > [Tue Aug 14 10:36:19.534049 2018] [mpm_winnt:debug] [pid 1648:tid 876] > child.c(411): AH00334: Child: Accept thread listening on [::]:8080 using > AcceptFilter none > [Tue Aug 14 10:36:19.534049 2018] [mpm_winnt:debug] [pid 1648:tid 940] > child.c(411): AH00334: Child: Accept thread listening on 0.0.0.0:8080 using > AcceptFilter none > > > > > > -- > Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From bob.basques at ci.stpaul.mn.us Tue Aug 14 09:29:17 2018 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 14 Aug 2018 16:29:17 +0000 Subject: [mapserver-users] TCMUG (OSGeo local chapter) Meeting - Sept 12, 2018 Message-ID: All, Sounds like the last meeting had a really good turnout, sorry I missed it (working out of town). Thanks Brian for the detailed report. See the results here: 1, 2, 3, and here 4. The next meeting will be at Lake Monster Brewing. Time 4:30 Date: Sept. 12th See you all there. bobb "Do, or do not. There is no try." - Yoda -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at planetnomad.com Tue Aug 14 09:33:57 2018 From: andy at planetnomad.com (coastalrocket) Date: Tue, 14 Aug 2018 09:33:57 -0700 (MST) Subject: [mapserver-users] MapCache Time Dimension In-Reply-To: References: <1534239493679-0.post@n6.nabble.com> Message-ID: <1534264437525-0.post@n6.nabble.com> Hi Stephen Thanks for taking a look. Here's the entire mapcache.xml below. As i say, without the dimensions element mapcache is happy to cache the WMS. MapCache for Random Crime WMS-T E:/ms4w/tmp/ms_tmp/cache/ E:/ms4w/tmp/ms_tmp/cache/{tileset}-{dim}.db E:/ms4w/tmp/ms_tmp/cache E:/ms4w/tmp/ms_tmp/cache 64 64 E:/ms4w/tmp/ms_tmp/cache/sqlitefile.db 10000000 image/png random_crime true http://localhost:8080/cgi-bin/mapserv.exe?map=e:\\isharedata\\live\\_mapserverConfig\\mapcache.map random_crime_wms stack true false E:\\ms4w\\tmp\\random_crime.db SELECT strftime("%Y-%m-%dT%H:%M:%SZ",the_date) FROM random_crime_time WHERE the_date >= datetime(:start_timestamp,"unixepoch") AND the_date <= datetime(:end_timestamp,"unixepoch") ORDER BY the_date DESC; time_disk_cache png_best bng_grid 5 5 10 3600 this is a grid suitable for BNG mapping EPSG:27700 BNG 256 256 1 1 700000 1300000 m 204094.5984 107716.59359999998 70866.18000000001 47243.952699999994 22677.1776 15000.235999999999 10000.970800000001 6000.309 3000.9148399999995 1417.3236 708.6618 354.3309 200 72 38 25 16.6666076469763 8 5.29174706467881 3.52811834926054 2.11677453194175 1.05865549688159 0.5 0.25 0.125 JPEG best report E:/ms4w/tmp/ms_tmp/cache true info true -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From andy at planetnomad.com Tue Aug 14 09:42:16 2018 From: andy at planetnomad.com (coastalrocket) Date: Tue, 14 Aug 2018 09:42:16 -0700 (MST) Subject: [mapserver-users] MapCache Time Dimension In-Reply-To: <1534264437525-0.post@n6.nabble.com> References: <1534239493679-0.post@n6.nabble.com> <1534264437525-0.post@n6.nabble.com> Message-ID: <1534264936881-0.post@n6.nabble.com> Your post made me check again the source definition and i did have the mapserver map file as part of the URL. I don't think has made any difference but I've moved it to a getmap params map element as per the docs and re-ran the request. The error log is pretty much the same just with some granted authorization messages. error log -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From sethg at geographika.co.uk Fri Aug 17 13:57:26 2018 From: sethg at geographika.co.uk (Seth G) Date: Fri, 17 Aug 2018 22:57:26 +0200 Subject: [mapserver-users] MapScript 7.2 Python Wheels Message-ID: <1534539446.1674860.1477847816.1AFAD389@webmail.messagingengine.com> Hi list, Today Python wheels for MapServer 7.2 were pushed to PyPI - https://pypi.org/project/mapscript/ along with updated docs. These wheels have been tested with the x64 MapServer builds at https://www.gisinternals.com/query.html?content=filelist&file=release-1911-x64-gdal-2-3-1-mapserver-7-2-0.zip MapScript can now be installed using "pip install mapscript", for both Python2 and Python3. x32 wheels will be added in time which should work with both GISInternals builds and ms4w when a 7.2 release is made available. Linux builds can hopefully be added using the manylinux project which requires Centos5. If anyone has any experience of building MapServer 7.2 on this please get in touch. Regards, Seth -- web:http://geographika.co.uk twitter: @geographika From dang4hire at gmail.com Mon Aug 20 11:01:25 2018 From: dang4hire at gmail.com (Dan Gallagher) Date: Mon, 20 Aug 2018 18:01:25 +0000 Subject: [mapserver-users] cmake mapmetadata errors Message-ID: Hello, I am having trouble running make. It appears to be a problem installing both mapserver-7.2.0 and mapserver-7.0.7. I am running Debian 8 cmake -DWITH_FRIBIDI=0 -DWITH_HARFBUZZ=0 -DWITH_CAIRO=0 -DWITH_FCGI=0 -DWITH_GEOS=0 -DWITH_POSTGIS=0 -DWITH_GIF=0 -DWITH_PROJ=0 -DWITH_WMS=0 -DWITH_WFS=0 -DWITH_WCS=0 -DWITH_PROTOBUFC=0 .. But "make" errors: /root/mpserve/mapserver-7.2.0/mapmetadata.c:41:1: error: unknown type name ?xmlNodePtr? xmlNodePtr _msMetadataGetCharacterString(xmlNsPtr namespace, char *name, char *value) { ^ /root/mpserve/mapserver-7.2.0/mapmetadata.c:41:42: error: unknown type name ?xmlNsPtr? xmlNodePtr _msMetadataGetCharacterString(xmlNsPtr namespace, char *name, char *value) { AND A LOT MORE OF THE SAME -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.marzocchi at gter.it Tue Aug 21 04:26:23 2018 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Tue, 21 Aug 2018 13:26:23 +0200 Subject: [mapserver-users] Problem with WMS time (filter do not works) Message-ID: <1655c3c5804.fe834e03118838.6390203635103751222@gter.it> Dear all,? I am following the guide to create WMS/WCS time [1]. (Mapserver 7.0.7 on Ubuntu Xen?al server) I created a PostGIS view with the following field: - id - location - day - geom I create a mapfile but when I create the layer the filter do not works (I see always the last row e.g the map of yesterday).? I try:? ???? FILTERITEM "day" ???? FILTER "20180101" and? FILTER (`[day]` = `20180101`) like in the example ???? I try to change the day format in the PostGIS table from text to timestamp (e.g20180101 -->? 2018-01-01 00:00:00) but nothing change.? There is something not clear to me.? R [1] -?https://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! -------------- next part -------------- An HTML attachment was scrubbed... URL: From caleblee at hotmail.com Tue Aug 21 06:20:15 2018 From: caleblee at hotmail.com (Caleb Lee) Date: Tue, 21 Aug 2018 13:20:15 +0000 Subject: [mapserver-users] Getting an empty MVT output for a point layer In-Reply-To: <5c5cf4bd32a24e3f8135991a274e1726@C119S212VM042.msvyvi.vaha.local> References: <5c5cf4bd32a24e3f8135991a274e1726@C119S212VM042.msvyvi.vaha.local> Message-ID: Hi, is there any update regarding this MVT output problem for point layers? Thanks, Caleb ________________________________ From: Rahkonen Jukka (MML) Sent: Thursday, August 9, 2018 10:18 AM To: Lime, Steve D (MNIT); Caleb Lee; mapserver-users at lists.osgeo.org Subject: Re: Getting an empty MVT output for a point layer Hi, My colleague has suffered from the same issue. Here is a link to a directory with a mapfile and corresponding datasets (OSM data as GeoPackage and Natural earth populated places as shapefile) http://193.167.189.71/temppi/ -Jukka Rahkonen- L?hett?j?: Lime, Steve D (MNIT) [mailto:steve.lime at state.mn.us] L?hetetty: 8. elokuuta 2018 21:14 Vastaanottaja: Caleb Lee >; Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Aihe: RE: Getting an empty MVT output for a point layer I?ll have a look at this too. My demo instance had a point player so it certainly should be working. Can you share your data (contact me off list if you?d like)? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Caleb Lee Sent: Wednesday, August 08, 2018 12:40 PM To: Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer I will be away for a while so I cannot do that right now. However, I can do that probably early next week. If it helps, I just tried WMS request to generate both png and mvt and I got the similar result: 1. WMS request with FORMAT set to image/png - I got a png image with 50k points drawn) mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=image/png 2. WMS request with application/x-protobuf - got the same result like the following: nodesIdName(? x mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=application/x-protobuf Thanks, Caleb -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Tue Aug 21 06:27:30 2018 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 21 Aug 2018 13:27:30 +0000 Subject: [mapserver-users] Getting an empty MVT output for a point layer Message-ID: Hi, I haven?t heard any feedback yet. Test data seems to be still available and I believe that the issue is real. It seems that nobody has bothered to create a ticket yet https://github.com/mapserver/mapserver/issues. -Jukka Rahkonen- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Caleb Lee L?hetetty: 21. elokuuta 2018 16:20 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, is there any update regarding this MVT output problem for point layers? Thanks, Caleb ________________________________ From: Rahkonen Jukka (MML) > Sent: Thursday, August 9, 2018 10:18 AM To: Lime, Steve D (MNIT); Caleb Lee; mapserver-users at lists.osgeo.org Subject: Re: Getting an empty MVT output for a point layer Hi, My colleague has suffered from the same issue. Here is a link to a directory with a mapfile and corresponding datasets (OSM data as GeoPackage and Natural earth populated places as shapefile) http://193.167.189.71/temppi/ -Jukka Rahkonen- L?hett?j?: Lime, Steve D (MNIT) [mailto:steve.lime at state.mn.us] L?hetetty: 8. elokuuta 2018 21:14 Vastaanottaja: Caleb Lee >; Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Aihe: RE: Getting an empty MVT output for a point layer I?ll have a look at this too. My demo instance had a point player so it certainly should be working. Can you share your data (contact me off list if you?d like)? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Caleb Lee Sent: Wednesday, August 08, 2018 12:40 PM To: Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer I will be away for a while so I cannot do that right now. However, I can do that probably early next week. If it helps, I just tried WMS request to generate both png and mvt and I got the similar result: 1. WMS request with FORMAT set to image/png - I got a png image with 50k points drawn) mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=image/png 2. WMS request with application/x-protobuf - got the same result like the following: nodesIdName(? x mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=application/x-protobuf Thanks, Caleb -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Tue Aug 21 12:36:29 2018 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 21 Aug 2018 19:36:29 +0000 Subject: [mapserver-users] labels only displaying across the center of the map (not on the top or bottom) Message-ID: <99966d302409438a810b285a9756ee27@co.lyon.mn.us> Hello, We noticed on my map that labels were only displaying across the center 1/3 of the map and not towards the top or bottom of the map for one particular layer in the map. After changing PARTIALS from FALSE to TRUE the map was able to display all the labels as expected, which is good. However I am curious as to what caused the labels to only display across the center 1/3 of the map in the first place. Please let me know if there is anything I can look at to correct this issue. Thank You! LABEL TEXT ('[STR_NAME]') ANTIALIAS TRUE TYPE TRUETYPE FONT franklin-gothic-heavy SIZE 7 ANTIALIAS TRUE #COLOR 200 100 255 OUTLINECOLOR 254 254 254 BUFFER 0 MINFEATURESIZE auto PARTIALS TRUE ANGLE FOLLOW REPEATDISTANCE 300 END #LABEL END #CLASS Sincerely, Mark Volz, GISP Lyon County GIS Coordinator -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Aug 21 13:16:01 2018 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 21 Aug 2018 17:16:01 -0300 Subject: [mapserver-users] labels only displaying across the center of the map (not on the top or bottom) In-Reply-To: <99966d302409438a810b285a9756ee27@co.lyon.mn.us> References: <99966d302409438a810b285a9756ee27@co.lyon.mn.us> Message-ID: <2768ae42-4e40-f561-b5ac-ba047c782291@gatewaygeomatics.com> You might find that readers would like to see a map image example (if so, be sure to always use external service such as https://pasteboard.co/ and include that link in your message) or a mapfile or mapfile layer (if so, be sure to always use an external service such as https://pastebin.com/ and include that link in your message). Following those steps will always ensure that your responder's email attempt will not be blocked by the mail system. -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2018-08-21 4:36 PM, Mark Volz wrote: > Hello, > > We noticed on my map that labels were only displaying across the center > 1/3 of the map and not towards the top or bottom of the map for one > particular layer in the map.? After changing PARTIALS from FALSE to TRUE > the map was able to display all the labels as expected, which is good. > However I am curious as to what caused the labels to only display across > the center 1/3 of the map in the first place.? Please let me know if > there is anything I can look at to correct this issue. > > Thank You! > > From steve.lime at state.mn.us Wed Aug 22 07:11:09 2018 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 22 Aug 2018 14:11:09 +0000 Subject: [mapserver-users] Getting an empty MVT output for a point layer In-Reply-To: References: Message-ID: A ticket would be terrific. I?m on this one? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (MML) Sent: Tuesday, August 21, 2018 8:28 AM To: Caleb Lee ; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, I haven?t heard any feedback yet. Test data seems to be still available and I believe that the issue is real. It seems that nobody has bothered to create a ticket yet https://github.com/mapserver/mapserver/issues. -Jukka Rahkonen- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Caleb Lee L?hetetty: 21. elokuuta 2018 16:20 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, is there any update regarding this MVT output problem for point layers? Thanks, Caleb ________________________________ From: Rahkonen Jukka (MML) > Sent: Thursday, August 9, 2018 10:18 AM To: Lime, Steve D (MNIT); Caleb Lee; mapserver-users at lists.osgeo.org Subject: Re: Getting an empty MVT output for a point layer Hi, My colleague has suffered from the same issue. Here is a link to a directory with a mapfile and corresponding datasets (OSM data as GeoPackage and Natural earth populated places as shapefile) http://193.167.189.71/temppi/ -Jukka Rahkonen- L?hett?j?: Lime, Steve D (MNIT) [mailto:steve.lime at state.mn.us] L?hetetty: 8. elokuuta 2018 21:14 Vastaanottaja: Caleb Lee >; Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Aihe: RE: Getting an empty MVT output for a point layer I?ll have a look at this too. My demo instance had a point player so it certainly should be working. Can you share your data (contact me off list if you?d like)? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Caleb Lee Sent: Wednesday, August 08, 2018 12:40 PM To: Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer I will be away for a while so I cannot do that right now. However, I can do that probably early next week. If it helps, I just tried WMS request to generate both png and mvt and I got the similar result: 1. WMS request with FORMAT set to image/png - I got a png image with 50k points drawn) mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=image/png 2. WMS request with application/x-protobuf - got the same result like the following: nodesIdName(? x mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=application/x-protobuf Thanks, Caleb -------------- next part -------------- An HTML attachment was scrubbed... URL: From public at postholer.com Wed Aug 22 09:47:36 2018 From: public at postholer.com (public at postholer.com) Date: Wed, 22 Aug 2018 09:47:36 -0700 Subject: [mapserver-users] Compiling RSVG in 7.2 Message-ID: <5b7d93a8.5Dn3ezVFaXVcVUQ+%public@postholer.com> Greetings, I'm trying to compile 7.2 with RSVG support with zero luck. Can someone point out my mistake? OS is CentOS 6.5. Here's all the relevant info: cmake output. cmake command and full response is at the bottom: -- Could NOT find GOBJECT (missing: GOBJECT_INCLUDE_DIR) CMake Error at CMakeLists.txt:69 (message): RSVG library/component/dependency could not be found. HINTS: - disable RSVG support by adding -DWITH_RSVG=0 - add the RSVG install directory to the CMAKE_PREFIX_PATH variable (-DCMAKE_PREFIX_PATH="/path/to/RSVG-install-dir;/path/to/other/dirs" Call Stack (most recent call first): CMakeLists.txt:630 (report_optional_not_found) Here's my librsvg-2 install: /usr/bin/rsvg /usr/bin/rsvg-convert /usr/bin/rsvg-view /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/svg_loader.so /usr/lib64/gtk-2.0/2.10.0/engines/libsvg.so /usr/lib64/librsvg-2.so.2 /usr/lib64/librsvg-2.so.2.26.0 /usr/share/doc/librsvg2-2.26.0 /usr/share/doc/librsvg2-2.26.0/AUTHORS /usr/share/doc/librsvg2-2.26.0/COPYING /usr/share/doc/librsvg2-2.26.0/COPYING.LIB /usr/share/doc/librsvg2-2.26.0/NEWS /usr/share/doc/librsvg2-2.26.0/README /usr/share/man/man1/rsvg.1.gz ...and librsvg-2-devel install: /usr/include/librsvg-2 /usr/include/librsvg-2/librsvg /usr/include/librsvg-2/librsvg/librsvg-enum-types.h /usr/include/librsvg-2/librsvg/librsvg-features.h /usr/include/librsvg-2/librsvg/rsvg-cairo.h /usr/include/librsvg-2/librsvg/rsvg.h /usr/lib64/librsvg-2.so /usr/lib64/pkgconfig/librsvg-2.0.pc /usr/share/gtk-doc/html/rsvg /usr/share/gtk-doc/html/rsvg/home.png /usr/share/gtk-doc/html/rsvg/index.html /usr/share/gtk-doc/html/rsvg/index.sgml /usr/share/gtk-doc/html/rsvg/ix01.html /usr/share/gtk-doc/html/rsvg/left.png /usr/share/gtk-doc/html/rsvg/pt02.html /usr/share/gtk-doc/html/rsvg/pt03.html /usr/share/gtk-doc/html/rsvg/pt04.html /usr/share/gtk-doc/html/rsvg/right.png /usr/share/gtk-doc/html/rsvg/rsvg-Cairo.html /usr/share/gtk-doc/html/rsvg/rsvg-Core-API.html /usr/share/gtk-doc/html/rsvg/rsvg-GdkPixbuf.html /usr/share/gtk-doc/html/rsvg/rsvg.devhelp /usr/share/gtk-doc/html/rsvg/rsvg.devhelp2 /usr/share/gtk-doc/html/rsvg/rsvg.html /usr/share/gtk-doc/html/rsvg/style.css /usr/share/gtk-doc/html/rsvg/up.png ...and cmake command: cmake \ -DCMAKE_PREFIX_PATH="/usr/lib64;/usr/include/librsvg-2" \ -DWITH_SVGCAIRO=0 \ -DWITH_CAIRO=1 \ -DWITH_RSVG=1 \ -DWITH_FRIBIDI=0 \ -DWITH_HARFBUZZ=0 \ -DWITH_CURL=1 \ -DWITH_KML=1 \ -DWITH_GIF=0 \ -DWITH_POSTGIS=1 \ -DWITH_MYSQL=1 \ -DWITH_PERL=1 \ -DWITH_PHP=1 \ -DWITH_PROTOBUFC=0 \ .. Result: -- Could NOT find GOBJECT (missing: GOBJECT_INCLUDE_DIR) CMake Error at CMakeLists.txt:69 (message): RSVG library/component/dependency could not be found. HINTS: - disable RSVG support by adding -DWITH_RSVG=0 - add the RSVG install directory to the CMAKE_PREFIX_PATH variable (-DCMAKE_PREFIX_PATH="/path/to/RSVG-install-dir;/path/to/other/dirs" Call Stack (most recent call first): CMakeLists.txt:630 (report_optional_not_found) -- /usr/include/php/main -- Found PHP5-Version 5.3.3 (using /usr/bin/php-config) -- * Summary of configured options for this build -- * Mandatory components -- * png: /usr/lib64/libpng.so -- * jpeg: /usr/lib64/libjpeg.so -- * freetype: /usr/lib64/libfreetype.so -- * Optional components -- * GDAL: /usr/local/lib/libgdal.so -- * OGR: /usr/local/lib/libgdal.so -- * GIF: disabled -- * MYSQL: /usr/lib64/mysql/libmysqlclient.so -- * FRIBIDI: disabled -- * HARFBUZZ: disabled -- * GIF: disabled -- * CAIRO: /usr/lib64/libcairo.so -- * SVGCAIRO: disabled -- * RSVG: disabled -- * CURL: /usr/lib64/libcurl.so -- * PROJ: /usr/lib64/libproj.so -- * PIXMAN: disabled -- * LIBXML2: /usr/lib64/libxml2.so -- * POSTGIS: /usr/pgsql-9.4/lib/libpq.so -- * GEOS: /usr/lib64/libgeos_c.so -- * FastCGI: /usr/lib64/libfcgi.so -- * PROTOBUFC: disabled -- * Oracle Spatial: disabled -- * Exempi XMP: disabled -- * Optional features -- * WMS SERVER: ENABLED -- * WFS SERVER: ENABLED -- * WCS SERVER: ENABLED -- * SOS SERVER: disabled -- * WMS CLIENT: disabled -- * WFS CLIENT: disabled -- * ICONV: ENABLED -- * Thread-safety support: disabled -- * KML output: ENABLED -- * Z+M point coordinate support: disabled -- * XML Mapfile support: disabled -- * Mapscripts -- * Python: disabled -- * PHP: ENABLED -- * PERL: ENABLED -- * RUBY: disabled -- * JAVA: disabled -- * C#: disabled -- * V8 Javascript: disabled -- * Apache Module (Experimental): disabled -- -- Will install files to /usr/local -- Will install libraries to /usr/local/lib -- Configuring incomplete, errors occurred! See also "/home/maps/mapserver-7.2.0/build/CMakeFiles/CMakeOutput.log". See also "/home/maps/mapserver-7.2.0/build/CMakeFiles/CMakeError.log". From jmckenna at gatewaygeomatics.com Wed Aug 22 14:53:22 2018 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 22 Aug 2018 18:53:22 -0300 Subject: [mapserver-users] Compiling RSVG in 7.2 In-Reply-To: <5b7d93a8.5Dn3ezVFaXVcVUQ+%public@postholer.com> References: <5b7d93a8.5Dn3ezVFaXVcVUQ+%public@postholer.com> Message-ID: Hi, I've had success with libsvg + libsvg-cairo on systems, I recommend giving that a try. -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2018-08-22 1:47 PM, public at postholer.com wrote: > Greetings, > > I'm trying to compile 7.2 with RSVG support with zero luck. Can someone point out my mistake? OS is CentOS 6.5. > Here's all the relevant info: > > cmake output. cmake command and full response is at the bottom: > > -- Could NOT find GOBJECT (missing: GOBJECT_INCLUDE_DIR) > CMake Error at CMakeLists.txt:69 (message): > RSVG library/component/dependency could not be found. > > HINTS: > - disable RSVG support by adding -DWITH_RSVG=0 > - add the RSVG install directory to the CMAKE_PREFIX_PATH variable (-DCMAKE_PREFIX_PATH="/path/to/RSVG-install-dir;/path/to/other/dirs" > Call Stack (most recent call first): > CMakeLists.txt:630 (report_optional_not_found) > > From sethg at geographika.co.uk Wed Aug 22 17:21:07 2018 From: sethg at geographika.co.uk (Seth G) Date: Thu, 23 Aug 2018 02:21:07 +0200 Subject: [mapserver-users] New mappyfile release (with CLI) Message-ID: <1534983667.239130.1483182944.5E54F2D5@webmail.messagingengine.com> Hi list, Just to let you know there is a new release of mappyfile (0.7.3). If you're not aware of the project it is a Python library for working with Mapfiles, and can be installed with "pip install mappyfile". The latest release has 2 command line programs for formatting, and validating Mapfiles. See https://mappyfile.readthedocs.io/en/latest/client.html for details. In summary you can run: mappyfile format valid.map valid_formatted.map And: mappyfile validate valid.map The project is released under an MIT licence, and sourcecode available at https://github.com/geographika/mappyfile If anyone has valid Mapfiles that don't validate please create an issue on Github, or send them on to me directly. Regards, Seth -- web:http://geographika.co.uk twitter: @geographika From tom.kralidis at canada.ca Wed Aug 22 17:57:07 2018 From: tom.kralidis at canada.ca (Kralidis, Tom (EC)) Date: Thu, 23 Aug 2018 00:57:07 +0000 Subject: [mapserver-users] New mappyfile release (with CLI) In-Reply-To: <1534983667.239130.1483182944.5E54F2D5@webmail.messagingengine.com> References: <1534983667.239130.1483182944.5E54F2D5@webmail.messagingengine.com> Message-ID: We're using mappyfile in our projects and I must say it is a fantastic tool for mapfile composition workflows. Great job! Thanks for the release (and thanks to Hobu who introduced me to Seth, who introduced me to mappyfile at the code sprint in Bonn earlier this year). ..Tom > -----Original Message----- > From: mapserver-users On > Behalf Of Seth G > Sent: August 22, 2018 20:21 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] New mappyfile release (with CLI) > > Hi list, > > Just to let you know there is a new release of mappyfile (0.7.3). If you're not > aware of the project it is a Python library for working with Mapfiles, and can > be installed with "pip install mappyfile". > > The latest release has 2 command line programs for formatting, and > validating Mapfiles. See > https://mappyfile.readthedocs.io/en/latest/client.html for details. In > summary you can run: > > mappyfile format valid.map valid_formatted.map > > And: > > mappyfile validate valid.map > > > The project is released under an MIT licence, and sourcecode available at > https://github.com/geographika/mappyfile > > If anyone has valid Mapfiles that don't validate please create an issue on > Github, or send them on to me directly. > > Regards, > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From richard.greenwood at gmail.com Thu Aug 23 06:07:45 2018 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 23 Aug 2018 07:07:45 -0600 Subject: [mapserver-users] New mappyfile release (with CLI) In-Reply-To: <20180823011021.72B7E614460E@lists.osgeo.org> References: <1534983667.239130.1483182944.5E54F2D5@webmail.messagingengine.com> <20180823011021.72B7E614460E@lists.osgeo.org> Message-ID: Based on Tom's comments I figured that I'd better try out mappyfile. I ran into a couple issues. Installing on Ubuntu 18.04 required python-setuptools (sudo apt-get install python-setuptools) mappyfile validated failed on the '%' modulo operator in an expression: EXPRESSION ( ([height] % 50) = 0 ) On Wed, Aug 22, 2018 at 7:10 PM Kralidis, Tom (EC) wrote: > We're using mappyfile in our projects and I must say it is a fantastic tool > for mapfile composition workflows. Great job! > > Thanks for the release (and thanks to Hobu who introduced me to Seth, who > introduced me to mappyfile at the code sprint in Bonn earlier this year). > > ..Tom > > > -----Original Message----- > > From: mapserver-users On > > Behalf Of Seth G > > Sent: August 22, 2018 20:21 > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] New mappyfile release (with CLI) > > > > Hi list, > > > > Just to let you know there is a new release of mappyfile (0.7.3). If > you're not > > aware of the project it is a Python library for working with Mapfiles, > and can > > be installed with "pip install mappyfile". > > > > The latest release has 2 command line programs for formatting, and > > validating Mapfiles. See > > https://mappyfile.readthedocs.io/en/latest/client.html for details. In > > summary you can run: > > > > mappyfile format valid.map valid_formatted.map > > > > And: > > > > mappyfile validate valid.map > > > > > > The project is released under an MIT licence, and sourcecode available at > > https://github.com/geographika/mappyfile > > > > If anyone has valid Mapfiles that don't validate please create an issue > on > > Github, or send them on to me directly. > > > > Regards, > > > > Seth > > > > -- > > web:http://geographika.co.uk > > twitter: @geographika > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Thu Aug 23 07:20:51 2018 From: sethg at geographika.co.uk (Seth G) Date: Thu, 23 Aug 2018 16:20:51 +0200 Subject: [mapserver-users] New mappyfile release (with CLI) In-Reply-To: References: <1534983667.239130.1483182944.5E54F2D5@webmail.messagingengine.com> <20180823011021.72B7E614460E@lists.osgeo.org> Message-ID: <1535034051.1456538.1483824664.14669C93@webmail.messagingengine.com> Hi Richard, Thanks for the feedback. Debian packaging has been created (for mappyfile 0.7.2): https://github.com/geographika/mappyfile/issues/59 sudo add-apt-repository ppa:ubuntugis/ubuntugis-experimental sudo apt- get update sudo apt-get install python-mappyfile sudo apt-get install python3-mappyfileWith regards to the modulo operator - I wasn't aware it was possible! It isn't documented at https://mapserver.org/mapfile/expressions.html and doesn't appear in any of the msautotest Mapfiles.It is easy enough to add it to the Mapfile grammar, so will be in the next release. Thanks Tom for the kind words on the project. Seth -- web:http://geographika.co.uk twitter: @geographika On Thu, Aug 23, 2018, at 3:07 PM, Richard Greenwood wrote: > Based on Tom's comments I figured that I'd better try out mappyfile. I > ran into a couple issues.> Installing on Ubuntu 18.04 required python-setuptools (sudo apt-get > install python-setuptools)> mappyfile validated failed on the '%' modulo operator in an > expression:> EXPRESSION ( ([height] % 50) = 0 ) > > > > On Wed, Aug 22, 2018 at 7:10 PM Kralidis, Tom (EC) > wrote:>> We're using mappyfile in our projects and I must say it is a >> fantastic tool>> for mapfile composition workflows. Great job! >> >> Thanks for the release (and thanks to Hobu who introduced me to >> Seth, who>> introduced me to mappyfile at the code sprint in Bonn earlier this >> year).>> >> ..Tom >> >> > -----Original Message----- >> > From: mapserver-users On>> > Behalf Of Seth G >> > Sent: August 22, 2018 20:21 >> > To: mapserver-users at lists.osgeo.org >> > Subject: [mapserver-users] New mappyfile release (with CLI) >> > >> > Hi list, >> > >> > Just to let you know there is a new release of mappyfile (0.7.3). >> > If you're not>> > aware of the project it is a Python library for working with >> > Mapfiles, and can>> > be installed with "pip install mappyfile". >> > >> > The latest release has 2 command line programs for formatting, and>> > validating Mapfiles. See >> > https://mappyfile.readthedocs.io/en/latest/client.html for >> > details. In>> > summary you can run: >> > >> > mappyfile format valid.map valid_formatted.map >> > >> > And: >> > >> > mappyfile validate valid.map >> > >> > >> > The project is released under an MIT licence, and sourcecode >> > available at>> > https://github.com/geographika/mappyfile >> > >> > If anyone has valid Mapfiles that don't validate please create an >> > issue on>> > Github, or send them on to me directly. >> > >> > Regards, >> > >> > Seth >> > >> > -- >> > web:http://geographika.co.uk >> > twitter: @geographika >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > https://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > _________________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Thu Aug 23 08:57:57 2018 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 23 Aug 2018 15:57:57 +0000 Subject: [mapserver-users] Need example of using a tabular select to retieve metadata for a label Message-ID: <3373A744-DA31-49FB-840C-03D53A8074B2@ci.stpaul.mn.us> I?m trying to use a tabular (no spatial field) SQL metadata call to populate a disclaimer notice in a image output. Anyone tried this and have an example handy? Thanks bobb I took a speed reading course and read ?War and Peace? in twenty minutes. It involves Russia. ?Woody Allen -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Aug 23 13:49:28 2018 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 23 Aug 2018 20:49:28 +0000 Subject: [mapserver-users] Need example of using a tabular select to retieve metadata for a label In-Reply-To: <3373A744-DA31-49FB-840C-03D53A8074B2@ci.stpaul.mn.us> References: <3373A744-DA31-49FB-840C-03D53A8074B2@ci.stpaul.mn.us> Message-ID: I think you?d have to associate geometries with the text regardless since MapServer will always apply a spatial filter (based on extent) in addition to whatever non-spatial filter you populate. I could see tying the extent of your project ? either a rect or some fancy geometry to each bit of disclaimer text so the spatial filter would always evaluate to true. Might also be possible to use non-map coordinates. You see that typically with inline layers. I might have other ideas if you provided a bit more detail? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Thursday, August 23, 2018 10:58 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Need example of using a tabular select to retieve metadata for a label I?m trying to use a tabular (no spatial field) SQL metadata call to populate a disclaimer notice in a image output. Anyone tried this and have an example handy? Thanks bobb I took a speed reading course and read ?War and Peace? in twenty minutes. It involves Russia. ?Woody Allen -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Thu Aug 23 14:05:34 2018 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 23 Aug 2018 21:05:34 +0000 Subject: [mapserver-users] Need example of using a tabular select to retieve metadata for a label In-Reply-To: References: <3373A744-DA31-49FB-840C-03D53A8074B2@ci.stpaul.mn.us> Message-ID: Steve, Fuuny, I already figured out that I (or mapserver) needs a spatial element as a return. I thought about the Extent idea as well, and have been working on using a dummy point in a dummy table to get around it, but maybe the extent piece is the way to go, and it would be a good addition to the metadata anyway. I can just add the City Bounds enmasse to begin with, and adjust as needed down the line. bobb On Aug 23, 2018, at 3:49 PM, Lime, Steve D (MNIT) > wrote: I think you?d have to associate geometries with the text regardless since MapServer will always apply a spatial filter (based on extent) in addition to whatever non-spatial filter you populate. I could see tying the extent of your project ? either a rect or some fancy geometry to each bit of disclaimer text so the spatial filter would always evaluate to true. Might also be possible to use non-map coordinates. You see that typically with inline layers. I might have other ideas if you provided a bit more detail? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Thursday, August 23, 2018 10:58 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Need example of using a tabular select to retieve metadata for a label I?m trying to use a tabular (no spatial field) SQL metadata call to populate a disclaimer notice in a image output. Anyone tried this and have an example handy? Thanks bobb I took a speed reading course and read ?War and Peace? in twenty minutes. It involves Russia. ?Woody Allen The third-rate mind is only happy when it is thinking with the majority. The second-rate mind is only happy when it is thinking with the minority. The first-rate mind is only happy when it is thinking. ?A. A. Milne -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.marzocchi at gter.it Fri Aug 24 05:14:28 2018 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Fri, 24 Aug 2018 14:14:28 +0200 Subject: [mapserver-users] Problem with WMS time (filter do not works) In-Reply-To: <1655c3c5804.fe834e03118838.6390203635103751222@gter.it> References: <1655c3c5804.fe834e03118838.6390203635103751222@gter.it> Message-ID: <1656bdb738a.1026c40d813602.3476320200247134613@gter.it> Dear all,? i have done more test? if I uncomment the?"wms_timedefault" "2018-01-01T00:00:00" line it give me the following error:? msWMSApplyTime: WMS server error. No Time value was given, and no default time value defined. otherwise it give me no error but my WMS use always the last line of the postgis table not considering the FILTER.? I try a lot of fiter syntaxes. my raster layer definition is the following:? # raster layer ??? LAYER ???? NAME "bui_20180101" ???? TYPE RASTER ???? STATUS ON ???? DEBUG ON ???? PROJECTION ?????? "init=epsg:3003" ???? END ???? METADATA ?????? "wms_title" "bui_20180101" ?????? "wms_srs"?? "EPSG:3003" ?????? "wms_extent" "1436301.37500 4916704.50000 1701801.37500 5177704.50000" ?????? "wms_timeextent" "2017-08-01/2100-12-31/PT24H" ?????? "wms_timeitem" "day" #datetime is a column in postgis table of type timestamp ?????? #"wms_timedefault" "2018-01-01T00:00:00" ?????? "wms_enable_request" "*" ?????? "ows_include_items"???? "all" ???? END ???? OFFSITE 0 0 0 ???? TILEITEM "location" #filepath is a column in postgis table with varchar of the filepath to each image ???? TILEINDEX "time_idx" ???? #FILTERITEM "day" ???? #FILTER "2018-01-01T00:00:00" ???? #FILTER (`[day]` = `2018-01-01T00:00:00`) ???? #FILTER ('[day]' = '2018-01-01T00:00:00') ???? FILTER ("day" = '2018-01-01T00:00:00') ??? END Thanks in advanced for your help.? R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On mar, 21 ago 2018 13:26:23 +0200?Roberto Marzocchi wrote ---- Dear all,? I am following the guide to create WMS/WCS time [1]. (Mapserver 7.0.7 on Ubuntu Xen?al server) I created a PostGIS view with the following field: - id - location - day - geom I create a mapfile but when I create the layer the filter do not works (I see always the last row e.g the map of yesterday).? I try:? ???? FILTERITEM "day" ???? FILTER "20180101" and? FILTER (`[day]` = `20180101`) like in the example ???? I try to change the day format in the PostGIS table from text to timestamp (e.g20180101 -->? 2018-01-01 00:00:00) but nothing change.? There is something not clear to me.? R [1] -?https://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Fri Aug 24 05:37:00 2018 From: sethg at geographika.co.uk (Seth G) Date: Fri, 24 Aug 2018 14:37:00 +0200 Subject: [mapserver-users] Problem with WMS time (filter do not works) In-Reply-To: <1656bdb738a.1026c40d813602.3476320200247134613@gter.it> References: <1655c3c5804.fe834e03118838.6390203635103751222@gter.it> <1656bdb738a.1026c40d813602.3476320200247134613@gter.it> Message-ID: <1535114220.2805918.1484895376.3C15AD74@webmail.messagingengine.com> Hi, Is there any difference if you use a native filter? E.g. PROCESSING 'NATIVE_FILTER=day= '2018-01-01T00:00:00'' Seth -- web:http://geographika.co.uk twitter: @geographika On Fri, Aug 24, 2018, at 2:14 PM, Roberto Marzocchi wrote: > Dear all, > > i have done more test > > if I uncomment the "wms_timedefault" "2018-01-01T00:00:00" line it > give me the following error:> > *msWMSApplyTime: WMS server error. No Time value was given, and no > default time value defined.*> > otherwise it give me no error but my WMS use always the last line of > the postgis table not considering the FILTER.> > I try a lot of fiter syntaxes. > > > my raster layer definition is the following: > > # raster layer > LAYER > NAME "bui_20180101" > TYPE RASTER > STATUS ON > DEBUG ON > PROJECTION > "init=epsg:3003" > END > METADATA > "wms_title" "bui_20180101" > "wms_srs" "EPSG:3003" > "wms_extent" "1436301.37500 4916704.50000 1701801.37500 > 5177704.50000"> "wms_timeextent" "2017-08-01/2100-12-31/PT24H" > "wms_timeitem" "day" #datetime is a column in postgis table of > type timestamp> #"wms_timedefault" "2018-01-01T00:00:00" > "wms_enable_request" "*" > "ows_include_items" "all" > END > OFFSITE 0 0 0 > TILEITEM "location" #filepath is a column in postgis table with > varchar of the filepath to each image> TILEINDEX "time_idx" > #FILTERITEM "day" > #FILTER "2018-01-01T00:00:00" > #FILTER (`[day]` = `2018-01-01T00:00:00`) > #FILTER ('[day]' = '2018-01-01T00:00:00') > FILTER ("day" = '2018-01-01T00:00:00') > END > > > Thanks in advanced for your help. > > R > > Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige > spin-off) Piazza De Marini 3/61 - 16123 Genova > P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: > roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- > Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline > - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e- > gis ----------------------------------------------------------------- > Please consider the environment before printing this email!> > > > ---- On mar, 21 ago 2018 13:26:23 +0200 *Roberto Marzocchi > * wrote ----> >> Dear all, >> >> I am following the guide to create WMS/WCS time [1]. (Mapserver 7.0.7 >> on Ubuntu Xen?al server)>> >> I created a PostGIS view with the following field: >> - id >> - location >> - day >> - geom >> >> I create a mapfile but when I create the layer the filter do not >> works (I see always the last row e.g the map of yesterday).>> >> I try: >> FILTERITEM "day" >> FILTER "20180101" >> >> and >> >> FILTER (`[day]` = `20180101`) >> >> like in the example >> >> >> I try to change the day format in the PostGIS table from text to >> timestamp (e.g20180101 --> 2018-01-01 00:00:00) but nothing change.>> >> >> There is something not clear to me. >> >> R >> >> [1] - >> https://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery>> >> >> >> >> Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige >> spin-off) Piazza De Marini 3/61 - 16123 Genova >> P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: >> roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it >> -- Gter social www.twitter.com/Gteronline - >> www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts >> www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e- >> gis ----------------------------------------------------------------- >> Please consider the environment before printing this email!>> >> > > > _________________________________________________ > 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 roberto.marzocchi at gter.it Fri Aug 24 05:56:06 2018 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Fri, 24 Aug 2018 14:56:06 +0200 Subject: [mapserver-users] Problem with WMS time (filter do not works) In-Reply-To: <1535114220.2805918.1484895376.3C15AD74@webmail.messagingengine.com> References: <1655c3c5804.fe834e03118838.6390203635103751222@gter.it> <1656bdb738a.1026c40d813602.3476320200247134613@gter.it> <1535114220.2805918.1484895376.3C15AD74@webmail.messagingengine.com> Message-ID: <1656c0191c8.120eaf33215709.5077817874033090851@gter.it> Thanks for your answer.. I try your suggestion? using " instead of ' (otherwise I have a parsing error) but unfortunately?no difference (the filter is "ignored" ???? PROCESSING "NATIVE_FILTER= 'day'='2018-01-01T00:00:00'" R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On ven, 24 ago 2018 14:37:00 +0200?Seth G wrote ---- Hi, Is there any difference if you use a native filter? E.g.? PROCESSING 'NATIVE_FILTER=day= '2018-01-01T00:00:00'' Seth -- web:http://geographika.co.uk twitter: @geographika On Fri, Aug 24, 2018, at 2:14 PM, Roberto Marzocchi wrote: Dear all,? i have done more test? if I uncomment the?"wms_timedefault" "2018-01-01T00:00:00" line it give me the following error:? msWMSApplyTime: WMS server error. No Time value was given, and no default time value defined. otherwise it give me no error but my WMS use always the last line of the postgis table not considering the FILTER.? I try a lot of fiter syntaxes. my raster layer definition is the following:? # raster layer ??? LAYER ???? NAME "bui_20180101" ???? TYPE RASTER ???? STATUS ON ???? DEBUG ON ???? PROJECTION ?????? "init=epsg:3003" ???? END ???? METADATA ?????? "wms_title" "bui_20180101" ?????? "wms_srs"?? "EPSG:3003" ?????? "wms_extent" "1436301.37500 4916704.50000 1701801.37500 5177704.50000" ?????? "wms_timeextent" "2017-08-01/2100-12-31/PT24H" ?????? "wms_timeitem" "day" #datetime is a column in postgis table of type timestamp ?????? #"wms_timedefault" "2018-01-01T00:00:00" ?????? "wms_enable_request" "*" ?????? "ows_include_items"???? "all" ???? END ???? OFFSITE 0 0 0 ???? TILEITEM "location" #filepath is a column in postgis table with varchar of the filepath to each image ???? TILEINDEX "time_idx" ???? #FILTERITEM "day" ???? #FILTER "2018-01-01T00:00:00" ???? #FILTER (`[day]` = `2018-01-01T00:00:00`) ???? #FILTER ('[day]' = '2018-01-01T00:00:00') ???? FILTER ("day" = '2018-01-01T00:00:00') ??? END Thanks in advanced for your help.? R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On mar, 21 ago 2018 13:26:23 +0200?Roberto Marzocchi wrote ---- Dear all,? I am following the guide to create WMS/WCS time [1]. (Mapserver 7.0.7 on Ubuntu Xen?al server) I created a PostGIS view with the following field: - id - location - day - geom I create a mapfile but when I create the layer the filter do not works (I see always the last row e.g the map of yesterday).? I try:? ???? FILTERITEM "day" ???? FILTER "20180101" and? FILTER (`[day]` = `20180101`) like in the example ???? I try to change the day format in the PostGIS table from text to timestamp (e.g20180101 -->? 2018-01-01 00:00:00) but nothing change.? There is something not clear to me.? R [1] -?https://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! _______________________________________________ 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 sethg at geographika.co.uk Fri Aug 24 06:04:57 2018 From: sethg at geographika.co.uk (Seth G) Date: Fri, 24 Aug 2018 15:04:57 +0200 Subject: [mapserver-users] Problem with WMS time (filter do not works) In-Reply-To: <1656c0191c8.120eaf33215709.5077817874033090851@gter.it> References: <1655c3c5804.fe834e03118838.6390203635103751222@gter.it> <1656bdb738a.1026c40d813602.3476320200247134613@gter.it> <1535114220.2805918.1484895376.3C15AD74@webmail.messagingengine.com> <1656c0191c8.120eaf33215709.5077817874033090851@gter.it> Message-ID: <1535115897.2813708.1484922232.75A6B262@webmail.messagingengine.com> How are you accessing the service? Do you have an example URL? Are you setting the TIME parameter as part of this? https://mapserver.org/ogc/wcs_server.html#test-with-a-getcoverage-request http://my.host.com/cgi-bin/mapserv?map=mywcs.map&SERVICE=WCS &VERSION=1.0.0&REQUEST=GetCoverage&coverage=bathymetry &CRS=EPSG:42304&TIME=2018-01-01T00:00:00&WIDTH=3199 &HEIGHT=2833&FORMAT=GTiff -- web:http://geographika.co.uk twitter: @geographika On Fri, Aug 24, 2018, at 2:56 PM, Roberto Marzocchi wrote: > Thanks for your answer.. I try your suggestion using " instead of ' > (otherwise I have a parsing error) but unfortunately no difference > (the filter is "ignored"> > > PROCESSING "NATIVE_FILTER= 'day'='2018-01-01T00:00:00'" > > R > > Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige > spin-off) Piazza De Marini 3/61 - 16123 Genova > P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: > roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- > Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline > - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e- > gis ----------------------------------------------------------------- > Please consider the environment before printing this email!> > > > ---- On ven, 24 ago 2018 14:37:00 +0200 *Seth G > * wrote ----> >> Hi, >> >> Is there any difference if you use a native filter? E.g. >> >> PROCESSING 'NATIVE_FILTER=day= '2018-01-01T00:00:00'' >> >> Seth >> >> -- >> web:http://geographika.co.uk >> twitter: @geographika >> >> >> On Fri, Aug 24, 2018, at 2:14 PM, Roberto Marzocchi wrote: >> >> >>> Dear all, >>> >>> i have done more test >>> >>> if I uncomment the "wms_timedefault" "2018-01-01T00:00:00" line it >>> give me the following error:>>> >>> *msWMSApplyTime: WMS server error. No Time value was given, and no >>> default time value defined.*>>> >>> otherwise it give me no error but my WMS use always the last line of >>> the postgis table not considering the FILTER.>>> >>> I try a lot of fiter syntaxes. >>> >>> >>> my raster layer definition is the following: >>> >>> # raster layer >>> LAYER >>> NAME "bui_20180101" >>> TYPE RASTER >>> STATUS ON >>> DEBUG ON >>> PROJECTION >>> "init=epsg:3003" >>> END >>> METADATA >>> "wms_title" "bui_20180101" >>> "wms_srs" "EPSG:3003" >>> "wms_extent" "1436301.37500 4916704.50000 1701801.37500 >>> 5177704.50000">>> "wms_timeextent" "2017-08-01/2100-12-31/PT24H" >>> "wms_timeitem" "day" #datetime is a column in postgis table >>> of type timestamp>>> #"wms_timedefault" "2018-01-01T00:00:00" >>> "wms_enable_request" "*" >>> "ows_include_items" "all" >>> END >>> OFFSITE 0 0 0 >>> TILEITEM "location" #filepath is a column in postgis table with >>> varchar of the filepath to each image>>> TILEINDEX "time_idx" >>> #FILTERITEM "day" >>> #FILTER "2018-01-01T00:00:00" >>> #FILTER (`[day]` = `2018-01-01T00:00:00`) >>> #FILTER ('[day]' = '2018-01-01T00:00:00') >>> FILTER ("day" = '2018-01-01T00:00:00') >>> END >>> >>> >>> Thanks in advanced for your help. >>> >>> R >>> >>> Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige >>> spin-off) Piazza De Marini 3/61 - 16123 Genova >>> P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: >>> roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it >>> -- Gter social www.twitter.com/Gteronline - >>> www.facebook.com/Gteronline - >>> https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss- >>> e-gis ---------------------------------------------------------------- >>> - Please consider the environment before printing this email!>>> >>> >>> >>> ---- On mar, 21 ago 2018 13:26:23 +0200 *Roberto Marzocchi >>> * wrote ---->>> >>>> Dear all, >>>> >>>> I am following the guide to create WMS/WCS time [1]. (Mapserver >>>> 7.0.7 on Ubuntu Xen?al server)>>>> >>>> I created a PostGIS view with the following field: >>>> - id >>>> - location >>>> - day >>>> - geom >>>> >>>> I create a mapfile but when I create the layer the filter do not >>>> works (I see always the last row e.g the map of yesterday).>>>> >>>> I try: >>>> FILTERITEM "day" >>>> FILTER "20180101" >>>> >>>> and >>>> >>>> FILTER (`[day]` = `20180101`) >>>> >>>> like in the example >>>> >>>> >>>> I try to change the day format in the PostGIS table from text to >>>> timestamp (e.g20180101 --> 2018-01-01 00:00:00) but nothing >>>> change.>>>> >>>> >>>> There is something not clear to me. >>>> >>>> R >>>> >>>> [1] - >>>> https://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery>>>> >>>> >>>> >>>> >>>> Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige >>>> spin-off) Piazza De Marini 3/61 - 16123 Genova >>>> P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: >>>> roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it >>>> -- Gter social www.twitter.com/Gteronline - >>>> www.facebook.com/Gteronline - >>>> https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss- >>>> e-gis --------------------------------------------------------------- >>>> -- Please consider the environment before printing this email!>>>> >>>> >>> >>> >>> _________________________________________________ >>> 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 roberto.marzocchi at gter.it Fri Aug 24 06:23:59 2018 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Fri, 24 Aug 2018 15:23:59 +0200 Subject: [mapserver-users] Problem with WMS time (filter do not works) In-Reply-To: <1535115897.2813708.1484922232.75A6B262@webmail.messagingengine.com> References: <1655c3c5804.fe834e03118838.6390203635103751222@gter.it> <1656bdb738a.1026c40d813602.3476320200247134613@gter.it> <1535114220.2805918.1484895376.3C15AD74@webmail.messagingengine.com> <1656c0191c8.120eaf33215709.5077817874033090851@gter.it> <1535115897.2813708.1484922232.75A6B262@webmail.messagingengine.com> Message-ID: <1656c1b17a6.125e74f3e16846.7293268472055541554@gter.it> No I use a mapfile where I have defined the time index layer and the raster layer. http://demo.gter.it/cgi-bin/mapserv?map=/home/rasdaman/bui_mapfile_test.map& An example of my request is? http://demo.gter.it/cgi-bin/mapserv?map=/home/rasdaman/bui_mapfile_test.map&LAYERS=bui_20180101&TRANSPARENT=TRUE&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A3003&BBOX=1436300.0000000000000000,4916700.0000000000000000,1701800.0000000000000000,5177700.0000000000000000&WIDTH=1088&HEIGHT=621 R ---- On ven, 24 ago 2018 15:04:57 +0200?Seth G wrote ---- How are you accessing the service? Do you have an example URL? Are you setting the TIME parameter as part of this? https://mapserver.org/ogc/wcs_server.html#test-with-a-getcoverage-request http://my.host.com/cgi-bin/mapserv?map=mywcs.map&SERVICE=WCS ? &VERSION=1.0.0&REQUEST=GetCoverage&coverage=bathymetry ? &CRS=EPSG:42304&TIME=2018-01-01T00:00:00&WIDTH=3199 ? &HEIGHT=2833&FORMAT=GTiff -- web:http://geographika.co.uk twitter: @geographika On Fri, Aug 24, 2018, at 2:56 PM, Roberto Marzocchi wrote: Thanks for your answer.. I try your suggestion? using " instead of ' (otherwise I have a parsing error) but unfortunately?no difference (the filter is "ignored" ???? PROCESSING "NATIVE_FILTER= 'day'='2018-01-01T00:00:00'" R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On ven, 24 ago 2018 14:37:00 +0200?Seth G wrote ---- Hi, Is there any difference if you use a native filter? E.g.? PROCESSING 'NATIVE_FILTER=day= '2018-01-01T00:00:00'' Seth -- web:http://geographika.co.uk twitter: @geographika On Fri, Aug 24, 2018, at 2:14 PM, Roberto Marzocchi wrote: Dear all,? i have done more test? if I uncomment the?"wms_timedefault" "2018-01-01T00:00:00" line it give me the following error:? msWMSApplyTime: WMS server error. No Time value was given, and no default time value defined. otherwise it give me no error but my WMS use always the last line of the postgis table not considering the FILTER.? I try a lot of fiter syntaxes. my raster layer definition is the following:? # raster layer ??? LAYER ???? NAME "bui_20180101" ???? TYPE RASTER ???? STATUS ON ???? DEBUG ON ???? PROJECTION ?????? "init=epsg:3003" ???? END ???? METADATA ?????? "wms_title" "bui_20180101" ?????? "wms_srs"?? "EPSG:3003" ?????? "wms_extent" "1436301.37500 4916704.50000 1701801.37500 5177704.50000" ?????? "wms_timeextent" "2017-08-01/2100-12-31/PT24H" ?????? "wms_timeitem" "day" #datetime is a column in postgis table of type timestamp ?????? #"wms_timedefault" "2018-01-01T00:00:00" ?????? "wms_enable_request" "*" ?????? "ows_include_items"???? "all" ???? END ???? OFFSITE 0 0 0 ???? TILEITEM "location" #filepath is a column in postgis table with varchar of the filepath to each image ???? TILEINDEX "time_idx" ???? #FILTERITEM "day" ???? #FILTER "2018-01-01T00:00:00" ???? #FILTER (`[day]` = `2018-01-01T00:00:00`) ???? #FILTER ('[day]' = '2018-01-01T00:00:00') ???? FILTER ("day" = '2018-01-01T00:00:00') ??? END Thanks in advanced for your help.? R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On mar, 21 ago 2018 13:26:23 +0200?Roberto Marzocchi wrote ---- Dear all,? I am following the guide to create WMS/WCS time [1]. (Mapserver 7.0.7 on Ubuntu Xen?al server) I created a PostGIS view with the following field: - id - location - day - geom I create a mapfile but when I create the layer the filter do not works (I see always the last row e.g the map of yesterday).? I try:? ???? FILTERITEM "day" ???? FILTER "20180101" and? FILTER (`[day]` = `20180101`) like in the example ???? I try to change the day format in the PostGIS table from text to timestamp (e.g20180101 -->? 2018-01-01 00:00:00) but nothing change.? There is something not clear to me.? R [1] -?https://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! _______________________________________________ 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 roberto.marzocchi at gter.it Fri Aug 24 07:25:03 2018 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Fri, 24 Aug 2018 16:25:03 +0200 Subject: [mapserver-users] Problem with WMS time (filter do not works) In-Reply-To: <1656c1b17a6.125e74f3e16846.7293268472055541554@gter.it> References: <1655c3c5804.fe834e03118838.6390203635103751222@gter.it> <1656bdb738a.1026c40d813602.3476320200247134613@gter.it> <1535114220.2805918.1484895376.3C15AD74@webmail.messagingengine.com> <1656c0191c8.120eaf33215709.5077817874033090851@gter.it> <1535115897.2813708.1484922232.75A6B262@webmail.messagingengine.com> <1656c1b17a6.125e74f3e16846.7293268472055541554@gter.it> Message-ID: <1656c53001e.ce6fec5719079.8501771349300716344@gter.it> Ok. The problem for timedefault is due to the timestamp format that I wrongly deduced from qgis which read the timestamp with the T which is not present in the PostGIS table Nevertheless the filter do not works:? I try:? ? ? ?FILTER (`[day]` = `2018-01-01 00:00:00`) (reading the manual of mapserver 7.2.0 even if I use mapserver 7.0.7) ?FILTER ("[day]" = '2018-01-01 00:00:00') FILTER ('[day]' = '2018-01-01 00:00:00') PROCESSING "NATIVE_FILTER= 'day'='2018-01-01 00:00:00'" FILTERITEM 'day'? ? ?FILTER '2018-01-01 00:00:00' No parsing error, but the filter is ignored My update version of layer definition; # raster layer ??? LAYER ???? NAME "bui_20180101" ???? TYPE RASTER ???? STATUS ON ???? DEBUG ON ???? PROJECTION ?????? "init=epsg:3003" ???? END ???? METADATA ?????? "wms_title" "bui_20180101" ?????? "wms_srs"?? "EPSG:3003" ?????? "wms_extent" "1436301.37500 4916704.50000 1701801.37500 5177704.50000" ?????? "wms_timeextent" "2017-08-01/2100-12-31/PT5M" ?????? "wms_timeitem" "day" #datetime is a column in postgis table of type timestamp ?????? "wms_timedefault" "2018-08-17 00:00:00" ?????? "wms_enable_request" "*" ?????? "ows_include_items"???? "all" ???? END ???? OFFSITE 0 0 0 ???? TILEITEM "location" #filepath is a column in postgis table with varchar of the filepath to each image ???? TILEINDEX "time_idx" ???? #FILTERITEM 'day' ???? #FILTER '2018-01-01 00:00:00' ???? #FILTER (`[day]` = `2018-01-01 00:00:00`) ???? #FILTER ("day" = '2018-01-01 00:00:00') ???? #FILTER ("[day]" = '2018-01-01 00:00:00') ???? #PROCESSING "NATIVE_FILTER= 'day'='2018-01-01 00:00:00'" ??? END ---- On ven, 24 ago 2018 15:23:59 +0200?Roberto Marzocchi wrote ---- No I use a mapfile where I have defined the time index layer and the raster layer. http://demo.gter.it/cgi-bin/mapserv?map=/home/rasdaman/bui_mapfile_test.map& An example of my request is? http://demo.gter.it/cgi-bin/mapserv?map=/home/rasdaman/bui_mapfile_test.map&LAYERS=bui_20180101&TRANSPARENT=TRUE&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A3003&BBOX=1436300.0000000000000000,4916700.0000000000000000,1701800.0000000000000000,5177700.0000000000000000&WIDTH=1088&HEIGHT=621 R ---- On ven, 24 ago 2018 15:04:57 +0200?Seth G wrote ---- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users How are you accessing the service? Do you have an example URL? Are you setting the TIME parameter as part of this? https://mapserver.org/ogc/wcs_server.html#test-with-a-getcoverage-request http://my.host.com/cgi-bin/mapserv?map=mywcs.map&SERVICE=WCS ? &VERSION=1.0.0&REQUEST=GetCoverage&coverage=bathymetry ? &CRS=EPSG:42304&TIME=2018-01-01T00:00:00&WIDTH=3199 ? &HEIGHT=2833&FORMAT=GTiff -- web:http://geographika.co.uk twitter: @geographika On Fri, Aug 24, 2018, at 2:56 PM, Roberto Marzocchi wrote: Thanks for your answer.. I try your suggestion? using " instead of ' (otherwise I have a parsing error) but unfortunately?no difference (the filter is "ignored" ???? PROCESSING "NATIVE_FILTER= 'day'='2018-01-01T00:00:00'" R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On ven, 24 ago 2018 14:37:00 +0200?Seth G wrote ---- Hi, Is there any difference if you use a native filter? E.g.? PROCESSING 'NATIVE_FILTER=day= '2018-01-01T00:00:00'' Seth -- web:http://geographika.co.uk twitter: @geographika On Fri, Aug 24, 2018, at 2:14 PM, Roberto Marzocchi wrote: Dear all,? i have done more test? if I uncomment the?"wms_timedefault" "2018-01-01T00:00:00" line it give me the following error:? msWMSApplyTime: WMS server error. No Time value was given, and no default time value defined. otherwise it give me no error but my WMS use always the last line of the postgis table not considering the FILTER.? I try a lot of fiter syntaxes. my raster layer definition is the following:? # raster layer ??? LAYER ???? NAME "bui_20180101" ???? TYPE RASTER ???? STATUS ON ???? DEBUG ON ???? PROJECTION ?????? "init=epsg:3003" ???? END ???? METADATA ?????? "wms_title" "bui_20180101" ?????? "wms_srs"?? "EPSG:3003" ?????? "wms_extent" "1436301.37500 4916704.50000 1701801.37500 5177704.50000" ?????? "wms_timeextent" "2017-08-01/2100-12-31/PT24H" ?????? "wms_timeitem" "day" #datetime is a column in postgis table of type timestamp ?????? #"wms_timedefault" "2018-01-01T00:00:00" ?????? "wms_enable_request" "*" ?????? "ows_include_items"???? "all" ???? END ???? OFFSITE 0 0 0 ???? TILEITEM "location" #filepath is a column in postgis table with varchar of the filepath to each image ???? TILEINDEX "time_idx" ???? #FILTERITEM "day" ???? #FILTER "2018-01-01T00:00:00" ???? #FILTER (`[day]` = `2018-01-01T00:00:00`) ???? #FILTER ('[day]' = '2018-01-01T00:00:00') ???? FILTER ("day" = '2018-01-01T00:00:00') ??? END Thanks in advanced for your help.? R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On mar, 21 ago 2018 13:26:23 +0200?Roberto Marzocchi wrote ---- Dear all,? I am following the guide to create WMS/WCS time [1]. (Mapserver 7.0.7 on Ubuntu Xen?al server) I created a PostGIS view with the following field: - id - location - day - geom I create a mapfile but when I create the layer the filter do not works (I see always the last row e.g the map of yesterday).? I try:? ???? FILTERITEM "day" ???? FILTER "20180101" and? FILTER (`[day]` = `20180101`) like in the example ???? I try to change the day format in the PostGIS table from text to timestamp (e.g20180101 -->? 2018-01-01 00:00:00) but nothing change.? There is something not clear to me.? R [1] -?https://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! _______________________________________________ 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 protonmail.com Fri Aug 24 10:47:18 2018 From: pe_lord at protonmail.com (pe_lord) Date: Fri, 24 Aug 2018 10:47:18 -0700 (MST) Subject: [mapserver-users] GetMap vs GetFeatureinfo sort Message-ID: <1535132838369-0.post@n6.nabble.com> I have 2 superposed points with different attributes. When I render my classes, the rendering ordering is defined by the last geometry retrieved from the db. Then my last geometry (I defined an "order by fieldname asc" in my data section) is on the top of the getmap return image. On the other hand, I want to invert this sorting when I call a GetFeatureInfo, to sort this way "order by fieldname desc" Do you know if there is a way to change sorting order. I want to avoid using a runtime substitution. MapServer version 7.0.3 -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From joerg.thomsen at wheregroup.com Mon Aug 27 02:23:34 2018 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Mon, 27 Aug 2018 11:23:34 +0200 Subject: [mapserver-users] GetMap vs GetFeatureinfo sort In-Reply-To: <1535132838369-0.post@n6.nabble.com> References: <1535132838369-0.post@n6.nabble.com> Message-ID: <166d9568-7692-07e1-2ea4-7527a6edf2fc@wheregroup.com> Hi Lord, it is not possible to use different sql for getmap and getfeatureinfo. I'm not sure why you need the order for rendering and I think this could be solved otherwise. Could you give us some ore information, perhaps an example? If the 'sort by' is really needed you could sort the attributes within your featureinfo-template, e.g. using jquery datatables. J?rg Am 24.08.2018 um 19:47 schrieb pe_lord: > I have 2 superposed points with different attributes. > > When I render my classes, the rendering ordering is defined by the last > geometry retrieved from the db. > Then my last geometry (I defined an "order by fieldname asc" in my data > section) is on the top of the getmap return image. > > On the other hand, I want to invert this sorting when I call a > GetFeatureInfo, to sort this way "order by fieldname desc" > > Do you know if there is a way to change sorting order. > > I want to avoid using a runtime substitution. > > MapServer version 7.0.3 > > > > > -- > Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- ****************************************************************** FOSS Academy Sommerschule 2018 Alles Wichtige zur Erstellung einer GDI in nur 5 Tagen erlernen! https://www.foss-academy.com/kompaktkurse ***************************************************************** 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 pe_lord at protonmail.com Mon Aug 27 11:37:47 2018 From: pe_lord at protonmail.com (pe_lord) Date: Mon, 27 Aug 2018 11:37:47 -0700 (MST) Subject: [mapserver-users] GetMap vs GetFeatureinfo sort In-Reply-To: <166d9568-7692-07e1-2ea4-7527a6edf2fc@wheregroup.com> References: <1535132838369-0.post@n6.nabble.com> <166d9568-7692-07e1-2ea4-7527a6edf2fc@wheregroup.com> Message-ID: <1535395067936-0.post@n6.nabble.com> Thanks. Here more informations. I have 2 overlapping geometries. My class are based on a field ==> CLASSITEM "code_type" and appear in my mapfile in this order. CLASS NAME "Blue CLASS" EXPRESSION '1' STYLE SYMBOL "square" SIZE 8 COLOR 53 68 150 END END ... CLASS NAME "Red Class" EXPRESSION '4' STYLE SYMBOL "square" SIZE 8 COLOR 188 34 115 END END My data is stored in this order into PG, with this structure (id, code_type,geom): id1,4,geom id2,1,geom If I understand properly, my last geometrie (id2) is plotted on top of other classes. This is making sense. Otherwise, in the getfeatureinfo, the same order is kept, this a non-sense according to my classes's order. I would like to to present this data in a flipped order like, according to my classes's logic: id2,1 id1,4 I expect that the topmost feature returned in getfeatureinfo response correspond to the topmost feature drawn on map. I would like to have a constant response, independently from my template format (gml, html, json...) You will find an Here what I tried without succes: - flip my mapfile's classes - sort my data based on my field (code_type). In this case, either I have the getmap sorted in the right order, or the getfeatureinfo. Both behaviors are impossible at the same time. -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From joerg.thomsen at wheregroup.com Tue Aug 28 00:12:49 2018 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Tue, 28 Aug 2018 09:12:49 +0200 Subject: [mapserver-users] GetMap vs GetFeatureinfo sort In-Reply-To: <1535395067936-0.post@n6.nabble.com> References: <1535132838369-0.post@n6.nabble.com> <166d9568-7692-07e1-2ea4-7527a6edf2fc@wheregroup.com> <1535395067936-0.post@n6.nabble.com> Message-ID: <892a2fa8-0c95-04aa-5e32-36563edae70b@wheregroup.com> Hi, hm, I would have expected the classes to be drawn in the same order as in the mapfile. You could try to use the label-section with geomtransform 'labelpoint' [1], perhaps mapserver there takes care of the mapfile order... Another option would be to use grouped layers, I guess you found this already: https://gis.stackexchange.com/questions/71152/mapserver-layer-classes-display-order -> 2nd answer J?rg [1] https://mapserver.org/mapfile/label.html [2] https://mapserver.org/mapfile/geomtransform.html Am 27.08.2018 um 20:37 schrieb pe_lord: > Thanks. > > Here more informations. > > I have 2 overlapping geometries. > > My class are based on a field ==> CLASSITEM "code_type" and appear in my > mapfile in this order. > > CLASS > NAME "Blue CLASS" > EXPRESSION '1' > STYLE > SYMBOL "square" > SIZE 8 > COLOR 53 68 150 > END > END > ... > CLASS > NAME "Red Class" > EXPRESSION '4' > STYLE > SYMBOL "square" > SIZE 8 > COLOR 188 34 115 > END > END > > My data is stored in this order into PG, with this structure (id, > code_type,geom): > id1,4,geom > id2,1,geom > > If I understand properly, my last geometrie (id2) is plotted on top of other > classes. This is making sense. > > Otherwise, in the getfeatureinfo, the same order is kept, this a non-sense > according to my classes's order. > > I would like to to present this data in a flipped order like, according to > my classes's logic: > id2,1 > id1,4 > > > I expect that the topmost feature returned in getfeatureinfo response > correspond to the topmost feature drawn on map. I would like to have a > constant response, independently from my template format (gml, html, > json...) > > You will find an > > > > Here what I tried without succes: > - flip my mapfile's classes > - sort my data based on my field (code_type). In this case, either I have > the getmap sorted in the right order, or the getfeatureinfo. Both behaviors > are impossible at the same time. > > > > > > -- > Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- ****************************************************************** FOSS Academy Sommerschule 2018 Alles Wichtige zur Erstellung einer GDI in nur 5 Tagen erlernen! https://www.foss-academy.com/kompaktkurse ***************************************************************** 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 Tue Aug 28 02:33:54 2018 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 28 Aug 2018 09:33:54 +0000 Subject: [mapserver-users] GetMap vs GetFeatureinfo sort Message-ID: Hi, From https://mapserver.org/mapfile/layer.html "Inside a layer, only a single class will be used for the rendering of a feature. Each feature is tested against each class in the order in which they are defined in the mapfile. The first class that matches the its min/max scale constraints and its EXPRESSION check for the current feature will be used for rendering." So in your example first geometry is rendered first with color 53 68 150 and the second one above it with color 188 34 115. You wrote "I expect that the topmost feature returned in getfeatureinfo response correspond to the topmost feature drawn on map". If you think of the rendering process, of yourself painting with brushes, the topmost feature on the map is the one that is painted last. If I understand it ight you would like to get a reversed order for GetFeatureInfo. A workaround could be to make a copy of the layer you show on the map but with reversed sorting order. This layer would be used only for GetFeatureInfo requests. According to WMS specification QUERY_LAYERS must be a subset of LAYERS but if I remember right Mapserver is not strict with that and you could capture the GFT request on server side and change the name of the QUERY_LAYER on-the-fly. If Mapserver is strict, or you use some other server that follows the standard, you must also manipulate the request a bit more and add this extra layer into &LAYERS=. Of course if you can control the client side you can make it to alter the GetFeatureInfo instead. Another option could be to read the feature info with WFS GetFeature instead of WMS GetFeatureInfo. I also guess that heavy users of Mapserver will recommend you to use some MapScript dialect. Be aware that Mapserver does not offer a real WYSIWYG experience with GetFeatureInfo. You can get also something what you do not see because Mapserver does not filter the GFI result by rendering rules like min/maxscaledenominators. I also believe that even if you have classes only for expression values 1 and 4 in your mapfile the GetFeatureInfo finds everything that appears in the data. I am not sure about this, though. -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: 28. elokuuta 2018 10:13 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] GetMap vs GetFeatureinfo sort Hi, hm, I would have expected the classes to be drawn in the same order as in the mapfile. You could try to use the label-section with geomtransform 'labelpoint' [1], perhaps mapserver there takes care of the mapfile order... Another option would be to use grouped layers, I guess you found this already: https://gis.stackexchange.com/questions/71152/mapserver-layer-classes-display-order -> 2nd answer J?rg [1] https://mapserver.org/mapfile/label.html [2] https://mapserver.org/mapfile/geomtransform.html Am 27.08.2018 um 20:37 schrieb pe_lord: > Thanks. > > Here more informations. > > I have 2 overlapping geometries. > > My class are based on a field ==> CLASSITEM "code_type" and appear in > my mapfile in this order. > > CLASS > NAME "Blue CLASS" > EXPRESSION '1' > STYLE > SYMBOL "square" > SIZE 8 > COLOR 53 68 150 > END > END > ... > CLASS > NAME "Red Class" > EXPRESSION '4' > STYLE > SYMBOL "square" > SIZE 8 > COLOR 188 34 115 > END > END > > My data is stored in this order into PG, with this structure (id, > code_type,geom): > id1,4,geom > id2,1,geom > > If I understand properly, my last geometrie (id2) is plotted on top of > other classes. This is making sense. > > Otherwise, in the getfeatureinfo, the same order is kept, this a > non-sense according to my classes's order. > > I would like to to present this data in a flipped order like, > according to my classes's logic: > id2,1 > id1,4 > > > I expect that the topmost feature returned in getfeatureinfo response > correspond to the topmost feature drawn on map. I would like to have a > constant response, independently from my template format (gml, html, > json...) > > You will find an > > > > Here what I tried without succes: > - flip my mapfile's classes > - sort my data based on my field (code_type). In this case, either I > have the getmap sorted in the right order, or the getfeatureinfo. Both > behaviors are impossible at the same time. > > > > > > -- > Sent from: > http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- ****************************************************************** FOSS Academy Sommerschule 2018 Alles Wichtige zur Erstellung einer GDI in nur 5 Tagen erlernen! https://www.foss-academy.com/kompaktkurse ***************************************************************** 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 steve.lime at state.mn.us Tue Aug 28 05:35:14 2018 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 28 Aug 2018 12:35:14 +0000 Subject: [mapserver-users] GetMap vs GetFeatureinfo sort In-Reply-To: References: Message-ID: Another idea might be to add a couple of columns to the data called GetMap and GetFeatureInfo and store the appropriate values to get you the order you want in them. Then you can use runtime substitution in the DATA attribute to set the sort column based on the request type. E.g. DATA ?... ORDER BY %request% ...? You set validation on the the request accordingly. Might be some other SQL options to capitalize on. ?Steve ________________________________ From: mapserver-users on behalf of Rahkonen Jukka (MML) Sent: Tuesday, August 28, 2018 4:33:54 AM To: J?rg Thomsen (WhereGroup); mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GetMap vs GetFeatureinfo sort Hi, >From https://mapserver.org/mapfile/layer.html "Inside a layer, only a single class will be used for the rendering of a feature. Each feature is tested against each class in the order in which they are defined in the mapfile. The first class that matches the its min/max scale constraints and its EXPRESSION check for the current feature will be used for rendering." So in your example first geometry is rendered first with color 53 68 150 and the second one above it with color 188 34 115. You wrote "I expect that the topmost feature returned in getfeatureinfo response correspond to the topmost feature drawn on map". If you think of the rendering process, of yourself painting with brushes, the topmost feature on the map is the one that is painted last. If I understand it ight you would like to get a reversed order for GetFeatureInfo. A workaround could be to make a copy of the layer you show on the map but with reversed sorting order. This layer would be used only for GetFeatureInfo requests. According to WMS specification QUERY_LAYERS must be a subset of LAYERS but if I remember right Mapserver is not strict with that and you could capture the GFT request on server side and change the name of the QUERY_LAYER on-the-fly. If Mapserver is strict, or you use some other server that follows the standard, you must also manipulate the request a bit more and add this extra layer into &LAYERS=. Of course if you can control the client side you can make it to alter the GetFeatureInfo instead. Another option could be to read the feature info with WFS GetFeature instead of WMS GetFeatureInfo. I also guess that heavy users of Mapserver will recommend you to use some MapScript dialect. Be aware that Mapserver does not offer a real WYSIWYG experience with GetFeatureInfo. You can get also something what you do not see because Mapserver does not filter the GFI result by rendering rules like min/maxscaledenominators. I also believe that even if you have classes only for expression values 1 and 4 in your mapfile the GetFeatureInfo finds everything that appears in the data. I am not sure about this, though. -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: 28. elokuuta 2018 10:13 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] GetMap vs GetFeatureinfo sort Hi, hm, I would have expected the classes to be drawn in the same order as in the mapfile. You could try to use the label-section with geomtransform 'labelpoint' [1], perhaps mapserver there takes care of the mapfile order... Another option would be to use grouped layers, I guess you found this already: https://gis.stackexchange.com/questions/71152/mapserver-layer-classes-display-order -> 2nd answer J?rg [1] https://mapserver.org/mapfile/label.html [2] https://mapserver.org/mapfile/geomtransform.html Am 27.08.2018 um 20:37 schrieb pe_lord: > Thanks. > > Here more informations. > > I have 2 overlapping geometries. > > My class are based on a field ==> CLASSITEM "code_type" and appear in > my mapfile in this order. > > CLASS > NAME "Blue CLASS" > EXPRESSION '1' > STYLE > SYMBOL "square" > SIZE 8 > COLOR 53 68 150 > END > END > ... > CLASS > NAME "Red Class" > EXPRESSION '4' > STYLE > SYMBOL "square" > SIZE 8 > COLOR 188 34 115 > END > END > > My data is stored in this order into PG, with this structure (id, > code_type,geom): > id1,4,geom > id2,1,geom > > If I understand properly, my last geometrie (id2) is plotted on top of > other classes. This is making sense. > > Otherwise, in the getfeatureinfo, the same order is kept, this a > non-sense according to my classes's order. > > I would like to to present this data in a flipped order like, > according to my classes's logic: > id2,1 > id1,4 > > > I expect that the topmost feature returned in getfeatureinfo response > correspond to the topmost feature drawn on map. I would like to have a > constant response, independently from my template format (gml, html, > json...) > > You will find an > > > > Here what I tried without succes: > - flip my mapfile's classes > - sort my data based on my field (code_type). In this case, either I > have the getmap sorted in the right order, or the getfeatureinfo. Both > behaviors are impossible at the same time. > > > > > > -- > Sent from: > http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- ****************************************************************** FOSS Academy Sommerschule 2018 Alles Wichtige zur Erstellung einer GDI in nur 5 Tagen erlernen! https://www.foss-academy.com/kompaktkurse ***************************************************************** 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 _______________________________________________ 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 traviskirstine at gmail.com Tue Aug 28 06:10:57 2018 From: traviskirstine at gmail.com (Travis Kirstine) Date: Tue, 28 Aug 2018 09:10:57 -0400 Subject: [mapserver-users] scaletoken data or tileindex Message-ID: I'm trying to use the scaletoken with a raster layer that is represented by a combination of full resolution tiles (tileindex) and a stack of merged lower resolution geotiffs. Is is possible to use the scaletoken to use a combination of a TILEINDEX and DATA to call the source data? From the error log it appears to expect one or the other (DATA or TILEINDEX) LAYER NAME spot_z16 METADATA wms_title "Zone 16 Spot" wms_extent "275997 5109997 732003 6304003" END TYPE RASTER PROCESSING "RESAMPLE=BILINEAR" OFFSITE 0 0 0 PROJECTION "init=epsg:26916" END SCALETOKEN NAME "%pri%" VALUES "0" "spot_z16_rgb_2km_tindex" "100000" "z16_rgb_24m_mosaic" "800000" "z16_rgb_192m_mosaic" END END TILEINDEX "/maps/spot_tindex/%pri%" DATA "/maps/spot_overalls/%pri%.tif" END -------------- next part -------------- An HTML attachment was scrubbed... URL: From geoimse at gmail.com Tue Aug 28 11:31:47 2018 From: geoimse at gmail.com (ann) Date: Tue, 28 Aug 2018 11:31:47 -0700 (MST) Subject: [mapserver-users] INSPIRE xsd MapServer WFS 2.0 In-Reply-To: <1519307149384-0.post@n6.nabble.com> References: <1519307149384-0.post@n6.nabble.com> Message-ID: <1535481107605-0.post@n6.nabble.com> Hello, Did you solve this question about xsd? -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From bob.basques at ci.stpaul.mn.us Tue Aug 28 14:11:36 2018 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 28 Aug 2018 21:11:36 +0000 Subject: [mapserver-users] Offset a label based on map units? Message-ID: <39D38DAC-C40F-4AAE-B9D3-2A801F20CD76@ci.stpaul.mn.us> All, This is actually a gridding question I think, but, here goes anyway, I have a grid of polygons that I want to label, but I want to adjust the label position (OFFSET) based on ground units (not pixels) . Either from the edges in, or from the center out. Looks like OFFSET only understands pixels, even if UNITS is set. Anyone know of a way around this? Thanks bobb We learn from history that we do not learn from history. ~ George Wilhelm Hegel -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.marzocchi at gter.it Wed Aug 29 02:41:11 2018 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Wed, 29 Aug 2018 11:41:11 +0200 Subject: [mapserver-users] WCS exclude style from coverage Message-ID: <165850ee916.bc14b4e1111202.6763730256118688154@gter.it> Dear all,? I want to create a OWS server to publish raster data. I define CLASS and STYLE for WMS service and it works correctly.? It is possible to exclude CLASS and STYLE from WCS? Otherwise when I download the coverage I have the RGB bands and not the original data.? Thanks in advanced for your help.? R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpass at bgs.ac.uk Wed Aug 29 03:32:46 2018 From: jpass at bgs.ac.uk (Passmore, James H.) Date: Wed, 29 Aug 2018 10:32:46 +0000 Subject: [mapserver-users] Selected post Feb 22, 2018; 1:45pm Message-ID: As far as I know it isn't possible to deploy/serve a complex feature WFS such as https://inspire.ec.europa.eu/schemas/us-govserv/4.0/GovernmentalServices.xsd using MapServer. Only Simple Feature WFS is supported. James Passmore ------------------------------- British Geological Survey, Environmental Science Centre, KEYWORTH, United Kingdom, NG12 5GG orchid: https://orcid.org/0000-0002-9891-6265 ------------------------------- Phone: +44 (0)115 936 3125 ------------------------------- Skype: BGSjames ________________________________ 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 steve.lime at state.mn.us Wed Aug 29 09:53:47 2018 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 29 Aug 2018 16:53:47 +0000 Subject: [mapserver-users] Getting an empty MVT output for a point layer References: Message-ID: Found the issue ? clipping logic error. Will commit a fix today? From: Lime, Steve D (MNIT) Sent: Wednesday, August 22, 2018 9:11 AM To: 'Rahkonen Jukka (MML)' ; Caleb Lee ; mapserver-users at lists.osgeo.org Subject: RE: Getting an empty MVT output for a point layer A ticket would be terrific. I?m on this one? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (MML) Sent: Tuesday, August 21, 2018 8:28 AM To: Caleb Lee >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, I haven?t heard any feedback yet. Test data seems to be still available and I believe that the issue is real. It seems that nobody has bothered to create a ticket yet https://github.com/mapserver/mapserver/issues. -Jukka Rahkonen- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Caleb Lee L?hetetty: 21. elokuuta 2018 16:20 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, is there any update regarding this MVT output problem for point layers? Thanks, Caleb ________________________________ From: Rahkonen Jukka (MML) > Sent: Thursday, August 9, 2018 10:18 AM To: Lime, Steve D (MNIT); Caleb Lee; mapserver-users at lists.osgeo.org Subject: Re: Getting an empty MVT output for a point layer Hi, My colleague has suffered from the same issue. Here is a link to a directory with a mapfile and corresponding datasets (OSM data as GeoPackage and Natural earth populated places as shapefile) http://193.167.189.71/temppi/ -Jukka Rahkonen- L?hett?j?: Lime, Steve D (MNIT) [mailto:steve.lime at state.mn.us] L?hetetty: 8. elokuuta 2018 21:14 Vastaanottaja: Caleb Lee >; Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Aihe: RE: Getting an empty MVT output for a point layer I?ll have a look at this too. My demo instance had a point player so it certainly should be working. Can you share your data (contact me off list if you?d like)? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Caleb Lee Sent: Wednesday, August 08, 2018 12:40 PM To: Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer I will be away for a while so I cannot do that right now. However, I can do that probably early next week. If it helps, I just tried WMS request to generate both png and mvt and I got the similar result: 1. WMS request with FORMAT set to image/png - I got a png image with 50k points drawn) mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=image/png 2. WMS request with application/x-protobuf - got the same result like the following: nodesIdName(? x mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=application/x-protobuf Thanks, Caleb -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Wed Aug 29 12:52:14 2018 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 29 Aug 2018 19:52:14 +0000 Subject: [mapserver-users] Getting an empty MVT output for a point layer In-Reply-To: References: Message-ID: Fix is in place in the 7.2 branch. If folks would let me know how it goes I?d appreciate it. --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT) Sent: Wednesday, August 29, 2018 11:54 AM To: Rahkonen Jukka (MML) ; Caleb Lee ; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer Found the issue ? clipping logic error. Will commit a fix today? From: Lime, Steve D (MNIT) Sent: Wednesday, August 22, 2018 9:11 AM To: 'Rahkonen Jukka (MML)' >; Caleb Lee >; mapserver-users at lists.osgeo.org Subject: RE: Getting an empty MVT output for a point layer A ticket would be terrific. I?m on this one? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (MML) Sent: Tuesday, August 21, 2018 8:28 AM To: Caleb Lee >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, I haven?t heard any feedback yet. Test data seems to be still available and I believe that the issue is real. It seems that nobody has bothered to create a ticket yet https://github.com/mapserver/mapserver/issues. -Jukka Rahkonen- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Caleb Lee L?hetetty: 21. elokuuta 2018 16:20 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, is there any update regarding this MVT output problem for point layers? Thanks, Caleb ________________________________ From: Rahkonen Jukka (MML) > Sent: Thursday, August 9, 2018 10:18 AM To: Lime, Steve D (MNIT); Caleb Lee; mapserver-users at lists.osgeo.org Subject: Re: Getting an empty MVT output for a point layer Hi, My colleague has suffered from the same issue. Here is a link to a directory with a mapfile and corresponding datasets (OSM data as GeoPackage and Natural earth populated places as shapefile) http://193.167.189.71/temppi/ -Jukka Rahkonen- L?hett?j?: Lime, Steve D (MNIT) [mailto:steve.lime at state.mn.us] L?hetetty: 8. elokuuta 2018 21:14 Vastaanottaja: Caleb Lee >; Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Aihe: RE: Getting an empty MVT output for a point layer I?ll have a look at this too. My demo instance had a point player so it certainly should be working. Can you share your data (contact me off list if you?d like)? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Caleb Lee Sent: Wednesday, August 08, 2018 12:40 PM To: Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer I will be away for a while so I cannot do that right now. However, I can do that probably early next week. If it helps, I just tried WMS request to generate both png and mvt and I got the similar result: 1. WMS request with FORMAT set to image/png - I got a png image with 50k points drawn) mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=image/png 2. WMS request with application/x-protobuf - got the same result like the following: nodesIdName(? x mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=application/x-protobuf Thanks, Caleb -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Thu Aug 30 05:31:13 2018 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Thu, 30 Aug 2018 12:31:13 +0000 Subject: [mapserver-users] Getting an empty MVT output for a point layer Message-ID: Hi, I can?t really read the code but I still try to look at the changeset with layman eyes /* success if at least one line and not a degenerate bounding box */ - if(shape->numlines > 0 && (shape->bounds.minx != shape->bounds.maxx || shape->bounds.miny != shape->bounds.maxy)) + if(shape->numlines > 0 && (layer_type == MS_LAYER_POINT || (shape->bounds.minx != shape->bounds.maxx || shape->bounds.miny != shape->bounds.maxy))) return MS_SUCCESS; else return MS_FAILURE; I wonder two things: What happens now if the layer type is not MS_LAYER_POINT? What if layer is of type MS_LAYER_POINT and numlines=1, which means that the bounding box of the result set is just a point and minx=maxx and miny=maxy? -Jukka Rahkonen- L?hett?j?: Lime, Steve D (MNIT) [mailto:steve.lime at state.mn.us] L?hetetty: 29. elokuuta 2018 22:52 Vastaanottaja: Lime, Steve D (MNIT) >; Rahkonen Jukka (MML) >; Caleb Lee >; mapserver-users at lists.osgeo.org Aihe: RE: Getting an empty MVT output for a point layer Fix is in place in the 7.2 branch. If folks would let me know how it goes I?d appreciate it. --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT) Sent: Wednesday, August 29, 2018 11:54 AM To: Rahkonen Jukka (MML) >; Caleb Lee >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer Found the issue ? clipping logic error. Will commit a fix today? From: Lime, Steve D (MNIT) Sent: Wednesday, August 22, 2018 9:11 AM To: 'Rahkonen Jukka (MML)' >; Caleb Lee >; mapserver-users at lists.osgeo.org Subject: RE: Getting an empty MVT output for a point layer A ticket would be terrific. I?m on this one? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (MML) Sent: Tuesday, August 21, 2018 8:28 AM To: Caleb Lee >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, I haven?t heard any feedback yet. Test data seems to be still available and I believe that the issue is real. It seems that nobody has bothered to create a ticket yet https://github.com/mapserver/mapserver/issues. -Jukka Rahkonen- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Caleb Lee L?hetetty: 21. elokuuta 2018 16:20 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, is there any update regarding this MVT output problem for point layers? Thanks, Caleb -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Aug 30 08:07:28 2018 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 30 Aug 2018 15:07:28 +0000 Subject: [mapserver-users] Getting an empty MVT output for a point layer In-Reply-To: References: Message-ID: If the layer isn?t a point layer we need numlines>1 and a non-degenerate bounding box. If the layer is a point layer we only need numlines>1 (the actual point is stored in the line array). From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (MML) Sent: Thursday, August 30, 2018 7:31 AM To: Mapserver-Users (mapserver-users at lists.osgeo.org) Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, I can?t really read the code but I still try to look at the changeset with layman eyes /* success if at least one line and not a degenerate bounding box */ - if(shape->numlines > 0 && (shape->bounds.minx != shape->bounds.maxx || shape->bounds.miny != shape->bounds.maxy)) + if(shape->numlines > 0 && (layer_type == MS_LAYER_POINT || (shape->bounds.minx != shape->bounds.maxx || shape->bounds.miny != shape->bounds.maxy))) return MS_SUCCESS; else return MS_FAILURE; I wonder two things: What happens now if the layer type is not MS_LAYER_POINT? What if layer is of type MS_LAYER_POINT and numlines=1, which means that the bounding box of the result set is just a point and minx=maxx and miny=maxy? -Jukka Rahkonen- L?hett?j?: Lime, Steve D (MNIT) [mailto:steve.lime at state.mn.us] L?hetetty: 29. elokuuta 2018 22:52 Vastaanottaja: Lime, Steve D (MNIT) >; Rahkonen Jukka (MML) >; Caleb Lee >; mapserver-users at lists.osgeo.org Aihe: RE: Getting an empty MVT output for a point layer Fix is in place in the 7.2 branch. If folks would let me know how it goes I?d appreciate it. --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT) Sent: Wednesday, August 29, 2018 11:54 AM To: Rahkonen Jukka (MML) >; Caleb Lee >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer Found the issue ? clipping logic error. Will commit a fix today? From: Lime, Steve D (MNIT) Sent: Wednesday, August 22, 2018 9:11 AM To: 'Rahkonen Jukka (MML)' >; Caleb Lee >; mapserver-users at lists.osgeo.org Subject: RE: Getting an empty MVT output for a point layer A ticket would be terrific. I?m on this one? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (MML) Sent: Tuesday, August 21, 2018 8:28 AM To: Caleb Lee >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, I haven?t heard any feedback yet. Test data seems to be still available and I believe that the issue is real. It seems that nobody has bothered to create a ticket yet https://github.com/mapserver/mapserver/issues. -Jukka Rahkonen- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Caleb Lee L?hetetty: 21. elokuuta 2018 16:20 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, is there any update regarding this MVT output problem for point layers? Thanks, Caleb -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Aug 30 08:41:45 2018 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 30 Aug 2018 15:41:45 +0000 Subject: [mapserver-users] Getting an empty MVT output for a point layer In-Reply-To: References: Message-ID: I should add that if there?s a clearer way to do that I?m all ears. From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT) Sent: Thursday, August 30, 2018 10:07 AM To: Rahkonen Jukka (MML) ; Mapserver-Users (mapserver-users at lists.osgeo.org) Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer If the layer isn?t a point layer we need numlines>1 and a non-degenerate bounding box. If the layer is a point layer we only need numlines>1 (the actual point is stored in the line array). From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (MML) Sent: Thursday, August 30, 2018 7:31 AM To: Mapserver-Users (mapserver-users at lists.osgeo.org) > Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, I can?t really read the code but I still try to look at the changeset with layman eyes /* success if at least one line and not a degenerate bounding box */ - if(shape->numlines > 0 && (shape->bounds.minx != shape->bounds.maxx || shape->bounds.miny != shape->bounds.maxy)) + if(shape->numlines > 0 && (layer_type == MS_LAYER_POINT || (shape->bounds.minx != shape->bounds.maxx || shape->bounds.miny != shape->bounds.maxy))) return MS_SUCCESS; else return MS_FAILURE; I wonder two things: What happens now if the layer type is not MS_LAYER_POINT? What if layer is of type MS_LAYER_POINT and numlines=1, which means that the bounding box of the result set is just a point and minx=maxx and miny=maxy? -Jukka Rahkonen- L?hett?j?: Lime, Steve D (MNIT) [mailto:steve.lime at state.mn.us] L?hetetty: 29. elokuuta 2018 22:52 Vastaanottaja: Lime, Steve D (MNIT) >; Rahkonen Jukka (MML) >; Caleb Lee >; mapserver-users at lists.osgeo.org Aihe: RE: Getting an empty MVT output for a point layer Fix is in place in the 7.2 branch. If folks would let me know how it goes I?d appreciate it. --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT) Sent: Wednesday, August 29, 2018 11:54 AM To: Rahkonen Jukka (MML) >; Caleb Lee >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer Found the issue ? clipping logic error. Will commit a fix today? From: Lime, Steve D (MNIT) Sent: Wednesday, August 22, 2018 9:11 AM To: 'Rahkonen Jukka (MML)' >; Caleb Lee >; mapserver-users at lists.osgeo.org Subject: RE: Getting an empty MVT output for a point layer A ticket would be terrific. I?m on this one? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (MML) Sent: Tuesday, August 21, 2018 8:28 AM To: Caleb Lee >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, I haven?t heard any feedback yet. Test data seems to be still available and I believe that the issue is real. It seems that nobody has bothered to create a ticket yet https://github.com/mapserver/mapserver/issues. -Jukka Rahkonen- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Caleb Lee L?hetetty: 21. elokuuta 2018 16:20 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Getting an empty MVT output for a point layer Hi, is there any update regarding this MVT output problem for point layers? Thanks, Caleb -------------- next part -------------- An HTML attachment was scrubbed... URL: