From bob.basques at ci.stpaul.mn.us Mon May 1 06:59:39 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Mon, 1 May 2023 13:59:39 +0000 Subject: [MapServer-users] Database problem when using CLASSITEM In-Reply-To: References: Message-ID: Jeremy, One thing to check is the column name in Postgres, as in ?CLASS? vs ?class? vs ?Class?, etc. Needs to match. Check the same thing on EXPRESSION values. bobb My machine - - - PW19-S295-C024 From: MapServer-users On Behalf Of Jeremy JK Sent: Saturday, April 29, 2023 2:12 PM To: Jason Snyder Subject: [MapServer-users] Database problem when using CLASSITEM Think Before You Click: This email originated outside our organization. Hola OK so I am going through the MapServer tutorial Example 1-3 to be exact the one with the classes using classes to split layer polygon into land and water when shp and dbf file is in filesystem it works fine But When I import shp file into postgres I get the following error After checking the error logs, my question is how do I get a class column? Do I have to insert the dbf file into schema? If so, how? Thanks Error: msDrawMap(): Image handling error. Failed to draw layer named 'states_poly'. msPostGISLayerWhichShapes(): Query error. Error executing query. Check server logs Query: http://localhost:8081/cgi-bin/mapserv?map=/opt/map/mdm60/example1-3.map&layer=states_poly&layer=states_line&mode=map Mapfile: MAP IMAGETYPE PNG EXTENT -97.238976 41.619778 -82.122902 49.385620 SIZE 400 300 SHAPEPATH "/opt/map/mdm60/ms4w/apps/tutorial/data/" IMAGECOLOR 255 255 255 LAYER NAME "states_poly" CONNECTIONTYPE POSTGIS CONNECTION "user=postgres password=postgres dbname=mdm6data host=mxsig-db port=5432" DATA "wkb_geometry from tutoiral.states_ugl_imported using srid=3857" STATUS OFF TYPE POLYGON CLASSITEM "CLASS" CLASS NAME 'States' EXPRESSION 'land' STYLE COLOR 232 232 232 END END CLASS NAME 'Water' EXPRESSION 'water' STYLE COLOR 198 198 255 END END END LAYER NAME "states_line" CONNECTIONTYPE POSTGIS CONNECTION "user=postgres password=postgres dbname=mdm6data host=mxsig-db port=5432" DATA "wkb_geometry from tutorial.sttes_ugl_imported using srid=3875" STATUS OFF TYPE LINE CLASSITEM "CLASS" CLASS NAME 'State Boundary' EXPRESSION 'land' STYLE COLOR 32 32 32 END END END END Error Log: [Sat Apr 29 19:08:42 2023].232185 CGI Request 1 on process 1677 [Sat Apr 29 19:08:42 2023].233452 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Sat Apr 29 19:08:42 2023].233473 msDrawMap(): WMS/WFS set-up and query, 0.000s [Sat Apr 29 19:08:42 2023].282742 msPostGISLayerWhichShapes(): Error (ERROR: no existe la columna ?CLASS? LINE 1: select "CLASS"::text,ST_AsBinary(("wkb_geometry"),'NDR') as ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From jason2017jay at gmail.com Mon May 1 12:49:19 2023 From: jason2017jay at gmail.com (Jeremy JK) Date: Mon, 1 May 2023 15:49:19 -0400 Subject: [MapServer-users] Database problem when using CLASSITEM In-Reply-To: References: Message-ID: Hi Bob, Thanks for the guidance I had been "misdirected" by the mentioning of the dbf file in tutorial Hope you guys can clear up some more of my misdirections in the future On Mon, May 1, 2023, 9:59 AM Bob Basques wrote: > *Jeremy,* > > > > *One thing to check is the column name in Postgres, as in ?CLASS? vs > ?class? vs ?Class?, etc. Needs to match. Check the same thing on > EXPRESSION values.* > > > > *bobb* > > > > > > *My machine - - - PW19-S295-C024* > > > > *From:* MapServer-users *On > Behalf Of *Jeremy JK > *Sent:* Saturday, April 29, 2023 2:12 PM > *To:* Jason Snyder > *Subject:* [MapServer-users] Database problem when using CLASSITEM > > > > *Think Before You Click: *This email originated *outside *our > organization. > > > > Hola > > OK so I am going through the MapServer tutorial > Example 1-3 to be exact > the one with the classes > using classes to split layer polygon into land and water > > when shp and dbf file is in filesystem it works fine > But > When I import shp file into postgres I get the following error > > After checking the error logs, my question is how do I get a class column? > Do I have to insert the dbf file into schema? If so, how? > > Thanks > > *Error*: > msDrawMap(): Image handling error. Failed to draw layer named > 'states_poly'. msPostGISLayerWhichShapes(): Query error. Error executing > query. Check server logs > > > > *Query: * > http://localhost:8081/cgi-bin/mapserv?map=/opt/map/mdm60/example1-3.map&layer=states_poly&layer=states_line&mode=map > > > *Mapfile*: > MAP > IMAGETYPE PNG > EXTENT -97.238976 41.619778 -82.122902 49.385620 > SIZE 400 300 > SHAPEPATH "/opt/map/mdm60/ms4w/apps/tutorial/data/" > IMAGECOLOR 255 255 255 > > LAYER > NAME "states_poly" > CONNECTIONTYPE POSTGIS > CONNECTION "user=postgres password=postgres dbname=mdm6data > host=mxsig-db port=5432" > DATA "wkb_geometry from tutoiral.states_ugl_imported using > srid=3857" > STATUS OFF > TYPE POLYGON > > CLASSITEM "CLASS" > > CLASS > NAME 'States' > EXPRESSION 'land' > STYLE > COLOR 232 232 232 > END > END > CLASS > NAME 'Water' > EXPRESSION 'water' > STYLE > COLOR 198 198 255 > END > END > END > > LAYER > NAME "states_line" > CONNECTIONTYPE POSTGIS > CONNECTION "user=postgres password=postgres dbname=mdm6data > host=mxsig-db port=5432" > DATA "wkb_geometry from tutorial.sttes_ugl_imported using > srid=3875" > STATUS OFF > TYPE LINE > > CLASSITEM "CLASS" > > CLASS > NAME 'State Boundary' > EXPRESSION 'land' > STYLE > COLOR 32 32 32 > END > END > END > > > END > > > *Error Log: *[Sat Apr 29 19:08:42 2023].232185 CGI Request 1 on process > 1677 > [Sat Apr 29 19:08:42 2023].233452 msDrawMap(): rendering using > outputformat named png (AGG/PNG). > [Sat Apr 29 19:08:42 2023].233473 msDrawMap(): WMS/WFS set-up and query, > 0.000s > [Sat Apr 29 19:08:42 2023].282742 msPostGISLayerWhichShapes(): Error > (ERROR: no existe la columna ?CLASS? > LINE 1: select "CLASS"::text,ST_AsBinary(("wkb_geometry"),'NDR') as ... > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cantey0701 at gmail.com Thu May 4 06:30:31 2023 From: cantey0701 at gmail.com (Chris Cantey) Date: Thu, 4 May 2023 08:30:31 -0500 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. Message-ID: Hello all, I need some help. We are building a new web server a rebuilding mapserver on it, migrating from 6.4 to 8.0. But in testing, we keep getting the "msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings." error. But we have that configured in our map file under map>web>metadata. So I'm not sure what is going on. Config file, map file, URL, error, query string, and error below. ####### CONFIG file CONFIG ENV MS_MAP_PATTERN "^\/home\/web\/gis\/tmp\/mapserver\/([^\.][_A-Za-z0-9\-\.]+\/{1})*([_A-Za-z0-9\-\.]+\.(map))$" MS_DEBUGLEVEL "0" MS_ERRORFILE "/home/web/gis/tmp/mapserver/logs/mapserver.log" END MAPS END END ####### Map file MAP NAME 'XXX FINDER' STATUS ON UNITS METERS SIZE 100 100 EXTENT 189783.4733502351 4816303.593109079 762236.9588402509 5472427.761911989 FONTSET "/home/web/gis//mapserver/fonts/fontset.list" SYMBOLSET "/home/web/gis//mapserver/symbols/symbol.sym" END PROJECTION "proj=utm" "ellps=GRS80" "datum=NAD83" "zone=15" "units=m" "north" "no_defs" END OUTPUTFORMAT NAME "png" DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "GAMMA=0.75" END WEB TEMPLATE "/home/web/gis/tmp/mapserver/lm.html" METADATA "ows_enable_request" "*" "wms_title" "Who Represents Me" "wms_onlineresource" https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map "wms_srs" "EPSG:4326 EPSG:900913" END END LAYER CONNECTIONTYPE postgis NAME 'XXX' CONNECTION PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom from XXX" METADATA "wms_title" "WMS Demo Server" END STATUS ON DEBUG ON TYPE POLYGON PROCESSING "LABEL_NO_CLIP=True" LABELITEM 'district' CLASS NAME 'XXX' STYLE OUTLINECOLOR 255 133 51 WIDTH 1.5 END LABEL TYPE TRUETYPE SIZE 10 FONT "arial" COLOR 255 102 0 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 1 POSITION AUTO WRAP '+' ALIGN center BUFFER 2 PARTIALS FALSE END END END END ###### URL https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map&service=WMS&request=GetMap&layers=hse2022_vtd2020members&styles=&format=image%2Fpng&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A4326&bbox=-95.62500000000001,47.040182144806664,-92.81250000000001,48.922499263758255 ###### ERROR LOG [Thu May 4 07:59:45 2023].572656 msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. ###### query string > mapserv "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map" ###### ERROR LOG [Thu May 4 08:03:27 2023].920834 msCGILoadMap(): Web application error. CGI variable "map" fails to validate. Best, Chris C. -- Chris Cantey geo-odyssey.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu May 4 06:54:30 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 May 2023 10:54:30 -0300 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: References: Message-ID: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> Hi Chris, Can you try this in your config file: MS_MAP_PATTERN "^/home/web/gis/tmp/mapserver/" thanks, -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2023-05-04 10:30 a.m., Chris Cantey wrote: > Hello all, I need some help. > > We are building a new web server a rebuilding mapserver on it, migrating > from 6.4 to 8.0. But in testing, we keep getting the "msWMSDispatch(): > WMS server error. WMS request not enabled. Check wms/ows_enable_request > settings." error. > > But we have that configured in our map file under map>web>metadata. So > I'm not sure what is going on. Config file, map file, URL, error, query > string, and error below. > From cantey0701 at gmail.com Thu May 4 08:24:06 2023 From: cantey0701 at gmail.com (Chris Cantey) Date: Thu, 4 May 2023 10:24:06 -0500 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> Message-ID: Yes. Changed. I actually had that as the pattern until this morning On Thu, May 4, 2023 at 8:55?AM Jeff McKenna wrote: > Hi Chris, > > Can you try this in your config file: > > MS_MAP_PATTERN "^/home/web/gis/tmp/mapserver/" > > thanks, > > -jeff > > > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > co-founder of FOSS4G > http://gatewaygeo.com/ > > > > On 2023-05-04 10:30 a.m., Chris Cantey wrote: > > Hello all, I need some help. > > > > We are building a new web server a rebuilding mapserver on it, migrating > > from 6.4 to 8.0. But in testing, we keep getting the "msWMSDispatch(): > > WMS server error. WMS request not enabled. Check wms/ows_enable_request > > settings." error. > > > > But we have that configured in our map file under map>web>metadata. So > > I'm not sure what is going on. Config file, map file, URL, error, query > > string, and error below. > > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Chris Cantey geo-odyssey.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cantey0701 at gmail.com Thu May 4 09:32:20 2023 From: cantey0701 at gmail.com (Chris Cantey) Date: Thu, 4 May 2023 11:32:20 -0500 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> Message-ID: Did you mean to have the ^ in that string? MS_MAP_PATTERN "^/home/web/gis/tmp/mapserver/". It seemed to mess it up, so i reverted back to MS_MAP_PATTERN "/home/web/gis/tmp/mapserver/" Same errors On Thu, May 4, 2023 at 8:55?AM Jeff McKenna wrote: > Hi Chris, > > Can you try this in your config file: > > MS_MAP_PATTERN "^/home/web/gis/tmp/mapserver/" > > thanks, > > -jeff > > > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > co-founder of FOSS4G > http://gatewaygeo.com/ > > > > On 2023-05-04 10:30 a.m., Chris Cantey wrote: > > Hello all, I need some help. > > > > We are building a new web server a rebuilding mapserver on it, migrating > > from 6.4 to 8.0. But in testing, we keep getting the "msWMSDispatch(): > > WMS server error. WMS request not enabled. Check wms/ows_enable_request > > settings." error. > > > > But we have that configured in our map file under map>web>metadata. So > > I'm not sure what is going on. Config file, map file, URL, error, query > > string, and error below. > > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Chris Cantey geo-odyssey.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu May 4 09:38:07 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 May 2023 13:38:07 -0300 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> Message-ID: <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> Yes I meant that, it forces it to be the start of the string, for security. Can you also try changing WEB/METADATA param to "wms_enable_request" "*" (I may be missing something else obvious) -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2023-05-04 1:32 p.m., Chris Cantey wrote: > Did you mean to have the ^ in that string?? ?MS_MAP_PATTERN > "^/home/web/gis/tmp/mapserver/". > > It seemed to mess it up, so i reverted back to MS_MAP_PATTERN > "/home/web/gis/tmp/mapserver/" > > Same errors > > On Thu, May 4, 2023 at 8:55?AM Jeff McKenna > > > wrote: > > Hi Chris, > > Can you try this in your config file: > > ? ? MS_MAP_PATTERN "^/home/web/gis/tmp/mapserver/" > > thanks, > > -jeff > > > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > co-founder of FOSS4G > http://gatewaygeo.com/ > > > > On 2023-05-04 10:30 a.m., Chris Cantey wrote: > > Hello all, I need some help. > > > > We are building a new web server a rebuilding mapserver on it, > migrating > > from 6.4 to 8.0. But in testing, we keep getting the > "msWMSDispatch(): > > WMS server error. WMS request not enabled. Check > wms/ows_enable_request > > settings." error. > > > > But we have that configured in our map file under > map>web>metadata. So > > I'm not sure what is going on. Config file, map file, URL, error, > query > > string, and error below. > > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Chris Cantey > geo-odyssey.com From jmckenna at gatewaygeomatics.com Thu May 4 09:48:08 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 May 2023 13:48:08 -0300 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> Message-ID: <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> More points for your consideration: - make sure all layers have a PROJECTION object - remove any old references to the (non-standard/non-existing) EPSG:900913, replace with EPSG:3857 (see https://epsg.io/3857 ) - remove all warnings from your GetCapabilities response, every single warning, there should be no warnings in the response, before you move to testing GetMap requests - if you have PostGIS/db connections, consider setting EXTENT at the layer-level, to improve speed for your clients (review optimizations at https://mapserver.org/optimization/vector.html ) - during GetMap testing, comment any TEMPLATE params in mapfile -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2023-05-04 1:38 p.m., Jeff McKenna wrote: > Yes I meant that, it forces it to be the start of the string, for security. > > Can you also try changing WEB/METADATA param to? "wms_enable_request" "*" > > (I may be missing something else obvious) > > -jeff > > > > From jmckenna at gatewaygeomatics.com Thu May 4 09:57:19 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 May 2023 13:57:19 -0300 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> Message-ID: Also note, that the regular expression "^" trick applies to the MS_MAP_PATTERN in the config file (not the MS_ERRORFILE path in the mapfile). Thanks for using MapServer Chris, -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2023-05-04 1:48 p.m., Jeff McKenna wrote: > More points for your consideration: > > - make sure all layers have a PROJECTION object > - remove any old references to the (non-standard/non-existing) > EPSG:900913, replace with EPSG:3857? (see https://epsg.io/3857 ) > - remove all warnings from your GetCapabilities response, every single > warning, there should be no warnings in the response, before you move to > testing GetMap requests > - if you have PostGIS/db connections, consider setting EXTENT at the > layer-level, to improve speed for your clients (review optimizations at > https://mapserver.org/optimization/vector.html ) > - during GetMap testing, comment any TEMPLATE params in mapfile > > > -jeff > > > > From cantey0701 at gmail.com Thu May 4 10:00:05 2023 From: cantey0701 at gmail.com (Chris Cantey) Date: Thu, 4 May 2023 12:00:05 -0500 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> Message-ID: Thanks, Jeff.. I found that out, thanks. I will work down from your points. Besc, On Thu, May 4, 2023 at 11:57?AM Jeff McKenna wrote: > Also note, that the regular expression "^" trick applies to the > MS_MAP_PATTERN in the config file (not the MS_ERRORFILE path in the > mapfile). > > > Thanks for using MapServer Chris, > > -jeff > > > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > co-founder of FOSS4G > http://gatewaygeo.com/ > > > On 2023-05-04 1:48 p.m., Jeff McKenna wrote: > > More points for your consideration: > > > > - make sure all layers have a PROJECTION object > > - remove any old references to the (non-standard/non-existing) > > EPSG:900913, replace with EPSG:3857 (see https://epsg.io/3857 ) > > - remove all warnings from your GetCapabilities response, every single > > warning, there should be no warnings in the response, before you move to > > testing GetMap requests > > - if you have PostGIS/db connections, consider setting EXTENT at the > > layer-level, to improve speed for your clients (review optimizations at > > https://mapserver.org/optimization/vector.html ) > > - during GetMap testing, comment any TEMPLATE params in mapfile > > > > > > -jeff > > > > > > > > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Chris Cantey geo-odyssey.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu May 4 10:13:11 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 May 2023 14:13:11 -0300 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> Message-ID: Thanks. I think you solved any validation issues ( this request would not validate, for example : https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map ) so it's something else, very minor likely (I've got that t-shirt too, ha) -jeff On 2023-05-04 2:00 p.m., Chris Cantey wrote: > Thanks, Jeff.. I found that out, thanks. > > I will work down from your points. > > Besc, > > On Thu, May 4, 2023 at 11:57?AM Jeff McKenna > > > wrote: > > Also note, that the regular expression "^" trick applies to the > MS_MAP_PATTERN in the config file (not the MS_ERRORFILE path in the > mapfile). > > > Thanks for using MapServer Chris, > > -jeff > > > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > co-founder of FOSS4G > http://gatewaygeo.com/ > > > On 2023-05-04 1:48 p.m., Jeff McKenna wrote: > > More points for your consideration: > > > > - make sure all layers have a PROJECTION object > > - remove any old references to the (non-standard/non-existing) > > EPSG:900913, replace with EPSG:3857? (see https://epsg.io/3857 > ) > > - remove all warnings from your GetCapabilities response, every > single > > warning, there should be no warnings in the response, before you > move to > > testing GetMap requests > > - if you have PostGIS/db connections, consider setting EXTENT at the > > layer-level, to improve speed for your clients (review > optimizations at > > https://mapserver.org/optimization/vector.html > ) > > - during GetMap testing, comment any TEMPLATE params in mapfile > > > > > > -jeff > > > > > > > > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Chris Cantey > geo-odyssey.com -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ From jmckenna at gatewaygeomatics.com Thu May 4 10:29:39 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 May 2023 14:29:39 -0300 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> Message-ID: <5c03b4a6-6415-d638-2e5d-f9d3baf28155@gatewaygeomatics.com> Also, your onlineresource is missing quotes, such as: "wms_onlineresource" "https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map" -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2023-05-04 2:13 p.m., Jeff McKenna wrote: > Thanks.? I think you solved any validation issues ( this request would > not validate, for example : > https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map )?? so it's something else, very minor likely (I've got that t-shirt too, ha) > > -jeff > > > > On 2023-05-04 2:00 p.m., Chris Cantey wrote: >> Thanks, Jeff.. I found that out, thanks. >> >> I will work down from your points. >> >> Besc, >> >> On Thu, May 4, 2023 at 11:57?AM Jeff McKenna >> > >> wrote: >> >> ??? Also note, that the regular expression "^" trick applies to the >> ??? MS_MAP_PATTERN in the config file (not the MS_ERRORFILE path in the >> ??? mapfile). >> >> >> ??? Thanks for using MapServer Chris, >> >> ??? -jeff >> >> >> >> ??? -- ??? Jeff McKenna >> ??? GatewayGeo: Developers of MS4W, MapServer Consulting and Training >> ??? co-founder of FOSS4G >> ??? http://gatewaygeo.com/ >> >> >> ??? On 2023-05-04 1:48 p.m., Jeff McKenna wrote: >> ???? > More points for your consideration: >> ???? > >> ???? > - make sure all layers have a PROJECTION object >> ???? > - remove any old references to the (non-standard/non-existing) >> ???? > EPSG:900913, replace with EPSG:3857? (see https://epsg.io/3857 >> ??? ) >> ???? > - remove all warnings from your GetCapabilities response, every >> ??? single >> ???? > warning, there should be no warnings in the response, before you >> ??? move to >> ???? > testing GetMap requests >> ???? > - if you have PostGIS/db connections, consider setting EXTENT >> at the >> ???? > layer-level, to improve speed for your clients (review >> ??? optimizations at >> ???? > https://mapserver.org/optimization/vector.html >> ??? ) >> ???? > - during GetMap testing, comment any TEMPLATE params in mapfile >> ???? > >> ???? > >> ???? > -jeff >> ???? > >> ???? > >> ???? > >> ???? > >> >> ??? _______________________________________________ >> ??? MapServer-users mailing list >> ??? MapServer-users at lists.osgeo.org >> >> ??? https://lists.osgeo.org/mailman/listinfo/mapserver-users >> ??? >> >> >> >> -- >> Chris Cantey >> geo-odyssey.com > From cantey0701 at gmail.com Thu May 4 10:32:49 2023 From: cantey0701 at gmail.com (Chris Cantey) Date: Thu, 4 May 2023 12:32:49 -0500 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: <5c03b4a6-6415-d638-2e5d-f9d3baf28155@gatewaygeomatics.com> References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> <5c03b4a6-6415-d638-2e5d-f9d3baf28155@gatewaygeomatics.com> Message-ID: I need that t-shirt! The quotes are in the mapfile, I think gmail just hyperlinked the string. I am kind of testing 2 ways: Using the browser(a few methods there), using linux: mapserv "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map" When I do that, I still get a validation error: [Thu May 4 12:18:06 2023].428388 loadParams() QUERY_STRING: map=/home/map=home/gis/tmp/mapserver/mapserver.map [Thu May 4 12:18:06 2023].428506 msCGILoadMap(): Web application error. CGI variable "map" fails to validate. I'm wondering on the front end if there's a projection issue, I see green network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/ On Thu, May 4, 2023 at 12:29?PM Jeff McKenna wrote: > Also, your onlineresource is missing quotes, such as: > > "wms_onlineresource" > " > https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map > " > > > > > -jeff > > > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > co-founder of FOSS4G > http://gatewaygeo.com/ > > > > On 2023-05-04 2:13 p.m., Jeff McKenna wrote: > > Thanks. I think you solved any validation issues ( this request would > > not validate, for example : > > > https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map > ) so it's something else, very minor likely (I've got that t-shirt too, > ha) > > > > -jeff > > > > > > > > On 2023-05-04 2:00 p.m., Chris Cantey wrote: > >> Thanks, Jeff.. I found that out, thanks. > >> > >> I will work down from your points. > >> > >> Besc, > >> > >> On Thu, May 4, 2023 at 11:57?AM Jeff McKenna > >> > > >> wrote: > >> > >> Also note, that the regular expression "^" trick applies to the > >> MS_MAP_PATTERN in the config file (not the MS_ERRORFILE path in the > >> mapfile). > >> > >> > >> Thanks for using MapServer Chris, > >> > >> -jeff > >> > >> > >> > >> -- Jeff McKenna > >> GatewayGeo: Developers of MS4W, MapServer Consulting and Training > >> co-founder of FOSS4G > >> http://gatewaygeo.com/ > >> > >> > >> On 2023-05-04 1:48 p.m., Jeff McKenna wrote: > >> > More points for your consideration: > >> > > >> > - make sure all layers have a PROJECTION object > >> > - remove any old references to the (non-standard/non-existing) > >> > EPSG:900913, replace with EPSG:3857 (see https://epsg.io/3857 > >> ) > >> > - remove all warnings from your GetCapabilities response, every > >> single > >> > warning, there should be no warnings in the response, before you > >> move to > >> > testing GetMap requests > >> > - if you have PostGIS/db connections, consider setting EXTENT > >> at the > >> > layer-level, to improve speed for your clients (review > >> optimizations at > >> > https://mapserver.org/optimization/vector.html > >> ) > >> > - during GetMap testing, comment any TEMPLATE params in mapfile > >> > > >> > > >> > -jeff > >> > > >> > > >> > > >> > > >> > >> _______________________________________________ > >> MapServer-users mailing list > >> MapServer-users at lists.osgeo.org > >> > >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > >> > >> > >> -- > >> Chris Cantey > >> geo-odyssey.com > > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Chris Cantey geo-odyssey.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cantey0701 at gmail.com Thu May 4 10:45:56 2023 From: cantey0701 at gmail.com (Chris Cantey) Date: Thu, 4 May 2023 12:45:56 -0500 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> <5c03b4a6-6415-d638-2e5d-f9d3baf28155@gatewaygeomatics.com> Message-ID: We were also a little concerned about web>template. We didn't see anywhere what exactly we were supposed to put in the TEMPLATE document. its basically the same html document as https://dev.gis.lcc.mn.gov/tmp/mapserver/ but with on top. CC On Thu, May 4, 2023 at 12:32?PM Chris Cantey wrote: > I need that t-shirt! The quotes are in the mapfile, I think gmail just > hyperlinked the string. > > I am kind of testing 2 ways: Using the browser(a few methods there), using > linux: mapserv > "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map" > > When I do that, I still get a validation error: > > [Thu May 4 12:18:06 2023].428388 loadParams() QUERY_STRING: > map=/home/map=home/gis/tmp/mapserver/mapserver.map > [Thu May 4 12:18:06 2023].428506 msCGILoadMap(): Web application error. > CGI variable "map" fails to validate. > > I'm wondering on the front end if there's a projection issue, I see green > network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/ > > On Thu, May 4, 2023 at 12:29?PM Jeff McKenna < > jmckenna at gatewaygeomatics.com> wrote: > >> Also, your onlineresource is missing quotes, such as: >> >> "wms_onlineresource" >> " >> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map >> " >> >> >> >> >> -jeff >> >> >> >> -- >> Jeff McKenna >> GatewayGeo: Developers of MS4W, MapServer Consulting and Training >> co-founder of FOSS4G >> http://gatewaygeo.com/ >> >> >> >> On 2023-05-04 2:13 p.m., Jeff McKenna wrote: >> > Thanks. I think you solved any validation issues ( this request would >> > not validate, for example : >> > >> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map >> ) so it's something else, very minor likely (I've got that t-shirt too, >> ha) >> > >> > -jeff >> > >> > >> > >> > On 2023-05-04 2:00 p.m., Chris Cantey wrote: >> >> Thanks, Jeff.. I found that out, thanks. >> >> >> >> I will work down from your points. >> >> >> >> Besc, >> >> >> >> On Thu, May 4, 2023 at 11:57?AM Jeff McKenna >> >> > >> >> >> wrote: >> >> >> >> Also note, that the regular expression "^" trick applies to the >> >> MS_MAP_PATTERN in the config file (not the MS_ERRORFILE path in the >> >> mapfile). >> >> >> >> >> >> Thanks for using MapServer Chris, >> >> >> >> -jeff >> >> >> >> >> >> >> >> -- Jeff McKenna >> >> GatewayGeo: Developers of MS4W, MapServer Consulting and Training >> >> co-founder of FOSS4G >> >> http://gatewaygeo.com/ >> >> >> >> >> >> On 2023-05-04 1:48 p.m., Jeff McKenna wrote: >> >> > More points for your consideration: >> >> > >> >> > - make sure all layers have a PROJECTION object >> >> > - remove any old references to the (non-standard/non-existing) >> >> > EPSG:900913, replace with EPSG:3857 (see https://epsg.io/3857 >> >> ) >> >> > - remove all warnings from your GetCapabilities response, every >> >> single >> >> > warning, there should be no warnings in the response, before you >> >> move to >> >> > testing GetMap requests >> >> > - if you have PostGIS/db connections, consider setting EXTENT >> >> at the >> >> > layer-level, to improve speed for your clients (review >> >> optimizations at >> >> > https://mapserver.org/optimization/vector.html >> >> ) >> >> > - during GetMap testing, comment any TEMPLATE params in mapfile >> >> > >> >> > >> >> > -jeff >> >> > >> >> > >> >> > >> >> > >> >> >> >> _______________________________________________ >> >> MapServer-users mailing list >> >> MapServer-users at lists.osgeo.org >> >> >> >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> >> >> >> >> -- >> >> Chris Cantey >> >> geo-odyssey.com >> > >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -- > Chris Cantey > geo-odyssey.com > -- Chris Cantey geo-odyssey.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu May 4 10:51:10 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 May 2023 14:51:10 -0300 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> <5c03b4a6-6415-d638-2e5d-f9d3baf28155@gatewaygeomatics.com> Message-ID: <95ada8d3-34a5-1e95-f60b-b4fbb1822903@gatewaygeomatics.com> Chris can you paste your latest mapfile at https://pastebin.com/ and paste the link here for everyone? (and for any future mailing list messages, please use that method, for sharing your mapfile and config files) thanks, -jeff On 2023-05-04 2:45 p.m., Chris Cantey wrote: > We were also a little concerned about web>template. We didn't see > anywhere what exactly we were supposed to put in the TEMPLATE document. > its basically?the same html document as > https://dev.gis.lcc.mn.gov/tmp/mapserver/ > but with? on top. > > CC > > On Thu, May 4, 2023 at 12:32?PM Chris Cantey > wrote: > > I need that t-shirt! The quotes are in the mapfile, I think gmail > just hyperlinked the string. > > I am kind of testing 2 ways: Using the browser(a few methods there), > using linux: mapserv > "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map" > > When I do that, I still get a validation error: > > [Thu May ?4 12:18:06 2023].428388 loadParams() QUERY_STRING: > map=/home/map=home/gis/tmp/mapserver/mapserver.map > [Thu May ?4 12:18:06 2023].428506 msCGILoadMap(): Web application > error. CGI variable "map" fails to validate. > > I'm wondering on the front end if there's a projection issue, I see > green network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/ > > > On Thu, May 4, 2023 at 12:29?PM Jeff McKenna > > wrote: > > Also, your onlineresource is missing quotes, such as: > > "wms_onlineresource" > "https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map " > > > > > -jeff > > > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > co-founder of FOSS4G > http://gatewaygeo.com/ > > > > On 2023-05-04 2:13 p.m., Jeff McKenna wrote: > > Thanks.? I think you solved any validation issues ( this > request would > > not validate, for example : > > > https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map )?? so it's something else, very minor likely (I've got that t-shirt too, ha) > > > > -jeff > > > > > > > > On 2023-05-04 2:00 p.m., Chris Cantey wrote: > >> Thanks, Jeff.. I found that out, thanks. > >> > >> I will work down from your points. > >> > >> Besc, > >> > >> On Thu, May 4, 2023 at 11:57?AM Jeff McKenna > >> > >> > >> wrote: > >> > >> ??? Also note, that the regular expression "^" trick applies > to the > >> ??? MS_MAP_PATTERN in the config file (not the MS_ERRORFILE > path in the > >> ??? mapfile). > >> > >> > >> ??? Thanks for using MapServer Chris, > >> > >> ??? -jeff > >> > >> > >> > >> ??? -- ??? Jeff McKenna > >> ??? GatewayGeo: Developers of MS4W, MapServer Consulting and > Training > >> ??? co-founder of FOSS4G > >> http://gatewaygeo.com/ > > > >> > >> > >> ??? On 2023-05-04 1:48 p.m., Jeff McKenna wrote: > >> ???? > More points for your consideration: > >> ???? > > >> ???? > - make sure all layers have a PROJECTION object > >> ???? > - remove any old references to the > (non-standard/non-existing) > >> ???? > EPSG:900913, replace with EPSG:3857? (see > https://epsg.io/3857 > >> ??? > ) > >> ???? > - remove all warnings from your GetCapabilities > response, every > >> ??? single > >> ???? > warning, there should be no warnings in the response, > before you > >> ??? move to > >> ???? > testing GetMap requests > >> ???? > - if you have PostGIS/db connections, consider > setting EXTENT > >> at the > >> ???? > layer-level, to improve speed for your clients (review > >> ??? optimizations at > >> ???? > https://mapserver.org/optimization/vector.html > > >> ??? > ) > >> ???? > - during GetMap testing, comment any TEMPLATE params > in mapfile > >> ???? > > >> ???? > > >> ???? > -jeff > >> ???? > > >> ???? > > >> ???? > > >> ???? > > >> > >> ??? _______________________________________________ > >> ??? MapServer-users mailing list > >> MapServer-users at lists.osgeo.org > > >> > > >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > >> > > > >> > >> > >> > >> -- > >> Chris Cantey > >> geo-odyssey.com > > > > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Chris Cantey > geo-odyssey.com > > > > -- > Chris Cantey > geo-odyssey.com -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ From cantey0701 at gmail.com Thu May 4 10:58:35 2023 From: cantey0701 at gmail.com (Chris Cantey) Date: Thu, 4 May 2023 12:58:35 -0500 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: <95ada8d3-34a5-1e95-f60b-b4fbb1822903@gatewaygeomatics.com> References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> <5c03b4a6-6415-d638-2e5d-f9d3baf28155@gatewaygeomatics.com> <95ada8d3-34a5-1e95-f60b-b4fbb1822903@gatewaygeomatics.com> Message-ID: No problem: https://pastebin.com/Ssk0cp1b On Thu, May 4, 2023 at 12:51?PM Jeff McKenna wrote: > Chris can you paste your latest mapfile at https://pastebin.com/ and > paste the link here for everyone? (and for any future mailing list > messages, please use that method, for sharing your mapfile and config > files) > > thanks, > > -jeff > > > > On 2023-05-04 2:45 p.m., Chris Cantey wrote: > > We were also a little concerned about web>template. We didn't see > > anywhere what exactly we were supposed to put in the TEMPLATE document. > > its basically the same html document as > > https://dev.gis.lcc.mn.gov/tmp/mapserver/ > > but with on top. > > > > CC > > > > On Thu, May 4, 2023 at 12:32?PM Chris Cantey > > wrote: > > > > I need that t-shirt! The quotes are in the mapfile, I think gmail > > just hyperlinked the string. > > > > I am kind of testing 2 ways: Using the browser(a few methods there), > > using linux: mapserv > > "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map" > > > > When I do that, I still get a validation error: > > > > [Thu May 4 12:18:06 2023].428388 loadParams() QUERY_STRING: > > map=/home/map=home/gis/tmp/mapserver/mapserver.map > > [Thu May 4 12:18:06 2023].428506 msCGILoadMap(): Web application > > error. CGI variable "map" fails to validate. > > > > I'm wondering on the front end if there's a projection issue, I see > > green network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/ > > > > > > On Thu, May 4, 2023 at 12:29?PM Jeff McKenna > > > > wrote: > > > > Also, your onlineresource is missing quotes, such as: > > > > "wms_onlineresource" > > " > https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map > < > https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map > >" > > > > > > > > > > -jeff > > > > > > > > -- > > Jeff McKenna > > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > > co-founder of FOSS4G > > http://gatewaygeo.com/ > > > > > > > > On 2023-05-04 2:13 p.m., Jeff McKenna wrote: > > > Thanks. I think you solved any validation issues ( this > > request would > > > not validate, for example : > > > > > > https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map > < > https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map> > ) so it's something else, very minor likely (I've got that t-shirt too, > ha) > > > > > > -jeff > > > > > > > > > > > > On 2023-05-04 2:00 p.m., Chris Cantey wrote: > > >> Thanks, Jeff.. I found that out, thanks. > > >> > > >> I will work down from your points. > > >> > > >> Besc, > > >> > > >> On Thu, May 4, 2023 at 11:57?AM Jeff McKenna > > >> > > > > >> > > >> wrote: > > >> > > >> Also note, that the regular expression "^" trick applies > > to the > > >> MS_MAP_PATTERN in the config file (not the MS_ERRORFILE > > path in the > > >> mapfile). > > >> > > >> > > >> Thanks for using MapServer Chris, > > >> > > >> -jeff > > >> > > >> > > >> > > >> -- Jeff McKenna > > >> GatewayGeo: Developers of MS4W, MapServer Consulting and > > Training > > >> co-founder of FOSS4G > > >> http://gatewaygeo.com/ > > > > > >> > > >> > > >> On 2023-05-04 1:48 p.m., Jeff McKenna wrote: > > >> > More points for your consideration: > > >> > > > >> > - make sure all layers have a PROJECTION object > > >> > - remove any old references to the > > (non-standard/non-existing) > > >> > EPSG:900913, replace with EPSG:3857 (see > > https://epsg.io/3857 > > >> > ) > > >> > - remove all warnings from your GetCapabilities > > response, every > > >> single > > >> > warning, there should be no warnings in the response, > > before you > > >> move to > > >> > testing GetMap requests > > >> > - if you have PostGIS/db connections, consider > > setting EXTENT > > >> at the > > >> > layer-level, to improve speed for your clients (review > > >> optimizations at > > >> > https://mapserver.org/optimization/vector.html > > > > >> > > ) > > >> > - during GetMap testing, comment any TEMPLATE params > > in mapfile > > >> > > > >> > > > >> > -jeff > > >> > > > >> > > > >> > > > >> > > > >> > > >> _______________________________________________ > > >> MapServer-users mailing list > > >> MapServer-users at lists.osgeo.org > > > > >> > > > > >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > >> > > > > > > >> > > >> > > >> > > >> -- > > >> Chris Cantey > > >> geo-odyssey.com > > > > > > > > > > _______________________________________________ > > MapServer-users mailing list > > MapServer-users at lists.osgeo.org > > > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > -- > > Chris Cantey > > geo-odyssey.com > > > > > > > > -- > > Chris Cantey > > geo-odyssey.com > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > co-founder of FOSS4G > http://gatewaygeo.com/ > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Chris Cantey geo-odyssey.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu May 4 10:58:54 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 May 2023 14:58:54 -0300 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: <95ada8d3-34a5-1e95-f60b-b4fbb1822903@gatewaygeomatics.com> References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> <5c03b4a6-6415-d638-2e5d-f9d3baf28155@gatewaygeomatics.com> <95ada8d3-34a5-1e95-f60b-b4fbb1822903@gatewaygeomatics.com> Message-ID: <410e48e1-0353-7dce-e2d2-a4d09322ce2d@gatewaygeomatics.com> Also, make sure you can generate a valid map image with a map2img commandline call. -jeff On 2023-05-04 2:51 p.m., Jeff McKenna wrote: > Chris can you paste your latest mapfile at https://pastebin.com/ and > paste the link here for everyone?? (and for any future mailing list > messages, please use that method, for sharing your mapfile and config > files) > > thanks, > > -jeff > > > > On 2023-05-04 2:45 p.m., Chris Cantey wrote: >> We were also a little concerned about web>template. We didn't see >> anywhere what exactly we were supposed to put in the TEMPLATE >> document. its basically?the same html document as >> https://dev.gis.lcc.mn.gov/tmp/mapserver/ >> but with? on top. >> >> CC >> >> On Thu, May 4, 2023 at 12:32?PM Chris Cantey > > wrote: >> >> ??? I need that t-shirt! The quotes are in the mapfile, I think gmail >> ??? just hyperlinked the string. >> >> ??? I am kind of testing 2 ways: Using the browser(a few methods there), >> ??? using linux: mapserv >> ??? "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map" >> >> ??? When I do that, I still get a validation error: >> >> ??? [Thu May ?4 12:18:06 2023].428388 loadParams() QUERY_STRING: >> ??? map=/home/map=home/gis/tmp/mapserver/mapserver.map >> ??? [Thu May ?4 12:18:06 2023].428506 msCGILoadMap(): Web application >> ??? error. CGI variable "map" fails to validate. >> >> ??? I'm wondering on the front end if there's a projection issue, I see >> ??? green network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/ >> ??? >> >> ??? On Thu, May 4, 2023 at 12:29?PM Jeff McKenna >> ??? > ??? > wrote: >> >> ??????? Also, your onlineresource is missing quotes, such as: >> >> ??????? "wms_onlineresource" >> >> "https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map " >> >> >> >> >> ??????? -jeff >> >> >> >> ??????? -- ??????? Jeff McKenna >> ??????? GatewayGeo: Developers of MS4W, MapServer Consulting and Training >> ??????? co-founder of FOSS4G >> ??????? http://gatewaygeo.com/ >> >> >> >> ??????? On 2023-05-04 2:13 p.m., Jeff McKenna wrote: >> ???????? > Thanks.? I think you solved any validation issues ( this >> ??????? request would >> ???????? > not validate, for example : >> ???????? > >> >> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map )?? so it's something else, very minor likely (I've got that t-shirt too, ha) >> ???????? > >> ???????? > -jeff >> ???????? > >> ???????? > >> ???????? > >> ???????? > On 2023-05-04 2:00 p.m., Chris Cantey wrote: >> ???????? >> Thanks, Jeff.. I found that out, thanks. >> ???????? >> >> ???????? >> I will work down from your points. >> ???????? >> >> ???????? >> Besc, >> ???????? >> >> ???????? >> On Thu, May 4, 2023 at 11:57?AM Jeff McKenna >> ???????? >> > ??????? >> ??????? > ??????? >> >> ???????? >> wrote: >> ???????? >> >> ???????? >> ??? Also note, that the regular expression "^" trick applies >> ??????? to the >> ???????? >> ??? MS_MAP_PATTERN in the config file (not the MS_ERRORFILE >> ??????? path in the >> ???????? >> ??? mapfile). >> ???????? >> >> ???????? >> >> ???????? >> ??? Thanks for using MapServer Chris, >> ???????? >> >> ???????? >> ??? -jeff >> ???????? >> >> ???????? >> >> ???????? >> >> ???????? >> ??? -- ??? Jeff McKenna >> ???????? >> ??? GatewayGeo: Developers of MS4W, MapServer Consulting and >> ??????? Training >> ???????? >> ??? co-founder of FOSS4G >> ???????? >> http://gatewaygeo.com/ >> ??????? > >> ???????? >> >> ???????? >> >> ???????? >> ??? On 2023-05-04 1:48 p.m., Jeff McKenna wrote: >> ???????? >> ???? > More points for your consideration: >> ???????? >> ???? > >> ???????? >> ???? > - make sure all layers have a PROJECTION object >> ???????? >> ???? > - remove any old references to the >> ??????? (non-standard/non-existing) >> ???????? >> ???? > EPSG:900913, replace with EPSG:3857? (see >> ??????? https://epsg.io/3857 >> ???????? >> ??? > ) >> ???????? >> ???? > - remove all warnings from your GetCapabilities >> ??????? response, every >> ???????? >> ??? single >> ???????? >> ???? > warning, there should be no warnings in the response, >> ??????? before you >> ???????? >> ??? move to >> ???????? >> ???? > testing GetMap requests >> ???????? >> ???? > - if you have PostGIS/db connections, consider >> ??????? setting EXTENT >> ???????? >> at the >> ???????? >> ???? > layer-level, to improve speed for your clients (review >> ???????? >> ??? optimizations at >> ???????? >> ???? > https://mapserver.org/optimization/vector.html >> ??????? >> ???????? >> ??? > ??????? > ) >> ???????? >> ???? > - during GetMap testing, comment any TEMPLATE params >> ??????? in mapfile >> ???????? >> ???? > >> ???????? >> ???? > >> ???????? >> ???? > -jeff >> ???????? >> ???? > >> ???????? >> ???? > >> ???????? >> ???? > >> ???????? >> ???? > >> ???????? >> >> ???????? >> ??? _______________________________________________ >> ???????? >> ??? MapServer-users mailing list >> ???????? >> MapServer-users at lists.osgeo.org >> ??????? >> ???????? >> > ??????? > >> ???????? >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> ??????? >> ???????? >> >> > ??????? > >> ???????? >> >> ???????? >> >> ???????? >> >> ???????? >> -- >> ???????? >> Chris Cantey >> ???????? >> geo-odyssey.com >> ??????? > >> ???????? > >> >> ??????? _______________________________________________ >> ??????? MapServer-users mailing list >> ??????? MapServer-users at lists.osgeo.org >> ??????? >> ??????? https://lists.osgeo.org/mailman/listinfo/mapserver-users >> ??????? >> >> >> >> ??? -- ??? Chris Cantey >> ??? geo-odyssey.com >> >> >> >> -- >> Chris Cantey >> geo-odyssey.com > -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ From cantey0701 at gmail.com Thu May 4 11:00:25 2023 From: cantey0701 at gmail.com (Chris Cantey) Date: Thu, 4 May 2023 13:00:25 -0500 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: <410e48e1-0353-7dce-e2d2-a4d09322ce2d@gatewaygeomatics.com> References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> <5c03b4a6-6415-d638-2e5d-f9d3baf28155@gatewaygeomatics.com> <95ada8d3-34a5-1e95-f60b-b4fbb1822903@gatewaygeomatics.com> <410e48e1-0353-7dce-e2d2-a4d09322ce2d@gatewaygeomatics.com> Message-ID: I also changed the wms_srs to "wms_srs" "EPSG:4326 EPSG:3857" So ignore that part of pastebin On Thu, May 4, 2023 at 12:59?PM Jeff McKenna wrote: > Also, make sure you can generate a valid map image with a map2img > commandline call. > > -jeff > > > > On 2023-05-04 2:51 p.m., Jeff McKenna wrote: > > Chris can you paste your latest mapfile at https://pastebin.com/ and > > paste the link here for everyone? (and for any future mailing list > > messages, please use that method, for sharing your mapfile and config > > files) > > > > thanks, > > > > -jeff > > > > > > > > On 2023-05-04 2:45 p.m., Chris Cantey wrote: > >> We were also a little concerned about web>template. We didn't see > >> anywhere what exactly we were supposed to put in the TEMPLATE > >> document. its basically the same html document as > >> https://dev.gis.lcc.mn.gov/tmp/mapserver/ > >> but with on top. > >> > >> CC > >> > >> On Thu, May 4, 2023 at 12:32?PM Chris Cantey >> > wrote: > >> > >> I need that t-shirt! The quotes are in the mapfile, I think gmail > >> just hyperlinked the string. > >> > >> I am kind of testing 2 ways: Using the browser(a few methods there), > >> using linux: mapserv > >> "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map" > >> > >> When I do that, I still get a validation error: > >> > >> [Thu May 4 12:18:06 2023].428388 loadParams() QUERY_STRING: > >> map=/home/map=home/gis/tmp/mapserver/mapserver.map > >> [Thu May 4 12:18:06 2023].428506 msCGILoadMap(): Web application > >> error. CGI variable "map" fails to validate. > >> > >> I'm wondering on the front end if there's a projection issue, I see > >> green network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/ > >> > >> > >> On Thu, May 4, 2023 at 12:29?PM Jeff McKenna > >> >> > wrote: > >> > >> Also, your onlineresource is missing quotes, such as: > >> > >> "wms_onlineresource" > >> > >> " > https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map > < > https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map > >" > >> > >> > >> > >> > >> -jeff > >> > >> > >> > >> -- Jeff McKenna > >> GatewayGeo: Developers of MS4W, MapServer Consulting and > Training > >> co-founder of FOSS4G > >> http://gatewaygeo.com/ > >> > >> > >> > >> On 2023-05-04 2:13 p.m., Jeff McKenna wrote: > >> > Thanks. I think you solved any validation issues ( this > >> request would > >> > not validate, for example : > >> > > >> > >> > https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map > < > https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map> > ) so it's something else, very minor likely (I've got that t-shirt too, > ha) > >> > > >> > -jeff > >> > > >> > > >> > > >> > On 2023-05-04 2:00 p.m., Chris Cantey wrote: > >> >> Thanks, Jeff.. I found that out, thanks. > >> >> > >> >> I will work down from your points. > >> >> > >> >> Besc, > >> >> > >> >> On Thu, May 4, 2023 at 11:57?AM Jeff McKenna > >> >> >> > >> >> >> > >> >> wrote: > >> >> > >> >> Also note, that the regular expression "^" trick applies > >> to the > >> >> MS_MAP_PATTERN in the config file (not the MS_ERRORFILE > >> path in the > >> >> mapfile). > >> >> > >> >> > >> >> Thanks for using MapServer Chris, > >> >> > >> >> -jeff > >> >> > >> >> > >> >> > >> >> -- Jeff McKenna > >> >> GatewayGeo: Developers of MS4W, MapServer Consulting and > >> Training > >> >> co-founder of FOSS4G > >> >> http://gatewaygeo.com/ > >> > > >> >> > >> >> > >> >> On 2023-05-04 1:48 p.m., Jeff McKenna wrote: > >> >> > More points for your consideration: > >> >> > > >> >> > - make sure all layers have a PROJECTION object > >> >> > - remove any old references to the > >> (non-standard/non-existing) > >> >> > EPSG:900913, replace with EPSG:3857 (see > >> https://epsg.io/3857 > >> >> > ) > >> >> > - remove all warnings from your GetCapabilities > >> response, every > >> >> single > >> >> > warning, there should be no warnings in the response, > >> before you > >> >> move to > >> >> > testing GetMap requests > >> >> > - if you have PostGIS/db connections, consider > >> setting EXTENT > >> >> at the > >> >> > layer-level, to improve speed for your clients > (review > >> >> optimizations at > >> >> > https://mapserver.org/optimization/vector.html > >> > >> >> >> > ) > >> >> > - during GetMap testing, comment any TEMPLATE params > >> in mapfile > >> >> > > >> >> > > >> >> > -jeff > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > >> >> _______________________________________________ > >> >> MapServer-users mailing list > >> >> MapServer-users at lists.osgeo.org > >> > >> >> >> > > >> >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> >> > >> >> > > >> >> > >> >> > >> >> > >> >> -- > >> >> Chris Cantey > >> >> geo-odyssey.com > >> > > >> > > >> > >> _______________________________________________ > >> MapServer-users mailing list > >> MapServer-users at lists.osgeo.org > >> > >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > >> > >> > >> -- Chris Cantey > >> geo-odyssey.com > >> > >> > >> > >> -- > >> Chris Cantey > >> geo-odyssey.com > > > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > co-founder of FOSS4G > http://gatewaygeo.com/ > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Chris Cantey geo-odyssey.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cantey0701 at gmail.com Thu May 4 11:03:40 2023 From: cantey0701 at gmail.com (Chris Cantey) Date: Thu, 4 May 2023 13:03:40 -0500 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> <5c03b4a6-6415-d638-2e5d-f9d3baf28155@gatewaygeomatics.com> <95ada8d3-34a5-1e95-f60b-b4fbb1822903@gatewaygeomatics.com> <410e48e1-0353-7dce-e2d2-a4d09322ce2d@gatewaygeomatics.com> Message-ID: I forgot about map2img! map2img -m mapserver.map -o test.png -map_debug 3 returns: msDrawMap(): Image handling error. Unable to initialize image.
msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000.
On Thu, May 4, 2023 at 1:00?PM Chris Cantey wrote: > I also changed the wms_srs to "wms_srs" "EPSG:4326 EPSG:3857" > > So ignore that part of pastebin > > On Thu, May 4, 2023 at 12:59?PM Jeff McKenna < > jmckenna at gatewaygeomatics.com> wrote: > >> Also, make sure you can generate a valid map image with a map2img >> commandline call. >> >> -jeff >> >> >> >> On 2023-05-04 2:51 p.m., Jeff McKenna wrote: >> > Chris can you paste your latest mapfile at https://pastebin.com/ and >> > paste the link here for everyone? (and for any future mailing list >> > messages, please use that method, for sharing your mapfile and config >> > files) >> > >> > thanks, >> > >> > -jeff >> > >> > >> > >> > On 2023-05-04 2:45 p.m., Chris Cantey wrote: >> >> We were also a little concerned about web>template. We didn't see >> >> anywhere what exactly we were supposed to put in the TEMPLATE >> >> document. its basically the same html document as >> >> https://dev.gis.lcc.mn.gov/tmp/mapserver/ >> >> but with on top. >> >> >> >> CC >> >> >> >> On Thu, May 4, 2023 at 12:32?PM Chris Cantey > >> > wrote: >> >> >> >> I need that t-shirt! The quotes are in the mapfile, I think gmail >> >> just hyperlinked the string. >> >> >> >> I am kind of testing 2 ways: Using the browser(a few methods >> there), >> >> using linux: mapserv >> >> "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map" >> >> >> >> When I do that, I still get a validation error: >> >> >> >> [Thu May 4 12:18:06 2023].428388 loadParams() QUERY_STRING: >> >> map=/home/map=home/gis/tmp/mapserver/mapserver.map >> >> [Thu May 4 12:18:06 2023].428506 msCGILoadMap(): Web application >> >> error. CGI variable "map" fails to validate. >> >> >> >> I'm wondering on the front end if there's a projection issue, I see >> >> green network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/ >> >> >> >> >> >> On Thu, May 4, 2023 at 12:29?PM Jeff McKenna >> >> > >> > wrote: >> >> >> >> Also, your onlineresource is missing quotes, such as: >> >> >> >> "wms_onlineresource" >> >> >> >> " >> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map >> < >> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map >> >" >> >> >> >> >> >> >> >> >> >> -jeff >> >> >> >> >> >> >> >> -- Jeff McKenna >> >> GatewayGeo: Developers of MS4W, MapServer Consulting and >> Training >> >> co-founder of FOSS4G >> >> http://gatewaygeo.com/ >> >> >> >> >> >> >> >> On 2023-05-04 2:13 p.m., Jeff McKenna wrote: >> >> > Thanks. I think you solved any validation issues ( this >> >> request would >> >> > not validate, for example : >> >> > >> >> >> >> >> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map >> < >> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map> >> ) so it's something else, very minor likely (I've got that t-shirt too, >> ha) >> >> > >> >> > -jeff >> >> > >> >> > >> >> > >> >> > On 2023-05-04 2:00 p.m., Chris Cantey wrote: >> >> >> Thanks, Jeff.. I found that out, thanks. >> >> >> >> >> >> I will work down from your points. >> >> >> >> >> >> Besc, >> >> >> >> >> >> On Thu, May 4, 2023 at 11:57?AM Jeff McKenna >> >> >> > >> >> >> > >> >> >> >> >> wrote: >> >> >> >> >> >> Also note, that the regular expression "^" trick >> applies >> >> to the >> >> >> MS_MAP_PATTERN in the config file (not the MS_ERRORFILE >> >> path in the >> >> >> mapfile). >> >> >> >> >> >> >> >> >> Thanks for using MapServer Chris, >> >> >> >> >> >> -jeff >> >> >> >> >> >> >> >> >> >> >> >> -- Jeff McKenna >> >> >> GatewayGeo: Developers of MS4W, MapServer Consulting >> and >> >> Training >> >> >> co-founder of FOSS4G >> >> >> http://gatewaygeo.com/ >> >> > >> >> >> >> >> >> >> >> >> On 2023-05-04 1:48 p.m., Jeff McKenna wrote: >> >> >> > More points for your consideration: >> >> >> > >> >> >> > - make sure all layers have a PROJECTION object >> >> >> > - remove any old references to the >> >> (non-standard/non-existing) >> >> >> > EPSG:900913, replace with EPSG:3857 (see >> >> https://epsg.io/3857 >> >> >> > ) >> >> >> > - remove all warnings from your GetCapabilities >> >> response, every >> >> >> single >> >> >> > warning, there should be no warnings in the >> response, >> >> before you >> >> >> move to >> >> >> > testing GetMap requests >> >> >> > - if you have PostGIS/db connections, consider >> >> setting EXTENT >> >> >> at the >> >> >> > layer-level, to improve speed for your clients >> (review >> >> >> optimizations at >> >> >> > https://mapserver.org/optimization/vector.html >> >> >> >> >> > >> > ) >> >> >> > - during GetMap testing, comment any TEMPLATE params >> >> in mapfile >> >> >> > >> >> >> > >> >> >> > -jeff >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> >> >> >> _______________________________________________ >> >> >> MapServer-users mailing list >> >> >> MapServer-users at lists.osgeo.org >> >> >> >> >> > >> > >> >> >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> >> > >> > >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> Chris Cantey >> >> >> geo-odyssey.com >> >> > >> >> > >> >> >> >> _______________________________________________ >> >> MapServer-users mailing list >> >> MapServer-users at lists.osgeo.org >> >> >> >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> >> >> >> >> -- Chris Cantey >> >> geo-odyssey.com >> >> >> >> >> >> >> >> -- >> >> Chris Cantey >> >> geo-odyssey.com >> > >> >> -- >> Jeff McKenna >> GatewayGeo: Developers of MS4W, MapServer Consulting and Training >> co-founder of FOSS4G >> http://gatewaygeo.com/ >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -- > Chris Cantey > geo-odyssey.com > -- Chris Cantey geo-odyssey.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu May 4 11:07:27 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 May 2023 15:07:27 -0300 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: References: <4f599467-f2a3-0288-2fb8-16509df5d631@gatewaygeomatics.com> <882ec9d4-8760-6d36-0b9a-7abd388ca353@gatewaygeomatics.com> <312f08ac-d9f2-e601-e50a-9e7b8180779d@gatewaygeomatics.com> <5c03b4a6-6415-d638-2e5d-f9d3baf28155@gatewaygeomatics.com> <95ada8d3-34a5-1e95-f60b-b4fbb1822903@gatewaygeomatics.com> <410e48e1-0353-7dce-e2d2-a4d09322ce2d@gatewaygeomatics.com> Message-ID: <01b25fce-9e69-f42e-e648-660d9f9dd0a8@gatewaygeomatics.com> Ah, you're missing EXTENT at the MAP level, below SIZE -jeff On 2023-05-04 3:03 p.m., Chris Cantey wrote: > I forgot about map2img! > > map2img -m mapserver.map -o test.png ?-map_debug 3 > > returns: > msDrawMap(): Image handling error. Unable to initialize image.
> msCalculateScale(): General error message. Invalid image extent, > minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000.
> > > On Thu, May 4, 2023 at 1:00?PM Chris Cantey > wrote: > > I also changed the wms_srs to?"wms_srs" "EPSG:4326 EPSG:3857" > > So ignore that part of pastebin > > On Thu, May 4, 2023 at 12:59?PM Jeff McKenna > > wrote: > > Also, make sure you can generate a valid map image with a map2img > commandline call. > > -jeff > > > > On 2023-05-04 2:51 p.m., Jeff McKenna wrote: > > Chris can you paste your latest mapfile at > https://pastebin.com/ and > > paste the link here for everyone?? (and for any future > mailing list > > messages, please use that method, for sharing your mapfile > and config > > files) > > > > thanks, > > > > -jeff > > > > > > > > On 2023-05-04 2:45 p.m., Chris Cantey wrote: > >> We were also a little concerned about web>template. We > didn't see > >> anywhere what exactly we were supposed to put in the TEMPLATE > >> document. its basically?the same html document as > >> https://dev.gis.lcc.mn.gov/tmp/mapserver/ > > >> > but with? on top. > >> > >> CC > >> > >> On Thu, May 4, 2023 at 12:32?PM Chris Cantey > > >> >> > wrote: > >> > >> ??? I need that t-shirt! The quotes are in the mapfile, I > think gmail > >> ??? just hyperlinked the string. > >> > >> ??? I am kind of testing 2 ways: Using the browser(a few > methods there), > >> ??? using linux: mapserv > >> > "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map" > >> > >> ??? When I do that, I still get a validation error: > >> > >> ??? [Thu May ?4 12:18:06 2023].428388 loadParams() QUERY_STRING: > >> ??? map=/home/map=home/gis/tmp/mapserver/mapserver.map > >> ??? [Thu May ?4 12:18:06 2023].428506 msCGILoadMap(): Web > application > >> ??? error. CGI variable "map" fails to validate. > >> > >> ??? I'm wondering on the front end if there's a projection > issue, I see > >> ??? green network activity: > https://dev.gis.lcc.mn.gov/tmp/mapserver/ > > >> ??? > > >> > >> ??? On Thu, May 4, 2023 at 12:29?PM Jeff McKenna > >> ??? > >> ??? >> wrote: > >> > >> ??????? Also, your onlineresource is missing quotes, such as: > >> > >> ??????? "wms_onlineresource" > >> > >> > "https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map >" > >> > >> > >> > >> > >> ??????? -jeff > >> > >> > >> > >> ??????? -- ??????? Jeff McKenna > >> ??????? GatewayGeo: Developers of MS4W, MapServer Consulting > and Training > >> ??????? co-founder of FOSS4G > >> http://gatewaygeo.com/ > > > >> > >> > >> > >> ??????? On 2023-05-04 2:13 p.m., Jeff McKenna wrote: > >> ???????? > Thanks.? I think you solved any validation issues > ( this > >> ??????? request would > >> ???????? > not validate, for example : > >> ???????? > > >> > >> > https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map > )?? so it's something else, very minor likely (I've got that t-shirt too, ha) > >> ???????? > > >> ???????? > -jeff > >> ???????? > > >> ???????? > > >> ???????? > > >> ???????? > On 2023-05-04 2:00 p.m., Chris Cantey wrote: > >> ???????? >> Thanks, Jeff.. I found that out, thanks. > >> ???????? >> > >> ???????? >> I will work down from your points. > >> ???????? >> > >> ???????? >> Besc, > >> ???????? >> > >> ???????? >> On Thu, May 4, 2023 at 11:57?AM Jeff McKenna > >> ???????? >> > >> ??????? > > >> ??????? > >> ??????? >>> > >> ???????? >> wrote: > >> ???????? >> > >> ???????? >> ??? Also note, that the regular expression "^" > trick applies > >> ??????? to the > >> ???????? >> ??? MS_MAP_PATTERN in the config file (not the > MS_ERRORFILE > >> ??????? path in the > >> ???????? >> ??? mapfile). > >> ???????? >> > >> ???????? >> > >> ???????? >> ??? Thanks for using MapServer Chris, > >> ???????? >> > >> ???????? >> ??? -jeff > >> ???????? >> > >> ???????? >> > >> ???????? >> > >> ???????? >> ??? -- ??? Jeff McKenna > >> ???????? >> ??? GatewayGeo: Developers of MS4W, MapServer > Consulting and > >> ??????? Training > >> ???????? >> ??? co-founder of FOSS4G > >> ???????? >> http://gatewaygeo.com/ > > > >> ??????? > >> > >> ???????? >> > >> ???????? >> > >> ???????? >> ??? On 2023-05-04 1:48 p.m., Jeff McKenna wrote: > >> ???????? >> ???? > More points for your consideration: > >> ???????? >> ???? > > >> ???????? >> ???? > - make sure all layers have a PROJECTION > object > >> ???????? >> ???? > - remove any old references to the > >> ??????? (non-standard/non-existing) > >> ???????? >> ???? > EPSG:900913, replace with EPSG:3857? (see > >> https://epsg.io/3857 > > > >> ???????? >> ??? > >> ) > >> ???????? >> ???? > - remove all warnings from your > GetCapabilities > >> ??????? response, every > >> ???????? >> ??? single > >> ???????? >> ???? > warning, there should be no warnings in > the response, > >> ??????? before you > >> ???????? >> ??? move to > >> ???????? >> ???? > testing GetMap requests > >> ???????? >> ???? > - if you have PostGIS/db connections, > consider > >> ??????? setting EXTENT > >> ???????? >> at the > >> ???????? >> ???? > layer-level, to improve speed for your > clients (review > >> ???????? >> ??? optimizations at > >> ???????? >> ???? > > https://mapserver.org/optimization/vector.html > > >> ??????? > > >> ???????? >> > > >> ??????? >> ) > >> ???????? >> ???? > - during GetMap testing, comment any > TEMPLATE params > >> ??????? in mapfile > >> ???????? >> ???? > > >> ???????? >> ???? > > >> ???????? >> ???? > -jeff > >> ???????? >> ???? > > >> ???????? >> ???? > > >> ???????? >> ???? > > >> ???????? >> ???? > > >> ???????? >> > >> ???????? >> ??? _______________________________________________ > >> ???????? >> ??? MapServer-users mailing list > >> ???????? >> MapServer-users at lists.osgeo.org > > >> ??????? > > >> ???????? >> > >> ??????? >> > >> ???????? >> > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > >> > > > >> ???????? >> > >> > >> > >> > >> ???????? >> > >> ???????? >> > >> ???????? >> > >> ???????? >> -- > >> ???????? >> Chris Cantey > >> ???????? >> geo-odyssey.com > > > >> ??????? > >> > >> ???????? > > >> > >> ??????? _______________________________________________ > >> ??????? MapServer-users mailing list > >> MapServer-users at lists.osgeo.org > > >> ??????? > > >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > >> > > > >> > >> > >> > >> ??? -- ??? Chris Cantey > >> geo-odyssey.com > > > >> > >> > >> > >> -- > >> Chris Cantey > >> geo-odyssey.com > > > > > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > co-founder of FOSS4G > http://gatewaygeo.com/ > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Chris Cantey > geo-odyssey.com > > > > -- > Chris Cantey > geo-odyssey.com -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ From jmckenna at gatewaygeomatics.com Thu May 4 11:19:37 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 May 2023 15:19:37 -0300 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: <054e575c-bc34-3ca8-1d4d-e9a11b8dcc88@gatewaygeomatics.com> References: <054e575c-bc34-3ca8-1d4d-e9a11b8dcc88@gatewaygeomatics.com> Message-ID: Yes, first get your mapfile image working with map2img, then move to GetCapabilities request, remove warnings from it, then try a GetMap request. (this are always my steps, when creating mapfiles) An empty map image usually means that MapServer is drawing from the MAP-level extent that you set, but you may have the source projection (at the layer-level) incorrect. -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2023-05-04 3:09 p.m., > > Its just?a single white png though. From cantey0701 at gmail.com Fri May 5 07:05:52 2023 From: cantey0701 at gmail.com (Chris Cantey) Date: Fri, 5 May 2023 09:05:52 -0500 Subject: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. In-Reply-To: References: <054e575c-bc34-3ca8-1d4d-e9a11b8dcc88@gatewaygeomatics.com> Message-ID: That did it Jeff! #getcapabilities https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0 Which returned: https://pastebin.com/xBJCbKGz (space in MAP>NAME, ie "probably something small:D) I fixed the warning, and voila! Thanks for your help! On Thu, May 4, 2023 at 1:19?PM Jeff McKenna wrote: > Yes, first get your mapfile image working with map2img, then move to > GetCapabilities request, remove warnings from it, then try a GetMap > request. (this are always my steps, when creating mapfiles) > > An empty map image usually means that MapServer is drawing from the > MAP-level extent that you set, but you may have the source projection > (at the layer-level) incorrect. > > > -jeff > > > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > co-founder of FOSS4G > http://gatewaygeo.com/ > > > On 2023-05-04 3:09 p.m., > > > > Its just a single white png though. > > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Chris Cantey geo-odyssey.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon May 8 12:44:03 2023 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Mon, 8 May 2023 19:44:03 +0000 Subject: [MapServer-users] [ANNOUNCEMENT] OSGeo Local Chapter (aka TCMUG) Meeting for May 10th Message-ID: All, Face to face meeting at Sea Salt in Minnehaha Park. Sea Salt Eatery https://goo.gl/maps/SLK4xupGSpQdJyXp8. 4801 Minnehaha Avenue South Minneapolis, Minnesota 55417 May 10th, 2023 4:30 - at least 6:00 See you there. Bobb -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 14912 bytes Desc: not available URL: From mniemyjski at cloudferro.com Tue May 9 05:27:12 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Tue, 9 May 2023 12:27:12 +0000 Subject: [MapServer-users] Efficient way of hosting WMS from .jp2 files stored on s3 Message-ID: Hello, currently I'm investigating possibilities of efficient way of hosting WMS from .jp2 files stored on s3. >From what I understood from this: https://gis.stackexchange.com/questions/281704/should-i-use-jp2-or-cloud-optimized-geotiffs-to-efficiently-access-small-windows with .jp2 comes need for more requests. Is there any way of optimizing the process to reduce the number of requests? My sample mapfile aiming to s3 with jp2 files, please check the settings of Enviromental variables. Does it make sense? mapfile -> https://paste.ofcode.org/Nf8KccVqV6aKK2DqkuAWLs Thanks for any suggestions, Marcin [cid:23f2de1a-a172-41b3-a50c-65667c07c201] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-kwnughal.png Type: image/png Size: 528 bytes Desc: Outlook-kwnughal.png URL: From mniemyjski at cloudferro.com Thu May 11 02:55:43 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Thu, 11 May 2023 09:55:43 +0000 Subject: [MapServer-users] Qgis layer style file in mapfile Message-ID: Hello, is it possible to somehow use Qgis layer style file in mapfile to define how is Polygon layer displayed? Best, Marcin [cid:c2a9f89b-d75b-4f1d-9297-e77ce809661a] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-opnlnarp.png Type: image/png Size: 528 bytes Desc: Outlook-opnlnarp.png URL: From sethg at geographika.co.uk Thu May 11 03:26:38 2023 From: sethg at geographika.co.uk (Seth G) Date: Thu, 11 May 2023 12:26:38 +0200 Subject: [MapServer-users] Qgis layer style file in mapfile In-Reply-To: References: Message-ID: <5d68a799-adb2-40e2-b464-1a7a323cc3de@app.fastmail.com> Hi Marcin, Good timing with the question! There is currently a code sprint happening for the GeoStyler project [1] This allows conversion between different styles including QGIS and MapServer Mapfiles. If you are looking to convert from QGIS to Mapfile you need to use the geostyler-cli [2] to convert the QGIS style to the intermediary GeoStyler format and then use the GeoCat script [3] to convert this to a Mapfile. This is currently a fairly complex way do do things but we're looking at a Python wrapper to make this a simple one line command. Seth [1] https://geostyler.org/ [2] https://github.com/geostyler/geostyler-cli [3] https://github.com/GeoCat/bridge-style/blob/master/bridgestyle/mapserver/fromgeostyler.py -- web:https://geographika.net twitter: @geographika On Thu, May 11, 2023, at 11:55 AM, Marcin Niemyjski via MapServer-users wrote: > Hello, > > is it possible to somehow use Qgis layer style file in mapfile to define how is Polygon layer displayed? > > Best, > Marcin > > > > > > > Book time to meet with me > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-opnlnarp.png Type: image/png Size: 528 bytes Desc: not available URL: From sdlime at gmail.com Mon May 15 08:53:02 2023 From: sdlime at gmail.com (Steve Lime) Date: Mon, 15 May 2023 10:53:02 -0500 Subject: [MapServer-users] Qgis layer style file in mapfile In-Reply-To: <5d68a799-adb2-40e2-b464-1a7a323cc3de@app.fastmail.com> References: <5d68a799-adb2-40e2-b464-1a7a323cc3de@app.fastmail.com> Message-ID: This would be very useful. Is that work also potentially identifying gaps (or opportunities) with MapServer styling to make things easier? --Steve On Thu, May 11, 2023 at 5:35?AM Seth G wrote: > Hi Marcin, > > Good timing with the question! There is currently a code sprint happening > for the GeoStyler project [1] > This allows conversion between different styles including QGIS and > MapServer Mapfiles. > If you are looking to convert from QGIS to Mapfile you need to use the > geostyler-cli [2] to convert the QGIS style to the intermediary GeoStyler > format and then use the GeoCat script [3] to convert this to a Mapfile. > This is currently a fairly complex way do do things but we're looking at a > Python wrapper to make this a simple one line command. > > Seth > > [1] https://geostyler.org/ > [2] https://github.com/geostyler/geostyler-cli > [3] > https://github.com/GeoCat/bridge-style/blob/master/bridgestyle/mapserver/fromgeostyler.py > > -- > web:https://geographika.net > twitter: @geographika > > On Thu, May 11, 2023, at 11:55 AM, Marcin Niemyjski via MapServer-users > wrote: > > Hello, > > is it possible to somehow use Qgis layer style file in mapfile to define > how is Polygon layer displayed? > > Best, > Marcin > > > > > > > > > Book time to meet with me > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-opnlnarp.png Type: image/png Size: 528 bytes Desc: not available URL: From sokolic at worldonline.co.za Wed May 17 03:39:53 2023 From: sokolic at worldonline.co.za (Frank Sokolic) Date: Wed, 17 May 2023 12:39:53 +0200 Subject: [MapServer-users] msLoadConfig error on Ubuntu 23.04 Message-ID: <3de55701-814d-b6eb-a962-b3c4e4a270c0@worldonline.co.za> Hi MapServer users, I'm having problems getting MapServer 8 to read the conf file on my Ubuntu 23.04 Lunar Lobster machine. I installed MapServer using the command "sudu apt install cgi-mapserver" and this installs 8.0.0-3build2. However, when I test the installation I get an error: "msLoadConfig(): Unable to access file. See mapserver.org/config_file.html for more information." I have created a conf file that looks like this: CONFIG ? MAPS ??? ECSRP_MAPFILE "/var/www/ecsrp/mapfiles/ecsrp.map" ? END END I have created a system-wide environment variable pointing to the conf file: MAPSERVER_CONFIG_FILE=/usr/local/etc/mapserver.conf I have granted read access to Owner/Group/Others on both mapserver.conf and ecsrp.map but still get the msLoadConfig() error. Is there anything obvious I'm doing wrong? Regards, Frank. From joerg.thomsen at wheregroup.com Wed May 17 06:08:03 2023 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Wed, 17 May 2023 15:08:03 +0200 Subject: [MapServer-users] msLoadConfig error on Ubuntu 23.04 In-Reply-To: <3de55701-814d-b6eb-a962-b3c4e4a270c0@worldonline.co.za> References: <3de55701-814d-b6eb-a962-b3c4e4a270c0@worldonline.co.za> Message-ID: <3e3d22df-7d54-c9da-a03a-397ab7a9a6f6@wheregroup.com> Hello Frank, >> Is there anything obvious I'm doing wrong? no.... have you checked whether the variable is really set with the correct name and value/path+filename? -> printenv | grep 'MAPSERVER' I remember a few times MapServer needed +RW instead of +R Usually I don't use system variables, for me it works fine setting the config-file in the apache-config like SetEnv MAPSERVER_CONFIG_FILE /data/config/mapserver/mapserver.conf FcgidInitialEnv MAPSERVER_CONFIG_FILE /data/config/mapserver/mapserver.conf (depending on cgi / fcgi) J?rg Am 17.05.23 um 12:39 schrieb Frank Sokolic: > Hi MapServer users, > > I'm having problems getting MapServer 8 to read the conf file on my > Ubuntu 23.04 Lunar Lobster machine. I installed MapServer using the > command "sudu apt install cgi-mapserver" and this installs > 8.0.0-3build2. However, when I test the installation I get an error: > > "msLoadConfig(): Unable to access file. See > mapserver.org/config_file.html for more information." > > > I have created a conf file that looks like this: > CONFIG > ? MAPS > ??? ECSRP_MAPFILE "/var/www/ecsrp/mapfiles/ecsrp.map" > ? END > END > > > I have created a system-wide environment variable pointing to the conf > file: > MAPSERVER_CONFIG_FILE=/usr/local/etc/mapserver.conf > > > I have granted read access to Owner/Group/Others on both mapserver.conf > and ecsrp.map but still get the msLoadConfig() error. > > > Is there anything obvious I'm doing wrong? > > > Regards, Frank. > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Viele Gr??e, J?rg Thomsen --------------------------------------------- Aufwind durch Wissen! Web-Seminare und Online-Schulungen bei der www.foss-academy.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Tel: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From sokolic at worldonline.co.za Wed May 17 08:11:04 2023 From: sokolic at worldonline.co.za (Frank Sokolic) Date: Wed, 17 May 2023 17:11:04 +0200 Subject: [MapServer-users] msLoadConfig error on Ubuntu 23.04 In-Reply-To: <3e3d22df-7d54-c9da-a03a-397ab7a9a6f6@wheregroup.com> References: <3de55701-814d-b6eb-a962-b3c4e4a270c0@worldonline.co.za> <3e3d22df-7d54-c9da-a03a-397ab7a9a6f6@wheregroup.com> Message-ID: <498b2d32-3547-ca7f-c710-36722b11925d@worldonline.co.za> Hi J?rg, Thanks for your advice. Setting the config file in the apache-config worked and now MapServer is working. Now I can carry on developing my project :-) Frank. On 2023/05/17 15:08, J?rg Thomsen (WhereGroup) wrote: > Hello Frank, > >>> Is there anything obvious I'm doing wrong? > no.... > have you checked whether the variable is really set with the correct > name and value/path+filename? > -> printenv | grep 'MAPSERVER' > > I remember a few times MapServer needed +RW instead of +R > > Usually I don't use system variables, for me it works fine setting the > config-file in the apache-config like > > SetEnv MAPSERVER_CONFIG_FILE /data/config/mapserver/mapserver.conf > FcgidInitialEnv MAPSERVER_CONFIG_FILE > /data/config/mapserver/mapserver.conf > > (depending on cgi / fcgi) > > J?rg > > Am 17.05.23 um 12:39 schrieb Frank Sokolic: >> Hi MapServer users, >> >> I'm having problems getting MapServer 8 to read the conf file on my >> Ubuntu 23.04 Lunar Lobster machine. I installed MapServer using the >> command "sudu apt install cgi-mapserver" and this installs >> 8.0.0-3build2. However, when I test the installation I get an error: >> >> "msLoadConfig(): Unable to access file. See >> mapserver.org/config_file.html for more information." >> >> >> I have created a conf file that looks like this: >> CONFIG >> ?? MAPS >> ???? ECSRP_MAPFILE "/var/www/ecsrp/mapfiles/ecsrp.map" >> ?? END >> END >> >> >> I have created a system-wide environment variable pointing to the >> conf file: >> MAPSERVER_CONFIG_FILE=/usr/local/etc/mapserver.conf >> >> >> I have granted read access to Owner/Group/Others on both >> mapserver.conf and ecsrp.map but still get the msLoadConfig() error. >> >> >> Is there anything obvious I'm doing wrong? >> >> >> Regards, Frank. >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > From sethg at geographika.co.uk Fri May 19 05:44:32 2023 From: sethg at geographika.co.uk (Seth G) Date: Fri, 19 May 2023 14:44:32 +0200 Subject: [MapServer-users] MapServer 8.0.1 release overview Message-ID: Hi all, I've put together a summary of the changes introduced in the MapServer 8.0.1 release from last month at https://mapserverstudio.net/posts/mapserver-8.0.1.html that could be of interest to MapServer users. Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika From sethg at geographika.co.uk Fri May 19 07:18:02 2023 From: sethg at geographika.co.uk (Seth G) Date: Fri, 19 May 2023 16:18:02 +0200 Subject: [MapServer-users] Qgis layer style file in mapfile In-Reply-To: References: <5d68a799-adb2-40e2-b464-1a7a323cc3de@app.fastmail.com> Message-ID: Hi Steve, I've so far only experimented with simple styles, but attempting to convert more complex examples from QGIS styles should highlight what type of style properties are missing in MapServer. Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Mon, May 15, 2023, at 5:53 PM, Steve Lime wrote: > This would be very useful. Is that work also potentially identifying gaps (or opportunities) with MapServer styling to make things easier? --Steve > > On Thu, May 11, 2023 at 5:35?AM Seth G wrote: >> __ >> Hi Marcin, >> >> Good timing with the question! There is currently a code sprint happening for the GeoStyler project [1] >> This allows conversion between different styles including QGIS and MapServer Mapfiles. >> If you are looking to convert from QGIS to Mapfile you need to use the geostyler-cli [2] to convert the QGIS style to the intermediary GeoStyler format and then use the GeoCat script [3] to convert this to a Mapfile. >> This is currently a fairly complex way do do things but we're looking at a Python wrapper to make this a simple one line command. >> >> Seth >> >> [1] https://geostyler.org/ >> [2] https://github.com/geostyler/geostyler-cli >> [3] https://github.com/GeoCat/bridge-style/blob/master/bridgestyle/mapserver/fromgeostyler.py >> >> -- >> web:https://geographika.net >> twitter: @geographika >> >> On Thu, May 11, 2023, at 11:55 AM, Marcin Niemyjski via MapServer-users wrote: >>> Hello, >>> >>> is it possible to somehow use Qgis layer style file in mapfile to define how is Polygon layer displayed? >>> >>> Best, >>> Marcin >>> >>> >>> >>> >>> >>> >>> Book time to meet with me >>> >>> >>> _______________________________________________ >>> MapServer-users mailing list >>> MapServer-users at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-opnlnarp.png Type: image/png Size: 528 bytes Desc: not available URL: From mniemyjski at cloudferro.com Thu May 25 02:29:12 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Thu, 25 May 2023 09:29:12 +0000 Subject: [MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them? Message-ID: Hello, is it possible to use other attributes stored on tileindex and querry dataset using them? For example, here is the structure of my tileindex: geometry | location | time | cloud_cover By default, Mapserver uses only geometry and location to check the spatial extent and then uses path to corresponding file. What I would like to do is using time and cloud_cover attribute the way below: (example of what o would like to achieve): http://localhost/?map=/etc/mapserver/Sentinel-2-Sample.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=1534893.345061423257,7143105.10061901249,1540006.889062916394,7146487.518795842305&CRS=EPSG:3857&WIDTH=1217&HEIGHT=805&LAYERS=Sentinel-2&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE&time=2023-01-01&max_cloud_cover=50 so, in response I would get an image corresponding to choose spatial extent taken only on 2023-01-01 and with maximum cloud cover equal to 50%. Also, I think it would be better to keep tileindex in postgresql database. Any suggestions, samples of mapfiles would be greate ^^ Best , Marcin [cid:14390fd2-f60a-4d9d-9998-9db6bc2200f0] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-1viwtob1.png Type: image/png Size: 528 bytes Desc: Outlook-1viwtob1.png URL: From mniemyjski at cloudferro.com Thu May 25 07:53:52 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Thu, 25 May 2023 14:53:52 +0000 Subject: [MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them? Message-ID: Hello, I've managed to find solution similar solution to what I looked for in pervious mail at https://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery but when using below GetMap url request, Mapserver keeps returning data for default timestamp parameter value (which is 2023-02-02) although I'm passing new value in url: GetMap: http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/TileIndex.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=1685028.275800409261,1801821.474313705694,6595587.571330638602,9965795.399527186528&CRS=EPSG:3857&WIDTH=726&HEIGHT=1207&LAYERS=Sentinel%202%20Ukraine%20TileIndex%20GPKG&STYLES=&FORMAT=image/png&DPI=157&MAP_RESOLUTION=157&FORMAT_OPTIONS=dpi:157&TRANSPARENT=TRUE×tamp=2023-02-05 can you please take a look at my mapfile? -> https://pastecode.io/s/oxvnycg3 Any suggestions? Marcin Marcin Niemyjski Junior Data Scientist CloudFerro sp z o.o. office: Fabryczna 5 ????? m: +48 695 831 753 00-446 Warszawa, Poland ???e: mniemyjski at cloudferro.com [https://i.imgur.com/jlLouj5.png] [cid:ca1b1053-bfcd-41a1-9b09-c01127539064] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-z0wt32lw.png Type: image/png Size: 528 bytes Desc: Outlook-z0wt32lw.png URL: From jukka.rahkonen at maanmittauslaitos.fi Thu May 25 09:27:00 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Thu, 25 May 2023 16:27:00 +0000 Subject: [MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them? In-Reply-To: References: Message-ID: Hi, Read the whole documentation page. Mapserver is implementing the WMS-T standard and in the standard the time parameter is named ?TIME?. See examples https://mapserver.org/ogc/wms_time.html#supported-time-requests. So even the timeitem in your tileindex is ?timestamp?, the parameter to use in GetMap is &TIME= -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Marcin Niemyjski via MapServer-users L?hetetty: torstai 25. toukokuuta 2023 17.54 Vastaanottaja: Marcin Niemyjski via MapServer-users Aihe: [MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them? Hello, I've managed to find solution similar solution to what I looked for in pervious mail at https://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery but when using below GetMap url request, Mapserver keeps returning data for default timestamp parameter value (which is 2023-02-02) although I'm passing new value in url: GetMap: http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/TileIndex.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=1685028.275800409261,1801821.474313705694,6595587.571330638602,9965795.399527186528&CRS=EPSG:3857&WIDTH=726&HEIGHT=1207&LAYERS=Sentinel%202%20Ukraine%20TileIndex%20GPKG&STYLES=&FORMAT=image/png&DPI=157&MAP_RESOLUTION=157&FORMAT_OPTIONS=dpi:157&TRANSPARENT=TRUE×tamp=2023-02-05 can you please take a look at my mapfile? -> https://pastecode.io/s/oxvnycg3 Any suggestions? Marcin Marcin Niemyjski Junior Data Scientist CloudFerro sp z o.o. office: Fabryczna 5 ????? m: +48 695 831 753 00-446 Warszawa, Poland ???e: mniemyjski at cloudferro.com [https://i.imgur.com/jlLouj5.png] [cid:image001.png at 01D98F3E.49094970] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 528 bytes Desc: image001.png URL: From mniemyjski at cloudferro.com Fri May 26 02:22:09 2023 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Fri, 26 May 2023 09:22:09 +0000 Subject: [MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them? In-Reply-To: References: Message-ID: Jukka, you were right! Now it works like a charm! Big thank you! And Thanks Tanya for a suggestion. But in reference to my first mail - is there possibility to add new parameter to url request based on another attribute in vector index file, for example max_cloud_cover or polarization_type? :D Best, Marcin Marcin Niemyjski Junior Data Scientist CloudFerro sp z o.o. office: Fabryczna 5 ????? m: +48 695 831 753 00-446 Warszawa, Poland ???e: mniemyjski at cloudferro.com [https://i.imgur.com/jlLouj5.png] [cid:c47a448c-c7bc-49c5-bc0f-5866b72d2abc] Book time to meet with me ________________________________ From: Rahkonen Jukka Sent: Thursday, May 25, 2023 6:27 PM To: Marcin Niemyjski ; Marcin Niemyjski via MapServer-users Subject: Re: is it possible to use other attributes stored on tileindex and querry dataset using them? Hi, Read the whole documentation page. Mapserver is implementing the WMS-T standard and in the standard the time parameter is named ?TIME?. See examples https://mapserver.org/ogc/wms_time.html#supported-time-requests. So even the timeitem in your tileindex is ?timestamp?, the parameter to use in GetMap is &TIME= -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Marcin Niemyjski via MapServer-users L?hetetty: torstai 25. toukokuuta 2023 17.54 Vastaanottaja: Marcin Niemyjski via MapServer-users Aihe: [MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them? Hello, I've managed to find solution similar solution to what I looked for in pervious mail at https://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery but when using below GetMap url request, Mapserver keeps returning data for default timestamp parameter value (which is 2023-02-02) although I'm passing new value in url: GetMap: http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/TileIndex.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=1685028.275800409261,1801821.474313705694,6595587.571330638602,9965795.399527186528&CRS=EPSG:3857&WIDTH=726&HEIGHT=1207&LAYERS=Sentinel%202%20Ukraine%20TileIndex%20GPKG&STYLES=&FORMAT=image/png&DPI=157&MAP_RESOLUTION=157&FORMAT_OPTIONS=dpi:157&TRANSPARENT=TRUE×tamp=2023-02-05 can you please take a look at my mapfile? -> https://pastecode.io/s/oxvnycg3 Any suggestions? Marcin Marcin Niemyjski Junior Data Scientist CloudFerro sp z o.o. office: Fabryczna 5 ????? m: +48 695 831 753 00-446 Warszawa, Poland ???e: mniemyjski at cloudferro.com [https://i.imgur.com/jlLouj5.png] [cid:image001.png at 01D98F3E.49094970] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 528 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-lfph41uo.png Type: image/png Size: 528 bytes Desc: Outlook-lfph41uo.png URL: From jukka.rahkonen at maanmittauslaitos.fi Fri May 26 02:52:09 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Fri, 26 May 2023 09:52:09 +0000 Subject: [MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them? In-Reply-To: References: Message-ID: Hi, * is there possibility to add new parameter to url request based on another attribute in vector index file, for example max_cloud_cover or polarization_type? Simple. Add query parameters into the DATA of the tileindex layer. So instead of DATA "tile-index" use DATA "select * from tile-index where max_cloud_cover<%maxcc% and polarization_type='%polcode%'" Read https://mapserver.org/cgi/runsub.html about validation and defaults. And finally for filtering create GetMap requests so that they include &maxcc=80&polcode=A Utilizing the extra parameters with standard clients like QGIS can make some headache especially if it should be possible to change them dynamically. Half-dynamic method it to include the extra parameters into the WMS connection string and configure QGIS to ?Ignore GetMap URI reported in capabilities?. With some other clients it is possible to configure vendor parameters which are then appended into GetMap. And I have seen that some clever servers are configured to manipulate the GetCapabities answer so that extra parameters (access_token etc) which are used in GetCapabilities request are added into the GetMap link in the response. -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Marcin Niemyjski via MapServer-users L?hetetty: perjantai 26. toukokuuta 2023 12.22 Vastaanottaja: Marcin Niemyjski via MapServer-users Aihe: Re: [MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them? Jukka, you were right! Now it works like a charm! Big thank you! And Thanks Tanya for a suggestion. But in reference to my first mail - is there possibility to add new parameter to url request based on another attribute in vector index file, for example max_cloud_cover or polarization_type? :D Best, Marcin Marcin Niemyjski Junior Data Scientist CloudFerro sp z o.o. office: Fabryczna 5 ????? m: +48 695 831 753 00-446 Warszawa, Poland ???e: mniemyjski at cloudferro.com [https://i.imgur.com/jlLouj5.png] [cid:image001.png at 01D98FCE.104C2180] Book time to meet with me ________________________________ From: Rahkonen Jukka > Sent: Thursday, May 25, 2023 6:27 PM To: Marcin Niemyjski >; Marcin Niemyjski via MapServer-users > Subject: Re: is it possible to use other attributes stored on tileindex and querry dataset using them? Hi, Read the whole documentation page. Mapserver is implementing the WMS-T standard and in the standard the time parameter is named ?TIME?. See examples https://mapserver.org/ogc/wms_time.html#supported-time-requests. So even the timeitem in your tileindex is ?timestamp?, the parameter to use in GetMap is &TIME= -Jukka Rahkonen- L?hett?j?: MapServer-users > Puolesta Marcin Niemyjski via MapServer-users L?hetetty: torstai 25. toukokuuta 2023 17.54 Vastaanottaja: Marcin Niemyjski via MapServer-users > Aihe: [MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them? Hello, I've managed to find solution similar solution to what I looked for in pervious mail at https://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery but when using below GetMap url request, Mapserver keeps returning data for default timestamp parameter value (which is 2023-02-02) although I'm passing new value in url: GetMap: http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/TileIndex.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=1685028.275800409261,1801821.474313705694,6595587.571330638602,9965795.399527186528&CRS=EPSG:3857&WIDTH=726&HEIGHT=1207&LAYERS=Sentinel%202%20Ukraine%20TileIndex%20GPKG&STYLES=&FORMAT=image/png&DPI=157&MAP_RESOLUTION=157&FORMAT_OPTIONS=dpi:157&TRANSPARENT=TRUE×tamp=2023-02-05 can you please take a look at my mapfile? -> https://pastecode.io/s/oxvnycg3 Any suggestions? Marcin Marcin Niemyjski Junior Data Scientist CloudFerro sp z o.o. office: Fabryczna 5 ????? m: +48 695 831 753 00-446 Warszawa, Poland ???e: mniemyjski at cloudferro.com [https://i.imgur.com/jlLouj5.png] [cid:image001.png at 01D98FCE.104C2180] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 528 bytes Desc: image001.png URL: From oliver.christen at camptocamp.com Tue May 30 03:59:18 2023 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Tue, 30 May 2023 12:59:18 +0200 Subject: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0 Message-ID: Dear Mapserver commiters this commit there: https://github.com/MapServer/MapServer/pull/6818 broke a lot of things, like style angles not supporting negative values anymore or label size mandatorily greater than zero (also possibly for symbol) Im not against changes, but changes should be: a) documented b) announced with preferably a deprecation period so, please revert that commit or provide adequate change/documentation for all the breaking changes. Thank you Best regards Oliver Christen -- New address from 1st September 2022 Camptocamp SA Route de la Chaux 4 1030 Bussigny Suisse -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Tue May 30 04:27:43 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Tue, 30 May 2023 11:27:43 +0000 Subject: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0 In-Reply-To: References: Message-ID: Hi, Maybe the commit could be adjusted in Mapserver 7. Out of curiosity, what is the use case for zero sized labels and symbols? To disable them, or? About the angle, by the Mapserver 7.0 documentation, doesn't it feel like negative angles were not thought to work ever? "Angle, given in degrees, to rotate the symbol (counter clockwise). Default is 0 (no rotation). If you have an attribute that specifies angles in a clockwise direction (compass direction), you have to adjust the angle attribute values before they reach MapServer (360-ANGLE), as it is not possible to use a mathematical expression for ANGLE." -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Oliver Christen L?hetetty: tiistai 30. toukokuuta 2023 13.59 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0 Dear Mapserver commiters this commit there: https://github.com/MapServer/MapServer/pull/6818 broke a lot of things, like style angles not supporting negative values anymore or label size mandatorily greater than zero (also possibly for symbol) Im not against changes, but changes should be: a) documented b) announced with preferably a deprecation period so, please revert that commit or provide adequate change/documentation for all the breaking changes. Thank you Best regards Oliver Christen -- [https://lh5.googleusercontent.com/4RpzNqlUvMoqWPtwuUWigz1_dKPkUN4OQOKshy_zixf9Gi6JzQJRjs3oHwxYaiADK7htQjUTodRa-OUr4YEKbgs9SsmqPG6QYjqKj3wbXoQ6snhaqq2eEJTeB1FZHKK7SApWcSZk45Fe3w4grA] New address from 1st September 2022 Camptocamp SA Route de la Chaux 4 1030 Bussigny Suisse -------------- next part -------------- An HTML attachment was scrubbed... URL: From oliver.christen at camptocamp.com Tue May 30 05:20:32 2023 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Tue, 30 May 2023 14:20:32 +0200 Subject: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0 In-Reply-To: References: Message-ID: before that commit, the following code was working: STYLE COLOR 255 255 255 SYMBOL "rectangle3" ANGLE -45 SIZE 8 GAP 10 END after that commit, it no longer works, as ANGLE -45 is not accepted anymore, instead it had to be changed to STYLE COLOR 255 255 255 SYMBOL "rectangle3" ANGLE 315 SIZE 8 GAP 10 END the documentation https://mapserver.org/mapfile/style.html say it must be of type DOUBLE, but double can be negative and nothing say explicitly in the documentation that the value can not be negative. I see this discussion here: https://github.com/MapServer/MapServer/issues/6463 but no comment if something was done or agreed on about this. A note should be added to the documentation to make that clear, as it was done for label size (see below). I can do a PR if that would be acceptable ? for label size, I see that a note was added saying the value must be greater than zero on 26 january 2022, so I guess this is on me for not noticing it (but im not alone not noticing it so I guess it wasnt clearly stated/announced either) Best regards Oliver On Tue, May 30, 2023 at 1:27?PM Rahkonen Jukka < jukka.rahkonen at maanmittauslaitos.fi> wrote: > Hi, > > > > Maybe the commit could be adjusted in Mapserver 7. Out of curiosity, what > is the use case for zero sized labels and symbols? To disable them, or? > About the angle, by the Mapserver 7.0 documentation, doesn?t it feel like > negative angles were not thought to work ever? > > > ?Angle, given in degrees, to rotate the symbol (counter clockwise). > Default is 0 (no rotation). If you have an attribute that specifies angles > in a clockwise direction (compass direction), you have to adjust the angle > attribute values before they reach MapServer (360-ANGLE), as it is not > possible to use a mathematical expression for ANGLE.? > > > > -Jukka Rahkonen- > > > > *L?hett?j?:* MapServer-users *Puolesta > *Oliver Christen > *L?hetetty:* tiistai 30. toukokuuta 2023 13.59 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* [MapServer-users] breaking changes in branch-7-6 after commit of > experimental changes from branch-8-0 > > > > Dear Mapserver commiters > > > > this commit there: > > https://github.com/MapServer/MapServer/pull/6818 > > > > broke a lot of things, > > like style angles not supporting negative values anymore or label size > mandatorily greater than zero (also possibly for symbol) > > > > Im not against changes, but changes should be: > > a) documented > > b) announced with preferably a deprecation period > > > > so, please revert that commit or provide adequate change/documentation for > all the breaking changes. > > > > Thank you > > Best regards > > Oliver Christen > > > > -- > > > > > > > *New address from 1st September 2022* > > > > *Camptocamp SA* > > Route de la Chaux 4 > > 1030 Bussigny > > Suisse > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue May 30 05:28:15 2023 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 30 May 2023 09:28:15 -0300 Subject: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0 In-Reply-To: References: Message-ID: <59e74604-c434-9499-7375-bf3a027da98d@gatewaygeomatics.com> Hi Oliver, a pull request in the documentation repository would be warmly received: https://github.com/MapServer/MapServer-documentation Thank-you for catching this. -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2023-05-30 9:20 a.m., Oliver Christen wrote: > before that commit, the following code was working: > > ? ? STYLE > ? ? ? COLOR 255 255 255 > ? ? ? SYMBOL "rectangle3" > ? ? ? ANGLE -45 > ? ? ? SIZE 8 > ? ? ? GAP 10 > ? ? END > > after that commit, it no longer works, as ANGLE -45 is not accepted > anymore, instead it had to be changed to > > STYLE > ? ? ? COLOR 255 255 255 > ? ? ? SYMBOL "rectangle3" > ? ? ? ANGLE 315 > ? ? ? SIZE 8 > ? ? ? GAP 10 > ? ? END > > the documentation https://mapserver.org/mapfile/style.html > say it must be of type > DOUBLE, but double can be negative and nothing say explicitly in the > documentation that the value can not be negative. > > I see this discussion here: > https://github.com/MapServer/MapServer/issues/6463 > > but no comment if something was done or agreed on about this. > A note should be added to the documentation to make that clear, as it > was done for label size (see below). > I can do a PR if that would?be acceptable ? > > for label size, I see that a note was added saying the value must be > greater than zero on 26 january 2022, so I guess this is on me for not > noticing it (but im not?alone not noticing it so I guess it wasnt > clearly stated/announced either) > > Best regards > Oliver > > > > > > On Tue, May 30, 2023 at 1:27?PM Rahkonen Jukka > > wrote: > > Hi,____ > > __ __ > > Maybe the commit could be adjusted in Mapserver 7. Out of curiosity, > what is the use case for zero sized labels and symbols? To disable > them, or? About the angle, by the Mapserver 7.0 documentation, > doesn?t it feel like negative angles were not thought to work ever?____ > > > ?Angle, given in degrees, to rotate the symbol (counter clockwise). > Default is 0 (no rotation). If you have an attribute that specifies > angles in a clockwise direction (compass direction), you have to > adjust the angle attribute values before they reach MapServer > (360-ANGLE), as it is not possible to use a mathematical expression > for ANGLE.?____ > > __ __ > > -Jukka Rahkonen-____ > > __ __ > > *L?hett?j?:*MapServer-users > *Puolesta *Oliver > Christen > *L?hetetty:* tiistai 30. toukokuuta 2023 13.59 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > > *Aihe:* [MapServer-users] breaking changes in branch-7-6 after > commit of experimental changes from branch-8-0____ > > __ __ > > Dear Mapserver commiters____ > > __ __ > > this commit there:____ > > https://github.com/MapServer/MapServer/pull/6818 > ____ > > __ __ > > broke a lot of things, ____ > > like style angles not supporting negative values anymore or label > size mandatorily greater than zero (also possibly for symbol)____ > > __ __ > > Im not?against changes, but changes should be: ____ > > a) documented ____ > > b) announced?with preferably a deprecation period____ > > __ __ > > so, please revert that commit or provide adequate > change/documentation for all the breaking changes.____ > From jukka.rahkonen at maanmittauslaitos.fi Tue May 30 05:44:54 2023 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Tue, 30 May 2023 12:44:54 +0000 Subject: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0 In-Reply-To: References: Message-ID: Hi, It looks like Steve Lime was reading the text in the paragraph and not the line the defines the synopsis and thought that the documentation was explicit https://github.com/MapServer/MapServer/issues/6463#issuecomment-1025938850 ?since style-level angle documentation refers specifically to 0-360 I think we should limit from 0-360 if there are no objections?. Or maybe he was remembering what he was thinking when writing the original code? Please make a pull request for improving the documentation, for my mind it is vague now. -Jukka Rahkonen- L?hett?j?: Oliver Christen L?hetetty: tiistai 30. toukokuuta 2023 15.21 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0 before that commit, the following code was working: STYLE COLOR 255 255 255 SYMBOL "rectangle3" ANGLE -45 SIZE 8 GAP 10 END after that commit, it no longer works, as ANGLE -45 is not accepted anymore, instead it had to be changed to STYLE COLOR 255 255 255 SYMBOL "rectangle3" ANGLE 315 SIZE 8 GAP 10 END the documentation https://mapserver.org/mapfile/style.html say it must be of type DOUBLE, but double can be negative and nothing say explicitly in the documentation that the value can not be negative. I see this discussion here: https://github.com/MapServer/MapServer/issues/6463 but no comment if something was done or agreed on about this. A note should be added to the documentation to make that clear, as it was done for label size (see below). I can do a PR if that would be acceptable ? for label size, I see that a note was added saying the value must be greater than zero on 26 january 2022, so I guess this is on me for not noticing it (but im not alone not noticing it so I guess it wasnt clearly stated/announced either) Best regards Oliver On Tue, May 30, 2023 at 1:27?PM Rahkonen Jukka > wrote: Hi, Maybe the commit could be adjusted in Mapserver 7. Out of curiosity, what is the use case for zero sized labels and symbols? To disable them, or? About the angle, by the Mapserver 7.0 documentation, doesn?t it feel like negative angles were not thought to work ever? ?Angle, given in degrees, to rotate the symbol (counter clockwise). Default is 0 (no rotation). If you have an attribute that specifies angles in a clockwise direction (compass direction), you have to adjust the angle attribute values before they reach MapServer (360-ANGLE), as it is not possible to use a mathematical expression for ANGLE.? -Jukka Rahkonen- L?hett?j?: MapServer-users > Puolesta Oliver Christen L?hetetty: tiistai 30. toukokuuta 2023 13.59 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0 Dear Mapserver commiters this commit there: https://github.com/MapServer/MapServer/pull/6818 broke a lot of things, like style angles not supporting negative values anymore or label size mandatorily greater than zero (also possibly for symbol) Im not against changes, but changes should be: a) documented b) announced with preferably a deprecation period so, please revert that commit or provide adequate change/documentation for all the breaking changes. Thank you Best regards Oliver Christen -- [https://lh5.googleusercontent.com/4RpzNqlUvMoqWPtwuUWigz1_dKPkUN4OQOKshy_zixf9Gi6JzQJRjs3oHwxYaiADK7htQjUTodRa-OUr4YEKbgs9SsmqPG6QYjqKj3wbXoQ6snhaqq2eEJTeB1FZHKK7SApWcSZk45Fe3w4grA] New address from 1st September 2022 Camptocamp SA Route de la Chaux 4 1030 Bussigny Suisse -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Tue May 30 14:20:27 2023 From: sdlime at gmail.com (Steve Lime) Date: Tue, 30 May 2023 16:20:27 -0500 Subject: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0 In-Reply-To: References: Message-ID: This is my fault... The intention was to localize those bounds checks in a benign manner. However, I should have known that restricting angle to 0-360 might catch someone off guard and loosened that for the 7.6 backport. Those changes had been in the 8.0 branch for many months with zero negative feedback. We could issue a 7.6.6 release with a -360 to 360 range. I've not heard of any other related issues with that change. --Steve On Tue, May 30, 2023 at 7:45?AM Rahkonen Jukka < jukka.rahkonen at maanmittauslaitos.fi> wrote: > Hi, > > > > It looks like Steve Lime was reading the text in the paragraph and not the > line the defines the synopsis and thought that the documentation was > explicit > https://github.com/MapServer/MapServer/issues/6463#issuecomment-1025938850 > > ?since style-level angle documentation refers specifically to 0-360 I > think we should limit from 0-360 if there are no objections?. Or maybe he > was remembering what he was thinking when writing the original code? > > Please make a pull request for improving the documentation, for my mind it > is vague now. > > > > -Jukka Rahkonen- > > > > > > > > *L?hett?j?:* Oliver Christen > *L?hetetty:* tiistai 30. toukokuuta 2023 15.21 > *Vastaanottaja:* Rahkonen Jukka > *Kopio:* mapserver-users at lists.osgeo.org > *Aihe:* Re: [MapServer-users] breaking changes in branch-7-6 after commit > of experimental changes from branch-8-0 > > > > before that commit, the following code was working: > > > > STYLE > COLOR 255 255 255 > SYMBOL "rectangle3" > ANGLE -45 > SIZE 8 > GAP 10 > END > > > > after that commit, it no longer works, as ANGLE -45 is not accepted > anymore, instead it had to be changed to > > > > STYLE > COLOR 255 255 255 > SYMBOL "rectangle3" > ANGLE 315 > SIZE 8 > GAP 10 > END > > > > the documentation https://mapserver.org/mapfile/style.html say it must be > of type DOUBLE, but double can be negative and nothing say explicitly in > the documentation that the value can not be negative. > > > > I see this discussion here: > https://github.com/MapServer/MapServer/issues/6463 > > but no comment if something was done or agreed on about this. > > A note should be added to the documentation to make that clear, as it was > done for label size (see below). > > I can do a PR if that would be acceptable ? > > > > for label size, I see that a note was added saying the value must be > greater than zero on 26 january 2022, so I guess this is on me for not > noticing it (but im not alone not noticing it so I guess it wasnt clearly > stated/announced either) > > > > Best regards > > Oliver > > > > > > > > > > > > > > On Tue, May 30, 2023 at 1:27?PM Rahkonen Jukka < > jukka.rahkonen at maanmittauslaitos.fi> wrote: > > Hi, > > > > Maybe the commit could be adjusted in Mapserver 7. Out of curiosity, what > is the use case for zero sized labels and symbols? To disable them, or? > About the angle, by the Mapserver 7.0 documentation, doesn?t it feel like > negative angles were not thought to work ever? > > > ?Angle, given in degrees, to rotate the symbol (counter clockwise). > Default is 0 (no rotation). If you have an attribute that specifies angles > in a clockwise direction (compass direction), you have to adjust the angle > attribute values before they reach MapServer (360-ANGLE), as it is not > possible to use a mathematical expression for ANGLE.? > > > > -Jukka Rahkonen- > > > > *L?hett?j?:* MapServer-users *Puolesta > *Oliver Christen > *L?hetetty:* tiistai 30. toukokuuta 2023 13.59 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* [MapServer-users] breaking changes in branch-7-6 after commit of > experimental changes from branch-8-0 > > > > Dear Mapserver commiters > > > > this commit there: > > https://github.com/MapServer/MapServer/pull/6818 > > > > broke a lot of things, > > like style angles not supporting negative values anymore or label size > mandatorily greater than zero (also possibly for symbol) > > > > Im not against changes, but changes should be: > > a) documented > > b) announced with preferably a deprecation period > > > > so, please revert that commit or provide adequate change/documentation for > all the breaking changes. > > > > Thank you > > Best regards > > Oliver Christen > > > > -- > > > > > > > *New address from 1st September 2022* > > > > *Camptocamp SA* > > Route de la Chaux 4 > > 1030 Bussigny > > Suisse > > _______________________________________________ > 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: