From kyleqian at gmail.com Sat Mar 5 06:29:07 2022 From: kyleqian at gmail.com (Kyle Qian) Date: Sat, 5 Mar 2022 22:29:07 +0800 Subject: [mapserver-users] How to make label text transparent in map file? Message-ID: Hi, is there anything like "OPACITY" attribute in LABEL section to make label text transparent? I cannot find in MapServer documents. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at blixtmail.se Sat Mar 5 07:30:41 2022 From: lars.schylberg at blixtmail.se (Lars Schylberg) Date: Sat, 5 Mar 2022 16:30:41 +0100 Subject: [mapserver-users] How to make label text transparent in map file? In-Reply-To: References: Message-ID: <96ce7dc0-61f0-68d2-9be0-76f16ac2a28d@blixtmail.se> Hi Kyle, You? specify the color in hex: RGBA * RGBA value (adding translucence): ?#rrggbbaa?. To specify a semi-translucent magenta, the following is used: COLOR "#FF00FFCC" Look at: https://mapserver.org/mapfile/style.html Lars S. Den 2022-03-05 kl. 15:29, skrev Kyle Qian: > Hi, is there anything like "OPACITY" attribute in LABEL section to > make label text?transparent? I cannot find in MapServer documents. > Thanks! > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Tue Mar 8 09:31:06 2022 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 8 Mar 2022 17:31:06 +0000 Subject: [mapserver-users] [REMINDER] OSGeo Local Chapter Meeting (aka TCMUG. Meeting) Message-ID: <1B8062F6-C181-4327-8A0F-0474E606208A@ci.stpaul.mn.us> Hello all, I didn?t get any volunteers for a presentation this month, so going to the face to face route. The meeting will be at Keg and Case, on west 7th street in Saint Paul. Date: Mar. 9th When: 4:30 ? 6:00 (7:00 comedy open Mic too) Bobb Previous meeting recordings can be accessed at the OSGeo chapter page Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Mar 8 10:13:32 2022 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 8 Mar 2022 14:13:32 -0400 Subject: [mapserver-users] [REMINDER] OSGeo Local Chapter Meeting (aka TCMUG. Meeting) In-Reply-To: <1B8062F6-C181-4327-8A0F-0474E606208A@ci.stpaul.mn.us> References: <1B8062F6-C181-4327-8A0F-0474E606208A@ci.stpaul.mn.us> Message-ID: <76fb8177-bd6e-27a2-df9f-5361f4007faa@gatewaygeomatics.com> Bonus points to add that 'Keg and Case' node into OSM while you partake in consuming the 'brown pops' ha: https://www.openstreetmap.org/node/6507015829 On 2022-03-08 1:31 p.m., Basques, Bob (CI-StPaul) wrote: > Hello all, > > I didn?t get any volunteers for a presentation this month, so going to > the face to face route. > > The meeting will be at Keg and Case > , on west 7^th street in Saint Paul. > > Date: Mar. 9^th > > When: 4:30 ? 6:00 (7:00 comedy open Mic too) > > Bobb > > Previous meeting recordings can be accessed at the OSGeo chapter page > > > Get me in Teams > > > *PW19-S295-C024* > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ From jmckenna at gatewaygeomatics.com Tue Mar 8 10:14:58 2022 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 8 Mar 2022 14:14:58 -0400 Subject: [mapserver-users] [REMINDER] OSGeo Local Chapter Meeting (aka TCMUG. Meeting) In-Reply-To: <76fb8177-bd6e-27a2-df9f-5361f4007faa@gatewaygeomatics.com> References: <1B8062F6-C181-4327-8A0F-0474E606208A@ci.stpaul.mn.us> <76fb8177-bd6e-27a2-df9f-5361f4007faa@gatewaygeomatics.com> Message-ID: Oh it's there! My first search didn't work it seems ha. Ok now you can focus only on the meeting instead ;) -jeff On 2022-03-08 2:13 p.m., Jeff McKenna wrote: > Bonus points to add that 'Keg and Case' node into OSM while you partake > in consuming the 'brown pops' ha: > https://www.openstreetmap.org/node/6507015829 > > > > On 2022-03-08 1:31 p.m., Basques, Bob (CI-StPaul) wrote: >> Hello all, >> >> I didn?t get any volunteers for a presentation this month, so going to >> the face to face route. >> >> The meeting will be at Keg and Case >> , on west 7^th street in Saint >> Paul. >> >> Date: Mar. 9^th >> >> When: 4:30 ? 6:00 (7:00 comedy open Mic too) >> >> Bobb >> >> Previous meeting recordings can be accessed at the OSGeo chapter page >> >> >> >> Get me in Teams >> >> >> >> *PW19-S295-C024* >> >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ From bob.basques at ci.stpaul.mn.us Tue Mar 8 10:18:39 2022 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 8 Mar 2022 18:18:39 +0000 Subject: [mapserver-users] [REMINDER] OSGeo Local Chapter Meeting (aka TCMUG. Meeting) In-Reply-To: References: <1B8062F6-C181-4327-8A0F-0474E606208A@ci.stpaul.mn.us> <76fb8177-bd6e-27a2-df9f-5361f4007faa@gatewaygeomatics.com> Message-ID: Jeff, I was just getting to reply something like, "what' it's not there". I remember all the breweries being some of the first stuff located (and for that matter, maintained) in OSM. :c) Bobb ?On 3/8/22, 12:15 PM, "MapServer-users on behalf of Jeff McKenna" wrote: Think Before You Click: This email originated outside our organization. Oh it's there! My first search didn't work it seems ha. Ok now you can focus only on the meeting instead ;) -jeff On 2022-03-08 2:13 p.m., Jeff McKenna wrote: > Bonus points to add that 'Keg and Case' node into OSM while you partake > in consuming the 'brown pops' ha: > https://www.openstreetmap.org/node/6507015829 > > > > On 2022-03-08 1:31 p.m., Basques, Bob (CI-StPaul) wrote: >> Hello all, >> >> I didn?t get any volunteers for a presentation this month, so going to >> the face to face route. >> >> The meeting will be at Keg and Case >> , on west 7^th street in Saint >> Paul. >> >> Date: Mar. 9^th >> >> When: 4:30 ? 6:00 (7:00 comedy open Mic too) >> >> Bobb >> >> Previous meeting recordings can be accessed at the OSGeo chapter page >> >> >> >> Get me in Teams >> >> >> >> *PW19-S295-C024* >> >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- 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 From jmckenna at gatewaygeomatics.com Tue Mar 8 10:20:52 2022 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 8 Mar 2022 14:20:52 -0400 Subject: [mapserver-users] [REMINDER] OSGeo Local Chapter Meeting (aka TCMUG. Meeting) In-Reply-To: References: <1B8062F6-C181-4327-8A0F-0474E606208A@ci.stpaul.mn.us> <76fb8177-bd6e-27a2-df9f-5361f4007faa@gatewaygeomatics.com> Message-ID: <7249aebc-ebfe-1d67-6241-dcb0fceb62ea@gatewaygeomatics.com> Good point Bob, breweries are well done by OSM mappers ha. (it was the '&' versus 'and' in the name that got me) -jeff On 2022-03-08 2:18 p.m., Basques, Bob (CI-StPaul) wrote: > Jeff, > > I was just getting to reply something like, "what' it's not there". I remember all the breweries being some of the first stuff located (and for that matter, maintained) in OSM. :c) > > > Bobb > > > > ?On 3/8/22, 12:15 PM, "MapServer-users on behalf of Jeff McKenna" wrote: > > Think Before You Click: This email originated outside our organization. > > > Oh it's there! My first search didn't work it seems ha. Ok now you can > focus only on the meeting instead ;) > > -jeff > > > > On 2022-03-08 2:13 p.m., Jeff McKenna wrote: > > Bonus points to add that 'Keg and Case' node into OSM while you partake > > in consuming the 'brown pops' ha: > > https://www.openstreetmap.org/node/6507015829 > > > > > > > > On 2022-03-08 1:31 p.m., Basques, Bob (CI-StPaul) wrote: > >> Hello all, > >> > >> I didn?t get any volunteers for a presentation this month, so going to > >> the face to face route. > >> > >> The meeting will be at Keg and Case > >> , on west 7^th street in Saint > >> Paul. > >> > >> Date: Mar. 9^th > >> > >> When: 4:30 ? 6:00 (7:00 comedy open Mic too) > >> > >> Bobb > >> > >> Previous meeting recordings can be accessed at the OSGeo chapter page > >> > >> > >> > >> Get me in Teams > >> > >> > >> > >> *PW19-S295-C024* > >> > >> > >> _______________________________________________ > >> MapServer-users mailing list > >> MapServer-users at lists.osgeo.org > >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > -- > 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 > -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ From bob.basques at ci.stpaul.mn.us Wed Mar 9 10:06:23 2022 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 9 Mar 2022 18:06:23 +0000 Subject: [mapserver-users] [REMINDER] OSGeo Local Chapter Meeting (aka TCMUG. Meeting) Message-ID: Hello all, I didn?t get any volunteers for a presentation this month, so going to the face to face route. The meeting will be at Keg and Case, on west 7th street in Saint Paul. Date: Mar. 9th When: 4:30 ? 6:00 (7:00 comedy open Mic too) I?ll connect up to meet https://meet.jit.si/osgeo_tcmug at the beginning of meeting if anyone wants to join in remotely. Bobb Previous meeting recordings can be accessed at the OSGeo chapter page Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From romanvillarrealh at live.com.mx Sat Mar 12 12:35:14 2022 From: romanvillarrealh at live.com.mx (roman villarreal) Date: Sat, 12 Mar 2022 20:35:14 +0000 Subject: [mapserver-users] Zoom into a query Message-ID: Hi to all I wish all of you are ok, i have a problem and i hope some one of you can help me, for diferente reazons i was working with an old versi?n of mapserver (6.0.3) (i prommise update when finish this proyect) I have a template file for a ITEMNQUERY result, the query sentence Works fine, and locate fine the object to search, but i can?t do a zoom into the query result, only select the object in the map. How can i make a zoom into the resultant object. This is the code of the template file: Plantilla2.php MEX - GIS
Localizaci?n individual de elementos en GIS

El elemento se encuentra en el grupo de [elem]

ID.Elemento: [id_ele]

Nombre: [nm_pozo]


mensaje: [dato]

Escala: 1:[scale]
Really thanks for your answers, ideas and help Regards Rom?n Villarreal -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbo-ads at mailo.com Mon Mar 28 00:35:14 2022 From: jbo-ads at mailo.com (jbo-ads at mailo.com) Date: Mon, 28 Mar 2022 09:35:14 +0200 (CEST) Subject: [mapserver-users] Release of MapCache 1.12.1 Message-ID: The MapServer team is pleased to announce the patch release of MapCache?1.12.1. This fixes an issue affecting only non-fully opaque gdal sources (see PR #282 for details). You can download the source code at . The list of evolutions is found on the Changelog page at Many thanks to everyone how contributed to fix the issue. -- The MapServer team -------------- next part -------------- An HTML attachment was scrubbed... URL: From jason2017jay at gmail.com Mon Mar 28 11:29:54 2022 From: jason2017jay at gmail.com (Jeremy JK) Date: Mon, 28 Mar 2022 14:29:54 -0400 Subject: [mapserver-users] Cannot read shp file from database Message-ID: Hello all, On my virtualbox linuxmint machine I can view a shp file with MapServer when the shp file is on filesystem. When I put it into the database, the browser returns an error message but ogrinfo program can read the database well. See below And thanks for your assistance J *Error*: msLoadMap(): Unknown identifier. Parsing error near (CONNECTIONTYPE):(line 9) *Petition*: http://localhost:8080/cgi-bin/mapserv?map=/opt/mapfile/mapserver_quickstart.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1&LAYERS=Countries&SRS=EPSG:4326&BBOX=-137,29,-53,88&FORMAT=PNG&WIDTH=800&HEIGHT=600 *ogrinfo *PG:"host=127.0.0.1 user=postgres password=StrongAdminP at ssw0rd dbname=news_test_shp port=5432" sample.admintable -summary INFO: Open of `PG:host=127.0.0.1 user=postgres password=StrongAdminP at ssw0rd dbname=news_test_shp port=5432' using driver `PostgreSQL' successful. Layer name: sample.admintable Geometry: Multi Polygon Feature Count: 258 Extent: (-180.000000, -90.000000) - (180.000000, 83.634101) Layer SRS WKT: GEOGCRS["WGS 84", DATUM["World Geodetic System 1984", ELLIPSOID["WGS 84",6378137,298.257223563, LENGTHUNIT["metre",1]]], PRIMEM["Greenwich",0, ANGLEUNIT["degree",0.0174532925199433]], CS[ellipsoidal,2], AXIS["geodetic latitude (Lat)",north, ORDER[1], ANGLEUNIT["degree",0.0174532925199433]], AXIS["geodetic longitude (Lon)",east, ORDER[2], ANGLEUNIT["degree",0.0174532925199433]], ID["EPSG",4326]] Data axis to CRS axis mapping: 2,1 ... +++++++++++++++++++++++++++++++++++++++++++++++++++ *MAP* NAME "MAPSERVER_QUICKSTART" EXTENT -137 29 -53 88 UNITS DD SHAPEPATH "/opt/mapfile" SIZE 800 600 IMAGETYPE PNG24 CONNECTIONTYPE postgis CONNECTION "user=postgres password=StrongAdminP at ssw0rd dbname=news_test_shp host=127.0.0.1 port=5432" DATA "geom from sample.admintable using unique gid using srid=9000913" PROJECTION "init=epsg:4326" END WEB METADATA ows_title "MapServer Quickstart" ows_enable_request "*" ows_srs "EPSG:4326 EPSG:25832 EPSG:25833" END END LAYER NAME "Countries" STATUS ON TYPE POLYGON DATA "ne_10m_admin_0_countries" CLASS STYLE COLOR 246 241 223 OUTLINECOLOR 0 0 0 END END END END ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jason2017jay at gmail.com Mon Mar 28 11:59:57 2022 From: jason2017jay at gmail.com (Jeremy JK) Date: Mon, 28 Mar 2022 14:59:57 -0400 Subject: [mapserver-users] Cannot read shp file from database In-Reply-To: References: Message-ID: Thanks! On Mon, Mar 28, 2022 at 2:52 PM Seth G wrote: > Hi, > > The following 3 lines should all be in your LAYER...END block (and > replacing the current DATA line): > > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=StrongAdminP at ssw0rd > dbname=news_test_shp host=127.0.0.1 port=5432" > DATA "geom from sample.admintable using unique gid using srid=9000913" > > > Seth > -- > web:https://geographika.net > twitter: @geographika > > > On Mon, Mar 28, 2022, at 8:29 PM, Jeremy JK wrote: > > Hello all, > On my virtualbox linuxmint machine I can view a shp file with MapServer > when the shp file is on filesystem. > When I put it into the database, the browser returns an error message > but ogrinfo program can read the database well. > See below > > And thanks for your assistance > J > > *Error*: msLoadMap(): Unknown identifier. Parsing error near > (CONNECTIONTYPE):(line 9) > *Petition*: > http://localhost:8080/cgi-bin/mapserv?map=/opt/mapfile/mapserver_quickstart.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1&LAYERS=Countries&SRS=EPSG:4326&BBOX=-137,29,-53,88&FORMAT=PNG&WIDTH=800&HEIGHT=600 > > > *ogrinfo *PG:"host=127.0.0.1 user=postgres password=StrongAdminP at ssw0rd > dbname=news_test_shp port=5432" sample.admintable -summary > INFO: Open of `PG:host=127.0.0.1 user=postgres password=StrongAdminP at ssw0rd > dbname=news_test_shp port=5432' > using driver `PostgreSQL' successful. > > Layer name: sample.admintable > Geometry: Multi Polygon > Feature Count: 258 > Extent: (-180.000000, -90.000000) - (180.000000, 83.634101) > Layer SRS WKT: > GEOGCRS["WGS 84", > DATUM["World Geodetic System 1984", > ELLIPSOID["WGS 84",6378137,298.257223563, > LENGTHUNIT["metre",1]]], > PRIMEM["Greenwich",0, > ANGLEUNIT["degree",0.0174532925199433]], > CS[ellipsoidal,2], > AXIS["geodetic latitude (Lat)",north, > ORDER[1], > ANGLEUNIT["degree",0.0174532925199433]], > AXIS["geodetic longitude (Lon)",east, > ORDER[2], > ANGLEUNIT["degree",0.0174532925199433]], > ID["EPSG",4326]] > Data axis to CRS axis mapping: 2,1 > ... > > +++++++++++++++++++++++++++++++++++++++++++++++++++ > *MAP* > NAME "MAPSERVER_QUICKSTART" > EXTENT -137 29 -53 88 > UNITS DD > SHAPEPATH "/opt/mapfile" > SIZE 800 600 > > IMAGETYPE PNG24 > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=StrongAdminP at ssw0rd > dbname=news_test_shp host=127.0.0.1 port=5432" > DATA "geom from sample.admintable using unique gid using srid=9000913" > > > PROJECTION > "init=epsg:4326" > END > > WEB > METADATA > ows_title "MapServer Quickstart" > ows_enable_request "*" > ows_srs "EPSG:4326 EPSG:25832 EPSG:25833" > END > END > > LAYER > NAME "Countries" > STATUS ON > TYPE POLYGON > DATA "ne_10m_admin_0_countries" > CLASS > STYLE > COLOR 246 241 223 > OUTLINECOLOR 0 0 0 > END > END > END > > END > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Mon Mar 28 11:52:15 2022 From: sethg at geographika.co.uk (Seth G) Date: Mon, 28 Mar 2022 20:52:15 +0200 Subject: [mapserver-users] Cannot read shp file from database In-Reply-To: References: Message-ID: Hi, The following 3 lines should all be in your LAYER...END block (and replacing the current DATA line): CONNECTIONTYPE postgis CONNECTION "user=postgres password=StrongAdminP at ssw0rd dbname=news_test_shp host=127.0.0.1 port=5432" DATA "geom from sample.admintable using unique gid using srid=9000913" Seth -- web:https://geographika.net twitter: @geographika On Mon, Mar 28, 2022, at 8:29 PM, Jeremy JK wrote: > Hello all, > On my virtualbox linuxmint machine I can view a shp file with MapServer when the shp file is on filesystem. > When I put it into the database, the browser returns an error message > but ogrinfo program can read the database well. > See below > > And thanks for your assistance > J > > *Error*: msLoadMap(): Unknown identifier. Parsing error near (CONNECTIONTYPE):(line 9) > *Petition*: http://localhost:8080/cgi-bin/mapserv?map=/opt/mapfile/mapserver_quickstart.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1&LAYERS=Countries&SRS=EPSG:4326&BBOX=-137,29,-53,88&FORMAT=PNG&WIDTH=800&HEIGHT=600 > > > *ogrinfo *PG:"host=127.0.0.1 user=postgres password=StrongAdminP at ssw0rd dbname=news_test_shp port=5432" sample.admintable -summary > INFO: Open of `PG:host=127.0.0.1 user=postgres password=StrongAdminP at ssw0rd dbname=news_test_shp port=5432' > using driver `PostgreSQL' successful. > > Layer name: sample.admintable > Geometry: Multi Polygon > Feature Count: 258 > Extent: (-180.000000, -90.000000) - (180.000000, 83.634101) > Layer SRS WKT: > GEOGCRS["WGS 84", > DATUM["World Geodetic System 1984", > ELLIPSOID["WGS 84",6378137,298.257223563, > LENGTHUNIT["metre",1]]], > PRIMEM["Greenwich",0, > ANGLEUNIT["degree",0.0174532925199433]], > CS[ellipsoidal,2], > AXIS["geodetic latitude (Lat)",north, > ORDER[1], > ANGLEUNIT["degree",0.0174532925199433]], > AXIS["geodetic longitude (Lon)",east, > ORDER[2], > ANGLEUNIT["degree",0.0174532925199433]], > ID["EPSG",4326]] > Data axis to CRS axis mapping: 2,1 > ... > > +++++++++++++++++++++++++++++++++++++++++++++++++++ > *MAP* > NAME "MAPSERVER_QUICKSTART" > EXTENT -137 29 -53 88 > UNITS DD > SHAPEPATH "/opt/mapfile" > SIZE 800 600 > > IMAGETYPE PNG24 > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=StrongAdminP at ssw0rd dbname=news_test_shp host=127.0.0.1 port=5432" > DATA "geom from sample.admintable using unique gid using srid=9000913" > > > PROJECTION > "init=epsg:4326" > END > > WEB > METADATA > ows_title "MapServer Quickstart" > ows_enable_request "*" > ows_srs "EPSG:4326 EPSG:25832 EPSG:25833" > END > END > > LAYER > NAME "Countries" > STATUS ON > TYPE POLYGON > DATA "ne_10m_admin_0_countries" > CLASS > STYLE > COLOR 246 241 223 > OUTLINECOLOR 0 0 0 > END > END > END > > END > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From public at postholer.com Mon Mar 28 13:52:22 2022 From: public at postholer.com (Scott) Date: Mon, 28 Mar 2022 13:52:22 -0700 Subject: [mapserver-users] Cannot read shp file from database In-Reply-To: References: Message-ID: <9563fdfc-8753-8d09-e05d-baa6e8e2f62a@postholer.com> I think the srid should be 900913 and actually it should probably be 3857. On 3/28/22 11:59, Jeremy JK wrote: > Thanks! > > > On Mon, Mar 28, 2022 at 2:52 PM Seth G > wrote: > > __ > Hi, > > The following 3 lines should all be in your LAYER...END block (and > replacing the current DATA line): > > ? CONNECTIONTYPE postgis > ? CONNECTION "user=postgres password=StrongAdminP at ssw0rd > dbname=news_test_shp host=127.0.0.1 port=5432" > ? DATA "geom from sample.admintable using unique gid using > srid=9000913" > > > Seth > -- > web:https://geographika.net > twitter: @geographika > > > On Mon, Mar 28, 2022, at 8:29 PM, Jeremy JK wrote: >> Hello all, >> On my virtualbox linuxmint machine I can view a shp file?with >> MapServer when the shp file is on filesystem. >> When I put it into the database, the browser returns an error message >> but ogrinfo program can read the database well. >> See below >> >> And thanks for your assistance >> J >> >> *Error*: msLoadMap(): Unknown identifier. Parsing error near >> (CONNECTIONTYPE):(line 9) >> *Petition*: >> http://localhost:8080/cgi-bin/mapserv?map=/opt/mapfile/mapserver_quickstart.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1&LAYERS=Countries&SRS=EPSG:4326&BBOX=-137,29,-53,88&FORMAT=PNG&WIDTH=800&HEIGHT=600 >> >> >> >> *ogrinfo *PG:"host=127.0.0.1 user=postgres >> password=StrongAdminP at ssw0rd dbname=news_test_shp port=5432" >> sample.admintable -summary >> INFO: Open of `PG:host=127.0.0.1 user=postgres >> password=StrongAdminP at ssw0rd dbname=news_test_shp port=5432' >> ? ? ? using driver `PostgreSQL' successful. >> >> Layer name: sample.admintable >> Geometry: Multi Polygon >> Feature Count: 258 >> Extent: (-180.000000, -90.000000) - (180.000000, 83.634101) >> Layer SRS WKT: >> GEOGCRS["WGS 84", >> ? ? DATUM["World Geodetic System 1984", >> ? ? ? ? ELLIPSOID["WGS 84",6378137,298.257223563, >> ? ? ? ? ? ? LENGTHUNIT["metre",1]]], >> ? ? PRIMEM["Greenwich",0, >> ? ? ? ? ANGLEUNIT["degree",0.0174532925199433]], >> ? ? CS[ellipsoidal,2], >> ? ? ? ? AXIS["geodetic latitude (Lat)",north, >> ? ? ? ? ? ? ORDER[1], >> ? ? ? ? ? ? ANGLEUNIT["degree",0.0174532925199433]], >> ? ? ? ? AXIS["geodetic longitude (Lon)",east, >> ? ? ? ? ? ? ORDER[2], >> ? ? ? ? ? ? ANGLEUNIT["degree",0.0174532925199433]], >> ? ? ID["EPSG",4326]] >> Data axis to CRS axis mapping: 2,1 >> ... >> >> +++++++++++++++++++++++++++++++++++++++++++++++++++ >> *MAP* >> ? NAME "MAPSERVER_QUICKSTART" >> ? EXTENT -137 29 -53 88 >> ? UNITS DD >> ? SHAPEPATH "/opt/mapfile" >> ? SIZE 800 600 >> >> ? IMAGETYPE PNG24 >> ? CONNECTIONTYPE postgis >> ? CONNECTION "user=postgres password=StrongAdminP at ssw0rd >> dbname=news_test_shp host=127.0.0.1 port=5432" >> ? DATA "geom from sample.admintable using unique gid using >> srid=9000913" >> >> >> ? PROJECTION >> ? ? "init=epsg:4326" >> ? END >> >> ? WEB >> ? ? METADATA >> ? ? ? ows_title "MapServer Quickstart" >> ? ? ? ows_enable_request "*" >> ? ? ? ows_srs "EPSG:4326 EPSG:25832 EPSG:25833" >> ? ? END >> ? END >> >> ? LAYER >> ? ? NAME "Countries" >> ? ? STATUS ON >> ? ? TYPE POLYGON >> ? ? DATA "ne_10m_admin_0_countries" >> ? ? CLASS >> ? ? ? STYLE >> ? ? ? ? COLOR 246 241 223 >> ? ? ? ? OUTLINECOLOR 0 0 0 >> ? ? ? END >> ? ? END >> ? END >> >> END >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From romanvillarrealh at live.com.mx Mon Mar 28 15:45:06 2022 From: romanvillarrealh at live.com.mx (roman villarreal) Date: Mon, 28 Mar 2022 22:45:06 +0000 Subject: [mapserver-users] center in a map the results of [shpext] Message-ID: Hi list i wish all of you are ok i hope some body can help me, im working with a mapserver templete to display the results of a ITEMQUERY in a map , in that query i get the searched object extents in the [shpext] variable (482125.000035 2152693.999900 482125.000035 2152693.999900) (point) How can i center in the template map the data of [shpext]? , because now, the results displays with the mapfile extents and the results not always are on the center of the map im using a very old versions because is an old proyect (ms4w: 3.0.6, ms: 6.0.3, pmapper: 4.3.2) thaks for all of your help regards Rom?n -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.fricke at skendata.de Tue Mar 29 00:31:04 2022 From: lars.fricke at skendata.de (Lars Fricke) Date: Tue, 29 Mar 2022 09:31:04 +0200 Subject: [mapserver-users] mapserver OGR does not forward BBOX at all In-Reply-To: References: <2d0c3bab-d3a8-972a-13da-b07a24baa8e9@skendata.de> <10b1dc3f-ed06-33d2-f2d1-15def00d5ac7@skendata.de> <4fa6a6c7-38a4-76d9-f49c-6870eb97471b@spatialys.com> <2eb4a26b-2483-d46b-17ac-cd6d52d6d7ed@spatialys.com> Message-ID: An HTML attachment was scrubbed... URL: From lars.fricke at skendata.de Tue Mar 29 01:17:10 2022 From: lars.fricke at skendata.de (Lars Fricke) Date: Tue, 29 Mar 2022 10:17:10 +0200 Subject: [mapserver-users] mapserver OGR does not forward BBOX at all In-Reply-To: <018a01d84343$e7882a00$b6987e00$@gmail.com> References: <2d0c3bab-d3a8-972a-13da-b07a24baa8e9@skendata.de> <10b1dc3f-ed06-33d2-f2d1-15def00d5ac7@skendata.de> <4fa6a6c7-38a4-76d9-f49c-6870eb97471b@spatialys.com> <2eb4a26b-2483-d46b-17ac-cd6d52d6d7ed@spatialys.com> <018a01d84343$e7882a00$b6987e00$@gmail.com> Message-ID: <81faf865-aba1-ca65-9987-5c8acd418e29@skendata.de> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ground_reference_values_ni.xml Type: text/xml Size: 13132 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x667E0B7B73E250FB.asc Type: application/pgp-keys Size: 2460 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: From public at postholer.com Tue Mar 29 07:05:57 2022 From: public at postholer.com (Scott) Date: Tue, 29 Mar 2022 07:05:57 -0700 Subject: [mapserver-users] mapserver OGR does not forward BBOX at all In-Reply-To: <81faf865-aba1-ca65-9987-5c8acd418e29@skendata.de> References: <2d0c3bab-d3a8-972a-13da-b07a24baa8e9@skendata.de> <10b1dc3f-ed06-33d2-f2d1-15def00d5ac7@skendata.de> <4fa6a6c7-38a4-76d9-f49c-6870eb97471b@spatialys.com> <2eb4a26b-2483-d46b-17ac-cd6d52d6d7ed@spatialys.com> <018a01d84343$e7882a00$b6987e00$@gmail.com> <81faf865-aba1-ca65-9987-5c8acd418e29@skendata.de> Message-ID: <534005eb-9168-c886-56e5-7413e21e1544@postholer.com> In your request you have a typeName=tiger:tigerRoads. In your map file the wfs_typename is GROUND_REFERENCE_VALUES_NI_int On 3/29/22 01:17, Lars Fricke wrote: > Hi, > thank you for the fast reply. Unfortunately, even with the srs given > with the bbox the "Fetch" command does not forward any bbox at all. So > mapserver / OGR fetches up to the max number of features given no matter > where they are located. They are then filtered out by mapserver using > the original bbox because they do not fit (just the first 500 or so). > > Mapfile layer definition (sorry I forgot): > LAYER > ??? NAME "GROUND_REFERENCE_VALUES_NI" > ??? UNITS METERS > ??? TYPE POLYGON > ??? DEBUG? "5" > ??? CONNECTION "ground_reference_values_ni.xml" > ??? CONNECTIONTYPE OGR > ??? STATUS ON > ??? DATA "boris:BR_BodenrichtwertZonal" > ??? METADATA > ????? "wfs_srs" "EPSG:25832" > ????? "wfs_version"??? "1.1.0" > ????? "wfs_storedquery_id" "" > ????? "wfs_title"??? "GROUND_REFERENCE_VALUES_NI" > ????? "wfs_connectiontimeout" "30" > ????? "wfs_typename"??? "GROUND_REFERENCE_VALUES_NI_int" > ????? "wfs_maxfeatures"?????? "500" > ????? "gml_include_items" "all" > ????? "wfs_enable_request" "*" > ????? "gml_featureid"???? "gml_id" > > ??? END # METADATA > > ??? PROJECTION > ????? "init=epsg:25832" > ??? END # PROJECTION > ??? CLASS > ????? NAME "reference_map" > ????? STYLE > ??????? OUTLINECOLOR 255 0 0 > ??????? WIDTH 0.7 > ????? END # STYLE > ??? END # CLASS > ? END # LAYER > > The XML file referenced is in attach. > > Best > Lars > > Am 29.03.22 um 10:06 schrieb artclifford at gmail.com: >> >> Hi Lars, >> >> Might this help? >> >> geoserver - WFS and WMS query SRS parameter and BBOX usage - >> Geographic Information Systems Stack Exchange >> >> >> I haven?t done much with the WFS tech but based on the link above, you >> may need to provide the crs info for the bbox. >> >> In their example: >> >> http://demo.geo-solutions.it/geoserver/tiger/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=tiger:tiger_roads&srsName=EPSG:3857&bbox=40.7,-74,40.8,-73,urn:ogc:def:crs:EPSG:4326&maxFeatures=1 >> >> >> Note the bbox is defined as: >> bbox=40.7,-74,40.8,-73,urn:ogc:def:crs:EPSG:4326 >> >> >> If your bbox is the same as the requested projection: >> your bbox in the wfs request would be: >> >> BBOX=545592,5806696,548144,5810131,urn:ogc:def:crs: EPSG:25832 >> >> Or the epsg code at the end would be whatever units your bbox is in. >> Note, the bbox EPSG code can be different than the srsName >> >> >> >> *From:* MapServer-users *On >> Behalf Of *Lars Fricke >> *Sent:* Tuesday, March 29, 2022 12:31 AM >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* [mapserver-users] mapserver OGR does not forward BBOX at all >> >> Hi All, >> >> First of all, thank you for your support and great work on Mapserver! >> >> I have a strange issue using either OGR WFS driver on Mapserver >> 7.6.4-1 or ogrinfo (GDAL 3.0.4, released 2020/01/28) on Ubuntu 20. >> >> When I call on a particular public server, mapserver / gdal / ogr does >> not seem to forward the bbox. I had a similar issue before (over a >> year ago) on another server but this was fixed by an update in GDAL it >> seemed. >> >> The Server is >> >> `https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?` >> >> The Layer is >> `boris:BR_BodenrichtwertZonal` >> >> A direct call from the browser works: >> >> `https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&SRSNAME=EPSG:25832&BBOX=545592,5806696,548144,5810131&TYPENAMES=boris:BR_BodenrichtwertZonal >> ` >> >> I can see in Mapserver log (CONFIG "CPL_DEBUG" "ON"? CONFIG >> "PROJ_DEBUG" "ON") that the BBOX is missing: >> >> `Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS&VERSION=1.1.0&MAXFEATURES=500&SRSNAME=EPSG:25832&TRUST_CAPABILITIES_BOUNDS=YES&REQUEST=GetFeature&TYPENAME=boris:BR_BodenrichtwertZonal >> )` >> >> By the way, it does not matter if WFS 1.1.0 or 2.0.0 are used. >> >> Trying with ogrinfo: >> ``` >> ogrinfo -ro -spat 545592 5806696 548144 5810131 >> WFS:"https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022" >> >> "boris:BR_BodenrichtwertZonal" >> >> INFO: Open of >> `WFS:https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022' >> ????? using driver `WFS' successful. >> Metadata: >> ? ABSTRACT=BORIS 2022 WFS by XtraServer >> ? PROVIDER_NAME=Landesamt f?r Geoinformation und Landesvermessung >> Niedersachsen (LGLN) - Landesbetrieb Landesvermessung und >> Geobasisinformation >> ? TITLE=BORIS 2022 WFS >> ERROR 1: No schema information loaded >> Warning 1: NAS: Skipping geometry without feature >> >> Layer name: boris:BR_BodenrichtwertZonal >> Metadata: >> ? TITLE=boris_BR_BodenrichtwertZonal >> Geometry: None >> Feature Count: 33931 >> ``` >> There should be some 62 Features in that bbox. >> >> Any help is much appreciated. >> >> Best >> >> Lars >> > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From sdlime at gmail.com Wed Mar 30 13:30:07 2022 From: sdlime at gmail.com (Steve Lime) Date: Wed, 30 Mar 2022 15:30:07 -0500 Subject: [mapserver-users] center in a map the results of [shpext] In-Reply-To: References: Message-ID: Trying to work up a demo that shows a couple of ways to do this... --Steve On Mon, Mar 28, 2022 at 5:45 PM roman villarreal < romanvillarrealh at live.com.mx> wrote: > Hi list i wish all of you are ok > > i hope some body can help me, im working with a mapserver templete to > display the results of a ITEMQUERY in a map , in that query i get the > searched object extents in the [shpext] variable (482125.000035 > 2152693.999900 482125.000035 2152693.999900) (point) > > How can i center in the template map the data of [shpext]? , because now, > the results displays with the mapfile extents and the results not always > are on the center of the map > > im using a very old versions because is an old proyect (ms4w: 3.0.6, ms: > 6.0.3, pmapper: 4.3.2) > > thaks for all of your help > > regards > > Rom?n > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.fricke at skendata.de Thu Mar 31 03:58:57 2022 From: lars.fricke at skendata.de (Lars Fricke) Date: Thu, 31 Mar 2022 12:58:57 +0200 Subject: [mapserver-users] mapserver OGR does not forward BBOX at all In-Reply-To: <534005eb-9168-c886-56e5-7413e21e1544@postholer.com> References: <2d0c3bab-d3a8-972a-13da-b07a24baa8e9@skendata.de> <10b1dc3f-ed06-33d2-f2d1-15def00d5ac7@skendata.de> <4fa6a6c7-38a4-76d9-f49c-6870eb97471b@spatialys.com> <2eb4a26b-2483-d46b-17ac-cd6d52d6d7ed@spatialys.com> <018a01d84343$e7882a00$b6987e00$@gmail.com> <81faf865-aba1-ca65-9987-5c8acd418e29@skendata.de> <534005eb-9168-c886-56e5-7413e21e1544@postholer.com> Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x667E0B7B73E250FB.asc Type: application/pgp-keys Size: 2460 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: From bob.basques at ci.stpaul.mn.us Thu Mar 31 07:08:39 2022 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 31 Mar 2022 14:08:39 +0000 Subject: [mapserver-users] [PRESENTER INVITATION] OSGeo Local Chapter "Twin Cities, MN, USA" Meeting Message-ID: <210387FD-B2B7-44A3-80EA-1A1E84652B92@ci.stpaul.mn.us> All, This is an invitation to any and all, to virtually present at our local chapter meeting this coming April 13th. Anything Geo focused. Typically only need to be 20-30 minutes long, with questions afterwards. I?ll take care of invites, recording and introductions. Time: 4:30 pm ? 6:00pm CDT Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.fricke at skendata.de Thu Mar 31 23:30:32 2022 From: lars.fricke at skendata.de (Lars Fricke) Date: Fri, 1 Apr 2022 08:30:32 +0200 Subject: [mapserver-users] mapserver OGR does not forward BBOX at all In-Reply-To: <5cbd238f0a5f42d1a7df31b65ade8423@maanmittauslaitos.fi> References: <5cbd238f0a5f42d1a7df31b65ade8423@maanmittauslaitos.fi> Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x667E0B7B73E250FB.asc Type: application/pgp-keys Size: 2460 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: