From bob.basques at ci.stpaul.mn.us Thu Aug 3 08:45:55 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 3 Aug 2023 15:45:55 +0000 Subject: [MapServer-users] Looking for Examples of COMPOSITE Message-ID: <962A314B-821B-4B47-8755-EB1AE737D3B3@ci.stpaul.mn.us> Hello all, I?m looking for example uses of the COMPOSITE function in MapFiles. I?m specifically in need of a way to shadow a line, to scale, on both sides as a way of indicating a tolerance to each side of the line. Anyone have an example of a COMPOSITE block for accomplishing this, or even something close (one side)? Thanks Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From public at postholer.com Thu Aug 3 08:54:49 2023 From: public at postholer.com (Scott) Date: Thu, 3 Aug 2023 08:54:49 -0700 Subject: [MapServer-users] Looking for Examples of COMPOSITE In-Reply-To: <962A314B-821B-4B47-8755-EB1AE737D3B3@ci.stpaul.mn.us> References: <962A314B-821B-4B47-8755-EB1AE737D3B3@ci.stpaul.mn.us> Message-ID: <28489616-9aed-93d4-a67e-533b7222cb60@postholer.com> Can you use color and outline color at specified width? Such as: CLASS NAME 'state' EXPRESSION ("[rttyp]" eq "S") MAXSCALEDENOM 1500000 STYLE COLOR '#ffffff' WIDTH 8 OUTLINECOLOR '#0e3e09' OUTLINEWIDTH 2 END END You could also add transparency to your outline color. On 8/3/23 08:45, Bob Basques wrote: > Hello all, > > I?m looking for example uses of the COMPOSITE function in MapFiles. > I?m specifically in need of a way to shadow a line, to scale, on both > sides as a way of indicating a tolerance to each side of the line. > > Anyone have an example of a COMPOSITE block for accomplishing this, or > even something close (one side)? > > Thanks > > Bobb > > Get me in Teams > > > *PW19-S295-C024* > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From bob.basques at ci.stpaul.mn.us Thu Aug 3 10:07:57 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 3 Aug 2023 17:07:57 +0000 Subject: [MapServer-users] Looking for Examples of COMPOSITE In-Reply-To: <28489616-9aed-93d4-a67e-533b7222cb60@postholer.com> References: <962A314B-821B-4B47-8755-EB1AE737D3B3@ci.stpaul.mn.us> <28489616-9aed-93d4-a67e-533b7222cb60@postholer.com> Message-ID: <3C9E5D33-ABFE-4088-9354-BB3D40F7CFB4@ci.stpaul.mn.us> Yes this approach would work. I'm really trying to shoot for the Blur effect though the further away from the line it gets, it fades away. There will probably be some sort of combination of what you describe here, with some light dashed lines at the extreme of the shadow as well as the shadow. ?On 8/3/23, 11:16 AM, "MapServer-users on behalf of Scott" wrote: Think Before You Click: This email originated outside our organization. Can you use color and outline color at specified width? Such as: CLASS NAME 'state' EXPRESSION ("[rttyp]" eq "S") MAXSCALEDENOM 1500000 STYLE COLOR '#ffffff' WIDTH 8 OUTLINECOLOR '#0e3e09' OUTLINEWIDTH 2 END END You could also add transparency to your outline color. On 8/3/23 08:45, Bob Basques wrote: > Hello all, > > I?m looking for example uses of the COMPOSITE function in MapFiles. > I?m specifically in need of a way to shadow a line, to scale, on both > sides as a way of indicating a tolerance to each side of the line. > > Anyone have an example of a COMPOSITE block for accomplishing this, or > even something close (one side)? > > Thanks > > Bobb > > Get me in Teams > > > *PW19-S295-C024* > > > _______________________________________________ > 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 From lars.schylberg at blixtmail.se Fri Aug 4 07:14:12 2023 From: lars.schylberg at blixtmail.se (Lars Schylberg) Date: Fri, 4 Aug 2023 16:14:12 +0200 Subject: [MapServer-users] Looking for Examples of COMPOSITE In-Reply-To: <3C9E5D33-ABFE-4088-9354-BB3D40F7CFB4@ci.stpaul.mn.us> References: <962A314B-821B-4B47-8755-EB1AE737D3B3@ci.stpaul.mn.us> <28489616-9aed-93d4-a67e-533b7222cb60@postholer.com> <3C9E5D33-ABFE-4088-9354-BB3D40F7CFB4@ci.stpaul.mn.us> Message-ID: <15e0429e-949d-5729-9b99-9613f861d40d@blixtmail.se> Hi Bob, I have an example how to use COMPOSITE and blur effects on a line and other objects that I presented at FOSS4G last year in Italy. https://github.com/LarsSchy/FOSS4G-2022/blob/main/layer_comp2.map. The example can be run with map2img. The presentation is here: https://github.com/LarsSchy/FOSS4G-2022/blob/main/MapServer_Make-beautiful-maps_1.03.pdf Have fun / Lars Schylberg Den 2023-08-03 kl. 19:07, skrev Bob Basques: > Yes this approach would work. I'm really trying to shoot for the > Blur effect though the further away from the line it gets, it fades > away. There will probably be some sort of combination of what you > describe here, with some light dashed lines at the extreme of the > shadow as well as the shadow. > > ?On 8/3/23, 11:16 AM, "MapServer-users on behalf of Scott" > public at postholer.com> wrote: > > Think Before You Click: This email originated outside our > organization. > > > Can you use color and outline color at specified width? Such as: > > CLASS NAME 'state' EXPRESSION ("[rttyp]" eq "S") MAXSCALEDENOM > 1500000 STYLE COLOR '#ffffff' WIDTH 8 OUTLINECOLOR '#0e3e09' > OUTLINEWIDTH 2 END END > > You could also add transparency to your outline color. > > > On 8/3/23 08:45, Bob Basques wrote: >> Hello all, >> >> I?m looking for example uses of the COMPOSITE function in >> MapFiles. I?m specifically in need of a way to shadow a line, to >> scale, on both sides as a way of indicating a tolerance to each >> side of the line. >> >> Anyone have an example of a COMPOSITE block for accomplishing this, >> or even something close (one side)? >> >> Thanks >> >> Bobb >> >> Get me in Teams >> > >> > >> *PW19-S295-C024* >> >> >> _______________________________________________ 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 > > _______________________________________________ MapServer-users > mailing list MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-use -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Fri Aug 4 07:52:20 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 4 Aug 2023 14:52:20 +0000 Subject: [MapServer-users] Looking for Examples of COMPOSITE In-Reply-To: <15e0429e-949d-5729-9b99-9613f861d40d@blixtmail.se> References: <962A314B-821B-4B47-8755-EB1AE737D3B3@ci.stpaul.mn.us> <28489616-9aed-93d4-a67e-533b7222cb60@postholer.com> <3C9E5D33-ABFE-4088-9354-BB3D40F7CFB4@ci.stpaul.mn.us> <15e0429e-949d-5729-9b99-9613f861d40d@blixtmail.se> Message-ID: Lars, I think this is perfect as an example to get started with! I still need to figure out (for sure) how to scale the width of the actual blur though. Even if there isn?t a method for that, I can fake it with a hidden line/width if needed. I need to represent a scaled line width on top of a variable width blur (as the tolerance), if that makes any sense. In your example it looks like the blur width is directly proportional to the line width, but I would need to experiment some to be sure. I need the blur to be scalable in map units, which might be the hard part but maybe those values are all honored across all unit values. The blur(7) looks like the key to scaling the width, correct? Is there a better doc set on COMPOSITE than here: https://mapserver.org/mapfile/composite.html Thanks Bobb From: MapServer-users on behalf of Lars Schylberg Date: Friday, August 4, 2023 at 9:22 AM To: "mapserver-users at lists.osgeo.org" Subject: Re: [MapServer-users] Looking for Examples of COMPOSITE Think Before You Click: This email originated outside our organization. Hi Bob, I have an example how to use COMPOSITE and blur effects on a line and other objects that I presented at FOSS4G last year in Italy. https://github.com/LarsSchy/FOSS4G-2022/blob/main/layer_comp2.map. The example can be run with map2img. The presentation is here: https://github.com/LarsSchy/FOSS4G-2022/blob/main/MapServer_Make-beautiful-maps_1.03.pdf Have fun / Lars Schylberg Den 2023-08-03 kl. 19:07, skrev Bob Basques: > Yes this approach would work. I'm really trying to shoot for the > Blur effect though the further away from the line it gets, it fades > away. There will probably be some sort of combination of what you > describe here, with some light dashed lines at the extreme of the > shadow as well as the shadow. > > On 8/3/23, 11:16 AM, "MapServer-users on behalf of Scott" > public at postholer.com> wrote: > > Think Before You Click: This email originated outside our > organization. > > > Can you use color and outline color at specified width? Such as: > > CLASS NAME 'state' EXPRESSION ("[rttyp]" eq "S") MAXSCALEDENOM > 1500000 STYLE COLOR '#ffffff' WIDTH 8 OUTLINECOLOR '#0e3e09' > OUTLINEWIDTH 2 END END > > You could also add transparency to your outline color. > > > On 8/3/23 08:45, Bob Basques wrote: >> Hello all, >> >> I?m looking for example uses of the COMPOSITE function in >> MapFiles. I?m specifically in need of a way to shadow a line, to >> scale, on both sides as a way of indicating a tolerance to each >> side of the line. >> >> Anyone have an example of a COMPOSITE block for accomplishing this, >> or even something close (one side)? >> >> Thanks >> >> Bobb >> >> Get me in Teams >> > >> > >> *PW19-S295-C024* >> >> >> _______________________________________________ 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 > > _______________________________________________ MapServer-users > mailing list MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-use -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Aug 7 15:04:49 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Mon, 7 Aug 2023 22:04:49 +0000 Subject: [MapServer-users] OSGeo Local Chapter Meeting - Twin Cities - Wednesday Aug 9th Message-ID: All, The next local chapter meeting will be at Bad Weather Brewery on West 7th street Date: Aug 9th Time: 4:30-6:00 See you there. Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Thu Aug 17 01:41:09 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Thu, 17 Aug 2023 08:41:09 +0000 Subject: [MapServer-users] How to handle NoData in WCS Request? Continuation of [Speed of WMS vs Speed of WCS; How to speed up WCS service?] Message-ID: Hello, Regarding the topic discussed in https://marc.info/?l=mapserver-users&m=169049275409489&w=2, I have implemented Jukka's suggestions. I created two new attributes, "start" and "stop." Here's the improved mapfile: https://pastecode.io/s/myjemd1r As you can see, there are 4 layers served from two tile indexes. The first layer consists of preprocessed OCGs with burned NoData, while the remaining three are served through VRT targeting different spatial resolutions depending on the requested zoom level, with the alpha channel set as a cloud mask. Here's an example of such a VRT (the others are similar): https://pastecode.io/s/af2tiwsj What is the problem? 1. When I try to create a cloudless mosaic using this request for data stored in COGs for a single day and there is data available for the requested area, the raster is returned. However, instead of transparent NoData, a value of 0 is burned in the place of transparent NoData, and I need NoData transparency (it's a must-have). http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test3&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-01 2. When I try to create a cloudless mosaic using this request for data stored in COGs for multiple days(!), a black tile filled with values of 0 is returned. This happens because there were no S2 revisions over that area for those days, except for 2023-07-01, but data from that day were covered with NoData from other days - this is an undesired effect :( http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test3&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-05 3. When I try to request data stored in VRT for a single day using this request, data is returned, but the alpha channel is not taken into account, so once again, transparency information is omitted. http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-01 also, WCS seems to ignore MAXSCALEDENOM and MINSCALEDENOM ? Last time, I received a lot of good advice that greatly pushed and improved my service. This time, I hope my message will initiate an interesting discussion. Best, Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: From alesinar.grlj at gmail.com Thu Aug 17 12:58:57 2023 From: alesinar.grlj at gmail.com (=?UTF-8?Q?Ale=C5=A1_Grlj?=) Date: Thu, 17 Aug 2023 21:58:57 +0200 Subject: [MapServer-users] WCS no data issuse In-Reply-To: References: Message-ID: Hi, 1. For me, specifying wcs_nilvalues" "-9999" in the mapfile layer metadata worked and WCS returns non-zero and transparent no data. -9999 is no data value of my rasters read from the database but it should work on other storages too. 2. MapServer will not aggregate mosaics for you as far as I know. It will respect the order in which rasters are called and present no data pixels even if they overlay valid data pixels from previous raster. And the same goes for vrts. If your rasters are stored in the database you could probably specify a simple query to do a maximum value aggregation on rasters before MapServer renders them as mosaic. That is if your no data value is lower than valid values and if this is applicable for your datasets of course. To my knowledge connection to raster database table is treated as regular path/url so you have to mind the length of the query. At least I had huge problems with this. Cheers Ale? V ?et., 17. avg. 2023, 21:01 je oseba < mapserver-users-request at lists.osgeo.org> napisala: > Send MapServer-users mailing list submissions to > mapserver-users at lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.osgeo.org/mailman/listinfo/mapserver-users > or, via email, send a message with subject or body 'help' to > mapserver-users-request at lists.osgeo.org > > You can reach the person managing the list at > mapserver-users-owner at lists.osgeo.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of MapServer-users digest..." > > > Today's Topics: > > 1. How to handle NoData in WCS Request? Continuation of [Speed > of WMS vs Speed of WCS; How to speed up WCS service?] > (Marcin Niemyjski) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 17 Aug 2023 08:41:09 +0000 > From: Marcin Niemyjski > To: Marcin Niemyjski via MapServer-users > > Subject: [MapServer-users] How to handle NoData in WCS Request? > Continuation of [Speed of WMS vs Speed of WCS; How to speed up WCS > service?] > Message-ID: > < > AS1PR03MB8149999665D8BB6C998C3032A81AA at AS1PR03MB8149.eurprd03.prod.outlook.com > > > > Content-Type: text/plain; charset="utf-8" > > Hello, > > > Regarding the topic discussed in > https://marc.info/?l=mapserver-users&m=169049275409489&w=2, I have > implemented Jukka's suggestions. I created two new attributes, "start" and > "stop." Here's the improved mapfile: > > https://pastecode.io/s/myjemd1r > As you can see, there are 4 layers served from two tile indexes. The first > layer consists of preprocessed OCGs with burned NoData, while the remaining > three are served through VRT targeting different spatial resolutions > depending on the requested zoom level, with the alpha channel set as a > cloud mask. Here's an example of such a VRT (the others are similar): > https://pastecode.io/s/af2tiwsj > > > What is the problem? > > 1. When I try to create a cloudless mosaic using this request for data > stored in COGs for a single day and there is data available for the > requested area, the raster is returned. However, instead of transparent > NoData, a value of 0 is burned in the place of transparent NoData, and I > need NoData transparency (it's a must-have). > > > http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test3&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-01 > > 2. When I try to create a cloudless mosaic using this request for data > stored in COGs for multiple days(!), a black tile filled with values of 0 > is returned. This happens because there were no S2 revisions over that area > for those days, except for 2023-07-01, but data from that day were covered > with NoData from other days - this is an undesired effect :( > > > http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test3&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-0 > < > http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test3&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-01 > >5 > > 3. When I try to request data stored in VRT for a single day using this > request, data is returned, but the alpha channel is not taken into account, > so once again, transparency information is omitted. > > > http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-01 > > also, WCS seems to ignore MAXSCALEDENOM and MINSCALEDENOM ? > > > Last time, I received a lot of good advice that greatly pushed and > improved my service. This time, I hope my message will initiate an > interesting discussion. > > > Best, > > Marcin > > > > > > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230817/96643687/attachment-0001.htm > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------ > > End of MapServer-users Digest, Vol 187, Issue 4 > *********************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniemyjski at cloudferro.com Fri Aug 18 07:33:56 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Fri, 18 Aug 2023 14:33:56 +0000 Subject: [MapServer-users] Mapserver is limited to reading only from /var/www Message-ID: Hello, I have a problem, Specifically, my mapserver can only read files from the /var/www folder. When I try to read a file from any other folder, I receive the following error: msDrawRasterLayerLow(): Unable to access file. Corrupt, empty, or missing file '/home/ubuntu/PycharmProjects/flask/results/qwert/PL2_08-DEM.tif' for layer 'Result from 2023_08_18__09_52_33'. /home/ubuntu/PycharmProjects/flask/results/qwert/PL2_08-DEM.tif: Permission denied. Attempts to add to apache2.conf ??????Options Indexes FollowSymLinks ??????AllowOverride None ??????Require all granted and changing the group owner to www-data doesn't make any difference and setting sudo chmod 777 doesn't work either. Of course, I restart Apache :) Any ideas, because I'm already out of them, haha :) Best, Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Sat Aug 19 01:42:26 2023 From: sethg at geographika.co.uk (Seth G) Date: Sat, 19 Aug 2023 10:42:26 +0200 Subject: [MapServer-users] How to handle NoData in WCS Request? Continuation of [Speed of WMS vs Speed of WCS; How to speed up WCS service?] In-Reply-To: References: Message-ID: HI Marcin, For setting NODATA values in WCS I made a test repository showing the various options at https://github.com/geographika/wcs-test, it may provide some ideas. Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Thu, Aug 17, 2023, at 10:41 AM, Marcin Niemyjski via MapServer-users wrote: > Hello, > > Regarding the topic discussed in https://marc.info/?l=mapserver-users&m=169049275409489&w=2, I have implemented Jukka's suggestions. I created two new attributes, "start" and "stop." Here's the improved mapfile: > > https://pastecode.io/s/myjemd1r > As you can see, there are 4 layers served from two tile indexes. The first layer consists of preprocessed OCGs with burned NoData, while the remaining three are served through VRT targeting different spatial resolutions depending on the requested zoom level, with the alpha channel set as a cloud mask. Here's an example of such a VRT (the others are similar): > https://pastecode.io/s/af2tiwsj > What is the problem? > > 1. When I try to create a cloudless mosaic using this request for data stored in COGs for a single day and there is data available for the requested area, the raster is returned. However, instead of transparent NoData, a value of 0 is burned in the place of transparent NoData, and I need NoData transparency (it's a must-have). > > http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test3&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-01 > > 2. When I try to create a cloudless mosaic using this request for data stored in COGs for multiple days(!), a black tile filled with values of 0 is returned. This happens because there were no S2 revisions over that area for those days, except for 2023-07-01, but data from that day were covered with NoData from other days - this is an undesired effect :( > > http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test3&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-0 5 > > 3. When I try to request data stored in VRT for a single day using this request, data is returned, but the alpha channel is not taken into account, so once again, transparency information is omitted. > > http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-01 > > also, WCS seems to ignore MAXSCALEDENOM and MINSCALEDENOM ? > > Last time, I received a lot of good advice that greatly pushed and improved my service. This time, I hope my message will initiate an interesting discussion. > > > > Best, > > Marcin > > > > > > > > > > _______________________________________________ > 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 genuchten at yahoo.com Mon Aug 21 09:38:40 2023 From: genuchten at yahoo.com (Paul) Date: Mon, 21 Aug 2023 16:38:40 +0000 (UTC) Subject: [MapServer-users] mapfile-key matching when mapserver runs at a path References: <882010478.2614454.1692635920005.ref@mail.yahoo.com> Message-ID: <882010478.2614454.1692635920005@mail.yahoo.com> On my setup i've deployed mapserver (master) at a path, eg?https://localhost/ows Now when I try to have mapserver match the mapfile key, it doesn't match, eg??https://localhost/ows/clay with a map config: MAPS? ?"clay" "/srv/data/clay.map"END? However?http://localhost/ows?map=clay?works fine I also tried: MAPS? ?"ows/clay" "/srv/data/clay.map"END No success. Any suggestions? -------------- next part -------------- An HTML attachment was scrubbed... URL: From genuchten at yahoo.com Tue Aug 22 05:01:52 2023 From: genuchten at yahoo.com (Paul) Date: Tue, 22 Aug 2023 12:01:52 +0000 (UTC) Subject: [MapServer-users] mapfile-key matching when mapserver runs at a path References: <1442786006.3036238.1692705712733.ref@mail.yahoo.com> Message-ID: <1442786006.3036238.1692705712733@mail.yahoo.com> This case was actually a misconfiguration at my side. The functionality works as expected See discussion at?publish mapserver at a path ? Issue #565 ? camptocamp/docker-mapserver | | | | | | | | | | | publish mapserver at a path ? Issue #565 ? camptocamp/docker-mapserver not sure if this is a mapserver or docker (or misconfiguration) issue, just posting it here to hear your thought... | | | On Monday, August 21, 2023 at 09:00:07 PM GMT+2, wrote: Send MapServer-users mailing list submissions to ??? mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit ??? https://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to ??? mapserver-users-request at lists.osgeo.org You can reach the person managing the list at ??? mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of MapServer-users digest..." Today's Topics: ? 1. mapfile-key matching when mapserver runs at a path (Paul) ---------------------------------------------------------------------- Message: 1 Date: Mon, 21 Aug 2023 16:38:40 +0000 (UTC) From: Paul To: "mapserver-users at lists.osgeo.org" ??? Subject: [MapServer-users] mapfile-key matching when mapserver runs at ??? a path Message-ID: <882010478.2614454.1692635920005 at mail.yahoo.com> Content-Type: text/plain; charset="utf-8" On my setup i've deployed mapserver (master) at a path, eg?https://localhost/ows Now when I try to have mapserver match the mapfile key, it doesn't match, eg??https://localhost/ows/clay with a map config: MAPS? ?"clay" "/srv/data/clay.map"END? However?http://localhost/ows?map=clay?works fine I also tried: MAPS? ?"ows/clay" "/srv/data/clay.map"END No success. Any suggestions? -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Subject: Digest Footer _______________________________________________ MapServer-users mailing list MapServer-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ End of MapServer-users Digest, Vol 187, Issue 7 *********************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From trygve at aspenes.priv.no Mon Aug 28 03:06:41 2023 From: trygve at aspenes.priv.no (Trygve Aspenes) Date: Mon, 28 Aug 2023 12:06:41 +0200 Subject: [MapServer-users] mapserver: styling multiple stop colorrange for raster data Message-ID: Hi all I'm looking into creating a styling for a raster of float32 data. The data describes temperature in kelvin and I want to have a colorrange from blue to white for data up to 273 deg kelvin(0 deg C). And from white to red for warmer data. I see here https://mapserver.org/output/kerneldensity.html#raster-color-ramping how this is used for heatmap hoping that this will work for a raster also. I try with something like this: CLASS STYLE COLORRANGE "#0000ffff" "#ffffffff" DATARANGE 200 273 END # STYLE STYLE COLORRANGE "#ffffffff" "#ff0000ff" DATARANGE 273 315 END # STYLE END # CLASS but as far as I can see this gives me only white. If I try to use one style like this: CLASS STYLE COLORRANGE "#0000ffff" "#ff0000ff" DATARANGE 200 315 END # STYLE END # CLASS it works but the color range goes directly from red to blue. Am I doing something wrong or can I not use multiple stops for these kind of data? Trygve Aspenes From sethg at geographika.co.uk Mon Aug 28 04:14:03 2023 From: sethg at geographika.co.uk (Seth G) Date: Mon, 28 Aug 2023 13:14:03 +0200 Subject: [MapServer-users] mapserver: styling multiple stop colorrange for raster data In-Reply-To: References: Message-ID: Hi Trygve, You can have multiple start/stop values and your syntax looks correct. Maybe you have multiple bands in your raster and you are symbolising on the incorrect value? Try explicitly setting the RANGEITEM. See working example at https://app.mapserverstudio.net/#9JBVADFh CLASS NAME "colorramp" STYLE COLORRANGE "#e3edfc" "#287593" # a color gradient from light grey to a shade of blue # a pixel value of -20 will be light grey, and values from -20 to 0 will be # assigned a color from the colour gradient of light grey to blue DATARANGE -20 0 RANGEITEM "value_0" # this is the name of the value band in the raster, the datasets used in the Mapfile have a single band END STYLE COLORRANGE "#29497b" "#759387" DATARANGE 0 20 RANGEITEM "value_0" END STYLE COLORRANGE "#bfa96d" "#480d26" DATARANGE 20 50 RANGEITEM "value_0" END END Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Mon, Aug 28, 2023, at 12:06 PM, Trygve Aspenes via MapServer-users wrote: > Hi all > > I'm looking into creating a styling for a raster of float32 data. > The data describes temperature in kelvin and I want to have a colorrange > from blue to white for data up to 273 deg kelvin(0 deg C). And from > white to red for warmer data. > > I see here > https://mapserver.org/output/kerneldensity.html#raster-color-ramping how > this is used for heatmap hoping that this will work for a raster also. > > I try with something like this: > > CLASS > STYLE > COLORRANGE "#0000ffff" "#ffffffff" > DATARANGE 200 273 > END # STYLE > STYLE > COLORRANGE "#ffffffff" "#ff0000ff" > DATARANGE 273 315 > END # STYLE > END # CLASS > > but as far as I can see this gives me only white. > > If I try to use one style like this: > > CLASS > STYLE > COLORRANGE "#0000ffff" "#ff0000ff" > DATARANGE 200 315 > END # STYLE > END # CLASS > > it works but the color range goes directly from red to blue. > > Am I doing something wrong or can I not use multiple stops for these > kind of data? > > Trygve Aspenes > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From trygve at aspenes.priv.no Mon Aug 28 05:50:37 2023 From: trygve at aspenes.priv.no (Trygve Aspenes) Date: Mon, 28 Aug 2023 14:50:37 +0200 Subject: [MapServer-users] mapserver: styling multiple stop colorrange for raster data In-Reply-To: References: Message-ID: <0dca99bd8e689ee8503d7f283005ff74@aspenes.priv.no> Thanks Seth for your quick reply Yes I have multiple bands. gdalinfo tells me I have bands like this: Band 1 Block=949x1069 Type=Float32, ColorInterp=Undefined Band 2 Block=949x1069 Type=Float32, ColorInterp=Undefined Band 3 Block=949x1069 Type=Float32, ColorInterp=Undefined . . . Band n Block=949x1069 Type=Float32, ColorInterp=Undefined So, how could I figure out how the various bands are named in mapserver for the RANGEITEM? I have looked at the documentation for STYLE/RANGEITEM but I still don't get it. I have tried various values for RANGEITEM ( like "value_0", "0", "1", "pixel", "Band 1" etc), but I dont get it. It must be something that I'm missing. By the way, thanks for the mapserverstudio link. Most helpful! Trygve Aspenes Den 2023-08-28 13:14, skrev Seth G: > Hi Trygve, > > You can have multiple start/stop values and your syntax looks correct. > Maybe you have multiple bands in your raster and you are symbolising on > the incorrect value? Try explicitly setting the RANGEITEM. > > See working example at https://app.mapserverstudio.net/#9JBVADFh > > CLASS > NAME "colorramp" > STYLE > COLORRANGE "#e3edfc" "#287593" # a color gradient from > light grey to a shade of blue > # a pixel value of -20 will be light grey, and values > from -20 to 0 will be > # assigned a color from the colour gradient of light > grey to blue > DATARANGE -20 0 > RANGEITEM "value_0" # this is the name of the value > band in the raster, the datasets used in the Mapfile have a single band > END > STYLE > COLORRANGE "#29497b" "#759387" > DATARANGE 0 20 > RANGEITEM "value_0" > END > STYLE > COLORRANGE "#bfa96d" "#480d26" > DATARANGE 20 50 > RANGEITEM "value_0" > END > END > > Seth > > > -- > web:https://geographika.net & https://mapserverstudio.net > twitter: @geographika > > On Mon, Aug 28, 2023, at 12:06 PM, Trygve Aspenes via MapServer-users > wrote: >> Hi all >> >> I'm looking into creating a styling for a raster of float32 data. >> The data describes temperature in kelvin and I want to have a >> colorrange >> from blue to white for data up to 273 deg kelvin(0 deg C). And from >> white to red for warmer data. >> >> I see here >> https://mapserver.org/output/kerneldensity.html#raster-color-ramping >> how >> this is used for heatmap hoping that this will work for a raster also. >> >> I try with something like this: >> >> CLASS >> STYLE >> COLORRANGE "#0000ffff" "#ffffffff" >> DATARANGE 200 273 >> END # STYLE >> STYLE >> COLORRANGE "#ffffffff" "#ff0000ff" >> DATARANGE 273 315 >> END # STYLE >> END # CLASS >> >> but as far as I can see this gives me only white. >> >> If I try to use one style like this: >> >> CLASS >> STYLE >> COLORRANGE "#0000ffff" "#ff0000ff" >> DATARANGE 200 315 >> END # STYLE >> END # CLASS >> >> it works but the color range goes directly from red to blue. >> >> Am I doing something wrong or can I not use multiple stops for these >> kind of data? >> >> Trygve Aspenes >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users From sethg at geographika.co.uk Mon Aug 28 07:07:23 2023 From: sethg at geographika.co.uk (Seth G) Date: Mon, 28 Aug 2023 16:07:23 +0200 Subject: [MapServer-users] mapserver: styling multiple stop colorrange for raster data In-Reply-To: <0dca99bd8e689ee8503d7f283005ff74@aspenes.priv.no> References: <0dca99bd8e689ee8503d7f283005ff74@aspenes.priv.no> Message-ID: <465875aa-aedb-4ab8-ae31-9eae07f52037@app.fastmail.com> A good question and it doesn't seem to be clearly documented. I've always tried values listed at https://mapserver.org/el/input/raster.html#raster-query even though that section appears to be written for MapScript. Each band has a value based on index, so you should get results using "value_0", "value_1", and "value_2" in RANGEITEM. gdalinfo should peobably provide details on the value ranges in each band. Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Mon, Aug 28, 2023, at 2:50 PM, Trygve Aspenes via MapServer-users wrote: > Thanks Seth for your quick reply > > Yes I have multiple bands. gdalinfo tells me I have bands like this: > Band 1 Block=949x1069 Type=Float32, ColorInterp=Undefined > Band 2 Block=949x1069 Type=Float32, ColorInterp=Undefined > Band 3 Block=949x1069 Type=Float32, ColorInterp=Undefined > . > . > . > Band n Block=949x1069 Type=Float32, ColorInterp=Undefined > > So, how could I figure out how the various bands are named in mapserver > for the RANGEITEM? > > I have looked at the documentation for STYLE/RANGEITEM but I still don't > get it. > > I have tried various values for RANGEITEM ( like "value_0", "0", "1", > "pixel", "Band 1" etc), but I dont get it. > > It must be something that I'm missing. > > By the way, thanks for the mapserverstudio link. Most helpful! > Trygve Aspenes > > > Den 2023-08-28 13:14, skrev Seth G: >> Hi Trygve, >> >> You can have multiple start/stop values and your syntax looks correct. >> Maybe you have multiple bands in your raster and you are symbolising on >> the incorrect value? Try explicitly setting the RANGEITEM. >> >> See working example at https://app.mapserverstudio.net/#9JBVADFh >> >> CLASS >> NAME "colorramp" >> STYLE >> COLORRANGE "#e3edfc" "#287593" # a color gradient from >> light grey to a shade of blue >> # a pixel value of -20 will be light grey, and values >> from -20 to 0 will be >> # assigned a color from the colour gradient of light >> grey to blue >> DATARANGE -20 0 >> RANGEITEM "value_0" # this is the name of the value >> band in the raster, the datasets used in the Mapfile have a single band >> END >> STYLE >> COLORRANGE "#29497b" "#759387" >> DATARANGE 0 20 >> RANGEITEM "value_0" >> END >> STYLE >> COLORRANGE "#bfa96d" "#480d26" >> DATARANGE 20 50 >> RANGEITEM "value_0" >> END >> END >> >> Seth >> >> >> -- >> web:https://geographika.net & https://mapserverstudio.net >> twitter: @geographika >> >> On Mon, Aug 28, 2023, at 12:06 PM, Trygve Aspenes via MapServer-users >> wrote: >>> Hi all >>> >>> I'm looking into creating a styling for a raster of float32 data. >>> The data describes temperature in kelvin and I want to have a >>> colorrange >>> from blue to white for data up to 273 deg kelvin(0 deg C). And from >>> white to red for warmer data. >>> >>> I see here >>> https://mapserver.org/output/kerneldensity.html#raster-color-ramping >>> how >>> this is used for heatmap hoping that this will work for a raster also. >>> >>> I try with something like this: >>> >>> CLASS >>> STYLE >>> COLORRANGE "#0000ffff" "#ffffffff" >>> DATARANGE 200 273 >>> END # STYLE >>> STYLE >>> COLORRANGE "#ffffffff" "#ff0000ff" >>> DATARANGE 273 315 >>> END # STYLE >>> END # CLASS >>> >>> but as far as I can see this gives me only white. >>> >>> If I try to use one style like this: >>> >>> CLASS >>> STYLE >>> COLORRANGE "#0000ffff" "#ff0000ff" >>> DATARANGE 200 315 >>> END # STYLE >>> END # CLASS >>> >>> it works but the color range goes directly from red to blue. >>> >>> Am I doing something wrong or can I not use multiple stops for these >>> kind of data? >>> >>> Trygve Aspenes >>> _______________________________________________ >>> 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 From trygve at aspenes.priv.no Tue Aug 29 01:35:07 2023 From: trygve at aspenes.priv.no (Trygve Aspenes) Date: Tue, 29 Aug 2023 10:35:07 +0200 Subject: [MapServer-users] mapserver: styling multiple stop colorrange for raster data In-Reply-To: <465875aa-aedb-4ab8-ae31-9eae07f52037@app.fastmail.com> References: <0dca99bd8e689ee8503d7f283005ff74@aspenes.priv.no> <465875aa-aedb-4ab8-ae31-9eae07f52037@app.fastmail.com> Message-ID: <506db8e4752d30016ada03510ecd69fe@aspenes.priv.no> Yeah I also saw that. So I guess value_ should do it. I'm working with netcdf so I wondered if that has something to do with it. So I tried with a geotiff. Also not working. Then I updated my mapserver to 8.0.1 from 7.4 something, and now I get the expected style for both geotiff and netcdf. So version do matter! Thank you for your patience Seth! Trygve Aspenes Den 2023-08-28 16:07, skrev Seth G: > A good question and it doesn't seem to be clearly documented. > I've always tried values listed at > https://mapserver.org/el/input/raster.html#raster-query even though > that section appears to be written for MapScript. > Each band has a value based on index, so you should get results using > "value_0", "value_1", and "value_2" in RANGEITEM. > gdalinfo should peobably provide details on the value ranges in each > band. > > Seth > > -- > web:https://geographika.net & https://mapserverstudio.net > twitter: @geographika > > On Mon, Aug 28, 2023, at 2:50 PM, Trygve Aspenes via MapServer-users > wrote: >> Thanks Seth for your quick reply >> >> Yes I have multiple bands. gdalinfo tells me I have bands like this: >> Band 1 Block=949x1069 Type=Float32, ColorInterp=Undefined >> Band 2 Block=949x1069 Type=Float32, ColorInterp=Undefined >> Band 3 Block=949x1069 Type=Float32, ColorInterp=Undefined >> . >> . >> . >> Band n Block=949x1069 Type=Float32, ColorInterp=Undefined >> >> So, how could I figure out how the various bands are named in >> mapserver >> for the RANGEITEM? >> >> I have looked at the documentation for STYLE/RANGEITEM but I still >> don't >> get it. >> >> I have tried various values for RANGEITEM ( like "value_0", "0", "1", >> "pixel", "Band 1" etc), but I dont get it. >> >> It must be something that I'm missing. >> >> By the way, thanks for the mapserverstudio link. Most helpful! >> Trygve Aspenes >> >> >> Den 2023-08-28 13:14, skrev Seth G: >>> Hi Trygve, >>> >>> You can have multiple start/stop values and your syntax looks >>> correct. >>> Maybe you have multiple bands in your raster and you are symbolising >>> on >>> the incorrect value? Try explicitly setting the RANGEITEM. >>> >>> See working example at https://app.mapserverstudio.net/#9JBVADFh >>> >>> CLASS >>> NAME "colorramp" >>> STYLE >>> COLORRANGE "#e3edfc" "#287593" # a color gradient >>> from >>> light grey to a shade of blue >>> # a pixel value of -20 will be light grey, and values >>> from -20 to 0 will be >>> # assigned a color from the colour gradient of light >>> grey to blue >>> DATARANGE -20 0 >>> RANGEITEM "value_0" # this is the name of the value >>> band in the raster, the datasets used in the Mapfile have a single >>> band >>> END >>> STYLE >>> COLORRANGE "#29497b" "#759387" >>> DATARANGE 0 20 >>> RANGEITEM "value_0" >>> END >>> STYLE >>> COLORRANGE "#bfa96d" "#480d26" >>> DATARANGE 20 50 >>> RANGEITEM "value_0" >>> END >>> END >>> >>> Seth >>> >>> >>> -- >>> web:https://geographika.net & https://mapserverstudio.net >>> twitter: @geographika >>> >>> On Mon, Aug 28, 2023, at 12:06 PM, Trygve Aspenes via MapServer-users >>> wrote: >>>> Hi all >>>> >>>> I'm looking into creating a styling for a raster of float32 data. >>>> The data describes temperature in kelvin and I want to have a >>>> colorrange >>>> from blue to white for data up to 273 deg kelvin(0 deg C). And from >>>> white to red for warmer data. >>>> >>>> I see here >>>> https://mapserver.org/output/kerneldensity.html#raster-color-ramping >>>> how >>>> this is used for heatmap hoping that this will work for a raster >>>> also. >>>> >>>> I try with something like this: >>>> >>>> CLASS >>>> STYLE >>>> COLORRANGE "#0000ffff" "#ffffffff" >>>> DATARANGE 200 273 >>>> END # STYLE >>>> STYLE >>>> COLORRANGE "#ffffffff" "#ff0000ff" >>>> DATARANGE 273 315 >>>> END # STYLE >>>> END # CLASS >>>> >>>> but as far as I can see this gives me only white. >>>> >>>> If I try to use one style like this: >>>> >>>> CLASS >>>> STYLE >>>> COLORRANGE "#0000ffff" "#ff0000ff" >>>> DATARANGE 200 315 >>>> END # STYLE >>>> END # CLASS >>>> >>>> it works but the color range goes directly from red to blue. >>>> >>>> Am I doing something wrong or can I not use multiple stops for these >>>> kind of data? >>>> >>>> Trygve Aspenes >>>> _______________________________________________ >>>> 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 From mye at nilu.no Wed Aug 30 02:02:31 2023 From: mye at nilu.no (Martin Album Ytre-Eide) Date: Wed, 30 Aug 2023 09:02:31 +0000 Subject: [MapServer-users] Raster legend Message-ID: I am serving rasters through mapserver and the maps look fine. I have managed to include a raser legend by setting: LEGEND KEYSIZE 200 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS EMBED END My 'Class' inside my 'Layer' looks like: CLASS NAME "my_legend_name" STYLE RANGEITEM "Band 1" COLORRANGE 255 255 178 189 0 38 DATARANGE 1700 2000 END END This gives me a nice legend. However, it is missing ticks and values. So, there are no clues to what values the different colors represent. How can ticks be added to the embed legend? Is it even possible? I have also called the legend with GetLegendGraphic through openlayers wmsSource.getLegendUrl but without finding a way to set ticks. I would think this would be possible? Best regards, Martin Album Ytre-Eide -------------- next part -------------- An HTML attachment was scrubbed... URL: From trygve at aspenes.priv.no Thu Aug 31 03:35:19 2023 From: trygve at aspenes.priv.no (Trygve Aspenes) Date: Thu, 31 Aug 2023 12:35:19 +0200 Subject: [MapServer-users] mapserver: using a shapefile to handle time with netcdf data Message-ID: Hi all I try to use a shapefile to handle time. But he trick is my data source is a netcdf file. For this I need the gdal netcdf driver. My shapefile looks like this: ogrinfo points.shp points -------------------------------- INFO: Open of `points.shp' using driver `ESRI Shapefile' successful. Layer name: points Metadata: DBF_DATE_LAST_UPDATE=2023-08-31 Geometry: Polygon Feature Count: 67 Extent: (-18.100000, 49.800000) - (54.200000, 75.200000) Layer SRS WKT: GEOGCRS["WGS 84", DATUM["World Geodetic System 1984", ELLIPSOID["WGS 84",6378137,298.257223563, LENGTHUNIT["metre",1]]], PRIMEM["Greenwich",0, ANGLEUNIT["degree",0.0174532925199433]], CS[ellipsoidal,2], AXIS["latitude",north, ORDER[1], ANGLEUNIT["degree",0.0174532925199433]], AXIS["longitude",east, ORDER[2], ANGLEUNIT["degree",0.0174532925199433]], ID["EPSG",4326]] Data axis to CRS axis mapping: 2,1 location: String (112.0) time: String (80.0) OGRFeature(points):0 location (String) = NETCDF:: time (String) = 2023-08-31T00:00:00Z POLYGON ((-18.1 49.8,-18.1 75.2,54.2 75.2,54.2 49.8,-18.1 49.8)) ... etc for all the time stamps -------------------------------------------------- The setup mapfile like this first with a time idx helper layer: LAYER STATUS ON NAME "time_idx" TYPE POLYGON DATA "points" METADATA "wms_title" "TIME INDEX" "wms_srs" "EPSG:4326" "wms_extent" "-18.1 49.8 54.2 75.2" "wms_timeextent" "2023-08-31T00:00:00Z/2023-08-02T18:00:00Z/PT1H" "wms_timeitem" "time" "wms_timedefault" "2023-08-31T12:00:00Z" "wms_enable_request" "*" END CONNECTION "points.shp" CONNECTIONTYPE OGR END and the layer itself: LAYER NAME "layer_name" STATUS ON TYPE raster PROCESSING "BANDS=1" PROJECTION END TILEINDEX "time_idx" TILEITEM "location" METADATA "wms_title" "layer_title" "wms_timeextent" "2023-08-31T00:00:00Z/2023-09-01T18:00:00Z/PT1H" "wms_timeitem" "time" "wms_enable_request" "*" END END Now requesting this layer I get: msDrawMap(): Image handling error. Failed to draw layer named ''. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file './NETCDF::' for layer ''. ./NETCDF::: No such file or directory So for some reason the data is handled as a file name( prepending ./ to the location in my shapefile), and not using gdal driver netcdf to open the file. Is there a way to tell mapserver to handle this correctly using the gdal netcdf driver opening the file? Trygve Aspenes