From bahbouba.909 at gmail.com Sat Jul 3 08:07:57 2021 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Sat, 3 Jul 2021 16:07:57 +0100 Subject: [mapserver-users] ask help Message-ID: hello how are you ? I want to know if someone have a support or tutoriel for the beginner mapserver users like me and l look for an book about webmapping specficcaly : G?omatique webmapping en open source Architectures web avec PostGIS, OpenLayers et MapServer David Collado attending your response . -------------- next part -------------- An HTML attachment was scrubbed... URL: From bahbouba.909 at gmail.com Sat Jul 3 15:16:56 2021 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Sat, 3 Jul 2021 23:16:56 +0100 Subject: [mapserver-users] ask help Message-ID: hello how are you ? I want to know if someone have a support or tutoriel for the beginner mapserver users like me and l look for an book about webmapping specficcaly : Geomatique webmapping en open source for David collado. l to have this free if it's possible because it is cheap for me. attending your response thank -------------- next part -------------- An HTML attachment was scrubbed... URL: From bahbouba.909 at gmail.com Sat Jul 3 15:18:13 2021 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Sat, 3 Jul 2021 23:18:13 +0100 Subject: [mapserver-users] (no subject) Message-ID: hello how are you ? I want to know if someone have a support or tutoriel for the beginner mapserver users like me and l look for an book about webmapping specficcaly : Geomatique webmapping en open source for David collado. l want to have this book free if it's possible because it is cheap for me. attending your response thank -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sun Jul 4 05:40:49 2021 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 4 Jul 2021 09:40:49 -0300 Subject: [mapserver-users] ask help In-Reply-To: References: Message-ID: Hi Boubacar, I'm not sure of books, but if you are on Windows you can install MS4W (https://ms4w.com) that now contains >80 working mapfiles + data, and then you can follow along the tutorial (which was recently updated) at : https://mapserver.org/tutorial/ The data & all mapfiles for the tutorial can be downloaded at https://download.osgeo.org/mapserver/docs/mapserver-tutorial.zip (it includes road highway shields, working WMS services, and lots of goodies to see locally in action). -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2021-07-03 12:07 p.m., Boubacar Bah wrote: > hello how are you?? I want to know if someone have a support or tutoriel > for the beginner mapserver users like me and l look for an book about > webmapping?specficcaly?: > > > G?omatique webmapping en open source > > Architectures web avec PostGIS, OpenLayers et MapServer > > David Collado > > > attending your response . > > From magnus at internaut.se Thu Jul 8 01:54:03 2021 From: magnus at internaut.se (Magnus Askaner) Date: Thu, 8 Jul 2021 11:54:03 +0300 Subject: [mapserver-users] OIDS in postgresql Postgis Message-ID: <071ee06c-93e2-f5fd-82bf-7793f8bd8a28@internaut.se> Support for OIDS has been dropped from Postgresql in recent versions. After postgresql upgrade, trying to select a feature from a Postgis postgresql table gives an error? in postgresql logs: (sensitive info redacted) > 2021-07-08 08:05:45.756 UTC [2270616] user_name at db ERROR:? column > "oid" does not exist at character 70 > 2021-07-08 08:05:45.756 UTC [2270616] user_name at db HINT: Perhaps you > meant to reference the column "[table_name].gid". > 2021-07-08 08:05:45.756 UTC [2270616] user_name at db STATEMENT: select > "[column_name]"::text,ST_AsBinary(ST_Force2D("the_geom"),'NDR') as > geom,"oid"::text from [table_name] where "the_geom" && > ST_GeomFromText('POLYGON(([....]))',find_srid('','[table_name]','the_geom')) > and ([column_name]='value') It seems like mapserver still tries to look up oids. From earlier documentation I have got the impression that mapserver depends on oids when selecting from a postgis table. Could this be avoided? Calling mapserv cgi with wget gives "Missing Schema". The connection string works. Versions: $ mapserv -v MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Postgreql: version(): PostgreSQL 12.7 (Ubuntu 12.7-0ubuntu0.20.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, 64-bit POSTGIS_full_version() : POSTGIS="3.0.0 r17983" [EXTENSION] PGSQL="120" GEOS="3.8.0-CAPI-1.13.1 " PROJ="6.3.1" LIBXML="2.9.4" LIBJSON="0.13.1" LIBPROTOBUF="1.3.3" WAGYU="0.4.3 (Internal)" From jmckenna at gatewaygeomatics.com Thu Jul 8 03:36:36 2021 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 8 Jul 2021 07:36:36 -0300 Subject: [mapserver-users] OIDS in postgresql Postgis In-Reply-To: <071ee06c-93e2-f5fd-82bf-7793f8bd8a28@internaut.se> References: <071ee06c-93e2-f5fd-82bf-7793f8bd8a28@internaut.se> Message-ID: <3c62f8fb-2c7c-3d9a-b074-229544056a38@gatewaygeomatics.com> Hi Magnus, You are correct, that old (dirty) trick of using OIDs as the unique id column, for MapServer, is no longer possible since the PostgreSQL 12.x release. (using that trick is party my fault, for promoting it, for so long) So I was in the same boat as you, how to handle this with so many client databases with gazillions of records. Here are some important points that I now follow personally: - for tables that do not have a unique column, or "gid" etc, I generate a new "unique_id" column, such as: ALTER TABLE mytable ADD COLUMN unique_id SERIAL PRIMARY KEY; - then I change in the mapfile PostGIS layer: DATA "geom FROM mydata USING UNIQUE unique_id USING SRID=3857" - I was also concerned about what happens when restoring a dump (that contains OIDs, from an old version) into a PostgreSQL >=12, but I've done that so many times now that I can confidently tell you that there is one single warning displayed during the restore, and then the database is restored properly into PostgreSQL (without OIDs). I do this on production databases, it works well. Hope that helps a little. -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2021-07-08 5:54 a.m., Magnus Askaner wrote: > Support for OIDS has been dropped from Postgresql in recent versions. > After postgresql upgrade, trying to select a feature from a Postgis > postgresql table gives an error? in postgresql logs: (sensitive info > redacted) > >> 2021-07-08 08:05:45.756 UTC [2270616] user_name at db ERROR:? column >> "oid" does not exist at character 70 >> 2021-07-08 08:05:45.756 UTC [2270616] user_name at db HINT: Perhaps you >> meant to reference the column "[table_name].gid". >> 2021-07-08 08:05:45.756 UTC [2270616] user_name at db STATEMENT: select >> "[column_name]"::text,ST_AsBinary(ST_Force2D("the_geom"),'NDR') as >> geom,"oid"::text from [table_name] where "the_geom" && >> ST_GeomFromText('POLYGON(([....]))',find_srid('','[table_name]','the_geom')) >> and ([column_name]='value') > > It seems like mapserver still tries to look up oids. > From earlier documentation I have got the impression that mapserver > depends on oids when selecting from a postgis table. > Could this be avoided? > > Calling mapserv cgi with wget gives "Missing Schema". > The connection string works. > > Versions: > $ mapserv -v > MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ > SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS > SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI > SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Postgreql: > version(): PostgreSQL 12.7 (Ubuntu 12.7-0ubuntu0.20.04.1) on > x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) > 9.3.0, 64-bit > POSTGIS_full_version() : POSTGIS="3.0.0 r17983" [EXTENSION] PGSQL="120" > GEOS="3.8.0-CAPI-1.13.1 " PROJ="6.3.1" LIBXML="2.9.4" LIBJSON="0.13.1" > LIBPROTOBUF="1.3.3" WAGYU="0.4.3 (Internal)" > From jmckenna at gatewaygeomatics.com Fri Jul 9 07:27:33 2021 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 9 Jul 2021 11:27:33 -0300 Subject: [mapserver-users] OIDS in postgresql Postgis In-Reply-To: <071ee06c-93e2-f5fd-82bf-7793f8bd8a28@internaut.se> References: <071ee06c-93e2-f5fd-82bf-7793f8bd8a28@internaut.se> Message-ID: Hi Magnus, This morning I did more testing on this, and discovered in the source code that MapServer still does in fact fallback to looking for an OID column, when no unique ID column is found (or specified in the DATA statement). I've filed the ticket at https://github.com/MapServer/MapServer/issues/6367 (and EvenR has already applied a fix for this [very elegantly checking PG version before relying on OIDs as fallback] at https://github.com/MapServer/MapServer/pull/6368). It would be great if you can test the fix locally and give feedback. I've also added a note and warning about OIDs and unique IDs at https://mapserver.org/input/vector/postgis.html So, now that I understand the issue, here is a very important point: - for every PostGIS layer in my MapServer mapfile, I always specify a unique ID column with the "using unique" syntax, in the DATA statement - that avoids any issue (such as your case, where you likely did not specify a unique ID column, and MapServer tried to guess) - (and of course, I no longer use OIDs in my DATA statements, as these were removed in PostgreSQL 12.0) Thanks again Magnus for this report, you spawned some great changes to both the source code and documentation! -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2021-07-08 5:54 a.m., Magnus Askaner wrote: > Support for OIDS has been dropped from Postgresql in recent versions. > After postgresql upgrade, trying to select a feature from a Postgis > postgresql table gives an error? in postgresql logs: (sensitive info > redacted) > >> 2021-07-08 08:05:45.756 UTC [2270616] user_name at db ERROR:? column >> "oid" does not exist at character 70 >> 2021-07-08 08:05:45.756 UTC [2270616] user_name at db HINT: Perhaps you >> meant to reference the column "[table_name].gid". >> 2021-07-08 08:05:45.756 UTC [2270616] user_name at db STATEMENT: select >> "[column_name]"::text,ST_AsBinary(ST_Force2D("the_geom"),'NDR') as >> geom,"oid"::text from [table_name] where "the_geom" && >> ST_GeomFromText('POLYGON(([....]))',find_srid('','[table_name]','the_geom')) >> and ([column_name]='value') > > It seems like mapserver still tries to look up oids. > From earlier documentation I have got the impression that mapserver > depends on oids when selecting from a postgis table. > Could this be avoided? > > Calling mapserv cgi with wget gives "Missing Schema". > The connection string works. > > Versions: > $ mapserv -v > MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ > SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS > SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI > SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Postgreql: > version(): PostgreSQL 12.7 (Ubuntu 12.7-0ubuntu0.20.04.1) on > x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) > 9.3.0, 64-bit > POSTGIS_full_version() : POSTGIS="3.0.0 r17983" [EXTENSION] PGSQL="120" > GEOS="3.8.0-CAPI-1.13.1 " PROJ="6.3.1" LIBXML="2.9.4" LIBJSON="0.13.1" > LIBPROTOBUF="1.3.3" WAGYU="0.4.3 (Internal)" > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > From Louis-Philippe.RousseauLambert at ec.gc.ca Fri Jul 9 08:13:10 2021 From: Louis-Philippe.RousseauLambert at ec.gc.ca (Rousseau Lambert,Louis-Philippe (ECCC)) Date: Fri, 9 Jul 2021 15:13:10 +0000 Subject: [mapserver-users] GetFetureInfo with rotated grid Message-ID: Hi all, I have an issue with WMS GetFeatureInfo request on a rotated GRIB2 file. When I try to do a GetFeatureInfo request on a valid location on my map, I get: "Search returned no results". I tried the GetFeatureInfo request, using mapscript and the mapserv command, both give me the "Search returned no results". The file projection is "+proj=ob_tran +o_proj=longlat +o_lon_p=0 +o_lat_p=31.758312 +lon_0=-92.402969 +R=6371229 +no_defs" I'm using MapServer version 7.6.2, GDAL 3.1.3 (released 2020/09/01) and proj 7.2.0. But If I try to get the value with gdallocationinfo using the -wsg84 flag, I get a valid result, so I guess this issue is not with gdal ?: ``` gdallocationinfo -wgs84 rotated.grib2 -75 45 Report: Location: (578P,373L) Band 1: Value: 3.1022446478346e-07 ``` I can get a GetFeatureInfo request to work, but I have to define a custom EPSG code (for example: EPSG:102987), add this EPSG code (102987) to my epsg file and reference it in my mapfile. This way, the GetFeatureInfo only works if requested in this custom EPSG using the rotated grid BBOX, if I do the request in another CRS, it still return no results: ``` mapserv -nh "QUERY_STRING=map= test.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=0,0,1,1&CRS=EPSG:102987&WIDTH=1000&HEIGHT=1000&LAYERS=TEST&INFO_FORMAT=text/plain&QUERY_LAYERS=TEST&I=5&J=5&FORMAT=image/png" ``` Here is a GetFeatureInfo request that returns no results using EPSG:4326: ``` mapserv -nh "QUERY_STRING=map=test.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=45,-74,46,-73&CRS=EPSG:4326&WIDTH=1000&HEIGHT=1000&LAYERS=TEST&INFO_FORMAT=text/plain&QUERY_LAYERS=TEST&I=5&J=5" ``` I have included a small mapfile that shows the previous behavior, you can use this curl command to download a sample GRIB2 data: ``` curl -o rotated.grib2 'https://dd.weather.gc.ca/model_raqdps/10km/grib2/00/013/20210709T00Z_MSC_RAQDPS_PM2.5_EATM_RLatLon0.09x0.09_P013.grib2' ``` Do you have any ideas if I'm doing something wrong or if the issue is in MapServer ? Thanks LP -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test.map URL: From jmckenna at gatewaygeomatics.com Fri Jul 9 10:14:31 2021 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 9 Jul 2021 14:14:31 -0300 Subject: [mapserver-users] GetFetureInfo with rotated grid In-Reply-To: References: Message-ID: Hi LP, Can you also confirm through a shp2img command, that you generate a valid map image, in your output EPSG:4326 projection, such as: shp2img -m test.map -o ttt.png -map_debug 3 (also, please add "STATUS ON" to your layer) I would always start with a shp2img command, make sure that MapServer (and GDAL+PROJ in this case) can access your data, reproject it, and return a nice valid image. Then, after that works, move onto the fun of WMS and OGC service testing. -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2021-07-09 12:13 p.m., Rousseau Lambert,Louis-Philippe (ECCC) wrote: > Hi all, > > I have an issue with WMS GetFeatureInfo request on a rotated GRIB2 file. > When I try to do a GetFeatureInfo request on a valid location on my map, > I get: ?Search returned no results?. I tried the GetFeatureInfo request, > using mapscript and the mapserv command, both give me the ?Search > returned no results?. > > The file projection is ?+proj=ob_tran +o_proj=longlat +o_lon_p=0 > +o_lat_p=31.758312 +lon_0=-92.402969 +R=6371229 +no_defs? > > I?m using MapServer version 7.6.2, GDAL 3.1.3 (released 2020/09/01) and > proj 7.2.0. > > But If I try to get the value with gdallocationinfo using the ?wsg84 > flag, I get a valid result, so I guess this issue is not with gdal ?: > > ``` > > gdallocationinfo -wgs84 rotated.grib2 -75 45 > > Report: > > ? Location: (578P,373L) > > ? Band 1: > > ??? Value: 3.1022446478346e-07 > > ``` > > I can get a GetFeatureInfo request to work, but I have to define a > custom EPSG code (for example: EPSG:102987), add this EPSG code (102987) > to my epsg file and reference it in my mapfile. This way, the > GetFeatureInfo only works if requested in this custom EPSG using the > rotated grid BBOX, if I do the request in another CRS, it still return > no results: > > ``` > > mapserv -nh "QUERY_STRING=map= > test.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=0,0,1,1&CRS=EPSG:102987&WIDTH=1000&HEIGHT=1000&LAYERS=TEST&INFO_FORMAT=text/plain&QUERY_LAYERS=TEST&I=5&J=5&FORMAT=image/png" > > ``` > > Here is a GetFeatureInfo request that returns no results using EPSG:4326: > > ``` > > mapserv -nh > "QUERY_STRING=map=test.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=45,-74,46,-73&CRS=EPSG:4326&WIDTH=1000&HEIGHT=1000&LAYERS=TEST&INFO_FORMAT=text/plain&QUERY_LAYERS=TEST&I=5&J=5" > > ``` > > I have included a small mapfile that shows the previous behavior, you > can use this curl command to download a sample GRIB2 data: > > ``` > > curl -o rotated.grib2 > 'https://dd.weather.gc.ca/model_raqdps/10km/grib2/00/013/20210709T00Z_MSC_RAQDPS_PM2.5_EATM_RLatLon0.09x0.09_P013.grib2' > > ``` > > Do you have any ideas if I?m doing something wrong or if the issue is in > MapServer ? > > Thanks > > LP > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > From Louis-Philippe.RousseauLambert at ec.gc.ca Fri Jul 9 11:18:51 2021 From: Louis-Philippe.RousseauLambert at ec.gc.ca (Rousseau Lambert,Louis-Philippe (ECCC)) Date: Fri, 9 Jul 2021 18:18:51 +0000 Subject: [mapserver-users] GetFetureInfo with rotated grid In-Reply-To: References: Message-ID: Hi Jeff, Thanks for your comment, I updated my test mapfile with STATUS ON and added a better style so we can really see the different values in the file. I confirm that using the shp2img (shp2img -m test.map -o ttt.png -map_debug 3) command I do get a valid image. Here is a link to the image: https://ibb.co/QX7Lnb2 and to the updated mapfile: https://pastebin.com/Xh12y7tN The GRIB2 data covers only North America, which is normal for this dataset. Here are the debug lines when I run shp2img: """ $ shp2img -m test.map -o ttt.png -map_debug 3 msDrawMap(): rendering using outputformat named png (AGG/PNG). msDrawMap(): WMS/WFS set-up and query, 0.000s msDrawRasterLayerLow(TEST): entering. msResampleGDALToMap in effect: cellsize = 0.090000 msDrawGDAL(TEST): using RAW_WINDOW=0 0 729 599, dst=0,0,729,599 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 msDrawRasterGDAL_16BitClassification(TEST): scaling to 65536 buckets from range=4.58045e-08,1.67861e-06. msDrawRasterGDAL_16BitClassification() bucket creation time: 0.067s msNearestRasterResampler: 25000 failed to transform, 11511 actually set. msDrawMap(): Layer 0 (TEST), 0.177s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.178s msSaveImage(ttt.png) total time: 0.004s freeLayer(): freeing layer at 0x55b6b7a27380. """ Thanks LP -- Louis-Philippe Rousseau Lambert, B.Sc. Sp?cialiste en g?omatique / Geomatics Specialist Syst?mes de donn?es g?ospatiales et ouvertes Geospatial and Open Data Systems Service M?t?orologique du Canada Meteorological Service of Canada Environnement et Changement Climatique Canada Environment and Climate Change Canada louis-philippe.rousseaulambert at ec.gc.ca (450) 775-9714 -----Original Message----- From: mapserver-users On Behalf Of Jeff McKenna Sent: 9 juillet 2021 13:15 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GetFetureInfo with rotated grid Hi LP, Can you also confirm through a shp2img command, that you generate a valid map image, in your output EPSG:4326 projection, such as: shp2img -m test.map -o ttt.png -map_debug 3 (also, please add "STATUS ON" to your layer) I would always start with a shp2img command, make sure that MapServer (and GDAL+PROJ in this case) can access your data, reproject it, and return a nice valid image. Then, after that works, move onto the fun of WMS and OGC service testing. -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2021-07-09 12:13 p.m., Rousseau Lambert,Louis-Philippe (ECCC) wrote: > Hi all, > > I have an issue with WMS GetFeatureInfo request on a rotated GRIB2 file. > When I try to do a GetFeatureInfo request on a valid location on my map, > I get: "Search returned no results". I tried the GetFeatureInfo request, > using mapscript and the mapserv command, both give me the "Search > returned no results". > > The file projection is "+proj=ob_tran +o_proj=longlat +o_lon_p=0 > +o_lat_p=31.758312 +lon_0=-92.402969 +R=6371229 +no_defs" > > I'm using MapServer version 7.6.2, GDAL 3.1.3 (released 2020/09/01) and > proj 7.2.0. > > But If I try to get the value with gdallocationinfo using the -wsg84 > flag, I get a valid result, so I guess this issue is not with gdal ?: > > ``` > > gdallocationinfo -wgs84 rotated.grib2 -75 45 > > Report: > > ? Location: (578P,373L) > > ? Band 1: > > ??? Value: 3.1022446478346e-07 > > ``` > > I can get a GetFeatureInfo request to work, but I have to define a > custom EPSG code (for example: EPSG:102987), add this EPSG code (102987) > to my epsg file and reference it in my mapfile. This way, the > GetFeatureInfo only works if requested in this custom EPSG using the > rotated grid BBOX, if I do the request in another CRS, it still return > no results: > > ``` > > mapserv -nh "QUERY_STRING=map= > test.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=0,0,1,1&CRS=EPSG:102987&WIDTH=1000&HEIGHT=1000&LAYERS=TEST&INFO_FORMAT=text/plain&QUERY_LAYERS=TEST&I=5&J=5&FORMAT=image/png" > > ``` > > Here is a GetFeatureInfo request that returns no results using EPSG:4326: > > ``` > > mapserv -nh > "QUERY_STRING=map=test.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=45,-74,46,-73&CRS=EPSG:4326&WIDTH=1000&HEIGHT=1000&LAYERS=TEST&INFO_FORMAT=text/plain&QUERY_LAYERS=TEST&I=5&J=5" > > ``` > > I have included a small mapfile that shows the previous behavior, you > can use this curl command to download a sample GRIB2 data: > > ``` > > curl -o rotated.grib2 > 'https://dd.weather.gc.ca/model_raqdps/10km/grib2/00/013/20210709T00Z_MSC_RAQDPS_PM2.5_EATM_RLatLon0.09x0.09_P013.grib2' > > ``` > > Do you have any ideas if I'm doing something wrong or if the issue is in > MapServer ? > > Thanks > > LP > > > _______________________________________________ > 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 bob.basques at ci.stpaul.mn.us Mon Jul 12 07:03:48 2021 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 12 Jul 2021 14:03:48 +0000 Subject: [mapserver-users] NULL Style. . . . Message-ID: All, So this will probably sound weird to start with, but, anyone know how I might implement a STYLE in a Mapfile as a NULL display, I sort of want to use it like FILTER/FILTERITEM, but at the STYLE level (Will these work further down in the STYLE block?). All this is against a SHP file currently, which limits me somewhat in the FILTERING. I've got a FILTER/FILTERITEM set at the MAP block, works just as expected, but I also need to omit display on an additional field at a LAYER>>STYLE block. I suppose I could use a NOT expression of some sort . . . . Still pondering . . . Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From cneves at lrec.pt Mon Jul 12 11:47:12 2021 From: cneves at lrec.pt (Carlos Neves (LREC)) Date: Mon, 12 Jul 2021 19:47:12 +0100 Subject: [mapserver-users] Mapserver ANGLE counterclockwise bug? Message-ID: <30508550-96e8-8d20-0848-c47e30d5aacf@lrec.pt> Hi List, I have a png North symbol "winddirection" defined in symbol.sym file, pointing? to north (0?) My MAP file is something simple like this. ???? ??? ??? STYLE ??????????????????????????????? SYMBOL "winddirection" ??????????????????????????????? ANGLE [DVmd] ??????????????????????????????? OFFSET 30 0 ??????????????????????????????? SIZE 50 ????????????? END Where DVmd is the the direction field in the meteo DataBase in degrees The problem is when the database field is 45? (NE) the image in MAP rotates to? 315? (NW) ,i.e. -45?. Any help would be appreciated. Carlos From bob.basques at ci.stpaul.mn.us Mon Jul 12 12:26:46 2021 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 12 Jul 2021 19:26:46 +0000 Subject: [mapserver-users] Mapserver ANGLE counterclockwise bug? In-Reply-To: <30508550-96e8-8d20-0848-c47e30d5aacf@lrec.pt> References: <30508550-96e8-8d20-0848-c47e30d5aacf@lrec.pt> Message-ID: <4CBACB68-6231-4FE8-AAC6-DEADAF4AE0C2@ci.stpaul.mn.us> Mapserver assumes 0 degrees angle to be to the right (east) and measures counterclockwise. I went through all this rotation stuff a while back when trying to convert back and forth between MapServer ANGLE and Postgress ROTATION (0 is north and measures clockwise). Hope that helps. Bobb ?On 7/12/21, 2:05 PM, "mapserver-users on behalf of Carlos Neves (LREC)" wrote: Think Before You Click: This email originated outside our organization. Hi List, I have a png North symbol "winddirection" defined in symbol.sym file, pointing to north (0?) My MAP file is something simple like this. STYLE SYMBOL "winddirection" ANGLE [DVmd] OFFSET 30 0 SIZE 50 END Where DVmd is the the direction field in the meteo DataBase in degrees The problem is when the database field is 45? (NE) the image in MAP rotates to 315? (NW) ,i.e. -45?. Any help would be appreciated. Carlos _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From bob.basques at ci.stpaul.mn.us Mon Jul 12 13:30:02 2021 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 12 Jul 2021 20:30:02 +0000 Subject: [mapserver-users] [REMINDER] OSGeo Twin Cities (aka TCMUG) Local Chapter Meeting - July 14th Message-ID: <3124056A-0D77-4FBE-B964-D60F4F5B3C4E@ci.stpaul.mn.us> Hello all, We had a good meeting last month, even if I had some technical difficulties in presenting, the show eventually went on, and even had some out of town participants which is always good and encouraged. I?ll post the Meeting video this evening , but figured I better get the meeting reminder for July out now. We?re going with the first face to face meeting in the past 15 months. And at our last location for a face to face meeting too. Location: Holman?s Table, downtown St. Paul. MAP Date: July 14th Time: 4:30 ? 6:00PM I have a reservation on the Patio. Rain or shine, see you there. I?ll try to set up a computer for remote participants too. Bobb Meeting: https://meet.jit.si/osgeo_tcmug Chapter page: https://www.osgeo.org/local-chapters/twin-cities-mn-usa-chapter/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Jul 12 15:25:57 2021 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 12 Jul 2021 19:25:57 -0300 Subject: [mapserver-users] 7.6.4 released Message-ID: The MapServer team is pleased to announce the maintenance release of MapServer 7.6.4 For the list of changes see the Changelog at https://mapserver.org/development/changelog/changelog-7-6.html Or head to Download at https://mapserver.org/download.html For those wanting searchable offline documentation (with click-able index of terms at end), the updated PDF is now available at https://download.osgeo.org/mapserver/docs/MapServer.pdf Fun fact: today's 7.6.4 release is exactly 10 years to the day since the MapServer 6.0.1 release :) Happy (fast) mapserving... -- The MapServer Team From bob.basques at ci.stpaul.mn.us Tue Jul 13 12:16:24 2021 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 13 Jul 2021 19:16:24 +0000 Subject: [mapserver-users] [REMINDER] OSGeo Twin Cities (aka TCMUG) Local Chapter Meeting - July 14th Message-ID: Hello all, We had a good meeting last month, even if I had some technical difficulties in presenting, the show eventually went on, and even had some out of town participants which is always good and encouraged. I?ve posted the Jul meeting video at the Chapter page link below. We?re going with the first face to face meeting in the past 15 months. And at our last location for a face to face meeting too. Location: Holman?s Table, downtown St. Paul. MAP Date: July 14th Time: 4:30 ? 6:00PM I have a reservation on the Patio. Rain or shine, see you there. I?ll try to set up a computer for remote participants too. Bobb Meeting: https://meet.jit.si/osgeo_tcmug Chapter page: https://www.osgeo.org/local-chapters/twin-cities-mn-usa-chapter/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Louis-Philippe.RousseauLambert at ec.gc.ca Wed Jul 14 11:51:40 2021 From: Louis-Philippe.RousseauLambert at ec.gc.ca (Rousseau Lambert,Louis-Philippe (ECCC)) Date: Wed, 14 Jul 2021 18:51:40 +0000 Subject: [mapserver-users] GRIB2 WCS GetCoverage request fails with custom EPSG file Message-ID: Hi all, I have an issue with the GRIB2 WCS GetCoverage output using MapServer and a custom EPSG file. I'm using MapServer version 7.6.2, GDAL 3.1.3 and proj 7.2.0. I have a Mapfile using a GRIB2 file as input data (with DATA in the mapfile) and I am trying to do a WCS 2.0.1 GetCoverage request for a subset of the layer related to the GRIB2. You can get a raw file example here using curl (command: curl -o tmp.grib2 "https://dd.weather.gc.ca/model_gem_global/15km/grib2/lat_lon/12/006/CMC_glb_TMP_TGL_2_latlon.15x.15_2021071412_P006.grib2") I know my layer works fine in WMS and in WCS using the NetCDF and GeoTIFF output. Here is a small mapfile that shows this behavior as well as the EPSG file I'm using. mapfile: https://pastebin.com/Pq06D0LQ EPSG file: https://pastebin.com/7wfCjVdb I also tested the file with shp2img (command: shp2img -m grib2.map -o ttt.png -all_debug 5) and it outputs a valid image (see valid image here: https://ibb.co/mRD5YyC) Here are WCS GetCoverage mapserv commands that outputs a valid subset of my GRIB2 layer in GeoTIFF and NetCDF: * mapserv -nh "QUERY_STRING=map=grib2.map&SERVICE=WCS&VERSION=2.0.1&REQUEST=GetCoverage&COVERAGEID=TEST&SUBSETTINGCRS=EPSG:4326&SUBSET=x(-120,-85)&SUBSET=y(48,66)&RESOLUTION=x(0.24)&RESOLUTION=y(0.24)&FORMAT=image/tiff" > tmp.tiff * mapserv -nh "QUERY_STRING=map=grib2.map&SERVICE=WCS&VERSION=2.0.1&REQUEST=GetCoverage&COVERAGEID=TEST&SUBSETTINGCRS=EPSG:4326&SUBSET=x(-120,-85)&SUBSET=y(48,66)&RESOLUTION=x(0.24)&RESOLUTION=y(0.24)&FORMAT=image/netcdf" > tmp.nc The problem is the following: If I use the same request to output a GRIB2 file, I get an error: Request mapserv -nh "QUERY_STRING=map=grib2.map&SERVICE=WCS&VERSION=2.0.1&REQUEST=GetCoverage&COVERAGEID=TEST&SUBSETTINGCRS=EPSG:4326&SUBSET=x(-120,-85)&SUBSET=y(48,66)&RESOLUTION=x(0.24)&RESOLUTION=y(0.24)&FORMAT= application/x-grib2" Error msWCSWriteFile20(): General error message. msSaveImage() failed msSaveImageGDAL(): General error message. Failed to create output GRIB file. Unsupported or missing spatial reference system Here are the debug MapServer lines: https://pastebin.com/pT9WHvGP. I know there are a lot of debugs errors showing "PROJ: Debug: proj_create: Cannot find proj.db" but this does not seem to cause issues with other formats then GRIB2 or in WMS requests. This error only appears when doing a WCS request for GRIB2 output. Also, if I comment out the line CONFIG "PROJ_LIB" "./" , I get a valid GRIB2 file as output. I tried using a proj.db file instead and point to it in my CONFIG line, but it also fail with the same error. Any ideas why only the GRIB2 WCS GetCoverage request fails with my custom EPSG file while the other WMS requests or WCS output formats work fine ? Thanks LP -------------- next part -------------- An HTML attachment was scrubbed... URL: From luc.ponelle at veolia.com Wed Jul 21 07:10:41 2021 From: luc.ponelle at veolia.com (PONELLE, Luc) Date: Wed, 21 Jul 2021 16:10:41 +0200 Subject: [mapserver-users] mapcache_seed : deleting tiles out of extent Message-ID: Hello I want to delete tiles with mapcache_seed using like this : mapcache_seed -c /etc/mapcache.xml -L /tmp/log_tiles -m delete -e 949898,6270769,958517,6278331 -t veolia2154 -g LAMB93 -z 16,16 -n 10 The deleting is very long and seems delete tiles out of extent : seeded 32600 tiles, now at z16 x164200 y29275 And if I interrupt the process I have the following message : seeded 1574 metatiles (39350 total tiles, 39350 non-empty tiles) in 87.0 seconds at 452.4 tiles/sec (452.4 non-empty tiles/sec) There are less tiles in this extent The mapcache.xml is defined like that : .... Lambert 1993 -357823.2365 6037008.6939 1313632.3628 7230727.3772 EPSG:2154 IGNF:LAMB93 2048 1024 512 256 128 64 32 16 8 4 2 1 0.5 0.25 0.125 0.0625 0.03125 0.015625 0.0078125 m 256 256 .... fdp_veolia s3 LAMB93 PNG_BEST 5 5 10 604800 Anyone have an idea ? Thanks in adavance Je reste disponible pour tout renseignement compl?mentaire. Cordialement *Luc PONELLE* Tech Lead - BS R?seau - Chapter Maintenance & Intervention + IS&T Eau France Office : +33 (0)6 24 63 60 68 Adresse : Immeuble Giovanni Battista A 1, rue Giovanni Battista Pirelli 94410 Saint-Maurice *www.veolia.com * * ** * * * -- --------------------------------------------------------------------------------------------This e-mail transmission (message and any attached files) may contain information that is proprietary, privileged and/or confidential to Veolia Environnement and/or its affiliates and is intended exclusively for the person(s) to whom it is addressed. If you are not the intended recipient, please notify the sender by return e-mail and delete all copies of this e-mail, including all attachments. Unless expressly authorized, any use, disclosure, publication, retransmission or dissemination of this e-mail and/or of its attachments is strictly prohibited.? Ce message electronique et ses fichiers attaches sont strictement confidentiels et peuvent contenir des elements dont Veolia Environnement et/ou l'une de ses entites affiliees sont proprietaires. Ils sont donc destines a l'usage de leurs seuls destinataires. Si vous avez recu ce message par erreur, merci de le retourner a son emetteur et de le detruire ainsi que toutes les pieces attachees. L'utilisation, la divulgation, la publication, la distribution, ou la reproduction non expressement autorisees de ce message et de ses pieces attachees sont interdites. -------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ashley.Sommer at csiro.au Mon Jul 26 20:57:10 2021 From: Ashley.Sommer at csiro.au (Sommer, Ashley (L&W, Dutton Park)) Date: Tue, 27 Jul 2021 03:57:10 +0000 Subject: [mapserver-users] Extracting Year, Month, Day from WMS time query Message-ID: Hi All, I'm trying to get a very specific configuration working in my mapfile. I have geotiff files in a directory structure that looks like: http://example.org/v1/AUTH_xyz/my-dataset/YYYY/YYYY_MM_DD/product_name_YYYY_MM_DD.vrt Where YYYY is a year (eg 2018) and YYYY_MM_DD is a date (eg 2018_08_01) EG: DATA "/vsicurl/http://example.org/v1/AUTH_xyz/my-dataset/2018/2018_08_01/product_name_2018_08_01.vrt" I'm trying to get this working with a dynamic mapfile, with runtime substitution, and ideally, I'd also like it to work with WMS Time queries. I've found that the WMS TIME query parameter doesn't automatically work with runtime substitution. It can be used as an attribute [TIME] in a FILTER, or in an EXPRESSION, but nowhere else. To work around that, I've set up a Runtime Substitution variable also named time: VALIDATION "time" "^[0-9]{4}-[0-9]{2}-[0-9]{2}$" END That works, it captures the right variable and allows me to use the WMS-provided TIME param in the DATA directive like: LAYER DATA "/vsicurl/http://example.org/v1/AUTH_xyz/my-dataset/2018/%time%/product_name_%time%.vrt" But that doesn't quite match the naming scheme of the dataset. In order for this to work properly, I need to be able to extract the year, month and day portions of the datestring, and use them individually. Like: DATA "/vsicurl/http://example.org/v1/AUTH_xyz/my-dataset/%year%/%year%_%month%_%day%/product_name_%year%_%month%_%day%.vrt" I've read the documentation around WMS_Time and Runtime Substitution, but I can't quite work out if this is even possible. Note, I understand I could probably do this at the apache level, by transforming the query with a rewrite eg: "&TIME=2018-08-01" -> "&TIME=2018-08-01&YEAR=2018&MONTH=08&DAY=01" But I'd prefer to do it at the Mapfile level. - Ashley Sommer -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ashley.Sommer at csiro.au Mon Jul 26 23:12:44 2021 From: Ashley.Sommer at csiro.au (Sommer, Ashley (L&W, Dutton Park)) Date: Tue, 27 Jul 2021 06:12:44 +0000 Subject: [mapserver-users] [Feature Request] Ability to extract capture group contents from regex validation Message-ID: Hi All, This is slightly related to my previous thread today, but more general. I want to gauge interested in this idea. I want to be able to use Runtime Substitution mechanisms to do something like this: MAP ... VALIDATION "datetime" "^([0-9]{4})[-_]([0-9]{2})[-_]([0-9]{2})$" # <- 3 capture groups END LAYER DATA "/mnt/dataset/%datetime_1%/%datetime_2%/%datetime_3%.tif" ... END ... END Where the query with &datetime=2018-01-29 is split into parts using capture groups 1, 2, and 3 from the validation regex, and stored as new runtime substitution variables: %datetime_1%, %datetime_2%, and %datetime_3%. Then using these values, substitute them into the DATA string (or any other valid substitution point). Substituted: DATA "/mnt/dataset/2018/01/29.tif" The regex mechanism to validate the incoming parameter value is already in place, and it seems like just one more little step is needed to save the captured groups into new runtime substitution variables. - Ashley Sommer -------------- next part -------------- An HTML attachment was scrubbed... URL: From trondmm-mapserver+2017 at crusaders.no Tue Jul 27 04:33:56 2021 From: trondmm-mapserver+2017 at crusaders.no (Trond Michelsen) Date: Tue, 27 Jul 2021 13:33:56 +0200 Subject: [mapserver-users] [Feature Request] Ability to extract capture group contents from regex validation In-Reply-To: References: Message-ID: <20210727113356.GD26599@crusaders.no> This sounds like a good idea to me, but I would suggest to use named capture groups. In perl, this uses this syntax: (?pattern). So, in this example, it could be: "datetime" "^(?[0-9]{4})[-_](?[0-9]{2})[-_](?[0-9]{2})$" # <- 3 capture groups And the result could then be used in substitution as: %year%, %month% and %day%. Maybe with an added prefix, but I'd prefer without, tbh. On Tue, Jul 27, 2021 at 06:12:44AM +0000, Sommer, Ashley (L&W, Dutton Park) wrote: > Hi All, > This is slightly related to my previous thread today, but more general. > > I want to gauge interested in this idea. > I want to be able to use Runtime Substitution mechanisms to do something like this: > > MAP > ... > VALIDATION > "datetime" "^([0-9]{4})[-_]([0-9]{2})[-_]([0-9]{2})$" # <- 3 capture groups > END > > LAYER > DATA "/mnt/dataset/%datetime_1%/%datetime_2%/%datetime_3%.tif" > ... > END > ... > END > > Where the query with &datetime=2018-01-29 is split into parts using capture groups 1, 2, and 3 from the validation regex, and stored as new runtime substitution variables: %datetime_1%, %datetime_2%, and %datetime_3%. > Then using these values, substitute them into the DATA string (or any other valid substitution point). > Substituted: > DATA "/mnt/dataset/2018/01/29.tif" > > The regex mechanism to validate the incoming parameter value is already in place, and it seems like just one more little step is needed to save the captured groups into new runtime substitution variables. > > - Ashley Sommer > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Trond Michelsen From trondmm-mapserver+2017 at crusaders.no Tue Jul 27 04:24:41 2021 From: trondmm-mapserver+2017 at crusaders.no (Trond Michelsen) Date: Tue, 27 Jul 2021 13:24:41 +0200 Subject: [mapserver-users] Extracting Year, Month, Day from WMS time query In-Reply-To: References: Message-ID: <20210727112441.GC26599@crusaders.no> On Tue, Jul 27, 2021 at 03:57:10AM +0000, Sommer, Ashley (L&W, Dutton Park) wrote: > I've read the documentation around WMS_Time and Runtime Substitution, but I can't quite work out if this is even possible. > Note, I understand I could probably do this at the apache level, by transforming the query with a rewrite eg: > "&TIME=2018-08-01" -> "&TIME=2018-08-01&YEAR=2018&MONTH=08&DAY=01" > But I'd prefer to do it at the Mapfile level. Hi. I'm doing exactly this. Although, I'm not using mod_rewrite, instead I have a mod_perl module as a URI Translation handler, but it's essentially doing exactly the same thing as a regular rewrite. This works reasonably well, but I wouldn't mind if this functionality was baked into the mapfile. Especially since this could then be easily applied to other temporal dimensions than just TIME. -- Trond Michelsen From jmckenna at gatewaygeomatics.com Tue Jul 27 09:57:08 2021 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 27 Jul 2021 13:57:08 -0300 Subject: [mapserver-users] Next MapServer project steering committe meeting: Thursday 13:00UTC Message-ID: <8D7ECCBBCE37495885B8D107DB3CC507.MAI@mailroot3.namespro.ca> Hi everyone! This is not usual, but here it goes... We all know that MapServer has a vibrant user community (and sometimes development is not as visible or discussed as in other projects), so (unofficially) I'd like to mention here that the MapServer Project Steering Committee ("PSC", that means the 10+ individuals who help make decisions regarding the management of MapServer releases and code changes) will be meeting this coming Thursday on IRC chat. You are also encouraged to join the meeting (there is an agenda item near the end called "community feedback", where you can give input on what's important or missing in the upcoming 8.0 release, etc). Join and share! That's what FOSS is all about. Thanks! - time: - 13:00 UTC (8am Minny, 3pm Paris) https://www.timeanddate.com/worldclock/fixedtime.html?year=2021&month=07&day=29&hour=13&min=0&sec=0&msg=MapServer+PSC+Meeting - agenda: https://github.com/MapServer/MapServer/wiki/PSC-Meeting-2021-07-29 - location: the meeting will be held in the #mapserver channel at https://web.libera.chat/#mapserver -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Jul 27 10:23:44 2021 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 27 Jul 2021 14:23:44 -0300 Subject: [mapserver-users] Please add your site (or OGC services) to the MapServer Gallery Message-ID: Hi everyone! A few years ago a new MapServer user reminded us that we need working examples of applications (and MapServer-driven WMS/WFS/OWS services) listed on our map gallery. Please take a minute to add your site and specs (respecting the syntax and alphabetical order) at: https://github.com/mapserver/mapserver/wiki/MapServer-Site-Gallery It has become a great resource! Please take a moment to make sure that your MapServer-driven site or OGC services are listed there, especially as we are getting closer to the big MapServer 8.0 release. So help show off the powers of MapServer!! Thank you everyone :) -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Wed Jul 28 12:09:48 2021 From: sdlime at gmail.com (Steve Lime) Date: Wed, 28 Jul 2021 14:09:48 -0500 Subject: [mapserver-users] [Feature Request] Ability to extract capture group contents from regex validation In-Reply-To: <20210727113356.GD26599@crusaders.no> References: <20210727113356.GD26599@crusaders.no> Message-ID: Interesting idea, certainly not crazy. I'm not sure what's possible with regex libs commonly used with MapServer builds. On Tue, Jul 27, 2021 at 6:34 AM Trond Michelsen < trondmm-mapserver+2017 at crusaders.no> wrote: > This sounds like a good idea to me, but I would suggest to use named > capture groups. In perl, this uses this syntax: (?pattern). So, > in this example, it could be: > > "datetime" "^(?[0-9]{4})[-_](?[0-9]{2})[-_](?[0-9]{2})$" > # <- 3 capture groups > > And the result could then be used in substitution as: %year%, %month% > and %day%. Maybe with an added prefix, but I'd prefer without, tbh. > > On Tue, Jul 27, 2021 at 06:12:44AM +0000, Sommer, Ashley (L&W, Dutton > Park) wrote: > > Hi All, > > This is slightly related to my previous thread today, but more general. > > > > I want to gauge interested in this idea. > > I want to be able to use Runtime Substitution mechanisms to do something > like this: > > > > MAP > > ... > > VALIDATION > > "datetime" "^([0-9]{4})[-_]([0-9]{2})[-_]([0-9]{2})$" # <- 3 capture > groups > > END > > > > LAYER > > DATA "/mnt/dataset/%datetime_1%/%datetime_2%/%datetime_3%.tif" > > ... > > END > > ... > > END > > > > Where the query with &datetime=2018-01-29 is split into parts using > capture groups 1, 2, and 3 from the validation regex, and stored as new > runtime substitution variables: %datetime_1%, %datetime_2%, and > %datetime_3%. > > Then using these values, substitute them into the DATA string (or any > other valid substitution point). > > Substituted: > > DATA "/mnt/dataset/2018/01/29.tif" > > > > The regex mechanism to validate the incoming parameter value is already > in place, and it seems like just one more little step is needed to save the > captured groups into new runtime substitution variables. > > > > - Ashley Sommer > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Trond Michelsen > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Thu Jul 29 07:27:08 2021 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 29 Jul 2021 14:27:08 +0000 Subject: [mapserver-users] [REMINDER] OSGeo Twin Cities (aka TCMUG) Local Chapter Meeting - Aug 11th Message-ID: Hello all, Great meeting last month, even if it was a smaller group, Nice seeing folks face to face after 15 months. Talked about all sorts of stuff too. I did not remember to take a photo of the group, sorry about that. Also, looking for a presenter for this upcoming meeting 15-20 min presentation. We decided at the last meeting to switch things up a bit in order to try and preserve the virtual aspect, and remote access of our meetings as well as start up again with our face to face meet ups. So, we?re going to run a Virtual meeting ahead of the face to face. Date: Aug 11th. Virtual location: As always, use the link below to get into the virtual meeting. Virtual meeting time: 4:00pm CDT (I know a little earlier than usual, presentation will start at 4:15, end by 4:45) Face to face Location: Bad Weather Brewing. Map. Face to face meeting Time: 5:00 ? ???? Bobb Meeting: https://meet.jit.si/osgeo_tcmug Chapter page: https://www.osgeo.org/local-chapters/twin-cities-mn-usa-chapter/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Jul 30 05:27:44 2021 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 30 Jul 2021 09:27:44 -0300 Subject: [mapserver-users] PSC meeting minutes available Message-ID: <929105291@localhost> Hi all, Yesterday's minutes of the MapServer Project Steering Committee (PSC) meeting are posted at: https://github.com/mapserver/mapserver/wiki/PSC-Meeting-2021-07-29 (some might prefer instead to read the logs: https://gatewaygeomatics.com/irc-mapserver/2021-07-29.html ) -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: