From sdlime at gmail.com Tue Nov 1 18:25:56 2022 From: sdlime at gmail.com (Steve Lime) Date: Tue, 1 Nov 2022 20:25:56 -0500 Subject: [MapServer-users] Clipped labels in mapcache/mapserver map In-Reply-To: References: Message-ID: Have you tried a larger edge buffer? I suppose that?s tough to to test given the randomness. I?ll check my settings on a similar setup when I?m in the office tomorrow and let you know. It would be interesting to see the corresponding metatile to see if the label is whole there. I wouldn?t think so but having a reproducible test case would help immensely. Anyone know how to compute a metatile URL for a given tile x/y/z? ?Steve On Mon, Oct 31, 2022 at 10:16 AM Thomas Ellett von Brasch < Thomas.Ellett at kartverket.no> wrote: > Hi all, > > > > I'm really struggling to fix a longstanding issue with clipped labels in a > couple of our wmts services. > > I've tried following the mapserver/mapcache docs and numerous variations > of different attributes, but with no luck. > > > > The main problem bug fixing is that the issue seems to be quite random, > just popping up here and there. > > > > Examples can be seen in these urls: > > > > > https://norgeskart.no/#!?project=norgeskart&layers=1002&zoom=11&lat=6879652.31&lon=167744.51 > > > > (the 'Stor rar' and 'S' names in the centre of the map) > > > > > https://norgeskart.no/#!?project=norgeskart&layers=1002&zoom=6&lat=6440416.41&lon=127931.07 > > > > ('Kristiansan' , which should be 'Kristiansand') > > > > I have "labelcache_map_edge_buffer" "10" in the mapfile and > 10 set in the mapcache file. > > > > In the source WMS, the placenames layers are line layers (with very small > line geometries used just to give curved lines) and the layers (we have > several name layers for the different zoom levels, but they're all set up > in the same way) look like (truncated): > > > > LAYER > > NAME "N100Stedsnavn" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > PROCESSING "LABEL_NO_CLIP=True" > > TYPE LINE > > > > CLASS > > NAME "N100 Stedsnavn" > > EXPRESSION ([fmx_rotation] != 0) > > LABEL > > *PARTIALS FALSE* > > *ANGLE follow* > > ANTIALIAS TRUE > > FONT "verdana" > > SIZE [fontsize] > > COLOR [geodb_color] > > ENCODING "UTF-8" > > PRIORITY [fontsize] > > *FORCE FALSE* > > MINDISTANCE 50 > > OUTLINECOLOR 254 254 254 > > POSITION [horizontalalignment] > > TYPE TRUETYPE > > END > > TEXT "[textstring]" > > END > > END > > > > And the tileset definition in the mapcache config file looks like: > > > > > > norgeskart_bakgrunn > > norgeskart_bakgrunn > > > > Topografisk Norgeskart og dybdedata og svalbard minus > matrikkel > > Cache for Norgeskart > > > > googlemaps > > utm33n > > PNG > > *8 8* > > *10* > > > > > > Is it possible the metatiles being used in the original seed job and later > seeding jobs are different somehow? > > > > Given that the labelcache_map_edge_buffer is set (along with metabuffer) > and we have PARTIALS FALSE in the mapfile, I didn't think that cut labels > would be possible? > > > > Any thoughts or ideas would be great J > > > > Thanks in advance! > > > > Tom > > > > > > [image: cid:image001.jpg at 01D3A415.20CB4FE0] > > *Tom Ellett von Brasch* > Sjefsingeni?r > *Geodatatjenester* > > Direkte: 32 11 84 73 > > Mobil: 45806402 > > E-post: thomas.ellett at kartverket.no > > > Tlf. sentralbord: 32 11 80 00 > www.kartverket.no > > > > > _______________________________________________ > 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: image003.jpg Type: image/jpeg Size: 1605 bytes Desc: not available URL: From bob.basques at ci.stpaul.mn.us Wed Nov 2 16:35:26 2022 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 2 Nov 2022 23:35:26 +0000 Subject: [MapServer-users] OSGeo Local Chapter meeting next week, any takers for doing a virtual presentation? Message-ID: <4480F3DA-1BEF-48FB-947C-7DB471AA46E6@ci.stpaul.mn.us> All, Summer is rolling to a close, so sending out this request for presenters for OSGeo Local Chapter meeting, next week, Nov. 9th @ 4:30 I?ll set up the Meeting and Recording aspects, all you?ll need to do is present. Anything Geo . . . Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Thu Nov 3 06:56:32 2022 From: sdlime at gmail.com (Steve Lime) Date: Thu, 3 Nov 2022 08:56:32 -0500 Subject: [MapServer-users] Clipped labels in mapcache/mapserver map In-Reply-To: References: Message-ID: So I checked a map here and found similar settings: - label-level: PARTIALS FALSE, - map-level metadata: "labelcache_map_edge_buffer" "-20" - mapcache: 20 I don't use the LABEL_NO_CLIP processing directive. The one obvious difference is the negative value for the map edge buffer - I know negative values were originally how that was specified but I thought we generalized that value some time ago. I wonder if the "ANGLE follow" might be the cause - perhaps there's an error in the size computation of the rotated text - perhaps at different position values? Just guessing though. The only way to easily debug/test is going to be examining a metatile that results in a clipped label. You could delete an affected tile and then let mapcache generate a replacement. You should be able to pick up the metatile WMS call from the logs. --Steve On Tue, Nov 1, 2022 at 8:25 PM Steve Lime wrote: > Have you tried a larger edge buffer? I suppose that?s tough to to test > given the randomness. I?ll check my settings on a similar setup when I?m in > the office tomorrow and let you know. It would be interesting to see the > corresponding metatile to see if the label is whole there. I wouldn?t think > so but having a reproducible test case would help immensely. > > Anyone know how to compute a metatile URL for a given tile x/y/z? > > ?Steve > > On Mon, Oct 31, 2022 at 10:16 AM Thomas Ellett von Brasch < > Thomas.Ellett at kartverket.no> wrote: > >> Hi all, >> >> >> >> I'm really struggling to fix a longstanding issue with clipped labels in >> a couple of our wmts services. >> >> I've tried following the mapserver/mapcache docs and numerous variations >> of different attributes, but with no luck. >> >> >> >> The main problem bug fixing is that the issue seems to be quite random, >> just popping up here and there. >> >> >> >> Examples can be seen in these urls: >> >> >> >> >> https://norgeskart.no/#!?project=norgeskart&layers=1002&zoom=11&lat=6879652.31&lon=167744.51 >> >> >> >> (the 'Stor rar' and 'S' names in the centre of the map) >> >> >> >> >> https://norgeskart.no/#!?project=norgeskart&layers=1002&zoom=6&lat=6440416.41&lon=127931.07 >> >> >> >> ('Kristiansan' , which should be 'Kristiansand') >> >> >> >> I have "labelcache_map_edge_buffer" "10" in the mapfile and >> 10 set in the mapcache file. >> >> >> >> In the source WMS, the placenames layers are line layers (with very small >> line geometries used just to give curved lines) and the layers (we have >> several name layers for the different zoom levels, but they're all set up >> in the same way) look like (truncated): >> >> >> >> LAYER >> >> NAME "N100Stedsnavn" >> >> PROCESSING "CLOSE_CONNECTION=DEFER" >> >> PROCESSING "LABEL_NO_CLIP=True" >> >> TYPE LINE >> >> >> >> CLASS >> >> NAME "N100 Stedsnavn" >> >> EXPRESSION ([fmx_rotation] != 0) >> >> LABEL >> >> *PARTIALS FALSE* >> >> *ANGLE follow* >> >> ANTIALIAS TRUE >> >> FONT "verdana" >> >> SIZE [fontsize] >> >> COLOR [geodb_color] >> >> ENCODING "UTF-8" >> >> PRIORITY [fontsize] >> >> *FORCE FALSE* >> >> MINDISTANCE 50 >> >> OUTLINECOLOR 254 254 254 >> >> POSITION [horizontalalignment] >> >> TYPE TRUETYPE >> >> END >> >> TEXT "[textstring]" >> >> END >> >> END >> >> >> >> And the tileset definition in the mapcache config file looks like: >> >> >> >> >> >> norgeskart_bakgrunn >> >> norgeskart_bakgrunn >> >> >> >> Topografisk Norgeskart og dybdedata og svalbard minus >> matrikkel >> >> Cache for Norgeskart >> >> >> >> googlemaps >> >> utm33n >> >> PNG >> >> *8 8* >> >> *10* >> >> >> >> >> >> Is it possible the metatiles being used in the original seed job and >> later seeding jobs are different somehow? >> >> >> >> Given that the labelcache_map_edge_buffer is set (along with metabuffer) >> and we have PARTIALS FALSE in the mapfile, I didn't think that cut labels >> would be possible? >> >> >> >> Any thoughts or ideas would be great J >> >> >> >> Thanks in advance! >> >> >> >> Tom >> >> >> >> >> >> [image: cid:image001.jpg at 01D3A415.20CB4FE0] >> >> *Tom Ellett von Brasch* >> Sjefsingeni?r >> *Geodatatjenester* >> >> Direkte: 32 11 84 73 >> >> Mobil: 45806402 >> >> E-post: thomas.ellett at kartverket.no >> >> >> Tlf. sentralbord: 32 11 80 00 >> www.kartverket.no >> >> >> >> >> _______________________________________________ >> 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: image003.jpg Type: image/jpeg Size: 1605 bytes Desc: not available URL: From Thomas.Ellett at kartverket.no Thu Nov 3 07:32:55 2022 From: Thomas.Ellett at kartverket.no (Thomas Ellett von Brasch) Date: Thu, 3 Nov 2022 14:32:55 +0000 Subject: [MapServer-users] Clipped labels in mapcache/mapserver map In-Reply-To: References: Message-ID: Thanks for taking a look Steve! I wondered about the angle follow as well, but I?ve been hoping its not that as it?d be a real shame to have to lose those. And I?ve tried with both negative and positive values for map edge buffer, but it didn?t seem to make a difference, and I read somewhere (mapserver dcos I guess ?) that the absolute value is now used. I?ll try recreating a single metatile and let you know what happens. /Tom Fra: Steve Lime Sendt: torsdag 3. november 2022 14:57 Til: Thomas Ellett von Brasch Kopi: mapserver-users at lists.osgeo.org Emne: Re: [MapServer-users] Clipped labels in mapcache/mapserver map VARSEL: Avsenderen er fra utenfra organisasjonen. V?r trygg p? innholdet f?r du trykker p? linker eller ?pner vedlegg. Er du i tvil tar du kontakt med IT Servicedesk. So I checked a map here and found similar settings: * label-level: PARTIALS FALSE, * map-level metadata: "labelcache_map_edge_buffer" "-20" * mapcache: 20 I don't use the LABEL_NO_CLIP processing directive. The one obvious difference is the negative value for the map edge buffer - I know negative values were originally how that was specified but I thought we generalized that value some time ago. I wonder if the "ANGLE follow" might be the cause - perhaps there's an error in the size computation of the rotated text - perhaps at different position values? Just guessing though. The only way to easily debug/test is going to be examining a metatile that results in a clipped label. You could delete an affected tile and then let mapcache generate a replacement. You should be able to pick up the metatile WMS call from the logs. --Steve On Tue, Nov 1, 2022 at 8:25 PM Steve Lime > wrote: Have you tried a larger edge buffer? I suppose that?s tough to to test given the randomness. I?ll check my settings on a similar setup when I?m in the office tomorrow and let you know. It would be interesting to see the corresponding metatile to see if the label is whole there. I wouldn?t think so but having a reproducible test case would help immensely. Anyone know how to compute a metatile URL for a given tile x/y/z? ?Steve On Mon, Oct 31, 2022 at 10:16 AM Thomas Ellett von Brasch > wrote: Hi all, I'm really struggling to fix a longstanding issue with clipped labels in a couple of our wmts services. I've tried following the mapserver/mapcache docs and numerous variations of different attributes, but with no luck. The main problem bug fixing is that the issue seems to be quite random, just popping up here and there. Examples can be seen in these urls: https://norgeskart.no/#!?project=norgeskart&layers=1002&zoom=11&lat=6879652.31&lon=167744.51 (the 'Stor rar' and 'S' names in the centre of the map) https://norgeskart.no/#!?project=norgeskart&layers=1002&zoom=6&lat=6440416.41&lon=127931.07 ('Kristiansan' , which should be 'Kristiansand') I have "labelcache_map_edge_buffer" "10" in the mapfile and 10 set in the mapcache file. In the source WMS, the placenames layers are line layers (with very small line geometries used just to give curved lines) and the layers (we have several name layers for the different zoom levels, but they're all set up in the same way) look like (truncated): LAYER NAME "N100Stedsnavn" PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "LABEL_NO_CLIP=True" TYPE LINE CLASS NAME "N100 Stedsnavn" EXPRESSION ([fmx_rotation] != 0) LABEL PARTIALS FALSE ANGLE follow ANTIALIAS TRUE FONT "verdana" SIZE [fontsize] COLOR [geodb_color] ENCODING "UTF-8" PRIORITY [fontsize] FORCE FALSE MINDISTANCE 50 OUTLINECOLOR 254 254 254 POSITION [horizontalalignment] TYPE TRUETYPE END TEXT "[textstring]" END END And the tileset definition in the mapcache config file looks like: norgeskart_bakgrunn norgeskart_bakgrunn Topografisk Norgeskart og dybdedata og svalbard minus matrikkel Cache for Norgeskart googlemaps utm33n PNG 8 8 10 Is it possible the metatiles being used in the original seed job and later seeding jobs are different somehow? Given that the labelcache_map_edge_buffer is set (along with metabuffer) and we have PARTIALS FALSE in the mapfile, I didn't think that cut labels would be possible? Any thoughts or ideas would be great ? Thanks in advance! Tom [cid:image001.jpg at 01D8EF99.3F3CBED0] Tom Ellett von Brasch Sjefsingeni?r Geodatatjenester Direkte: 32 11 84 73 Mobil: 45806402 E-post: thomas.ellett at kartverket.no Tlf. sentralbord: 32 11 80 00 www.kartverket.no _______________________________________________ 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: image001.jpg Type: image/jpeg Size: 1605 bytes Desc: image001.jpg URL: From jcbastin at thelis.be Mon Nov 7 07:23:10 2022 From: jcbastin at thelis.be (Jean-Christophe Bastin) Date: Mon, 7 Nov 2022 15:23:10 +0000 Subject: [MapServer-users] readGIF error meaning ? Message-ID: Hello, I have many map files and I'm trying to get legends from them. I followed the documentation I found : https://mapserver.org/ogc/wms_server.html#getlegendgraphic-request The map file I test follows the requirements. I tried many calls : http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.0.0 http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.1.0 http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.1.1 http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.3.0&SLD_VERSION=1.1.0 Each of them give me the error : readGIF(): General error message. corrupted gif image?: Failed to read from file What does that mean ? Am I missing a parameter in my call or something more in the map file that is not in the documentation ? Or is it the kind of generic error "I can't generate your legend, just find by yourself why" ? XD Many thanks ! JCB -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Nov 7 09:07:36 2022 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 7 Nov 2022 13:07:36 -0400 Subject: [MapServer-users] readGIF error meaning ? In-Reply-To: References: Message-ID: <956f268b-e87d-9fcf-a769-56f5c1932fe3@gatewaygeomatics.com> Hello JC, If you are using MS4W, you can test a GetLegendGraphic request by using the local demo WMS service that comes with every MS4W install, out-of-the-box, such as: https://ms4w.dev/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/local.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getlegendgraphic&layer=countries&FORMAT=image/png (you should be able to modify the url above for 127.0.0.1/ instead) If that works locally for you, just follow the local-demo.map, for your own mapfile. -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2022-11-07 11:23 a.m., Jean-Christophe Bastin wrote: > Hello, > > I have many map files and I?m trying to get legends from them. > > I followed the documentation I found : > https://mapserver.org/ogc/wms_server.html#getlegendgraphic-request > > > The map file I test follows the requirements. I tried many calls : > > http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.0.0 > > http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.1.0 > > http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.1.1 > > http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.3.0&SLD_VERSION=1.1.0 > > Each of them give me the error : > > readGIF(): General error message. corrupted gif image?: Failed to read > from file > > What does that mean ? Am I missing a parameter in my call or something > more in the map file that is not in the documentation ? > > Or is it the kind of generic error ?I can?t generate your legend, just > find by yourself why? ? XD > > Many thanks ! > > *JCB* > From wouter.visscher at gmail.com Tue Nov 8 05:43:05 2022 From: wouter.visscher at gmail.com (Wouter Visscher) Date: Tue, 8 Nov 2022 14:43:05 +0100 Subject: [MapServer-users] Trying to get the right transformation with Mapserver 8.0.0 + PROJ 9.1.0 Message-ID: Hi, I'm struggling a bit with Mapserver (8.0.0) + PROJ (9.1.0) getting it to use the right transformation (RDTRANS2018) rules. I have a (Docker) environment with - PROJ 9.1.0 - GDAL 3.5.2 - Mapserver 8.0.0 (branch-8-0) When I run cs2cs (PROJ) the output is correct (in order words what I expect) going from EPSG:28992 -> EPSG:4258. With PROJ_DEBUG on I can verify that is calling the right tif (nl_nsgi_rdtrans2018.tif in this case) Moving up the chain by using GDAL (ogr2ogr GPKG EPSG:28992 -> GPKG EPSG:4258) I get the same correct result. But putting it all together with Mapserver I'm not seeing the same result and I'm getting results +100m from where they should be. The strange thing is when I use EPSG:25831 (ETRS89 / UTM zone 31N, in meters) instead of EPSG:4258 (ETRS89, degree) the results are correctly translated. (also using the nl_nsgi_rdtrans2018.tif when called with cs2cs) Mapserver also seems to use the correct PROJ 9.1.0, when I alter PROJ_DATA or remove the proj.db it says it's missing them. Also using different data sources like GPKG, FGB, and so on doesn't seem to change this behaviour. Does anyone know what could be causing this or advice on how to further investigate the issue? Regards, Wouter -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Nov 8 06:00:12 2022 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 8 Nov 2022 10:00:12 -0400 Subject: [MapServer-users] Trying to get the right transformation with Mapserver 8.0.0 + PROJ 9.1.0 In-Reply-To: References: Message-ID: <335b5552-8b6f-eaac-ea07-7698e71d6a5a@gatewaygeomatics.com> Hi Wouter, when I get stuck like this, the first thing I do is compile 'master' of PROJ, GDAL, and also MapServer, and then re-try. Once that fails then I know I'm officially stuck :) -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2022-11-08 9:43 a.m., Wouter Visscher wrote: > Hi, > > I'm struggling a bit with Mapserver (8.0.0) + PROJ (9.1.0) getting it to > use the right transformation (RDTRANS2018) rules. > > I have a (Docker) environment with > - PROJ 9.1.0 > - GDAL 3.5.2 > - Mapserver 8.0.0 (branch-8-0) > > When I run cs2cs (PROJ) the output is correct (in order words what I > expect) going from EPSG:28992 -> EPSG:4258. > With PROJ_DEBUG on I can verify that is calling the right tif > (nl_nsgi_rdtrans2018.tif in this case) > Moving up the chain by using GDAL (ogr2ogr GPKG EPSG:28992 -> GPKG > EPSG:4258) I get the same correct result. > > But putting it all together with Mapserver I'm not seeing the same > result and I'm getting results +100m from where they should be. > The strange thing is when I use EPSG:25831 (ETRS89 / UTM zone 31N, in > meters) instead of EPSG:4258 (ETRS89, degree) the results are correctly > translated. (also using the nl_nsgi_rdtrans2018.tif when called with cs2cs) > > Mapserver also seems to use the correct PROJ 9.1.0, when I alter > PROJ_DATA or remove the proj.db it says it's missing them. > Also using different data sources like GPKG, FGB, and so on doesn't seem > to change this behaviour. > > Does anyone know what could be causing this or advice on how to further > investigate the issue? > > Regards, > Wouter > > From bob.basques at ci.stpaul.mn.us Tue Nov 8 14:30:43 2022 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 8 Nov 2022 22:30:43 +0000 Subject: [MapServer-users] OSGeo Meeting - Twin Cities Chapter (aka TCMUG) Message-ID: <299A5D39-1D9D-4C0C-A2F2-85FACA73411A@ci.stpaul.mn.us> Hello all, Had a smaller group Last month, but the numbers are growing moving into fall. Going with another face to face meeting this month at the Keg and Case @ 928 7th Street W. Come and join the Geo conversations. When: 4:30 Pm. Wednesday Nov. 9th. I?ll find a spot on the second level. bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Thomas.Ellett at kartverket.no Wed Nov 9 00:00:14 2022 From: Thomas.Ellett at kartverket.no (Thomas Ellett von Brasch) Date: Wed, 9 Nov 2022 08:00:14 +0000 Subject: [MapServer-users] MapServer-users Digest, Vol 178, Issue 3 In-Reply-To: References: Message-ID: I've now had time to look closer at the metatiles being generated, and unfortunately (or fortunately I suppose) it led me to my own error, an old seed job I still had running with a different metatile size set. So I can at least confirm that mapcache seems to be behaving absolutely correctly regarding metatile generation. Just to clarify the error for anyone reading the thread and having similar issues; I had defined an 8x8 metatile in the tileset in the mapcache configuration file, while using a 5x5 metatile in an old seeding job that is still running now and again. That caused labels to be clipped in some places where a 5x5 metatile intersected with an earlier generated 8x8 metatile. Thanks again for looking into it and pointing me in the right direction Steve! /Tom ---------------------------------------------------------------------- Message: 1 Date: Thu, 3 Nov 2022 14:32:55 +0000 From: Thomas Ellett von Brasch To: Steve Lime Cc: "mapserver-users at lists.osgeo.org" Subject: Re: [MapServer-users] Clipped labels in mapcache/mapserver map Message-ID: Content-Type: text/plain; charset="utf-8" Thanks for taking a look Steve! I wondered about the angle follow as well, but I?ve been hoping its not that as it?d be a real shame to have to lose those. And I?ve tried with both negative and positive values for map edge buffer, but it didn?t seem to make a difference, and I read somewhere (mapserver dcos I guess ?) that the absolute value is now used. I?ll try recreating a single metatile and let you know what happens. /Tom Fra: Steve Lime Sendt: torsdag 3. november 2022 14:57 Til: Thomas Ellett von Brasch Kopi: mapserver-users at lists.osgeo.org Emne: Re: [MapServer-users] Clipped labels in mapcache/mapserver map VARSEL: Avsenderen er fra utenfra organisasjonen. V?r trygg p? innholdet f?r du trykker p? linker eller ?pner vedlegg. Er du i tvil tar du kontakt med IT Servicedesk. So I checked a map here and found similar settings: * label-level: PARTIALS FALSE, * map-level metadata: "labelcache_map_edge_buffer" "-20" * mapcache: 20 I don't use the LABEL_NO_CLIP processing directive. The one obvious difference is the negative value for the map edge buffer - I know negative values were originally how that was specified but I thought we generalized that value some time ago. I wonder if the "ANGLE follow" might be the cause - perhaps there's an error in the size computation of the rotated text - perhaps at different position values? Just guessing though. The only way to easily debug/test is going to be examining a metatile that results in a clipped label. You could delete an affected tile and then let mapcache generate a replacement. You should be able to pick up the metatile WMS call from the logs. --Steve On Tue, Nov 1, 2022 at 8:25 PM Steve Lime > wrote: Have you tried a larger edge buffer? I suppose that?s tough to to test given the randomness. I?ll check my settings on a similar setup when I?m in the office tomorrow and let you know. It would be interesting to see the corresponding metatile to see if the label is whole there. I wouldn?t think so but having a reproducible test case would help immensely. Anyone know how to compute a metatile URL for a given tile x/y/z? ?Steve On Mon, Oct 31, 2022 at 10:16 AM Thomas Ellett von Brasch > wrote: Hi all, I'm really struggling to fix a longstanding issue with clipped labels in a couple of our wmts services. I've tried following the mapserver/mapcache docs and numerous variations of different attributes, but with no luck. The main problem bug fixing is that the issue seems to be quite random, just popping up here and there. Examples can be seen in these urls: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnorgeskart.no%2F%23!%3Fproject%3Dnorgeskart%26layers%3D1002%26zoom%3D11%26lat%3D6879652.31%26lon%3D167744.51&data=05%7C01%7CThomas.Ellett%40kartverket.no%7C7a8684e02d25402c719308dabdaa5a19%7C7f74c8a243ce46b2b0e8b6306cba73a3%7C0%7C0%7C638030836608821150%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Ppp59Dnz9kMrQASI3pZ8ydYTlWWk0qejRvbS2ialB8g%3D&reserved=0 (the 'Stor rar' and 'S' names in the centre of the map) https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnorgeskart.no%2F%23!%3Fproject%3Dnorgeskart%26layers%3D1002%26zoom%3D6%26lat%3D6440416.41%26lon%3D127931.07&data=05%7C01%7CThomas.Ellett%40kartverket.no%7C7a8684e02d25402c719308dabdaa5a19%7C7f74c8a243ce46b2b0e8b6306cba73a3%7C0%7C0%7C638030836608821150%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=xkIvX81jjijj9xPdZajPvUYdjMJwjD%2Fi19VMcy7wh2g%3D&reserved=0 ('Kristiansan' , which should be 'Kristiansand') I have "labelcache_map_edge_buffer" "10" in the mapfile and 10 set in the mapcache file. In the source WMS, the placenames layers are line layers (with very small line geometries used just to give curved lines) and the layers (we have several name layers for the different zoom levels, but they're all set up in the same way) look like (truncated): LAYER NAME "N100Stedsnavn" PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "LABEL_NO_CLIP=True" TYPE LINE CLASS NAME "N100 Stedsnavn" EXPRESSION ([fmx_rotation] != 0) LABEL PARTIALS FALSE ANGLE follow ANTIALIAS TRUE FONT "verdana" SIZE [fontsize] COLOR [geodb_color] ENCODING "UTF-8" PRIORITY [fontsize] FORCE FALSE MINDISTANCE 50 OUTLINECOLOR 254 254 254 POSITION [horizontalalignment] TYPE TRUETYPE END TEXT "[textstring]" END END And the tileset definition in the mapcache config file looks like: norgeskart_bakgrunn norgeskart_bakgrunn Topografisk Norgeskart og dybdedata og svalbard minus matrikkel Cache for Norgeskart googlemaps utm33n PNG 8 8 10 Is it possible the metatiles being used in the original seed job and later seeding jobs are different somehow? Given that the labelcache_map_edge_buffer is set (along with metabuffer) and we have PARTIALS FALSE in the mapfile, I didn't think that cut labels would be possible? Any thoughts or ideas would be great ? Thanks in advance! Tom ------------------------------ End of MapServer-users Digest, Vol 178, Issue 3 *********************************************** From trygve at aspenes.priv.no Wed Nov 9 03:30:57 2022 From: trygve at aspenes.priv.no (Trygve Aspenes) Date: Wed, 09 Nov 2022 12:30:57 +0100 Subject: [MapServer-users] mapserver v8.0.0, ogcapi feature and datetime/time Message-ID: <9e79c0642e5b3443554f20d47f735b4d@aspenes.priv.no> Hi I have been looking at mapserver v8.0.0 and the ogcapi feature. As far as I understand from documentation only the feature ogcapi is implemented https://mapserver.org/ogc/ogc_api.html#table-of-contents I follow this and get the api working, i.e. I get up the website(using the templates from share/ogcapi/templates/html-bootstrap4.). When I try it out using Get items I fill in bbox coordinates and get expected results. Doing the same on command line with f=json I get something like: {"features":[{"geometry":{"coordinates":[12.15,50.074201],"type":"Point"},"id":"1","properties":{"ID":1,"epoch":1371747619.972},"type":"Feature"},{"geometry":{"coordinates":[10.8405,48.6999],"type":"Point"},"id":"5","properties":{"ID":5,"epoch":1371747620.317},"type":"Feature"},{"geometry":{"coordinates":[11.5641,52.026301],"type":"Point"},"id":"6","properties":{"ID":6,"epoch":1371747620.319},"type":"Feature"},{"geometry":{"coordinates":[12.2634,50.5764],"type":"Point"},"id":"7","properties":{"ID":7,"epoch":1371747620.325},"type":"Feature"},{"geometry":{"coordinates":[10.843201,48.2706],"type":"Point"},"id":"10","properties":{"ID":10,"epoch":1371747620.613},"type":"Feature"},{"geometry":{"coordinates":[12.7035,50.6439],"type":"Point"},"id":"11","properties":{"ID":11,"epoch":1371747620.62},"type":"Feature"},{"geometry":{"coordinates":[12.285,51.300001],"type":"Point"},"id":"12","properties":{"ID":12,"epoch":1371747620.72},"type":"Feature"},{"geometry":{"coordinates":[16.278301,52.5042 01],"type":"Point"},"id":"13","properties":{"ID":13,"epoch":1371747620.73},"type":"Feature"},{"geometry":{"coordinates":[12.2256,51.624],"type":"Point"},"id":"14","properties":{"ID":14,"epoch":1371747620.782},"type":"Feature"},{"geometry":{"coordinates":[10.8864,48.9861],"type":"Point"},"id":"15","properties":{"ID":15,"epoch":1371747620.787},"type":"Feature"}],"links":[{"href":"http://localhost:8080/mapserverapi/test_mapfile/ogcapi/collections/li_spatialite_demo_wfs/items?f=json&limit=10&offset=0","rel":"self","title":"Items for this collection as GeoJSON","type":"application/geo+json"},{"href":"http://localhost:8080/mapserverapi/test_mapfile/ogcapi/collections/li_spatialite_demo_wfs/items?f=html&limit=10&offset=0","rel":"alternate","title":"Items for this collection as HTML","type":"text/html"},{"href":"http://localhost:8080/mapserverapi/test_mapfile/ogcapi/collections/li_spatialite_demo_wfs/items?f=json&limit=10&offset=10","rel":"next","title":"next page","type":"application/geo+json"}],"numberMatched":516,"numberReturned":10,"type":"FeatureCollection"} But I don't understand how to use the datetime. I see from the ogcapi features docs that this is required: https://docs.opengeospatial.org/is/17-069r3/17-069r3.html#_parameter_datetime in the implementation. So that's fine. I have an idea that the datetime should work using run-time substitution https://mapserver.org/cgi/runsub.html#table-of-contents so I construct my layer query(my data is sqlite) CONNECTIONTYPE OGR CONNECTION "" DATA "select ogc_fid as ID, * from li_spatialite_demo where epoch > unixepoch('%datetime%')-1 and epoch <= unixepoch('%datetime%')+1" But this does not seem to work, at least return no features; no error messages in the log as far as I can see curl -s 'http://localhost:8080/mapserverapi/test_mapfile/ogcapi/collections/li_spatialite_demo_wfs/items?f=json&bbox=0,40,20,60&datetime=2013-06-20T07%3A00%3A00Z&offset=0&limit=10' {"features":[],"links":[{"href":"http://localhost:8080/mapserverapi/test_mapfile/ogcapi/collections/li_spatialite_demo_wfs/items?f=json&limit=10&offset=0","rel":"self","title":"Items for this collection as GeoJSON","type":"application/geo+json"},{"href":"http://localhost:8080/mapserverapi/test_mapfile/ogcapi/collections/li_spatialite_demo_wfs/items?f=html&limit=10&offset=0","rel":"alternate","title":"Items for this collection as HTML","type":"text/html"}],"numberMatched":0,"numberReturned":0,"type":"FeatureCollection"} If I hardcode in DATA for datetime I get one feature as expected: DATA "select ogc_fid as ID, * from li_spatialite_demo where epoch > unixepoch('2013-06-20T07:00:00Z')-1 and epoch <= unixepoch('2013-06-20T07:00:00Z')+1" curl -s 'http://localhost:8080/mapserverapi/test_mapfile/ogcapi/collections/li_spatialite_demo_wfs/items?f=json&bbox=0,40,20,60&offset=0&limit=10' {"features":[{"geometry":{"coordinates":[6.9066,49.8582],"type":"Point"},"id":"602","properties":{"ID":602,"epoch":1371711600.409},"type":"Feature"}],"links":[{"href":"http://localhost:8080/mapserverapi/test_mapfile/ogcapi/collections/li_spatialite_demo_wfs/items?f=json&limit=10&offset=0","rel":"self","title":"Items for this collection as GeoJSON","type":"application/geo+json"},{"href":"http://localhost:8080/mapserverapi/test_mapfile/ogcapi/collections/li_spatialite_demo_wfs/items?f=html&limit=10&offset=0","rel":"alternate","title":"Items for this collection as HTML","type":"text/html"}],"numberMatched":1,"numberReturned":1,"type":"FeatureCollection"} If I change the DATA to this: DATA "select ogc_fid as ID, * from li_spatialite_demo" I get expected features, but of course datetime is not used This got a bit long, but my question is how to use the datetime query parameter with mapserver ogcapi features. Trygve Aspenes From richard.greenwood at gmail.com Wed Nov 9 17:59:33 2022 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 9 Nov 2022 18:59:33 -0700 Subject: [MapServer-users] using SCALETOKEN in an EXPRESSION Message-ID: Can anyone tell me what's wrong with my EXPRESSION below? I'm trying to filter features from the National Hydrology Dataset based on scale using SCALETOKEN and I can't seem to get it right. [Visibility] is a field in the data that suggests the scale at which a feature should be shown. Thanks! LAYER NAME "flowline" TYPE line DATA "shapefiles3857/nhd/flowline" SCALETOKEN NAME "%priority%" VALUES "0" "0" "24000" "24000" "50000" "50000" "100000" "100000" "250000" "250000" "500000" "500000" "1000000" "1000000" "2000000" "2000000" "5000000" "5000000" END END CLASS EXPRESSION ([Visibility] > %priority%) STYLE COLOR 158 196 255 MINSIZE 1 SIZE 3 MAXSIZE 6 END END END -- Richard W. Greenwood www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Thu Nov 10 00:29:25 2022 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Thu, 10 Nov 2022 08:29:25 +0000 Subject: [MapServer-users] using SCALETOKEN in an EXPRESSION In-Reply-To: References: Message-ID: <43f09c5d5f174456826e12c550b0470e@sid.sachsen.de> According to RFC 86 SCALETOKENs are used to replace tokens inside a layer?s DATA statement - so it might simply not work within class expressions. As a workaround you might use MINSCALEDENOM and MAXSCALEDENOM within CLASS. Kind regards, Andreas -----Urspr?ngliche Nachricht----- Von: MapServer-users Im Auftrag von Richard Greenwood Gesendet: Donnerstag, 10. November 2022 03:00 An: mapserver Betreff: [MapServer-users] using SCALETOKEN in an EXPRESSION Can anyone tell me what's wrong with my EXPRESSION below? I'm trying to filter features from the National Hydrology Dataset based on scale using SCALETOKEN and I can't seem to get it right. [Visibility] is a field in the data that suggests the scale at which a feature should be shown. Thanks! LAYER NAME "flowline" TYPE line DATA "shapefiles3857/nhd/flowline" SCALETOKEN NAME "%priority%" VALUES "0" "0" "24000" "24000" "50000" "50000" "100000" "100000" "250000" "250000" "500000" "500000" "1000000" "1000000" "2000000" "2000000" "5000000" "5000000" END END CLASS EXPRESSION ([Visibility] > %priority%) STYLE COLOR 158 196 255 MINSIZE 1 SIZE 3 MAXSIZE 6 END END END -- Richard W. Greenwood www.greenwoodmap.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2500 bytes Desc: not available URL: From richard.greenwood at gmail.com Thu Nov 10 04:34:43 2022 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 10 Nov 2022 05:34:43 -0700 Subject: [MapServer-users] using SCALETOKEN in an EXPRESSION In-Reply-To: <43f09c5d5f174456826e12c550b0470e@sid.sachsen.de> References: <43f09c5d5f174456826e12c550b0470e@sid.sachsen.de> Message-ID: Ah, good point. The examples do all show it being used in conjunction with the DATA statement. Thanks, Rich On Thu, Nov 10, 2022 at 1:29 AM Eichner, Andreas - SID < Andreas.Eichner at sid.sachsen.de> wrote: > According to RFC 86 SCALETOKENs are used to replace tokens inside a > layer?s DATA statement - so it might simply not work within class > expressions. > As a workaround you might use MINSCALEDENOM and MAXSCALEDENOM within CLASS. > > Kind regards, > Andreas > > -----Urspr?ngliche Nachricht----- > Von: MapServer-users Im Auftrag > von Richard Greenwood > Gesendet: Donnerstag, 10. November 2022 03:00 > An: mapserver > Betreff: [MapServer-users] using SCALETOKEN in an EXPRESSION > > Can anyone tell me what's wrong with my EXPRESSION below? I'm trying to > filter features from the National Hydrology Dataset based on scale using > SCALETOKEN and I can't seem to get it right. [Visibility] is a field in the > data that suggests the scale at which a feature should be shown. > > Thanks! > > LAYER > NAME "flowline" > TYPE line > DATA "shapefiles3857/nhd/flowline" > SCALETOKEN > NAME "%priority%" > VALUES > "0" "0" > "24000" "24000" > "50000" "50000" > "100000" "100000" > "250000" "250000" > "500000" "500000" > "1000000" "1000000" > "2000000" "2000000" > "5000000" "5000000" > END > END > CLASS > EXPRESSION ([Visibility] > %priority%) > STYLE > COLOR 158 196 255 > MINSIZE 1 > SIZE 3 > MAXSIZE 6 > END > END > END > > > -- > > Richard W. Greenwood > www.greenwoodmap.com > -- Richard W. Greenwood www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Thu Nov 10 08:43:20 2022 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Thu, 10 Nov 2022 16:43:20 +0000 Subject: [MapServer-users] The server you are trying to connect to does not seem to be a WMS server. Please check the URL. WMS XML stops generating Message-ID: Hello, coming back to you with error which I can't overcome. I created mapfile from vrt rasters created by gdal warp -of VRT from tiffs with GCP georeference. While trying to add wms layer to qgis it throws error: The server you are trying to connect to does not seem to be a WMS server. Please check the URL. Details (or message obtained aftery request GetCapabilities) seems to be wms XML file which unexetedly stoped generaing and stars with: Instead of the capabilities string that was expected, the following response has been received: Could not get WMS capabilities: unexpected end of file at line 8905 column 63 This is probably due to an incorrect WMS Server URL. Response was: From jmckenna at gatewaygeomatics.com Thu Nov 10 11:25:38 2022 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 10 Nov 2022 15:25:38 -0400 Subject: [MapServer-users] The server you are trying to connect to does not seem to be a WMS server. Please check the URL. WMS XML stops generating In-Reply-To: References: Message-ID: <62c6d1e7-685a-e7dc-26de-587326de7bf0@gatewaygeomatics.com> Hi, Here are my initial thoughts: - examine the exact request submitted by QGIS (examine each parameter), see https://github.com/mapserver/mapserver/wiki/Get-the-Raw-WMS-Request-Generated-by-QGIS - I remember an issue of GetCapabilities requests being cut-off, but that was years ago in a much older MapServer version - for that last reason I would be sure that the MapServer server is using version 8.0 or 7.6.4 - I have also been here before when the "wms_onlineresource" url is incorrect in the server's mapfile, causing issues in QGIS (sometimes that could be an HTTPS redirect, or a minor change in the url). I've got that t-shirt several times, ha Those are my quick thoughts. -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2022-11-10 12:43 p.m., Marcin Niemyjski via MapServer-users wrote: > Hello, > > coming back to you with error which I can't overcome. I created mapfile > from vrt rasters created by gdal warp -of VRT from tiffs with GCP > georeference. While trying to add wms layer to qgis it throws error: > *The server you are trying to connect to does not seem to be a WMS > server. Please check the URL.* > > Details (or message obtained aftery request GetCapabilities) seems to be > wms XML file which unexetedly stoped generaing and stars with: > > *Instead of the capabilities string that was expected, the following > response has been received:* > *Could not get WMS capabilities: unexpected end of file at line 8905 > column 63* > *This is probably due to an incorrect WMS Server URL.* > *Response was:* > ** > * * > * > * > ends with: > > *? ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ? ? ? minx="34.6282" miny="86.661" maxx="36.532" > * > * > * > Mapfile consist of 419 mapfiles, when I leave few *random *layers it > loads in other cases - throws errors. > > Hope someone has workaround. > Best, > Marcin > > From bahbouba.909 at gmail.com Fri Nov 11 11:02:11 2022 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Fri, 11 Nov 2022 20:02:11 +0100 Subject: [MapServer-users] asking help Message-ID: HI, I need your against saving geometric entities in a postgis table wia openlayer and tinyows and wfst service. By the way I have set up an application for editing geometric entities with the wfst via mapserver, tinyows and openlayer the configuration of tinyows seems correct but once I draw geographical entities, these do not register in my postgis database. here is my link to my source code: https://pastebin.com/cAw8ezhZ and that of my tinyows configuration: https://pastebin.com/QJ8Txwdi any help will be welcome. thank you in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From bahbouba.909 at gmail.com Fri Nov 11 13:13:37 2022 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Fri, 11 Nov 2022 22:13:37 +0100 Subject: [MapServer-users] asking help for Jeff McKenna, Message-ID: Hi Jeff McKenna, you can send me the file named: install-demo-data.bat , which is directly installed in apps/tinyows/demo folder during mapserver installation. I need this file to test tinyows with the Frida data base which will be created using the script contained in the file in question. because *install-demo-data.bat *install during the installation of my map server seems to have errors that I can not open it by an editor to be able to parameters such as USER and password. waiting for your response. thank you in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at home.gofferje.net Fri Nov 11 23:46:44 2022 From: lists at home.gofferje.net (Stefan Gofferje) Date: Sat, 12 Nov 2022 09:46:44 +0200 Subject: [MapServer-users] Frontend recommendations for my new project: Serve time domain data? Message-ID: <3db065d3-5220-7240-cd40-8ffdb40146f4@home.gofferje.net> Hi all! After I got my first mapserver project on the road really quickly, thanks to the community here, I'm working on my second one... I'm pulling Sentinel 1 and 2 imagery of my municipality every day, pushing them through some gdal magic and - at the moment - sending them to a Telegram group for other SA (situational awareness), map and nature nerds in my area. I already wrote a Python script to create shape file catalogs for the files including the time domain and I have a mapserver test instance running. Now I'm looking for a good frontend - or maybe I have to tinker one together myself? I'd like something lightweight, docker-friendly and easily customizable. I am tinkering with GeoSolutions' MapStore at the moment, but while it's a really cool concept, it's not overly docker-friendly when it comes to customization and it has some weird quirks, probably due to it being JAVA. I'd also like to avoid PostgreSQL if possible because I don't know anything about it except that upgrading is a huge hassle. I'm more of a MySQL/MariaDB guy. Any recommendations? -Stefan -- (o_ Stefan Gofferje | SCLT, MCP, CCSA //\ Reg'd Linux User #247167 | VCP #2263 V_/_ https://www.gofferje.net | https://www.saakeskus.fi From justb4 at gmail.com Sat Nov 12 05:11:44 2022 From: justb4 at gmail.com (Just van den Broecke) Date: Sat, 12 Nov 2022 14:11:44 +0100 Subject: [MapServer-users] Frontend recommendations for my new project: Serve time domain data? In-Reply-To: <3db065d3-5220-7240-cd40-8ffdb40146f4@home.gofferje.net> References: <3db065d3-5220-7240-cd40-8ffdb40146f4@home.gofferje.net> Message-ID: <05c5db81-9230-95fc-5f19-a09948ae45b4@gmail.com> Hi Stefan, My guess is, that you want to use a browser-based frontend. Then best to base that on Leaflet or OpenLayers. Both are pure-client JavaScript libraries. These libs may be bare when developing from scratch, you can also use a library that extends these libs (like MapStore). Shameless plug: Wegue [1] combines OpenLayers with VueJS. For basic apps the framework ishas standard components, JSON-config-based (no programming!), runs out-of-the box with Docker and brings no backend. But there are many more you can find e.g. on the OSGeo-live distro [2]. [1] https://github.com/wegue-oss/wegue [2] https://live.osgeo.org/en/overview/overview.html#browser-facing-gis Best, Just van den Broecke On 12/11/2022 08:46, Stefan Gofferje wrote: > Hi all! > > After I got my first mapserver project on the road really quickly, > thanks to the community here, I'm working on my second one... > > I'm pulling Sentinel 1 and 2 imagery of my municipality every day, > pushing them through some gdal magic and - at the moment - sending them > to a Telegram group for other SA (situational awareness), map and nature > nerds in my area. > > I already wrote a Python script to create shape file catalogs for the > files including the time domain and I have a mapserver test instance > running. > > Now I'm looking for a good frontend - or maybe I have to tinker one > together myself? I'd like something lightweight, docker-friendly and > easily customizable. I am tinkering with GeoSolutions' MapStore at the > moment, but while it's a really cool concept, it's not overly > docker-friendly when it comes to customization and it has some weird > quirks, probably due to it being JAVA. I'd also like to avoid PostgreSQL > if possible because I don't know anything about it except that upgrading > is a huge hassle. I'm more of a MySQL/MariaDB guy. > > Any recommendations? > > -Stefan > From lists at home.gofferje.net Sat Nov 12 09:37:50 2022 From: lists at home.gofferje.net (Stefan Gofferje) Date: Sat, 12 Nov 2022 19:37:50 +0200 Subject: [MapServer-users] Frontend recommendations for my new project: Serve time domain data? In-Reply-To: <05c5db81-9230-95fc-5f19-a09948ae45b4@gmail.com> References: <3db065d3-5220-7240-cd40-8ffdb40146f4@home.gofferje.net> <05c5db81-9230-95fc-5f19-a09948ae45b4@gmail.com> Message-ID: <5879004.lOV4Wx5bFT@andromeda.gofferje.net> Hi, On Saturday, 12 November 2022 15:11:44 EET Just van den Broecke wrote: > My guess is, that you want to use a browser-based frontend. Yes! Stupid me forgot to mention... > Then best to > base that on Leaflet or OpenLayers. Both are pure-client JavaScript > libraries. These libs may be bare when developing from scratch, you can > also use a library that extends these libs (like MapStore). I actually have been doing some stuff with Leaflet before. All on hobby-level but writing something myself also is a strong option. > Shameless plug: Wegue [1] combines OpenLayers with VueJS. For basic > apps the framework ishas standard components, JSON-config-based (no > programming!), runs out-of-the box with Docker and brings no backend. > But there are many more you can find e.g. on the OSGeo-live distro [2]. That looks pretty interesting! A little candy-ish but I guess, that's what makes users happy nowadays, judging by all those candy-ish websites out there which use 128x128px icons and 48px fonts for text :D. -Stefan -- (o_ Stefan Gofferje | SCLT, MCP, CCSA //\ Reg'd Linux User #247167 | VCP #2263 V_/_ https://www.gofferje.net | https://www.saakeskus.fi From bahbouba.909 at gmail.com Sun Nov 13 06:59:43 2022 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Sun, 13 Nov 2022 15:59:43 +0100 Subject: [MapServer-users] asking help Message-ID: hi everyone i hope you are doing well. I'm writing this email to ask for your help with a problem I'm having with tinyows. au mas4w contains a demo of use of tinyows with the files of all the source codes necessary for its proper functioning. and I followed all the instructions detailed in the mapserver documentation found in this link: https://ms4w.com/README_INSTALL.html#tinyows. but once I try to execute a transition I am shown an error: *An error occurred while executing the transaction.* when I checked the access log of Appache I noticed a 304 error. here is the link to the image of the error that my access log file sends me: https://imgur.com/a/EmHoJOb I really need your help. thank you in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From johannespaul92 at gmail.com Mon Nov 14 06:01:11 2022 From: johannespaul92 at gmail.com (Johannes Paul) Date: Mon, 14 Nov 2022 15:01:11 +0100 Subject: [MapServer-users] mapcache_seed libpng issue Message-ID: Hello, I'm running mapserver 7.6.3 and mapcache 1.12 on Centos7. Both are compiled with libpng 1.5.13 and GDAL 3.2.1. I can get my mapserver layers as well as mapcache layers just fine, however when I try to run mapcache_seed I get the following error: ``` libpng warning: Application built with libpng-1.5.13 but running with 1.6.37 failed to seed tile z0, x0, y0: failed to allocate png_struct structure failed to load image data from metatile ``` Is it a requirement for mapcache and/or mapserver to be built against libpng 1.6 ? Thanks Johannes -------------- next part -------------- An HTML attachment was scrubbed... URL: From kyleqian at gmail.com Mon Nov 14 16:22:44 2022 From: kyleqian at gmail.com (Kyle Qian) Date: Tue, 15 Nov 2022 08:22:44 +0800 Subject: [MapServer-users] Does MapServer support dot density layers? Message-ID: Hello, I'm running mapserver 7.6.4 and want to draw dot density map for polygon layers. A dot density map uses varying numbers of dots to represent the value of properties of a polygon. I checked the documentation and found nothing related. So currently MapServer does not support it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Tue Nov 15 07:30:13 2022 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Tue, 15 Nov 2022 15:30:13 +0000 Subject: [MapServer-users] Can not perform requests on Cached WMS Message-ID: I have come across a problem, namely: I have created and successfully tested (by loading into qgis) a Cached WMS using Mapcache. My goal is to put this Cached WMS, which is called LowLevelEOindex in Mapfile as one of many layers. I have done this, but when loading into QGIS every layer loads except LowLevelEOindex. I tried GetMap and GetCapabilities directly on the Cached WMS but apache replied 404 The requested URL was not found on this server. I hope someone has a workaround (: Best, Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Tue Nov 15 07:50:18 2022 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 15 Nov 2022 15:50:18 +0000 Subject: [MapServer-users] Does MapServer support dot density layers? In-Reply-To: References: Message-ID: Not explicitly. There might be a was to simulate something, perhaps doing something in a database to create a randomized set of N points within a polygon based on a value. Could even precompute that I suppose. From: MapServer-users On Behalf Of Kyle Qian Sent: Monday, November 14, 2022 6:23 PM To: MapServer Users Subject: [MapServer-users] Does MapServer support dot density layers? Hello, I'm running mapserver 7.6.4 and want to draw dot density map for polygon layers. A dot density map uses varying numbers of dots to represent the value of properties of a polygon. I checked the documentation and found nothing related. So currently MapServer does not support it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil.underhill at gmail.com Wed Nov 16 12:00:16 2022 From: neil.underhill at gmail.com (Neil Underhill) Date: Wed, 16 Nov 2022 20:00:16 +0000 Subject: [MapServer-users] Fwd: Setting up authorization for Mapserver access using Apache2 .htaccess In-Reply-To: References: Message-ID: Posting here as I didn't yet get a reply to the same query on StackOverflow ( https://stackoverflow.com/questions/74309087/setting-up-authorization-to-mapserver-using-apache2-htaccess ). I am running a website with Apache/2.4.53 (Debian) and Mapserver 7.6.2. I have set up a 'secure' part of the web site following instructions here: https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-apache-on-ubuntu-14-04 . I would now like to display some geospatial data held in Mapserver via an Openlayers WFS map on the secure site. The challenge I have is that once a user logs in, they can see the MapServer access details in the Openlayers script so have the server URL and mapfile name, and can access this outside the secure site i.e. without going through Apache authentication. There was some discussion about securing access MapServer 11 years ago ( https://gis.stackexchange.com/questions/5686/securing-wms-against-unauthorized-access) but this didn't seem applicable. As I understand it Mapserver is accessed through a CGI to which requests are redirected through Apache. Would moving the /usr/bin/mapserv executable into a folder managed by Apache2 work? (as seems to be suggested here: https://stackoverflow.com/questions/51850322/cgi-bin-htaccess-or-apache2-config-rules-bring-up-password-dialog-but-cgi-exec Any advice appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From public at postholer.com Wed Nov 16 14:58:26 2022 From: public at postholer.com (Scott) Date: Wed, 16 Nov 2022 14:58:26 -0800 Subject: [MapServer-users] Fwd: Setting up authorization for Mapserver access using Apache2 .htaccess In-Reply-To: References: Message-ID: Another way is to put a wrapper around your mapserv binary. I use PHP, call my wrapper 'reflect' then let apache know to use PHP on 'reflect'. Note the lack of .php extension. If you did have the extension no extra modifications to apache conf would be required. This has huge benefits. The single biggest advantage is I can use a non-standard WMS uri, ie, pass only a width or height then calculate the missing dimension from bbox. This always results in a perfect aspect ratio for the resulting image. (Yes, GeoServer uses the name 'reflect', too. No accident). I also use it for security screening. 'GetCapabilities' has also been intercepted and largely disabled. On 11/16/22 12:00, Neil Underhill wrote: > > Posting here as I didn't yet get a reply to the same query on > StackOverflow > (https://stackoverflow.com/questions/74309087/setting-up-authorization-to-mapserver-using-apache2-htaccess ). > > I am running a website with Apache/2.4.53 (Debian) and Mapserver 7.6.2. > I have set up a 'secure' part of the web site following instructions > here: > https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-apache-on-ubuntu-14-04 . > > I would now like to display some geospatial data held in Mapserver via > an Openlayers WFS map on the secure site. The challenge I have is that > once a user logs in, they can see the MapServer access details in the > Openlayers script so have the server URL and mapfile name, and can > access this outside the secure site i.e. without going through Apache > authentication. > > There was some discussion about securing access MapServer 11 years ago > (https://gis.stackexchange.com/questions/5686/securing-wms-against-unauthorized-access ) but this didn't seem applicable. > > As I understand it Mapserver is accessed through a CGI to which requests > are redirected through Apache. Would moving the /usr/bin/mapserv > executable into a folder managed by Apache2 work? (as seems to be > suggested here: > https://stackoverflow.com/questions/51850322/cgi-bin-htaccess-or-apache2-config-rules-bring-up-password-dialog-but-cgi-exec > > Any advice appreciated. > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From lists at home.gofferje.net Thu Nov 17 00:11:42 2022 From: lists at home.gofferje.net (Stefan Gofferje) Date: Thu, 17 Nov 2022 10:11:42 +0200 Subject: [MapServer-users] Mapserver and WMS time - could somebody have a look at my test server, please? Message-ID: <3df2090f-38be-64ce-5cdd-d477d0868a14@home.gofferje.net> Hi all, as part of my learning mapserver, I set up a testserver to serve images with a time dimension. I was trying to verify the output with QGIS but the temporal panel does not show me the times the server offers. That's now too many moving parts for my poor newbie brain to troubleshoot: Is my mapserver config wrong, does QGIS simply not ask the server for available times or am I using QGIS wrong...? Could somebody have a quick look at the output of my testserver if the GetCapapilities output looks right and if the WMS-time works correctly? That would be awesome! I made my testserver public at https://mapserver.gofferje.net/?map=sat&service=WMS&version=1.3.0&request=GetCapabilities Thank you!!! Stefan -- (o_ Stefan Gofferje | SCLT, MCP, CCSA //\ Reg'd Linux User #247167 | VCP #2263 V_/_ https://www.gofferje.net | https://www.saakeskus.fi From trygve at aspenes.priv.no Thu Nov 17 04:22:39 2022 From: trygve at aspenes.priv.no (Trygve Aspenes) Date: Thu, 17 Nov 2022 13:22:39 +0100 Subject: [MapServer-users] Mapserver and WMS time - could somebody have a look at my test server, please? In-Reply-To: <3df2090f-38be-64ce-5cdd-d477d0868a14@home.gofferje.net> References: <3df2090f-38be-64ce-5cdd-d477d0868a14@home.gofferje.net> Message-ID: Hi Stafan Looking at you getCapabilities I see like 2022-10-12T095941Z,2022-11-13T095149Z Look at the documentation you need the time to be formated like this: https://mapserver.org/ogc/wms_time.html#time-patterns Trygve Den 2022-11-17 09:11, skrev Stefan Gofferje: > Hi all, > > as part of my learning mapserver, I set up a testserver to serve > images with a time dimension. I was trying to verify the output with > QGIS but the temporal panel does not show me the times the server > offers. That's now too many moving parts for my poor newbie brain to > troubleshoot: Is my mapserver config wrong, does QGIS simply not ask > the server for available times or am I using QGIS wrong...? > > Could somebody have a quick look at the output of my testserver if the > GetCapapilities output looks right and if the WMS-time works > correctly? > That would be awesome! > > I made my testserver public at > https://mapserver.gofferje.net/?map=sat&service=WMS&version=1.3.0&request=GetCapabilities > > Thank you!!! > Stefan From lists at home.gofferje.net Thu Nov 17 05:01:48 2022 From: lists at home.gofferje.net (Stefan Gofferje) Date: Thu, 17 Nov 2022 15:01:48 +0200 Subject: [MapServer-users] Mapserver and WMS time - could somebody have a look at my test server, please? In-Reply-To: References: <3df2090f-38be-64ce-5cdd-d477d0868a14@home.gofferje.net> Message-ID: <7df2ae7f-5614-86a4-d162-863fba9a08f5@home.gofferje.net> Hi, On 11/17/22 14:22, Trygve Aspenes wrote: > Looking at you getCapabilities I see like > nearestValue="0">2022-10-12T095941Z,2022-11-13T095149Z > > Look at the documentation you need the time to be formated like this: > https://mapserver.org/ogc/wms_time.html#time-patterns THAT would explain a lot! Thank you so much! -Stefan -- (o_ Stefan Gofferje | SCLT, MCP, CCSA //\ Reg'd Linux User #247167 | VCP #2263 V_/_ https://www.gofferje.net | https://www.saakeskus.fi From mniemyjski at cloudferro.com Mon Nov 21 04:43:19 2022 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Mon, 21 Nov 2022 12:43:19 +0000 Subject: [MapServer-users] [tiff write support disabled by default] Message-ID: Hello, I'm trying to cache my wms using tiff as cache format. How I defined it at .xml file: But after running seeder I'm getting error: tiff write support disabled by default Somebody knows how to enable it? Best, Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil.underhill at gmail.com Thu Nov 24 13:19:50 2022 From: neil.underhill at gmail.com (Neil Underhill) Date: Thu, 24 Nov 2022 21:19:50 +0000 Subject: [MapServer-users] Fwd: Setting up authorization for Mapserver access using Apache2 .htaccess In-Reply-To: References: Message-ID: Hi Scott, thanks for the reply. I'm not very familiar with PHP, could you explain what a wrapper is and how to put that around the mapserv binary? A snippet of the apache2.conf file would also be helpful. Cheers, Neil On Wed, 16 Nov 2022 at 22:58, Scott wrote: > Another way is to put a wrapper around your mapserv binary. I use PHP, > call my wrapper 'reflect' then let apache know to use PHP on 'reflect'. > Note the lack of .php extension. If you did have the extension no extra > modifications to apache conf would be required. > > This has huge benefits. The single biggest advantage is I can use a > non-standard WMS uri, ie, pass only a width or height then calculate the > missing dimension from bbox. This always results in a perfect aspect > ratio for the resulting image. (Yes, GeoServer uses the name 'reflect', > too. No accident). > > I also use it for security screening. 'GetCapabilities' has also been > intercepted and largely disabled. > > On 11/16/22 12:00, Neil Underhill wrote: > > > > Posting here as I didn't yet get a reply to the same query on > > StackOverflow > > ( > https://stackoverflow.com/questions/74309087/setting-up-authorization-to-mapserver-using-apache2-htaccess > < > https://stackoverflow.com/questions/74309087/setting-up-authorization-to-mapserver-using-apache2-htaccess > >). > > > > I am running a website with Apache/2.4.53 (Debian) and Mapserver 7.6.2. > > I have set up a 'secure' part of the web site following instructions > > here: > > > https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-apache-on-ubuntu-14-04 > < > https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-apache-on-ubuntu-14-04> > . > > > > I would now like to display some geospatial data held in Mapserver via > > an Openlayers WFS map on the secure site. The challenge I have is that > > once a user logs in, they can see the MapServer access details in the > > Openlayers script so have the server URL and mapfile name, and can > > access this outside the secure site i.e. without going through Apache > > authentication. > > > > There was some discussion about securing access MapServer 11 years ago > > ( > https://gis.stackexchange.com/questions/5686/securing-wms-against-unauthorized-access > < > https://gis.stackexchange.com/questions/5686/securing-wms-against-unauthorized-access>) > but this didn't seem applicable. > > > > As I understand it Mapserver is accessed through a CGI to which requests > > are redirected through Apache. Would moving the /usr/bin/mapserv > > executable into a folder managed by Apache2 work? (as seems to be > > suggested here: > > > https://stackoverflow.com/questions/51850322/cgi-bin-htaccess-or-apache2-config-rules-bring-up-password-dialog-but-cgi-exec > < > https://stackoverflow.com/questions/51850322/cgi-bin-htaccess-or-apache2-config-rules-bring-up-password-dialog-but-cgi-exec > > > > > > Any advice appreciated. > > > > _______________________________________________ > > 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 mniemyjski at cloudferro.com Fri Nov 25 00:52:01 2022 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Fri, 25 Nov 2022 08:52:01 +0000 Subject: [MapServer-users] Mapserver x k8s issue Message-ID: Hello, I'm involved in the development of a project connecting Mapserver with capabilities of Kubernetes like scalability, load balancing etc. We've run into problem wich I think can be solved on the side o Mapserver, namely: The k8s external IP cannot immediately be placed in "wms_onlineresource" because it takes time to generate it. Up to now I have checked the WMS operation by GetCapabilites, GetMap queries, and set "wms_onlineresource" to http://localhost:80/?map=/etc/mapserver/map1-test.map. I've made requests (GetMap GetCapabilites) via http:///?map=/etc/mapserver/map1-test.map - everything was working. However, when loading the layer into QGIS nothing happened. I believe this is because even though the queries work using url with external IP, the information that comes in the XML file contains localhost:80 and QGIS is trying to connect to a layer that does not exist locally. Is there any way for the mapserver to know that localhost:80 must be replaced with the external ip address from the query? Best, Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcbastin at thelis.be Fri Nov 25 01:37:20 2022 From: jcbastin at thelis.be (Jean-Christophe Bastin) Date: Fri, 25 Nov 2022 09:37:20 +0000 Subject: [MapServer-users] readGIF error meaning ? In-Reply-To: <956f268b-e87d-9fcf-a769-56f5c1932fe3@gatewaygeomatics.com> References: <956f268b-e87d-9fcf-a769-56f5c1932fe3@gatewaygeomatics.com> Message-ID: Hello Jeff, Thanks for the reply. Your answer was in my junk folder, sorry for the delay ^^' I found where the error was coming from, if it can interest someone else. My MapFile has thematics (many CLASS with EXPRESSION in LAYER), and some cases use an external GIF resource defined in my SYMBOLSET. It was not well defined, and I also have to change these from GIF to PNG, and now all works well. Best regards JCB -----Message d'origine----- De?: MapServer-users De la part de Jeff McKenna Envoy??: lundi 7 novembre 2022 18:08 ??: mapserver-users at lists.osgeo.org Objet?: Re: [MapServer-users] readGIF error meaning ? Hello JC, If you are using MS4W, you can test a GetLegendGraphic request by using the local demo WMS service that comes with every MS4W install, out-of-the-box, such as: https://ms4w.dev/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/local.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getlegendgraphic&layer=countries&FORMAT=image/png (you should be able to modify the url above for 127.0.0.1/ instead) If that works locally for you, just follow the local-demo.map, for your own mapfile. -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2022-11-07 11:23 a.m., Jean-Christophe Bastin wrote: > Hello, > > I have many map files and I?m trying to get legends from them. > > I followed the documentation I found : > https://mapserver.org/ogc/wms_server.html#getlegendgraphic-request > > > The map file I test follows the requirements. I tried many calls : > > http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.0.0 > > http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.1.0 > > http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.1.1 > > http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.3.0&SLD_VERSION=1.1.0 > > Each of them give me the error : > > readGIF(): General error message. corrupted gif image?: Failed to read > from file > > What does that mean ? Am I missing a parameter in my call or something > more in the map file that is not in the documentation ? > > Or is it the kind of generic error ?I can?t generate your legend, just > find by yourself why? ? XD > > Many thanks ! > > *JCB* > _______________________________________________ MapServer-users mailing list MapServer-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From bjorn.ove at grotan.com Fri Nov 25 10:03:25 2022 From: bjorn.ove at grotan.com (=?utf-8?B?QmrDuHJuIE92ZSBHcsO4dGFu?=) Date: Fri, 25 Nov 2022 19:03:25 +0100 Subject: [MapServer-users] Mapserver x k8s issue In-Reply-To: References: Message-ID: Marcin Niemyjski via MapServer-users: > Hello, > > I'm involved in the development of a project connecting Mapserver with > capabilities of Kubernetes like scalability, load balancing etc. > > We've run into problem wich I think can be solved on the side o Mapserver, > namely: > > The k8s external IP cannot immediately be placed in "wms_onlineresource" > because it takes time to generate it. Up to now I have checked the WMS > operation by GetCapabilites, GetMap queries, and set "wms_onlineresource" to > http://localhost:80/?map=/etc/mapserver/map1-test.map. I've made requests > (GetMap GetCapabilites) via http:// Address>/?map=/etc/mapserver/map1-test.map - everything was working. However, > when loading the layer into QGIS nothing happened. I believe this is because > even though the queries work using url with external IP, the information that > comes in the XML file contains localhost:80 and QGIS is trying to connect to > a layer that does not exist locally. > > Is there any way for the mapserver to know that localhost:80 must be replaced > with the external ip address from the query? Comment out the ows_onlineresource configuration, and Mapserver will utilize whatever hostname you reached it at. That way, the same mapfile can be used in local development, test/qa and production without need for changing ows_onlineresource when moving between environments. One caveat we came across, having a reverse proxy in front of our mapserver (w/apache). http->http => wms_onlineresource will use http https->https => wms_onlineresource will use https https->http => wms_onlineresource will use http, even though http headers for forward port and forward proto is set. Other than that, you will be fine with not configuring ows/wms_onlineresource in your mapfile. -- Kind regards Bj?rn Ove Gr?tan From jklymak at gmail.com Sun Nov 27 13:10:20 2022 From: jklymak at gmail.com (Jody Klymak) Date: Sun, 27 Nov 2022 13:10:20 -0800 Subject: [MapServer-users] WMS GetCapabilities map minx, miny etc transposed Message-ID: <77A6157E-96A2-4243-8E89-944154CDF5A6@gmail.com> Hi, I am a new user, using mapserver 8.0.0: I have been going through the tutorials and have trouble making rasters work on my WMS server. The same map file works fine in QGIS, so I think there is a bug in mapserver, but wanted to write here in case I am doing anything silly. If I query the server I get layers that have minx miny in the BoundingBox that are transposed with respect to lat and lon: ``` modis modis EPSG:4326 -97.238976 -82.122902 41.619778 49.385620 text/xml ``` If I query the wms server with `https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map&SERVICE=WMS&VERSION=1.3&REQUEST=Map&Layers=modis&CRS=EPSG:4326&BBOX=-97.238976,41.619778,-82.122902,49.385620&FORMAT=png&WIDTH=360&HEIGHT=270` I get a blank image If I swap lat for lon in the BBOX=41.619778,-97.238976,49.385620,-82.122902, then it works, but is of course distorted. Maybe I?m really mis-understanding the BBOX parameter, but it seems that there is a bug where someone has said x is equivalent to latitude, where they meant longitude. Again, this map works fine in QGIS, I assume because it doesn?t look at the BoundingBox and just uses the etc. The map file is ``` MAP NAME "MAPSERVER_RASTER" IMAGETYPE PNG24 EXTENT -97.238976 41.619778 -82.122902 49.385620 SIZE 360 270 SHAPEPATH "./data/" IMAGECOLOR 200 200 200 PROJECTION "init=epsg:4326" END WEB METADATA ows_title "MapServer Raster" ows_enable_request "*" ows_srs "EPSG:4326" ows_onlineresource "https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map" END END LAYER # MODIS raster layer begins here NAME "modis" DATA "ugl_ref2.png" STATUS DEFAULT TYPE RASTER EXTENT -97.238976 41.619778 -82.122902 49.385620 OFFSITE 71 74 65 PROJECTION "init=epsg:4326" END END # MODIS raster layer ends here END ``` Thanks, Jody From bjorn.ove at grotan.com Sun Nov 27 14:21:58 2022 From: bjorn.ove at grotan.com (=?utf-8?B?QmrDuHJuIE92ZSBHcsO4dGFu?=) Date: Sun, 27 Nov 2022 23:21:58 +0100 Subject: [MapServer-users] WMS GetCapabilities map minx, miny etc transposed In-Reply-To: <77A6157E-96A2-4243-8E89-944154CDF5A6@gmail.com> References: <77A6157E-96A2-4243-8E89-944154CDF5A6@gmail.com> Message-ID: Jody Klymak: > Hi, > > I am a new user, using mapserver 8.0.0: > > I have been going through the tutorials and have trouble making rasters work on my WMS server. The same map file works fine in QGIS, so I think there is a bug in mapserver, but wanted to write here in case I am doing anything silly. > > If I query the server I get layers that have minx miny in the BoundingBox that are transposed with respect to lat and lon: > > ``` > > modis > modis > EPSG:4326 > > -97.238976 > -82.122902 > 41.619778 > 49.385620 > > > > > > text/xml > > > > ``` > > If I query the wms server with > > `https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map&SERVICE=WMS&VERSION=1.3&REQUEST=Map&Layers=modis&CRS=EPSG:4326&BBOX=-97.238976,41.619778,-82.122902,49.385620&FORMAT=png&WIDTH=360&HEIGHT=270` It's "request=GetMap" not "request=Map". > > I get a blank image > > If I swap lat for lon in the BBOX=41.619778,-97.238976,49.385620,-82.122902, then it works, but is of course distorted. > > Maybe I?m really mis-understanding the BBOX parameter, but it seems that there is a bug where someone has said x is equivalent to latitude, where they meant longitude. > > Again, this map works fine in QGIS, I assume because it doesn?t look at the BoundingBox and just uses the etc. > > The map file is > > ``` > MAP > NAME "MAPSERVER_RASTER" > IMAGETYPE PNG24 > EXTENT -97.238976 41.619778 -82.122902 49.385620 > SIZE 360 270 > SHAPEPATH "./data/" > IMAGECOLOR 200 200 200 > > PROJECTION > "init=epsg:4326" > END > > WEB > METADATA > ows_title "MapServer Raster" > ows_enable_request "*" > ows_srs "EPSG:4326" > ows_onlineresource "https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map" > END > END > LAYER # MODIS raster layer begins here > NAME "modis" > DATA "ugl_ref2.png" > STATUS DEFAULT > TYPE RASTER > EXTENT -97.238976 41.619778 -82.122902 49.385620 > OFFSITE 71 74 65 > PROJECTION > "init=epsg:4326" > END > END # MODIS raster layer ends here > END > ``` > > Thanks, Jody > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Kind regards Bj?rn Ove Gr?tan From jklymak at gmail.com Sun Nov 27 14:59:23 2022 From: jklymak at gmail.com (Jody Klymak) Date: Sun, 27 Nov 2022 14:59:23 -0800 Subject: [MapServer-users] WMS GetCapabilities map minx, miny etc transposed In-Reply-To: References: <77A6157E-96A2-4243-8E89-944154CDF5A6@gmail.com> Message-ID: <1629DC41-8AD1-4050-9A47-1660F4A4DD13@gmail.com> Hi Bj?rn > On Nov 27, 2022, at 2:21 PM, Bj?rn Ove Gr?tan wrote: > > It's "request=GetMap" not "request=Map?. Ooops, that indeed works! However, it is still somewhat strange that GetAttributes x and y are swapped in the BoundingBox Thanks, Jody -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at saabgroup.com Mon Nov 28 00:35:48 2022 From: lars.schylberg at saabgroup.com (Schylberg Lars) Date: Mon, 28 Nov 2022 08:35:48 +0000 Subject: [MapServer-users] [EXTERNAL] Re: WMS GetCapabilities map minx, miny etc transposed In-Reply-To: <1629DC41-8AD1-4050-9A47-1660F4A4DD13@gmail.com> References: <77A6157E-96A2-4243-8E89-944154CDF5A6@gmail.com> <1629DC41-8AD1-4050-9A47-1660F4A4DD13@gmail.com> Message-ID: <9e87f946239e431a8b52fc8435bedf8c@saabgroup.com> Hi, I guess it is the old problem with axis order between WMS 1.1.1 and WMS 1.3.0 Daniel Morissette wrote about the problem long time ago. http://dmorissette.blogspot.com/2012/12/dont-upgrade-to-wms-130-unless-you.html /Lars S. From: MapServer-users On Behalf Of Jody Klymak Sent: den 27 november 2022 23:59 To: mapserver-users at lists.osgeo.org Subject: [EXTERNAL] Re: [MapServer-users] WMS GetCapabilities map minx, miny etc transposed Hi Bj?rn On Nov 27, 2022, at 2:21 PM, Bj?rn Ove Gr?tan > wrote: It's "request=GetMap" not "request=Map?. Ooops, that indeed works! However, it is still somewhat strange that GetAttributes x and y are swapped in the BoundingBox Thanks, Jody -------------- next part -------------- An HTML attachment was scrubbed... URL: From bernhard.mallinger at eox.at Mon Nov 28 05:35:06 2022 From: bernhard.mallinger at eox.at (Mallinger, Bernhard) Date: Mon, 28 Nov 2022 14:35:06 +0100 Subject: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels Message-ID: Hello, We have maps where we want the color scale go from e.g. 10 to 20, so we are using this directive: PROCESSING "SCALE_1=10.0,20.0" This works great by itself, however it also means that pixels with values of e.g. 5 are rendered as transparent, which is the same as the nodata pixels. So in the final image, you can't tell if data is present but the values are too low, or if there just isn't any data. So the behaviour we would like is that values below 10 are rendered as black and values over 20 are rendered as white. Is this somehow possible with mapscript? We tried to have a look in the source code, and there is this line, which effectively assigns 0 to pixels below the minimum: https://github.com/MapServer/MapServer/blob/main/mapdrawgdal.c#L1555 It turns out that this small code change actually produces the desired behavior: fScaledValue = (float) ((pafRawData[i]-dfScaleMin)*dfScaleRatio); if( fScaledValue < 0.0 )- pabyBuffer[i] = 0;+ if (pafRawData[i] > 0) {+ pabyBuffer[i] = 1;+ } else {+ pabyBuffer[i] = 0;+ } (I.e. if the original value was greater than 0, then assign 1 to this pixel such that it will be black and not transparent.) If this behavior can't yet be configured via mapscript, we could work on a pull request to implement this behavior, which would then be activated via a new configuration option. Do you have any thoughts on this? Does this make sense to you as a feature? Best regards, Bernhard -------------- next part -------------- An HTML attachment was scrubbed... URL: From trygve at aspenes.priv.no Mon Nov 28 05:56:22 2022 From: trygve at aspenes.priv.no (Trygve Aspenes) Date: Mon, 28 Nov 2022 14:56:22 +0100 Subject: [MapServer-users] Custom grayscale style on single band float32 geotiff looks strange Message-ID: <05f7b2d514bc142b190206349852921d@aspenes.priv.no> Hi So, I have a single band geotiff with float32 values. Opening it directly in eg. QGIS, this looks fine. I define various styles with fixed colors for pixels with defined value range for this looking as expected, but then I define a kind of grayscale style looking like this in mapfile: CLASS NAME "orig" GROUP "GRAYSCALE" STYLE RANGEITEM "pixel" COLORRANGE 0 0 0 255 255 255 DATARANGE -31.500000 96.000000 END # STYLE END # CLASS however the resulting image is partly grayscale and spottet with light blue pixels. Please see the attached image link how it looks: https://drive.google.com/file/d/1JfyCL047JngCJh44jpa7Ei7a5wqhihOM/view?usp=share_link So I think I do something wrong defining the grayscale style like this. I tried to ask for the SLD for to see what mapserver makes for me, but alas, no luck. If a do a GetStyles request I only get an empty SLD document: curl 'http://localhost:8000/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetStyles&LAYERS=layer-name' So someone have an idea why my image looks spotty when expecting a grayscale image and why do I get an empty SLD? From timothy.kempisty at noaa.gov Mon Nov 28 06:18:04 2022 From: timothy.kempisty at noaa.gov (Timothy Kempisty - NOAA Federal) Date: Mon, 28 Nov 2022 09:18:04 -0500 Subject: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels In-Reply-To: References: Message-ID: Try adding a separate background layer using the same data, with CLASS statements only for your out of bounds pixel values. Simplified a bit here: LAYER # -- Your existing layer NAME my_actual_data * GROUP mydata* DATA same_data PROCESSING "SCALE_1=10.0,20.0" <... yadda yadda ...> END LAYER # -- New layer adds black/white colors where pixel values exceed scale bounds NAME background * GROUP mydata* DATA same_data CLASS EXPRESSION ([pixel] < 10) <...black...> END CLASS EXPRESSION ([pixel] > 20) <...white...> END END Display both layers together by requesting the "mydata" group name, just like you would request any other layer. It will render all layers with the same group name. -Tim On Mon, Nov 28, 2022 at 8:35 AM Mallinger, Bernhard < bernhard.mallinger at eox.at> wrote: > Hello, > > We have maps where we want the color scale go from e.g. 10 to 20, so we > are using this directive: > > PROCESSING "SCALE_1=10.0,20.0" > > This works great by itself, however it also means that pixels with values > of e.g. 5 are rendered as transparent, which is the same as the nodata > pixels. So in the final image, you can't tell if data is present but the > values are too low, or if there just isn't any data. > > So the behaviour we would like is that values below 10 are rendered as > black and values over 20 are rendered as white. > > Is this somehow possible with mapscript? > > > We tried to have a look in the source code, and there is this line, which > effectively assigns 0 to pixels below the minimum: > https://github.com/MapServer/MapServer/blob/main/mapdrawgdal.c#L1555 > > It turns out that this small code change actually produces the desired > behavior: > > fScaledValue = (float) ((pafRawData[i]-dfScaleMin)*dfScaleRatio); if( fScaledValue < 0.0 )- pabyBuffer[i] = 0;+ if (pafRawData[i] > 0) {+ pabyBuffer[i] = 1;+ } else {+ pabyBuffer[i] = 0;+ } > > (I.e. if the original value was greater than 0, then assign 1 to this pixel such that it will be black and not transparent.) > > If this behavior can't yet be configured via mapscript, we could work on a pull request to implement this behavior, which would then be activated via a new configuration option. > Do you have any thoughts on this? Does this make sense to you as a feature? > > Best regards, > Bernhard > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Mon Nov 28 06:26:41 2022 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Mon, 28 Nov 2022 14:26:41 +0000 Subject: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels In-Reply-To: References: Message-ID: Hi, Have you tried the LUT processing option https://mapserver.org/input/raster.html? -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Mallinger, Bernhard L?hetetty: maanantai 28. marraskuuta 2022 15.35 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels Hello, We have maps where we want the color scale go from e.g. 10 to 20, so we are using this directive: PROCESSING "SCALE_1=10.0,20.0" This works great by itself, however it also means that pixels with values of e.g. 5 are rendered as transparent, which is the same as the nodata pixels. So in the final image, you can't tell if data is present but the values are too low, or if there just isn't any data. So the behaviour we would like is that values below 10 are rendered as black and values over 20 are rendered as white. Is this somehow possible with mapscript? We tried to have a look in the source code, and there is this line, which effectively assigns 0 to pixels below the minimum: https://github.com/MapServer/MapServer/blob/main/mapdrawgdal.c#L1555 It turns out that this small code change actually produces the desired behavior: fScaledValue = (float) ((pafRawData[i]-dfScaleMin)*dfScaleRatio); if( fScaledValue < 0.0 ) - pabyBuffer[i] = 0; + if (pafRawData[i] > 0) { + pabyBuffer[i] = 1; + } else { + pabyBuffer[i] = 0; + } (I.e. if the original value was greater than 0, then assign 1 to this pixel such that it will be black and not transparent.) If this behavior can't yet be configured via mapscript, we could work on a pull request to implement this behavior, which would then be activated via a new configuration option. Do you have any thoughts on this? Does this make sense to you as a feature? Best regards, Bernhard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gkvoelkl at nelson-games.de Mon Nov 28 06:33:43 2022 From: gkvoelkl at nelson-games.de (=?utf-8?Q?Gerhard_V=C3=B6lkl?=) Date: Mon, 28 Nov 2022 15:33:43 +0100 Subject: [MapServer-users] Catalogue Service for the Web (CSW) with MapServer? Message-ID: Hello, Is ist possible to create an Catalogue Service for the Web (CSW) with MapServer? If Not Which free software do you use? Thanks Best Regards Gerhard Von meinem iPad gesendet -------------- next part -------------- An HTML attachment was scrubbed... URL: From traviskirstine at gmail.com Mon Nov 28 06:43:34 2022 From: traviskirstine at gmail.com (Travis Kirstine) Date: Mon, 28 Nov 2022 09:43:34 -0500 Subject: [MapServer-users] Catalogue Service for the Web (CSW) with MapServer? In-Reply-To: References: Message-ID: No - mapserver does not support creating a CSW, try geonetwork or pycsw On Mon, 28 Nov 2022 at 09:39, Gerhard V?lkl wrote: > Hello, > > Is ist possible to create an *Catalogue Service for the Web (CSW) with > MapServer?* > > *If Not Which free software do you use?* > > *Thanks* > > *Best Regards Gerhard* > > > Von meinem iPad gesendet > _______________________________________________ > 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 bernhard.mallinger at eox.at Mon Nov 28 06:50:47 2022 From: bernhard.mallinger at eox.at (Mallinger, Bernhard) Date: Mon, 28 Nov 2022 15:50:47 +0100 Subject: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels In-Reply-To: References: Message-ID: Thank you for the suggestion, this actually achieves the desired effect! I'm just wondering if this now reads the data twice? We're using data from remote locations which can be slow to read, so reading them twice would be inconvenient. Best, Bernhard On Mon, Nov 28, 2022 at 3:18 PM Timothy Kempisty - NOAA Federal < timothy.kempisty at noaa.gov> wrote: > Try adding a separate background layer using the same data, with CLASS > statements only for your out of bounds pixel values. Simplified a bit here: > > LAYER > # -- Your existing layer > NAME my_actual_data > * GROUP mydata* > DATA same_data > PROCESSING "SCALE_1=10.0,20.0" > > <... yadda yadda ...> > END > > LAYER > # -- New layer adds black/white colors where pixel values exceed scale > bounds > NAME background > * GROUP mydata* > DATA same_data > CLASS > EXPRESSION ([pixel] < 10) > <...black...> > END > CLASS > EXPRESSION ([pixel] > 20) > <...white...> > END > END > > Display both layers together by requesting the "mydata" group name, just > like you would request any other layer. It will render all layers with the > same group name. > > -Tim > > On Mon, Nov 28, 2022 at 8:35 AM Mallinger, Bernhard < > bernhard.mallinger at eox.at> wrote: > >> Hello, >> >> We have maps where we want the color scale go from e.g. 10 to 20, so we >> are using this directive: >> >> PROCESSING "SCALE_1=10.0,20.0" >> >> This works great by itself, however it also means that pixels with values >> of e.g. 5 are rendered as transparent, which is the same as the nodata >> pixels. So in the final image, you can't tell if data is present but the >> values are too low, or if there just isn't any data. >> >> So the behaviour we would like is that values below 10 are rendered as >> black and values over 20 are rendered as white. >> >> Is this somehow possible with mapscript? >> >> >> We tried to have a look in the source code, and there is this line, which >> effectively assigns 0 to pixels below the minimum: >> https://github.com/MapServer/MapServer/blob/main/mapdrawgdal.c#L1555 >> >> It turns out that this small code change actually produces the desired >> behavior: >> >> fScaledValue = (float) ((pafRawData[i]-dfScaleMin)*dfScaleRatio); if( fScaledValue < 0.0 )- pabyBuffer[i] = 0;+ if (pafRawData[i] > 0) {+ pabyBuffer[i] = 1;+ } else {+ pabyBuffer[i] = 0;+ } >> >> (I.e. if the original value was greater than 0, then assign 1 to this pixel such that it will be black and not transparent.) >> >> If this behavior can't yet be configured via mapscript, we could work on a pull request to implement this behavior, which would then be activated via a new configuration option. >> Do you have any thoughts on this? Does this make sense to you as a feature? >> >> Best regards, >> Bernhard >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Nov 28 06:51:26 2022 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 28 Nov 2022 10:51:26 -0400 Subject: [MapServer-users] Catalogue Service for the Web (CSW) with MapServer? In-Reply-To: References: Message-ID: <76affe8a-fe33-bcbe-ec7d-27450da29f4d@gatewaygeomatics.com> For several years now, every MS4W installation comes with a working CSW endpoint out-of-the-box (through pycsw : https://pycsw.org/ , which is a lightweight Python implementation). At some point soon MS4W will also serve OGC API Records (the equivalent of CSW) through pygeoapi ( https://pygeoapi.io/ ), which is definitely worth your time to examine as well. Hope that helps, -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2022-11-28 10:33 a.m., Gerhard V?lkl wrote: > Hello, > > Is ist possible to create an *Catalogue Service for the Web (CSW)?with > MapServer?* > * > * > *If Not Which free software do you use?* > * > * > *Thanks* > * > * > *Best Regards Gerhard* > > > Von meinem iPad gesendet > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From bernhard.mallinger at eox.at Mon Nov 28 06:53:04 2022 From: bernhard.mallinger at eox.at (Mallinger, Bernhard) Date: Mon, 28 Nov 2022 15:53:04 +0100 Subject: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels In-Reply-To: References: Message-ID: Thank you for the suggestion, I have tried it now. Since the values below the minimum scale is mapped to 0, i tried using the following instruction: PROCESSING "LUT=0:1" This actually maps the values below the minimum to 1, but also the no data values. Do you know if there's a way where I can distinguish between those two using LUT? Best, Bernhard On Mon, Nov 28, 2022 at 3:26 PM Rahkonen Jukka < jukka.rahkonen at maanmittauslaitos.fi> wrote: > Hi, > > > > Have you tried the LUT processing option > https://mapserver.org/input/raster.html? > > > > -Jukka Rahkonen- > > > > *L?hett?j?:* MapServer-users *Puolesta > *Mallinger, Bernhard > *L?hetetty:* maanantai 28. marraskuuta 2022 15.35 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* [MapServer-users] Distinguish between pixels outside of SCALE > range and nodata pixels > > > > Hello, > > We have maps where we want the color scale go from e.g. 10 to 20, so we > are using this directive: > > > PROCESSING "SCALE_1=10.0,20.0" > > This works great by itself, however it also means that pixels with values > of e.g. 5 are rendered as transparent, which is the same as the nodata > pixels. So in the final image, you can't tell if data is present but the > values are too low, or if there just isn't any data. > > So the behaviour we would like is that values below 10 are rendered as > black and values over 20 are rendered as white. > > Is this somehow possible with mapscript? > > > We tried to have a look in the source code, and there is this line, which > effectively assigns 0 to pixels below the minimum: > https://github.com/MapServer/MapServer/blob/main/mapdrawgdal.c#L1555 > > > > > It turns out that this small code change actually produces the desired > behavior: > > fScaledValue = (float) ((pafRawData[i]-dfScaleMin)*dfScaleRatio); > > if( fScaledValue < 0.0 ) > > - pabyBuffer[i] = 0; > > + if (pafRawData[i] > 0) { > > + pabyBuffer[i] = 1; > > + } else { > > + pabyBuffer[i] = 0; > > + } > > (I.e. if the original value was greater than 0, then assign 1 to this pixel such that it will be black and not transparent.) > > If this behavior can't yet be configured via mapscript, we could work on a pull request to implement this behavior, which would then be activated via a new configuration option. > Do you have any thoughts on this? Does this make sense to you as a feature? > > Best regards, > Bernhard > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From timothy.kempisty at noaa.gov Mon Nov 28 07:22:53 2022 From: timothy.kempisty at noaa.gov (Timothy Kempisty - NOAA Federal) Date: Mon, 28 Nov 2022 10:22:53 -0500 Subject: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels In-Reply-To: References: Message-ID: I assume it would read the data twice. I suppose the other option is to abandon the PROCESSING SCALE directive entirely. Set all your CLASS colors for 10.0 to 20.0 manually. It can be tedious to set up, but we do this all the time for scales with 200+ custom colors. Then you are free to keep the "< 10 black" and "> 20 white" classes in the same layer. [pixel] < 10 black [pixel] < 10.1 [pixel] <10.2 ... [pixel] < 20 [pixel] >= 20 white For readability purposes, I'd put that big collection of classes in a separate file, and use #INCLUDE to bring it into the LAYER section of the mapfile. -Tim On Mon, Nov 28, 2022 at 9:51 AM Mallinger, Bernhard < bernhard.mallinger at eox.at> wrote: > Thank you for the suggestion, this actually achieves the desired effect! > > I'm just wondering if this now reads the data twice? > > We're using data from remote locations which can be slow to read, so > reading them twice would be inconvenient. > > Best, > Bernhard > > > On Mon, Nov 28, 2022 at 3:18 PM Timothy Kempisty - NOAA Federal < > timothy.kempisty at noaa.gov> wrote: > >> Try adding a separate background layer using the same data, with CLASS >> statements only for your out of bounds pixel values. Simplified a bit here: >> >> LAYER >> # -- Your existing layer >> NAME my_actual_data >> * GROUP mydata* >> DATA same_data >> PROCESSING "SCALE_1=10.0,20.0" >> >> <... yadda yadda ...> >> END >> >> LAYER >> # -- New layer adds black/white colors where pixel values exceed scale >> bounds >> NAME background >> * GROUP mydata* >> DATA same_data >> CLASS >> EXPRESSION ([pixel] < 10) >> <...black...> >> END >> CLASS >> EXPRESSION ([pixel] > 20) >> <...white...> >> END >> END >> >> Display both layers together by requesting the "mydata" group name, just >> like you would request any other layer. It will render all layers with the >> same group name. >> >> -Tim >> >> On Mon, Nov 28, 2022 at 8:35 AM Mallinger, Bernhard < >> bernhard.mallinger at eox.at> wrote: >> >>> Hello, >>> >>> We have maps where we want the color scale go from e.g. 10 to 20, so we >>> are using this directive: >>> >>> PROCESSING "SCALE_1=10.0,20.0" >>> >>> This works great by itself, however it also means that pixels with >>> values of e.g. 5 are rendered as transparent, which is the same as the >>> nodata pixels. So in the final image, you can't tell if data is present but >>> the values are too low, or if there just isn't any data. >>> >>> So the behaviour we would like is that values below 10 are rendered as >>> black and values over 20 are rendered as white. >>> >>> Is this somehow possible with mapscript? >>> >>> >>> We tried to have a look in the source code, and there is this line, >>> which effectively assigns 0 to pixels below the minimum: >>> https://github.com/MapServer/MapServer/blob/main/mapdrawgdal.c#L1555 >>> >>> It turns out that this small code change actually produces the desired >>> behavior: >>> >>> fScaledValue = (float) ((pafRawData[i]-dfScaleMin)*dfScaleRatio); if( fScaledValue < 0.0 )- pabyBuffer[i] = 0;+ if (pafRawData[i] > 0) {+ pabyBuffer[i] = 1;+ } else {+ pabyBuffer[i] = 0;+ } >>> >>> (I.e. if the original value was greater than 0, then assign 1 to this pixel such that it will be black and not transparent.) >>> >>> If this behavior can't yet be configured via mapscript, we could work on a pull request to implement this behavior, which would then be activated via a new configuration option. >>> Do you have any thoughts on this? Does this make sense to you as a feature? >>> >>> Best regards, >>> Bernhard >>> >>> _______________________________________________ >>> 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 jklymak at gmail.com Mon Nov 28 09:05:31 2022 From: jklymak at gmail.com (Jody Klymak) Date: Mon, 28 Nov 2022 09:05:31 -0800 Subject: [MapServer-users] [EXTERNAL] WMS GetCapabilities map minx, miny etc transposed In-Reply-To: <9e87f946239e431a8b52fc8435bedf8c@saabgroup.com> References: <77A6157E-96A2-4243-8E89-944154CDF5A6@gmail.com> <1629DC41-8AD1-4050-9A47-1660F4A4DD13@gmail.com> <9e87f946239e431a8b52fc8435bedf8c@saabgroup.com> Message-ID: Hi Lars, > On Nov 28, 2022, at 12:35 AM, Schylberg Lars wrote: > > Hi, I guess it is the old problem with axis order between WMS 1.1.1 and WMS 1.3.0 > > Daniel Morissette wrote about the problem long time ago. > > http://dmorissette.blogspot.com/2012/12/dont-upgrade-to-wms-130-unless-you.html > That indeed seems to be the issue. Yikes! Thanks for clearing that up for me - I don?t feel too bad for not figuring out that piece of arcana! Cheers, Jody -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Mon Nov 28 09:24:48 2022 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Mon, 28 Nov 2022 17:24:48 +0000 Subject: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels In-Reply-To: References: Message-ID: Hi, What is your nodata value and the datatype of the source raster? If you deal with byte or int16 data and the nodata value is 0, you can keep it unaltered in your LUT, then map values 1-9 into 1 that is almost black, range 10-19 as you wish, and 20 and above into white. -Jukka Rahkonen- L?hett?j?: Mallinger, Bernhard L?hetetty: maanantai 28. marraskuuta 2022 16.53 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels Thank you for the suggestion, I have tried it now. Since the values below the minimum scale is mapped to 0, i tried using the following instruction: PROCESSING "LUT=0:1" This actually maps the values below the minimum to 1, but also the no data values. Do you know if there's a way where I can distinguish between those two using LUT? Best, Bernhard On Mon, Nov 28, 2022 at 3:26 PM Rahkonen Jukka > wrote: Hi, Have you tried the LUT processing option https://mapserver.org/input/raster.html? -Jukka Rahkonen- L?hett?j?: MapServer-users > Puolesta Mallinger, Bernhard L?hetetty: maanantai 28. marraskuuta 2022 15.35 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels Hello, We have maps where we want the color scale go from e.g. 10 to 20, so we are using this directive: PROCESSING "SCALE_1=10.0,20.0" This works great by itself, however it also means that pixels with values of e.g. 5 are rendered as transparent, which is the same as the nodata pixels. So in the final image, you can't tell if data is present but the values are too low, or if there just isn't any data. So the behaviour we would like is that values below 10 are rendered as black and values over 20 are rendered as white. Is this somehow possible with mapscript? We tried to have a look in the source code, and there is this line, which effectively assigns 0 to pixels below the minimum: https://github.com/MapServer/MapServer/blob/main/mapdrawgdal.c#L1555 It turns out that this small code change actually produces the desired behavior: fScaledValue = (float) ((pafRawData[i]-dfScaleMin)*dfScaleRatio); if( fScaledValue < 0.0 ) - pabyBuffer[i] = 0; + if (pafRawData[i] > 0) { + pabyBuffer[i] = 1; + } else { + pabyBuffer[i] = 0; + } (I.e. if the original value was greater than 0, then assign 1 to this pixel such that it will be black and not transparent.) If this behavior can't yet be configured via mapscript, we could work on a pull request to implement this behavior, which would then be activated via a new configuration option. Do you have any thoughts on this? Does this make sense to you as a feature? Best regards, Bernhard -------------- next part -------------- An HTML attachment was scrubbed... URL: From bahbouba.909 at gmail.com Mon Nov 28 18:58:11 2022 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Tue, 29 Nov 2022 03:58:11 +0100 Subject: [MapServer-users] asking Message-ID: hello i need your help regarding tinyows, postgresql and openlayer configuration. Since I am new to using tinyows, I tried to run the tinyow demo which is automatically loaded when installing ms4w, located in the ../ms4w/apps/tinyows/demo folder. by following the instructions given by the mapserver page whose link is: https://ms4w.com/README_INSTALL.html#tinyows. but during the transaction of the data to postgresql database the page returns the following error: *An error occurred while executing the transaction.* here is the source code of the tinyows.js files: https://pastebin.com/6kTDCFjG and tinyows.html: https://pastebin.com/zL9pHqF0. I need your help to all of you precisely that of *Jeff Mckenna* because I doubt that the server of tinyows is functional with the ms4w. *NB: I am using postgresql 13.9.1 and ms4w version 4.0.5* thank you in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From bernhard.mallinger at eox.at Tue Nov 29 03:20:27 2022 From: bernhard.mallinger at eox.at (Mallinger, Bernhard) Date: Tue, 29 Nov 2022 12:20:27 +0100 Subject: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels In-Reply-To: References: Message-ID: Hi, My nodata value is 0, so I think following your suggestion I can get the desired effect with just this: PROCESSING "LUT=1:1,10:1,20:255" The initial tests look very promising, it seems that it's really possible to replace SCALE with this LUT directive. Thanks a lot for your help! So no code change seems to be needed after all. Best regards, Bernhard On Mon, Nov 28, 2022 at 6:24 PM Rahkonen Jukka < jukka.rahkonen at maanmittauslaitos.fi> wrote: > Hi, > > > > What is your nodata value and the datatype of the source raster? If you > deal with byte or int16 data and the nodata value is 0, you can keep it > unaltered in your LUT, then map values 1-9 into 1 that is almost black, > range 10-19 as you wish, and 20 and above into white. > > > > -Jukka Rahkonen- > > > > *L?hett?j?:* Mallinger, Bernhard > *L?hetetty:* maanantai 28. marraskuuta 2022 16.53 > *Vastaanottaja:* Rahkonen Jukka > *Kopio:* mapserver-users at lists.osgeo.org > *Aihe:* Re: [MapServer-users] Distinguish between pixels outside of SCALE > range and nodata pixels > > > > Thank you for the suggestion, I have tried it now. > > Since the values below the minimum scale is mapped to 0, i tried using the > following instruction: > > PROCESSING "LUT=0:1" > > This actually maps the values below the minimum to 1, but also the no data > values. Do you know if there's a way where I can distinguish between those > two using LUT? > > Best, > > Bernhard > > > > > > On Mon, Nov 28, 2022 at 3:26 PM Rahkonen Jukka < > jukka.rahkonen at maanmittauslaitos.fi> wrote: > > Hi, > > > > Have you tried the LUT processing option > https://mapserver.org/input/raster.html > > ? > > > > -Jukka Rahkonen- > > > > *L?hett?j?:* MapServer-users *Puolesta > *Mallinger, Bernhard > *L?hetetty:* maanantai 28. marraskuuta 2022 15.35 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* [MapServer-users] Distinguish between pixels outside of SCALE > range and nodata pixels > > > > Hello, > > We have maps where we want the color scale go from e.g. 10 to 20, so we > are using this directive: > > > PROCESSING "SCALE_1=10.0,20.0" > > This works great by itself, however it also means that pixels with values > of e.g. 5 are rendered as transparent, which is the same as the nodata > pixels. So in the final image, you can't tell if data is present but the > values are too low, or if there just isn't any data. > > So the behaviour we would like is that values below 10 are rendered as > black and values over 20 are rendered as white. > > Is this somehow possible with mapscript? > > > We tried to have a look in the source code, and there is this line, which > effectively assigns 0 to pixels below the minimum: > https://github.com/MapServer/MapServer/blob/main/mapdrawgdal.c#L1555 > > > > > It turns out that this small code change actually produces the desired > behavior: > > fScaledValue = (float) ((pafRawData[i]-dfScaleMin)*dfScaleRatio); > > if( fScaledValue < 0.0 ) > > - pabyBuffer[i] = 0; > > + if (pafRawData[i] > 0) { > > + pabyBuffer[i] = 1; > > + } else { > > + pabyBuffer[i] = 0; > > + } > > (I.e. if the original value was greater than 0, then assign 1 to this pixel such that it will be black and not transparent.) > > If this behavior can't yet be configured via mapscript, we could work on a pull request to implement this behavior, which would then be activated via a new configuration option. > Do you have any thoughts on this? Does this make sense to you as a feature? > > Best regards, > Bernhard > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Tue Nov 29 06:52:31 2022 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Tue, 29 Nov 2022 14:52:31 +0000 Subject: [MapServer-users] Shapefile data source doesn't work Message-ID: Hello, I have a problem rendering vector layer. The data does not show. My mapfile: MAP NAME "AED" EXTENT 1584202.7350061805918813 6301803.1952485935762525 2675789.3720532376319170 7329216.3261622246354818 UNITS METERS SIZE 512 512 IMAGETYPE PNG SHAPEPATH "/data/" PROJECTION "init=epsg:3857" END WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" METADATA "wms_title" "AED" "wms_onlineresource" "***" #must change mapfile path "wms_srs" "EPSG:3857" "wms_enable_request" "*" "wms_server_version" "1.3.0" "wms_feature_info_mime_type" "text/html" "wms_include_items" "all" "wms_getcapabilities_version" "1.3.0" END END LAYER NAME "my_shapefile" STATUS ON TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "/DyskPlanetiler/OSM/aed_poland.shp" DATA "aed_poland" CLASS NAME "AED" STYLE COLOR 246 241 223 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 20 END END END END I will be grateful for any tips. Best, Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: From joerg.thomsen at wheregroup.com Tue Nov 29 07:08:39 2022 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Tue, 29 Nov 2022 16:08:39 +0100 Subject: [MapServer-users] Shapefile data source doesn't work In-Reply-To: References: Message-ID: Hi, for shp you don't need connectiontype and connection, only data is required. Try the absoulte path to your shp. Wht do you mean with 'map does not show'? white / blank image? This is often caused by a mismatsch bewtween epsg und extent. Or an error-msg? what does it say? J?rg Am 29.11.22 um 15:52 schrieb Marcin Niemyjski via MapServer-users: > Hello, > > I have a problem rendering vector layer. The data does not show. My mapfile: > > MAP > NAME "AED" > EXTENT 1584202.7350061805918813 6301803.1952485935762525 > 2675789.3720532376319170 ?7329216.3261622246354818 > UNITS METERS > SIZE 512 512 > IMAGETYPE PNG > SHAPEPATH "/data/" > > PROJECTION > ? ? "init=epsg:3857" > END > WEB > ? ? IMAGEPATH "/tmp/" > ? ? IMAGEURL "/tmp/" > ? ? METADATA > ? ? ? "wms_title" ? ? ? ? ? "AED" > ? ? ? "wms_onlineresource" ?"***" #must change mapfile path > ? ? ? "wms_srs" ? ? ? ? ? ? "EPSG:3857" > ? ? ? "wms_enable_request" ?"*" > ? ? ? "wms_server_version" "1.3.0" > ? ? ? "wms_feature_info_mime_type" "text/html" > ? ? ? "wms_include_items" "all" > ? ? ? "wms_getcapabilities_version" "1.3.0" > ? ? END > END > > > LAYER > ? NAME "my_shapefile" > ? STATUS ON > ? TYPE POINT > ? STATUS ON > ? CONNECTIONTYPE OGR > ? CONNECTION "/DyskPlanetiler/OSM/aed_poland.shp" > ? DATA "aed_poland" > ? CLASS > ? ? ? NAME "AED" > ? ? ? STYLE > ? ? ? ? COLOR 246 241 223 > ? ? ? ? OUTLINECOLOR 255 0 0 > ? ? ? ? SYMBOL 'circle' > ? ? ? ? SIZE 20 > ? ? ? END > ? ? END > ? END > > END > > I will be grateful for any tips. > Best, > Marcin > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Viele Gr??e, J?rg Thomsen --------------------------------------------- Where2B Konferenz 2022 15. Dezember 2022 in Bonn und Online where2b-conference.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Tel: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From mniemyjski at cloudferro.com Tue Nov 29 07:20:56 2022 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Tue, 29 Nov 2022 15:20:56 +0000 Subject: [MapServer-users] Shapefile data source doesn't work In-Reply-To: References: Message-ID: J?rg, I meant that when checking in qgis no data is rendered, nothing is shown. I just tried: https://pastebin.com/zgNes8PD QGIS connects with layer, but it seems like there is no data. and result remain the same - nothing was received. Thank you for fast reply, Marcin ________________________________ From: MapServer-users on behalf of J?rg Thomsen (WhereGroup) Sent: Tuesday, November 29, 2022 4:08 PM To: mapserver-users at lists.osgeo.org Subject: Re: [MapServer-users] Shapefile data source doesn't work Hi, for shp you don't need connectiontype and connection, only data is required. Try the absoulte path to your shp. Wht do you mean with 'map does not show'? white / blank image? This is often caused by a mismatsch bewtween epsg und extent. Or an error-msg? what does it say? J?rg Am 29.11.22 um 15:52 schrieb Marcin Niemyjski via MapServer-users: > Hello, > > I have a problem rendering vector layer. The data does not show. My mapfile: > > MAP > NAME "AED" > EXTENT 1584202.7350061805918813 6301803.1952485935762525 > 2675789.3720532376319170 7329216.3261622246354818 > UNITS METERS > SIZE 512 512 > IMAGETYPE PNG > SHAPEPATH "/data/" > > PROJECTION > "init=epsg:3857" > END > WEB > IMAGEPATH "/tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "AED" > "wms_onlineresource" "***" #must change mapfile path > "wms_srs" "EPSG:3857" > "wms_enable_request" "*" > "wms_server_version" "1.3.0" > "wms_feature_info_mime_type" "text/html" > "wms_include_items" "all" > "wms_getcapabilities_version" "1.3.0" > END > END > > > LAYER > NAME "my_shapefile" > STATUS ON > TYPE POINT > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "/DyskPlanetiler/OSM/aed_poland.shp" > DATA "aed_poland" > CLASS > NAME "AED" > STYLE > COLOR 246 241 223 > OUTLINECOLOR 255 0 0 > SYMBOL 'circle' > SIZE 20 > END > END > END > > END > > I will be grateful for any tips. > Best, > Marcin > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Viele Gr??e, J?rg Thomsen --------------------------------------------- Where2B Konferenz 2022 15. Dezember 2022 in Bonn und Online where2b-conference.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Tel: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Tue Nov 29 07:27:16 2022 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Tue, 29 Nov 2022 15:27:16 +0000 Subject: [MapServer-users] Shapefile data source doesn't work In-Reply-To: References: Message-ID: Hi, Please show the extent of the shapefile as ogrinfo shows it. Verify that EPSG:3857 is correct for the data. And capture the GetMap request that QGIS is sending. -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Marcin Niemyjski via MapServer-users L?hetetty: tiistai 29. marraskuuta 2022 17.21 Vastaanottaja: J?rg Thomsen (WhereGroup) ; Marcin Niemyjski via MapServer-users Aihe: Re: [MapServer-users] Shapefile data source doesn't work J?rg, I meant that when checking in qgis no data is rendered, nothing is shown. I just tried: https://pastebin.com/zgNes8PD QGIS connects with layer, but it seems like there is no data. and result remain the same - nothing was received. Thank you for fast reply, Marcin ________________________________ From: MapServer-users > on behalf of J?rg Thomsen (WhereGroup) > Sent: Tuesday, November 29, 2022 4:08 PM To: mapserver-users at lists.osgeo.org > Subject: Re: [MapServer-users] Shapefile data source doesn't work Hi, for shp you don't need connectiontype and connection, only data is required. Try the absoulte path to your shp. Wht do you mean with 'map does not show'? white / blank image? This is often caused by a mismatsch bewtween epsg und extent. Or an error-msg? what does it say? J?rg Am 29.11.22 um 15:52 schrieb Marcin Niemyjski via MapServer-users: > Hello, > > I have a problem rendering vector layer. The data does not show. My mapfile: > > MAP > NAME "AED" > EXTENT 1584202.7350061805918813 6301803.1952485935762525 > 2675789.3720532376319170 7329216.3261622246354818 > UNITS METERS > SIZE 512 512 > IMAGETYPE PNG > SHAPEPATH "/data/" > > PROJECTION > "init=epsg:3857" > END > WEB > IMAGEPATH "/tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "AED" > "wms_onlineresource" "***" #must change mapfile path > "wms_srs" "EPSG:3857" > "wms_enable_request" "*" > "wms_server_version" "1.3.0" > "wms_feature_info_mime_type" "text/html" > "wms_include_items" "all" > "wms_getcapabilities_version" "1.3.0" > END > END > > > LAYER > NAME "my_shapefile" > STATUS ON > TYPE POINT > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "/DyskPlanetiler/OSM/aed_poland.shp" > DATA "aed_poland" > CLASS > NAME "AED" > STYLE > COLOR 246 241 223 > OUTLINECOLOR 255 0 0 > SYMBOL 'circle' > SIZE 20 > END > END > END > > END > > I will be grateful for any tips. > Best, > Marcin > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Viele Gr??e, J?rg Thomsen --------------------------------------------- Where2B Konferenz 2022 15. Dezember 2022 in Bonn und Online where2b-conference.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Tel: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From joerg.thomsen at wheregroup.com Tue Nov 29 07:31:02 2022 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Tue, 29 Nov 2022 16:31:02 +0100 Subject: [MapServer-users] Shapefile data source doesn't work In-Reply-To: References: Message-ID: <2e146f57-2864-c08e-6ac9-95568f797c86@wheregroup.com> the pastebin-mapfile has no class and styling information. you need at least one class with one style. -> https://mapserver.org/tutorial/example1-2.html J?rg Am 29.11.22 um 16:20 schrieb Marcin Niemyjski: > J?rg, > > I meant that when checking in qgis no data is rendered, nothing is > shown. I just tried: > https://pastebin.com/zgNes8PD > QGIS connects with layer, but it seems like there is no data. > and result remain the same - nothing was received. > > Thank you for fast reply, > Marcin > ------------------------------------------------------------------------ > *From:* MapServer-users on > behalf of J?rg Thomsen (WhereGroup) > *Sent:* Tuesday, November 29, 2022 4:08 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [MapServer-users] Shapefile data source doesn't work > Hi, > > for shp you don't need connectiontype and connection, only data is > required. Try the absoulte path to your shp. > > Wht do you mean with 'map does not show'? white / blank image? This is > often caused by a mismatsch bewtween epsg und extent. Or an error-msg? > what does it say? > > J?rg > > Am 29.11.22 um 15:52 schrieb Marcin Niemyjski via MapServer-users: >> Hello, >> >> I have a problem rendering vector layer. The data does not show. My mapfile: >> >> MAP >> NAME "AED" >> EXTENT 1584202.7350061805918813 6301803.1952485935762525 >> 2675789.3720532376319170 ?7329216.3261622246354818 >> UNITS METERS >> SIZE 512 512 >> IMAGETYPE PNG >> SHAPEPATH "/data/" >> >> PROJECTION >>? ? ? "init=epsg:3857" >> END >> WEB >>? ? ? IMAGEPATH "/tmp/" >>? ? ? IMAGEURL "/tmp/" >>? ? ? METADATA >>? ? ? ? "wms_title" ? ? ? ? ? "AED" >>? ? ? ? "wms_onlineresource" ?"***" #must change mapfile path >>? ? ? ? "wms_srs" ? ? ? ? ? ? "EPSG:3857" >>? ? ? ? "wms_enable_request" ?"*" >>? ? ? ? "wms_server_version" "1.3.0" >>? ? ? ? "wms_feature_info_mime_type" "text/html" >>? ? ? ? "wms_include_items" "all" >>? ? ? ? "wms_getcapabilities_version" "1.3.0" >>? ? ? END >> END >> >> >> LAYER >>? ? NAME "my_shapefile" >>? ? STATUS ON >>? ? TYPE POINT >>? ? STATUS ON >>? ? CONNECTIONTYPE OGR >>? ? CONNECTION "/DyskPlanetiler/OSM/aed_poland.shp" >>? ? DATA "aed_poland" >>? ? CLASS >>? ? ? ? NAME "AED" >>? ? ? ? STYLE >>? ? ? ? ? COLOR 246 241 223 >>? ? ? ? ? OUTLINECOLOR 255 0 0 >>? ? ? ? ? SYMBOL 'circle' >>? ? ? ? ? SIZE 20 >>? ? ? ? END >>? ? ? END >>? ? END >> >> END >> >> I will be grateful for any tips. >> Best, >> Marcin >> >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Viele Gr??e, > J?rg Thomsen > > --------------------------------------------- > Where2B Konferenz 2022 > 15. Dezember 2022 in Bonn und Online > where2b-conference.com > --------------------------------------------- > > J?rg Thomsen > WhereGroup GmbH > Bundesallee 23 > 10717 Berlin > Germany > > Tel: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 5130 278 11 > > joerg.thomsen at wheregroup.com > www.wheregroup.com > > Gesch?ftsf?hrer: > Olaf Knopp, Peter Stamm > Amtsgericht Bonn, HRB 9885 > > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Viele Gr??e, J?rg Thomsen --------------------------------------------- Where2B Konferenz 2022 15. Dezember 2022 in Bonn und Online where2b-conference.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Tel: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From mniemyjski at cloudferro.com Tue Nov 29 08:10:25 2022 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Tue, 29 Nov 2022 16:10:25 +0000 Subject: [MapServer-users] Shapefile data source doesn't work In-Reply-To: <2e146f57-2864-c08e-6ac9-95568f797c86@wheregroup.com> References: <2e146f57-2864-c08e-6ac9-95568f797c86@wheregroup.com> Message-ID: okey, I corrected mapfile according to your tips, but result remain the same. mapfile: https://pastebin.com/3yfVaF7Q I also tired GetMap request - all white box was returned. Attribute table of shp layer: https://pasteboard.co/5uEnUYnP7NjP.png and Layers properties from qgis: https://pasteboard.co/Dibb2L5aICrP.png Best, Marcin ________________________________ From: J?rg Thomsen (WhereGroup) Sent: Tuesday, November 29, 2022 4:31 PM To: Marcin Niemyjski ; Marcin Niemyjski via MapServer-users Subject: Re: [MapServer-users] Shapefile data source doesn't work the pastebin-mapfile has no class and styling information. you need at least one class with one style. -> https://mapserver.org/tutorial/example1-2.html J?rg Am 29.11.22 um 16:20 schrieb Marcin Niemyjski: > J?rg, > > I meant that when checking in qgis no data is rendered, nothing is > shown. I just tried: > https://pastebin.com/zgNes8PD > QGIS connects with layer, but it seems like there is no data. > and result remain the same - nothing was received. > > Thank you for fast reply, > Marcin > ------------------------------------------------------------------------ > *From:* MapServer-users on > behalf of J?rg Thomsen (WhereGroup) > *Sent:* Tuesday, November 29, 2022 4:08 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [MapServer-users] Shapefile data source doesn't work > Hi, > > for shp you don't need connectiontype and connection, only data is > required. Try the absoulte path to your shp. > > Wht do you mean with 'map does not show'? white / blank image? This is > often caused by a mismatsch bewtween epsg und extent. Or an error-msg? > what does it say? > > J?rg > > Am 29.11.22 um 15:52 schrieb Marcin Niemyjski via MapServer-users: >> Hello, >> >> I have a problem rendering vector layer. The data does not show. My mapfile: >> >> MAP >> NAME "AED" >> EXTENT 1584202.7350061805918813 6301803.1952485935762525 >> 2675789.3720532376319170 7329216.3261622246354818 >> UNITS METERS >> SIZE 512 512 >> IMAGETYPE PNG >> SHAPEPATH "/data/" >> >> PROJECTION >> "init=epsg:3857" >> END >> WEB >> IMAGEPATH "/tmp/" >> IMAGEURL "/tmp/" >> METADATA >> "wms_title" "AED" >> "wms_onlineresource" "***" #must change mapfile path >> "wms_srs" "EPSG:3857" >> "wms_enable_request" "*" >> "wms_server_version" "1.3.0" >> "wms_feature_info_mime_type" "text/html" >> "wms_include_items" "all" >> "wms_getcapabilities_version" "1.3.0" >> END >> END >> >> >> LAYER >> NAME "my_shapefile" >> STATUS ON >> TYPE POINT >> STATUS ON >> CONNECTIONTYPE OGR >> CONNECTION "/DyskPlanetiler/OSM/aed_poland.shp" >> DATA "aed_poland" >> CLASS >> NAME "AED" >> STYLE >> COLOR 246 241 223 >> OUTLINECOLOR 255 0 0 >> SYMBOL 'circle' >> SIZE 20 >> END >> END >> END >> >> END >> >> I will be grateful for any tips. >> Best, >> Marcin >> >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Viele Gr??e, > J?rg Thomsen > > --------------------------------------------- > Where2B Konferenz 2022 > 15. Dezember 2022 in Bonn und Online > where2b-conference.com > --------------------------------------------- > > J?rg Thomsen > WhereGroup GmbH > Bundesallee 23 > 10717 Berlin > Germany > > Tel: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 5130 278 11 > > joerg.thomsen at wheregroup.com > www.wheregroup.com > > Gesch?ftsf?hrer: > Olaf Knopp, Peter Stamm > Amtsgericht Bonn, HRB 9885 > > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Viele Gr??e, J?rg Thomsen --------------------------------------------- Where2B Konferenz 2022 15. Dezember 2022 in Bonn und Online where2b-conference.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Tel: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Tue Nov 29 08:15:13 2022 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Tue, 29 Nov 2022 16:15:13 +0000 Subject: [MapServer-users] Shapefile data source doesn't work In-Reply-To: References: <2e146f57-2864-c08e-6ac9-95568f797c86@wheregroup.com> Message-ID: Hi, Can you share also the shapefile? -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Marcin Niemyjski via MapServer-users L?hetetty: tiistai 29. marraskuuta 2022 18.10 Vastaanottaja: J?rg Thomsen (WhereGroup) ; Marcin Niemyjski via MapServer-users Aihe: Re: [MapServer-users] Shapefile data source doesn't work okey, I corrected mapfile according to your tips, but result remain the same. mapfile: https://pastebin.com/3yfVaF7Q I also tired GetMap request - all white box was returned. Attribute table of shp layer: https://pasteboard.co/5uEnUYnP7NjP.png and Layers properties from qgis: https://pasteboard.co/Dibb2L5aICrP.png Best, Marcin ________________________________ From: J?rg Thomsen (WhereGroup) > Sent: Tuesday, November 29, 2022 4:31 PM To: Marcin Niemyjski >; Marcin Niemyjski via MapServer-users > Subject: Re: [MapServer-users] Shapefile data source doesn't work the pastebin-mapfile has no class and styling information. you need at least one class with one style. -> https://mapserver.org/tutorial/example1-2.html J?rg Am 29.11.22 um 16:20 schrieb Marcin Niemyjski: > J?rg, > > I meant that when checking in qgis no data is rendered, nothing is > shown. I just tried: > https://pastebin.com/zgNes8PD > > QGIS connects with layer, but it seems like there is no data. > and result remain the same - nothing was received. > > Thank you for fast reply, > Marcin > ------------------------------------------------------------------------ > *From:* MapServer-users > on > behalf of J?rg Thomsen (WhereGroup) > > *Sent:* Tuesday, November 29, 2022 4:08 PM > *To:* mapserver-users at lists.osgeo.org > > *Subject:* Re: [MapServer-users] Shapefile data source doesn't work > Hi, > > for shp you don't need connectiontype and connection, only data is > required. Try the absoulte path to your shp. > > Wht do you mean with 'map does not show'? white / blank image? This is > often caused by a mismatsch bewtween epsg und extent. Or an error-msg? > what does it say? > > J?rg > > Am 29.11.22 um 15:52 schrieb Marcin Niemyjski via MapServer-users: >> Hello, >> >> I have a problem rendering vector layer. The data does not show. My mapfile: >> >> MAP >> NAME "AED" >> EXTENT 1584202.7350061805918813 6301803.1952485935762525 >> 2675789.3720532376319170 7329216.3261622246354818 >> UNITS METERS >> SIZE 512 512 >> IMAGETYPE PNG >> SHAPEPATH "/data/" >> >> PROJECTION >> "init=epsg:3857" >> END >> WEB >> IMAGEPATH "/tmp/" >> IMAGEURL "/tmp/" >> METADATA >> "wms_title" "AED" >> "wms_onlineresource" "***" #must change mapfile path >> "wms_srs" "EPSG:3857" >> "wms_enable_request" "*" >> "wms_server_version" "1.3.0" >> "wms_feature_info_mime_type" "text/html" >> "wms_include_items" "all" >> "wms_getcapabilities_version" "1.3.0" >> END >> END >> >> >> LAYER >> NAME "my_shapefile" >> STATUS ON >> TYPE POINT >> STATUS ON >> CONNECTIONTYPE OGR >> CONNECTION "/DyskPlanetiler/OSM/aed_poland.shp" >> DATA "aed_poland" >> CLASS >> NAME "AED" >> STYLE >> COLOR 246 241 223 >> OUTLINECOLOR 255 0 0 >> SYMBOL 'circle' >> SIZE 20 >> END >> END >> END >> >> END >> >> I will be grateful for any tips. >> Best, >> Marcin >> >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > Viele Gr??e, > J?rg Thomsen > > --------------------------------------------- > Where2B Konferenz 2022 > 15. Dezember 2022 in Bonn und Online > where2b-conference.com > --------------------------------------------- > > J?rg Thomsen > WhereGroup GmbH > Bundesallee 23 > 10717 Berlin > Germany > > Tel: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 5130 278 11 > > joerg.thomsen at wheregroup.com > www.wheregroup.com > > > Gesch?ftsf?hrer: > Olaf Knopp, Peter Stamm > Amtsgericht Bonn, HRB 9885 > > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Viele Gr??e, J?rg Thomsen --------------------------------------------- Where2B Konferenz 2022 15. Dezember 2022 in Bonn und Online where2b-conference.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Tel: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Tue Nov 29 08:28:37 2022 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Tue, 29 Nov 2022 16:28:37 +0000 Subject: [MapServer-users] Shapefile data source doesn't work In-Reply-To: References: <2e146f57-2864-c08e-6ac9-95568f797c86@wheregroup.com> Message-ID: of course, and thank you for helping! link: https://cloudferro-my.sharepoint.com/:f:/p/mniemyjski/Es6KvPu4ETtKvOJjs2p7ztkBLIIBjdm1aVU3epU5Sa11LQ?e=x5IYRs ________________________________ From: Rahkonen Jukka Sent: Tuesday, November 29, 2022 5:15 PM To: Marcin Niemyjski ; J?rg Thomsen (WhereGroup) ; Marcin Niemyjski via MapServer-users Subject: Re: [MapServer-users] Shapefile data source doesn't work Hi, Can you share also the shapefile? -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Marcin Niemyjski via MapServer-users L?hetetty: tiistai 29. marraskuuta 2022 18.10 Vastaanottaja: J?rg Thomsen (WhereGroup) ; Marcin Niemyjski via MapServer-users Aihe: Re: [MapServer-users] Shapefile data source doesn't work okey, I corrected mapfile according to your tips, but result remain the same. mapfile: https://pastebin.com/3yfVaF7Q I also tired GetMap request - all white box was returned. Attribute table of shp layer: https://pasteboard.co/5uEnUYnP7NjP.png and Layers properties from qgis: https://pasteboard.co/Dibb2L5aICrP.png Best, Marcin ________________________________ From: J?rg Thomsen (WhereGroup) > Sent: Tuesday, November 29, 2022 4:31 PM To: Marcin Niemyjski >; Marcin Niemyjski via MapServer-users > Subject: Re: [MapServer-users] Shapefile data source doesn't work the pastebin-mapfile has no class and styling information. you need at least one class with one style. -> https://mapserver.org/tutorial/example1-2.html J?rg Am 29.11.22 um 16:20 schrieb Marcin Niemyjski: > J?rg, > > I meant that when checking in qgis no data is rendered, nothing is > shown. I just tried: > https://pastebin.com/zgNes8PD > > QGIS connects with layer, but it seems like there is no data. > and result remain the same - nothing was received. > > Thank you for fast reply, > Marcin > ------------------------------------------------------------------------ > *From:* MapServer-users > on > behalf of J?rg Thomsen (WhereGroup) > > *Sent:* Tuesday, November 29, 2022 4:08 PM > *To:* mapserver-users at lists.osgeo.org > > *Subject:* Re: [MapServer-users] Shapefile data source doesn't work > Hi, > > for shp you don't need connectiontype and connection, only data is > required. Try the absoulte path to your shp. > > Wht do you mean with 'map does not show'? white / blank image? This is > often caused by a mismatsch bewtween epsg und extent. Or an error-msg? > what does it say? > > J?rg > > Am 29.11.22 um 15:52 schrieb Marcin Niemyjski via MapServer-users: >> Hello, >> >> I have a problem rendering vector layer. The data does not show. My mapfile: >> >> MAP >> NAME "AED" >> EXTENT 1584202.7350061805918813 6301803.1952485935762525 >> 2675789.3720532376319170 7329216.3261622246354818 >> UNITS METERS >> SIZE 512 512 >> IMAGETYPE PNG >> SHAPEPATH "/data/" >> >> PROJECTION >> "init=epsg:3857" >> END >> WEB >> IMAGEPATH "/tmp/" >> IMAGEURL "/tmp/" >> METADATA >> "wms_title" "AED" >> "wms_onlineresource" "***" #must change mapfile path >> "wms_srs" "EPSG:3857" >> "wms_enable_request" "*" >> "wms_server_version" "1.3.0" >> "wms_feature_info_mime_type" "text/html" >> "wms_include_items" "all" >> "wms_getcapabilities_version" "1.3.0" >> END >> END >> >> >> LAYER >> NAME "my_shapefile" >> STATUS ON >> TYPE POINT >> STATUS ON >> CONNECTIONTYPE OGR >> CONNECTION "/DyskPlanetiler/OSM/aed_poland.shp" >> DATA "aed_poland" >> CLASS >> NAME "AED" >> STYLE >> COLOR 246 241 223 >> OUTLINECOLOR 255 0 0 >> SYMBOL 'circle' >> SIZE 20 >> END >> END >> END >> >> END >> >> I will be grateful for any tips. >> Best, >> Marcin >> >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > Viele Gr??e, > J?rg Thomsen > > --------------------------------------------- > Where2B Konferenz 2022 > 15. Dezember 2022 in Bonn und Online > where2b-conference.com > --------------------------------------------- > > J?rg Thomsen > WhereGroup GmbH > Bundesallee 23 > 10717 Berlin > Germany > > Tel: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 5130 278 11 > > joerg.thomsen at wheregroup.com > www.wheregroup.com > > > Gesch?ftsf?hrer: > Olaf Knopp, Peter Stamm > Amtsgericht Bonn, HRB 9885 > > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Viele Gr??e, J?rg Thomsen --------------------------------------------- Where2B Konferenz 2022 15. Dezember 2022 in Bonn und Online where2b-conference.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Tel: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Tue Nov 29 10:54:31 2022 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Tue, 29 Nov 2022 18:54:31 +0000 Subject: [MapServer-users] Shapefile data source doesn't work In-Reply-To: References: <2e146f57-2864-c08e-6ac9-95568f797c86@wheregroup.com> Message-ID: Hi, I can see blue dots with this request http://localhost:8060/cgi-bin/mapserv.exe? map=c:/ms4w_data/aed.map& REQUEST=GetMap& SERVICE=WMS& VERSION=1.3.0& WIDTH=1000& HEIGHT=525& LAYERS=Latest& TRANSPARENT=TRUE& FORMAT=image%2Fpng& BBOX=1532552.9142224141,6681474.69119125,2571584.460843797,7226966.2531674765& CRS=EPSG:3857& STYLES=default by using a mapfile that I slightly modified for my local MS4W. I am not sure what is the difference and I let you to find it out. MAP NAME "AED" EXTENT 1584202.7350061805918813 6301803.1952485935762525 2675789.3720532376319170 7329216.3261622246354818 UNITS METERS SIZE 512 512 IMAGETYPE PNG SHAPEPATH "/data/" CONFIG "MS_ERRORFILE" "c:\ms4w_data\aed.txt" PROJECTION "init=epsg:3857" END WEB # IMAGEPATH "/tmp/" # IMAGEURL "/tmp/" METADATA "wms_title" "AED" "wms_onlineresource" "***" #must change mapfile path "wms_srs" "EPSG:3857" "wms_enable_request" "*" "wms_server_version" "1.3.0" "wms_feature_info_mime_type" "text/html" "wms_include_items" "all" "wms_getcapabilities_version" "1.3.0" END END SYMBOL NAME "circlef" TYPE ellipse FILLED true POINTS 10 10 END # POINTS END # SYMBOL LAYER NAME "Latest" STATUS ON TYPE POINT DEBUG 5 DATA "C:\ms4w_data\syf\aed_poland.shp" PROJECTION "init=epsg:3857" END CLASS NAME "AED" STYLE COLOR 0 0 255 SYMBOL "circlef" SIZE 10 END END END END END -Jukka Rahkonen- L?hett?j?: Marcin Niemyjski > L?hetetty: tiistai 29. marraskuuta 2022 18.29 Vastaanottaja: Rahkonen Jukka >; joerg.thomsen at wheregroup.com; Marcin Niemyjski via MapServer-users > Aihe: Re: [MapServer-users] Shapefile data source doesn't work of course, and thank you for helping! link: https://cloudferro-my.sharepoint.com/:f:/p/mniemyjski/Es6KvPu4ETtKvOJjs2p7ztkBLIIBjdm1aVU3epU5Sa11LQ?e=x5IYRs ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Tue Nov 29 18:56:02 2022 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 29 Nov 2022 19:56:02 -0700 Subject: [MapServer-users] cgi/fcgi mapcache problem Message-ID: I have been running mapcache as an Apache module. I'm now trying to get the same configuration running as a FastCGI process. But making a CGI or FCGI request I get the error message "missing a service". I have the mapcache binary installed in the Ubuntu cgi-bin directory. The full urls are below, but the only change in the urls is from /mapcache/? to /cgi-bin/mapcache? or /cgi-bin/mapcache.fcgi? The query string is the same. The query string contains a SERVICE key. With the FastCGI I can see the mapcache.fcgi process is still there for a while as I would expect. The Apache error log shows a warning with the same "missing a service" and a response code of 404. But the 404 is clearly being generated by the mapcache process, not Apache. This is on Ubuntu 22.02 with standard repo install of mapcache 1.12. I tried it on two different computers, same problem. One computer did not have the Apache module installed so it's not a conflict between the module and the CGI. I tried changing the WMS version and a few other random things. Apache module, works: https://www2.greenwoodmap.com/mapcache/?LAYERS=laramie-contours&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3736&STYLES=&BBOX=753300.78125%2C248291.015625%2C753642.578125%2C248632.8125 FastCGI, error: https://www2.greenwoodmap.com/cgi-bin/mapcache.fcgi?LAYERS=laramie-contours&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3736&STYLES=&BBOX=753300.78125%2C248291.015625%2C753642.578125%2C248632.8125 CGI, same error: https://www2.greenwoodmap.com/cgi-bin/mapcache?LAYERS=laramie-contours&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3736&STYLES=&BBOX=753300.78125%2C248291.015625%2C753642.578125%2C248632.8125 -- Richard W. Greenwood www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Wed Nov 30 02:00:49 2022 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Wed, 30 Nov 2022 10:00:49 +0000 Subject: [MapServer-users] Shapefile data source doesn't work In-Reply-To: References: <2e146f57-2864-c08e-6ac9-95568f797c86@wheregroup.com> Message-ID: Jukka, thank you for your help, with your code I managed to make it work ? I really appreciate it. I don't want to overuse your willingness to help but could you also check my attempt to define Cluster? I was basing on https://mapserver.org/mapfile/cluster.html#mapfile-layer There is no HEADER "../htdocs/templates/cluster_header.html" FOOTER "../htdocs/templates/cluster_footer.html" TEMPLATE "../htdocs/templates/cluster_query.html" in my mapfile. From documentation I understand it is not obligatory and to be honest I don't quite get it. Working with raster data is so much easier ? Mapfile: https://pastebin.com/qEL76Uwv Thank you one more time and thank you all for the discussion and tips. Best, Marcin ________________________________ From: MapServer-users on behalf of Rahkonen Jukka Sent: Tuesday, November 29, 2022 7:54 PM To: Mapserver-Users (mapserver-users at lists.osgeo.org) Subject: Re: [MapServer-users] Shapefile data source doesn't work Hi, I can see blue dots with this request http://localhost:8060/cgi-bin/mapserv.exe? map=c:/ms4w_data/aed.map& REQUEST=GetMap& SERVICE=WMS& VERSION=1.3.0& WIDTH=1000& HEIGHT=525& LAYERS=Latest& TRANSPARENT=TRUE& FORMAT=image%2Fpng& BBOX=1532552.9142224141,6681474.69119125,2571584.460843797,7226966.2531674765& CRS=EPSG:3857& STYLES=default by using a mapfile that I slightly modified for my local MS4W. I am not sure what is the difference and I let you to find it out. MAP NAME "AED" EXTENT 1584202.7350061805918813 6301803.1952485935762525 2675789.3720532376319170 7329216.3261622246354818 UNITS METERS SIZE 512 512 IMAGETYPE PNG SHAPEPATH "/data/" CONFIG "MS_ERRORFILE" "c:\ms4w_data\aed.txt" PROJECTION "init=epsg:3857" END WEB # IMAGEPATH "/tmp/" # IMAGEURL "/tmp/" METADATA "wms_title" "AED" "wms_onlineresource" "***" #must change mapfile path "wms_srs" "EPSG:3857" "wms_enable_request" "*" "wms_server_version" "1.3.0" "wms_feature_info_mime_type" "text/html" "wms_include_items" "all" "wms_getcapabilities_version" "1.3.0" END END SYMBOL NAME "circlef" TYPE ellipse FILLED true POINTS 10 10 END # POINTS END # SYMBOL LAYER NAME "Latest" STATUS ON TYPE POINT DEBUG 5 DATA "C:\ms4w_data\syf\aed_poland.shp" PROJECTION "init=epsg:3857" END CLASS NAME "AED" STYLE COLOR 0 0 255 SYMBOL "circlef" SIZE 10 END END END END END -Jukka Rahkonen- L?hett?j?: Marcin Niemyjski > L?hetetty: tiistai 29. marraskuuta 2022 18.29 Vastaanottaja: Rahkonen Jukka >; joerg.thomsen at wheregroup.com; Marcin Niemyjski via MapServer-users > Aihe: Re: [MapServer-users] Shapefile data source doesn't work of course, and thank you for helping! link: https://cloudferro-my.sharepoint.com/:f:/p/mniemyjski/Es6KvPu4ETtKvOJjs2p7ztkBLIIBjdm1aVU3epU5Sa11LQ?e=x5IYRs ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Wed Nov 30 07:25:11 2022 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Wed, 30 Nov 2022 15:25:11 +0000 Subject: [MapServer-users] Shapefile data source doesn't work Message-ID: Everyone, I managed to make it work and add some features beyond clustering itself. Sending you my code, maybe somebody will find it useful. https://pastecode.io/s/035vagwt Thanks again, Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: