From gamejihou at hotmail.com Sun Feb 1 14:28:42 2015 From: gamejihou at hotmail.com (Gery) Date: Sun, 1 Feb 2015 14:28:42 -0800 (PST) Subject: [mapserver-users] compiling error core.c in mapcache with cygwin In-Reply-To: References: Message-ID: <1422829722708-5184927.post@n6.nabble.com> Sorry for bumping this old thread, but any chances to get support in order to change core.c so mapcache can work in cygwin without (apr) threads enabled? would you have a core.c patched version? Thanks for any pointers. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/compiling-error-core-c-in-mapcache-with-cygwin-tp5179881p5184927.html Sent from the Mapserver - User mailing list archive at Nabble.com. From zachc1980 at gmail.com Wed Feb 4 09:34:21 2015 From: zachc1980 at gmail.com (zach cruise) Date: Wed, 4 Feb 2015 12:34:21 -0500 Subject: [mapserver-users] how to create vectiles from geojson? Message-ID: looks like we need vectiles but i am not sure if i create them in postgis or geoserver/mapserver. does anyone know? we have a large static geojson file that needs to be chunked up into vectiles for different zooms and bounds. but before i apply regex on it, is there already a solution out there? http://tilestache.org/ From fricke at gisberater.com Wed Feb 4 23:50:44 2015 From: fricke at gisberater.com (Lars Fricke) Date: Thu, 05 Feb 2015 08:50:44 +0100 Subject: [mapserver-users] how to create vectiles from geojson? In-Reply-To: References: Message-ID: <54D320D4.7040201@gisberater.com> Hello Zach, I'm not sure if I understood completely what you need. If you need to get a large GeoJSON into a webserver (be it WMS (rendered image tiles) or WFS (vector data in a specified bounding box and format)), I'd try the following ways: 1. a) Convert the GeoJSON to Shape using QGIS (make sure displaying loaded data files automatically is off) 1. b) Import Shapefile into PostGIS DB (PostgreSQL with activated PostGIS extension) 1 c) Use this DB as source for Mapserver (http://mapserver.org/input/vector/postgis.html) and do any WFS or WMS requests needed, Mapserver will handle the zooms and bounds. You may want to use OpenLayers or Leaflet (or something else handling WMS/WFS) to display the map. 2. a) Use the description in this link to import the GeoJSON into PostGIS (I have not tried it, I normally use QGIS but if the file is very very large...) https://geekforum.wordpress.com/2014/05/30/using-postgis-the-geographical-information-system-extension-to-postgresql/ 2. b) the rest is the same as above. I hope this helps you some. Cheers Lars Am 04.02.2015 um 18:34 schrieb zach cruise: > looks like we need vectiles but i am not sure if i create them in > postgis or geoserver/mapserver. > > does anyone know? > > we have a large static geojson file that needs to be chunked up into > vectiles for different zooms and bounds. but before i apply regex on > it, is there already a solution out there? > > http://tilestache.org/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jcigar at ulb.ac.be Thu Feb 5 05:41:40 2015 From: jcigar at ulb.ac.be (Julien Cigar) Date: Thu, 5 Feb 2015 14:41:40 +0100 Subject: [mapserver-users] copyright, logos, etc Message-ID: <20150205134140.GI1563@mordor.lan> Hello, I'm using Mapserver to generate maps for various PostGIS layers and it works pretty well, especially with SLD to filter WMS requests. Now the users want to include: - a logo (PNG file) in the upper right corner - a copyright text at the bottom center of the page - a text "generated at ..." with the date For now I have the following MAP file: https://gist.github.com/silenius/545d479132981dc5a55a (only relevant parts are shown) For the logo and the copyright text it works more or less (although it seems "?ber complicated" for such simple thing, but maybe there is a simpler way of doing it ?), the only problem I have is that if I change the WIDTH and HEIGHT of the map the things disappear, as the POINTS in the FEATURE section don't fit the map size. I wonder if there is a simple way to tell Mapserver to "just put that 20px .PNG file in the upper right corner of the generated map" or something like that .. ? Any idea how could I do for the generated date ? Thanks ! Julien -- Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: From lars.schylberg at saabgroup.com Fri Feb 6 07:05:33 2015 From: lars.schylberg at saabgroup.com (Schylberg Lars) Date: Fri, 6 Feb 2015 15:05:33 +0000 Subject: [mapserver-users] WMS SRS as variable Message-ID: Hello, I wonder if there is a way to set SRS as a variable in a map file. I have one map file that uses several other WMS clients that also are mapfiles. I would like to use the SRS as variable to make the WMS service more flexible. I have tried to do VALIDATION on SRS variable, but that only gives errors. Thanks /Lars S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Fri Feb 6 07:31:19 2015 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Fri, 6 Feb 2015 15:31:19 +0000 Subject: [mapserver-users] [EXTERNAL] WMS SRS as variable Message-ID: Lars, A WMS map can support multiple SRS's. Just list all the ones you want in the METADATA block. Look at http://mapserver.org/ogc/wms_server.html and specifically the Map PROJECTION and wms_srs metadata. From the example, you can see that 2 SRS's are supported. METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://my.host.com/cgi-bin/mapserv?map=wms.map&" "wms_srs" "EPSG:4269 EPSG:4326" END Just keep adding to the list to support more projections. Mike From: Schylberg Lars > Date: Friday, February 6, 2015 at 10:05 AM To: "mapserver-users at lists.osgeo.org" > Subject: [EXTERNAL] [mapserver-users] WMS SRS as variable Resent-From: Michael Smith > Hello, I wonder if there is a way to set SRS as a variable in a map file. I have one map file that uses several other WMS clients that also are mapfiles. I would like to use the SRS as variable to make the WMS service more flexible. I have tried to do VALIDATION on SRS variable, but that only gives errors. Thanks /Lars S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at saabgroup.com Mon Feb 9 01:26:57 2015 From: lars.schylberg at saabgroup.com (Schylberg Lars) Date: Mon, 9 Feb 2015 09:26:57 +0000 Subject: [mapserver-users] [EXTERNAL] WMS SRS as variable In-Reply-To: References: Message-ID: Mike, Thanks for your reply, but it is when I call the wms services as a client I get the errors already in the validation. I would like to do something like this: But I guess I am doing something that is not meant to be this way. MAP NAME MAP_MAIN SIZE 1000 1000 CONFIG "PROJ_LIB" './' UNITS dd EXTENT 9.624750 52.33333 30.333333 66.500000 PROJECTION 'init=epsg:4326' END IMAGETYPE png FONTSET './fonts/fontset.lst' SYMBOLSET "./symbols/symbols.sym" OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END SHAPEPATH ../data/shape WEB IMAGEPATH '/tmp/' IMAGEURL '/tmp/' METADATA "ows_enable_request" "*" 'wms_title' 'MAP_MAIN' 'wms_srs' 'EPSG:32633 EPSG:3006 EPSG:900913 EPSG:4326' "labelcache_map_edge_buffer" "-10" END END VALIDATION "srs" "^[0-9]{4,5)$" END ############### Layer 0 as WMS request LAYER NAME "WMS-layer-0" OFFSITE 200 0 0 TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://localhost/cgi-bin/mapserv?map=/var/www/html/map0.map" METADATA "wms_srs" 'EPSG:''%srs%' "wms_name" "map0" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_exceptions_format" "application/vnd.ogc.se_inimage" END END #layer ############### Layer 1 as WMS request LAYER NAME "WMS-layer-1" OFFSITE 200 0 0 TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://localhost/cgi-bin/mapserv?map=/var/www/html/map1.map" METADATA "wms_srs" 'EPSG:''%srs%' "wms_name" "map1" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_exceptions_format" "application/vnd.ogc.se_inimage" END END #layer END # Map From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: den 6 februari 2015 16:31 To: Schylberg Lars; mapserver-users at lists.osgeo.org Subject: Re: [EXTERNAL] [mapserver-users] WMS SRS as variable Lars, A WMS map can support multiple SRS's. Just list all the ones you want in the METADATA block. Look at http://mapserver.org/ogc/wms_server.html and specifically the Map PROJECTION and wms_srs metadata. From the example, you can see that 2 SRS's are supported. METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://my.host.com/cgi-bin/mapserv?map=wms.map&" "wms_srs" "EPSG:4269 EPSG:4326" END Just keep adding to the list to support more projections. Mike From: Schylberg Lars > Date: Friday, February 6, 2015 at 10:05 AM To: "mapserver-users at lists.osgeo.org" > Subject: [EXTERNAL] [mapserver-users] WMS SRS as variable Resent-From: Michael Smith > Hello, I wonder if there is a way to set SRS as a variable in a map file. I have one map file that uses several other WMS clients that also are mapfiles. I would like to use the SRS as variable to make the WMS service more flexible. I have tried to do VALIDATION on SRS variable, but that only gives errors. Thanks /Lars S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Mon Feb 9 03:02:39 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 9 Feb 2015 11:02:39 +0000 Subject: [mapserver-users] [EXTERNAL] WMS SRS as variable Message-ID: Hi, Ok, I start to understand little by little. It is not about making your Mapserver to support several SRS in output, it is about making your Mapserver to send GetMaps to cascaded remote WMS services by using the most reasonable SRS in the request, that is, usually the same SRS as used for output so that Mapserver does not need to do interim warping. I suggest to include enough from the mapfile for making the questions and answers understandable. Let's take this sample from http://mapserver.org/ogc/wms_client.html LAYER NAME "country_bounds" TYPE RASTER STATUS ON CONNECTION "http://demo.mapserver.org/cgi-bin/wms?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" #<=== THIS CAN BE A SPACE SEPARATED LIST "wms_name" "country_bounds" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END You would like to use variable substitution in "wms_srs" "EPSG:%srs%". That is not possible because there are only a few places where substitutions can be used. See http://mapserver.org/cgi/runsub.html and Parameters supported. However, if you want to support output in 'EPSG:32633 EPSG:3006 EPSG:900913 EPSG:4326' you can use the same list in the "wms_srs" metadata item of the cascaded WMS layer. Then if you want output in EPSG:32633 Mapserver will use the same SRS in GetMaps that it is creating and I suppose that it is your goal. Be aware with EPSG:900913, recent Mapservers do not support it out-of-the-box but you must edit the epsg projection file manually. It would better to use EPSG:3857 instead but then the remote WMS should also understand the meaning of EPSG:3857 . If request rewriting is absolutely needed, like you want to send out EPSG:3857 but remote WMS understands only EPSG:900913 or you need to do some other tailored mapping between the codes, then I suppose you should use some miraculous mapscript for rewriting the mapfile. -Jukka Rahkonen- Schylberg Lars wrote: Mike, Thanks for your reply, but it is when I call the wms services as a client I get the errors already in the validation. I would like to do something like this: But I guess I am doing something that is not meant to be this way. MAP NAME MAP_MAIN SIZE 1000 1000 CONFIG "PROJ_LIB" './' UNITS dd EXTENT 9.624750 52.33333 30.333333 66.500000 PROJECTION 'init=epsg:4326' END IMAGETYPE png FONTSET './fonts/fontset.lst' SYMBOLSET "./symbols/symbols.sym" OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END SHAPEPATH ../data/shape WEB IMAGEPATH '/tmp/' IMAGEURL '/tmp/' METADATA "ows_enable_request" "*" 'wms_title' 'MAP_MAIN' 'wms_srs' 'EPSG:32633 EPSG:3006 EPSG:900913 EPSG:4326' "labelcache_map_edge_buffer" "-10" END END VALIDATION "srs" "^[0-9]{4,5)$" END ############### Layer 0 as WMS request LAYER NAME "WMS-layer-0" OFFSITE 200 0 0 TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://localhost/cgi-bin/mapserv?map=/var/www/html/map0.map" METADATA "wms_srs" 'EPSG:''%srs%' "wms_name" "map0" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_exceptions_format" "application/vnd.ogc.se_inimage" END END #layer ############### Layer 1 as WMS request LAYER NAME "WMS-layer-1" OFFSITE 200 0 0 TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://localhost/cgi-bin/mapserv?map=/var/www/html/map1.map" METADATA "wms_srs" 'EPSG:''%srs%' "wms_name" "map1" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_exceptions_format" "application/vnd.ogc.se_inimage" END END #layer END # Map From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: den 6 februari 2015 16:31 To: Schylberg Lars; mapserver-users at lists.osgeo.org Subject: Re: [EXTERNAL] [mapserver-users] WMS SRS as variable Lars, A WMS map can support multiple SRS's. Just list all the ones you want in the METADATA block. Look at http://mapserver.org/ogc/wms_server.html and specifically the Map PROJECTION and wms_srs metadata. From the example, you can see that 2 SRS's are supported. METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://my.host.com/cgi-bin/mapserv?map=wms.map&" "wms_srs" "EPSG:4269 EPSG:4326" END Just keep adding to the list to support more projections. Mike From: Schylberg Lars > Date: Friday, February 6, 2015 at 10:05 AM To: "mapserver-users at lists.osgeo.org" > Subject: [EXTERNAL] [mapserver-users] WMS SRS as variable Resent-From: Michael Smith > Hello, I wonder if there is a way to set SRS as a variable in a map file. I have one map file that uses several other WMS clients that also are mapfiles. I would like to use the SRS as variable to make the WMS service more flexible. I have tried to do VALIDATION on SRS variable, but that only gives errors. Thanks /Lars S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at saabgroup.com Mon Feb 9 06:14:31 2015 From: lars.schylberg at saabgroup.com (Schylberg Lars) Date: Mon, 9 Feb 2015 14:14:31 +0000 Subject: [mapserver-users] [EXTERNAL] WMS SRS as variable In-Reply-To: References: Message-ID: <04aea9ff72f441a895f44066cc69997a@corpappl843.corp.saab.se> Thanks Jukka, It works! I had missed the detail that you could have space separated list in wms_srs specification. Now I have to see if I can the layers to work also in the cascading WMS services. You are right about the google proj. I should change to 3857 even if I full control right now. /Lars From: Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] Sent: den 9 februari 2015 12:03 To: Schylberg Lars; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] [EXTERNAL] WMS SRS as variable Hi, Ok, I start to understand little by little. It is not about making your Mapserver to support several SRS in output, it is about making your Mapserver to send GetMaps to cascaded remote WMS services by using the most reasonable SRS in the request, that is, usually the same SRS as used for output so that Mapserver does not need to do interim warping. I suggest to include enough from the mapfile for making the questions and answers understandable. Let's take this sample from http://mapserver.org/ogc/wms_client.html LAYER NAME "country_bounds" TYPE RASTER STATUS ON CONNECTION "http://demo.mapserver.org/cgi-bin/wms?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" #<=== THIS CAN BE A SPACE SEPARATED LIST "wms_name" "country_bounds" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END You would like to use variable substitution in "wms_srs" "EPSG:%srs%". That is not possible because there are only a few places where substitutions can be used. See http://mapserver.org/cgi/runsub.html and Parameters supported. However, if you want to support output in 'EPSG:32633 EPSG:3006 EPSG:900913 EPSG:4326' you can use the same list in the "wms_srs" metadata item of the cascaded WMS layer. Then if you want output in EPSG:32633 Mapserver will use the same SRS in GetMaps that it is creating and I suppose that it is your goal. Be aware with EPSG:900913, recent Mapservers do not support it out-of-the-box but you must edit the epsg projection file manually. It would better to use EPSG:3857 instead but then the remote WMS should also understand the meaning of EPSG:3857 . If request rewriting is absolutely needed, like you want to send out EPSG:3857 but remote WMS understands only EPSG:900913 or you need to do some other tailored mapping between the codes, then I suppose you should use some miraculous mapscript for rewriting the mapfile. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From geographika at gmail.com Mon Feb 9 06:30:34 2015 From: geographika at gmail.com (geographika) Date: Mon, 09 Feb 2015 15:30:34 +0100 Subject: [mapserver-users] MapServer Environment Variables and IIS Message-ID: <54D8C48A.8010401@gmail.com> Hi list, There seems to be an issue with running FastCGI under IIS 7.5 and environment variables used by MapServer. I need to point to a curl-ca-bundle.crt file to access a remote WFS server, and it appears this can only be set using an environment variable named CURL_CA_BUNDLE. In brief, if I run the following from the command line: mapserv -nh "QUERY_STRING=map=C:\Mapserver\apps\test\test.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities" My error log contains [Mon Feb 09 14:47:29 2015].66000 HTTP: Starting to prepare HTTP requests. [Mon Feb 09 14:47:29 2015].66000 Using CURL_CA_BUNDLE=curl-ca-bundle.crt If I run http://localhost/mapserver/?map=C:\Mapserver\apps\test\test.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities in the browser the "Using CURL_CA_BUNDLE" line does not appear and my certs are not found. It appears this is not limited to this variable - setting MS_ERRORLOG as a system variable is also ignored. I have checked that the variables are available using a Python script running in IIS. I've also tried setting up custom environment variables for the FastCGI app, played with all sorts of permissions, but no luck. Tamas's blog mentions: "The main issue here is that most of the libararies use *getenv *to retrieve the environment setting, which operates only on the data structures accessible to the run-time library (msvcrt) and not on the environment "segment" created for the process by the operating system." http://blog.gisinternals.com/2010/12/daily-built-binary-packages-for.html However I'm not sure what the workaround here is exactly. This issue appears to have come up before on the list - http://lists.osgeo.org/pipermail/mapserver-users/2014-February/075983.html Any help appreciated. Regards, Seth -- web:http://geographika.co.uk twitter: @geographika -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Feb 9 08:02:39 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 09 Feb 2015 12:02:39 -0400 Subject: [mapserver-users] MapServer Environment Variables and IIS In-Reply-To: <54D8C48A.8010401@gmail.com> References: <54D8C48A.8010401@gmail.com> Message-ID: <54D8DA1F.9060109@gatewaygeomatics.com> On 2015-02-09 10:30 AM, geographika wrote: > Hi list, > > There seems to be an issue with running FastCGI under IIS 7.5 and > environment variables used by MapServer. I need to point to a > curl-ca-bundle.crt file to access a remote WFS server, and it appears > this can only be set using an environment variable named CURL_CA_BUNDLE. > > In brief, if I run the following from the command line: > > mapserv -nh > "QUERY_STRING=map=C:\Mapserver\apps\test\test.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities" > > My error log contains > > [Mon Feb 09 14:47:29 2015].66000 HTTP: Starting to prepare HTTP requests. > [Mon Feb 09 14:47:29 2015].66000 Using CURL_CA_BUNDLE=curl-ca-bundle.crt > > If I run > http://localhost/mapserver/?map=C:\Mapserver\apps\test\test.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities > in the browser the "Using CURL_CA_BUNDLE" line does not appear and my > certs are not found. > It appears this is not limited to this variable - setting MS_ERRORLOG as > a system variable is also ignored. > > I have checked that the variables are available using a Python script > running in IIS. I've also tried setting up custom environment variables > for the FastCGI app, played with all sorts of permissions, but no luck. > > Tamas's blog mentions: > > "The main issue here is that most of the libararies use *getenv *to > retrieve the environment setting, which operates only on the data > structures accessible to the run-time library (msvcrt) and not on the > environment "segment" created for the process by the operating system." > > http://blog.gisinternals.com/2010/12/daily-built-binary-packages-for.html > > However I'm not sure what the workaround here is exactly. > This issue appears to have come up before on the list - > http://lists.osgeo.org/pipermail/mapserver-users/2014-February/075983.html > Any help appreciated. > > Regards, > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > > > > MS4W sets that environment variable through an Apache directive; for IIS clients using MS4W, I always make sure to set System (not User) environment variables, and always always reboot the server manually after setting these variables (for some reason, whenever I set this up with MS4W on IIS I have to reboot the client's server for IIS to "see" them). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From geographika at gmail.com Mon Feb 9 09:03:56 2015 From: geographika at gmail.com (geographika) Date: Mon, 09 Feb 2015 18:03:56 +0100 Subject: [mapserver-users] MapServer Environment Variables and IIS In-Reply-To: <54D8DA1F.9060109@gatewaygeomatics.com> References: <54D8C48A.8010401@gmail.com> <54D8DA1F.9060109@gatewaygeomatics.com> Message-ID: <54D8E87C.1000802@gmail.com> Thanks Jeff. The environment variable is definitely set in system variables, and I've rebooted a few times now. It also happens on both a w08r2 server and a Windows 7 machine. I can see it in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment I'm using x64 MapServer, but the environment variables appear in my x64 Python script. I had this working a couple of years ago, and tried to see if anything has changed in the MS source since but no luck. I think I should also be able to set it in the web.config using the following, but also no luck: Regards, Seth On 09/02/2015 17:02, Jeff McKenna wrote: > On 2015-02-09 10:30 AM, geographika wrote: >> Hi list, >> >> There seems to be an issue with running FastCGI under IIS 7.5 and >> environment variables used by MapServer. I need to point to a >> curl-ca-bundle.crt file to access a remote WFS server, and it appears >> this can only be set using an environment variable named CURL_CA_BUNDLE. >> >> In brief, if I run the following from the command line: >> >> mapserv -nh >> "QUERY_STRING=map=C:\Mapserver\apps\test\test.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities" >> >> >> My error log contains >> >> [Mon Feb 09 14:47:29 2015].66000 HTTP: Starting to prepare HTTP >> requests. >> [Mon Feb 09 14:47:29 2015].66000 Using CURL_CA_BUNDLE=curl-ca-bundle.crt >> >> If I run >> http://localhost/mapserver/?map=C:\Mapserver\apps\test\test.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities >> >> in the browser the "Using CURL_CA_BUNDLE" line does not appear and my >> certs are not found. >> It appears this is not limited to this variable - setting MS_ERRORLOG as >> a system variable is also ignored. >> >> I have checked that the variables are available using a Python script >> running in IIS. I've also tried setting up custom environment variables >> for the FastCGI app, played with all sorts of permissions, but no luck. >> >> Tamas's blog mentions: >> >> "The main issue here is that most of the libararies use *getenv *to >> retrieve the environment setting, which operates only on the data >> structures accessible to the run-time library (msvcrt) and not on the >> environment "segment" created for the process by the operating system." >> >> http://blog.gisinternals.com/2010/12/daily-built-binary-packages-for.html >> >> >> However I'm not sure what the workaround here is exactly. >> This issue appears to have come up before on the list - >> http://lists.osgeo.org/pipermail/mapserver-users/2014-February/075983.html >> >> Any help appreciated. >> >> Regards, >> >> Seth >> >> -- >> web:http://geographika.co.uk >> twitter: @geographika >> >> >> >> > > MS4W sets that environment variable through an Apache directive; for > IIS clients using MS4W, I always make sure to set System (not User) > environment variables, and always always reboot the server manually > after setting these variables (for some reason, whenever I set this up > with MS4W on IIS I have to reboot the client's server for IIS to "see" > them). > > -jeff > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Feb 9 12:48:29 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 09 Feb 2015 16:48:29 -0400 Subject: [mapserver-users] MapServer Environment Variables and IIS In-Reply-To: <54D8E87C.1000802@gmail.com> References: <54D8C48A.8010401@gmail.com> <54D8DA1F.9060109@gatewaygeomatics.com> <54D8E87C.1000802@gmail.com> Message-ID: <54D91D1D.2050801@gatewaygeomatics.com> On 2015-02-09 1:03 PM, geographika wrote: > Thanks Jeff. > The environment variable is definitely set in system variables, and I've > rebooted a few times now. It also happens on both a w08r2 server and a > Windows 7 machine. > I can see it in > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session > Manager\Environment > I'm using x64 MapServer, but the environment variables appear in my x64 > Python script. > I had this working a couple of years ago, and tried to see if anything > has changed in the MS source since but no luck. > > I think I should also be able to set it in the web.config using the > following, but also no luck: > > > > > value="C:\Mapserver\bin\curl\curl-ca-bundle.crt" /> > > > > > Regards, > > Seth > > I think I may been in your exact shoes once, and it was a problem with the Curl library in the MapServer build (I believe Curl is used for this certification/communication, along with the OpenSSL, but you could clarify this with other developers). I would also test with MS4W to see if you get the same problem. I think you said it used to work with an older MapServer version; I would therefore test on that same server with that same older MapServer version/package again too. Ha, this is how I debug (yes gives you grey hairs ha!). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From lars.schylberg at saabgroup.com Tue Feb 10 01:24:14 2015 From: lars.schylberg at saabgroup.com (Schylberg Lars) Date: Tue, 10 Feb 2015 09:24:14 +0000 Subject: [mapserver-users] layer handling in Mapserver WMS clients Message-ID: <8aa33f814a89471ea234c2636c08ad23@corpappl843.corp.saab.se> Hi, I have a follow up question on my question yesterday. I would like to have the layers in the main called mapfile to be set layers in the client WMS calls. The WMS client documentation says, http://mapserver.org/ogc/wms_client.html : "wms_name" metadata - comma-separated list of layers to be fetched from the remote WMS server. This value is used to set the LAYERS and QUERY_LAYERS WMS URL parameters When I call the MAP_MAIN I would like to call it like this: http://localhost/cgi-bin/mapserv?map=/var/www/html/map2/MAP_MAIN.map &SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1 &LAYERS=base,marks,text&srs=EPSG:4326&BBOX=9.624750,52.33333,30.333333,66.500000 &FORMAT=application/openlayers&WIDTH=2000&HEIGHT=1100 or &LAYERS=base,text or &LAYERS=base Is the mechanism similar to the srs handling? How do I expose the layers in the wms clients map files? Right now I use GROUP to define the layers and that works when I call it directly. Or is it so that I have to expose the layers with WMS_LAYER_GROUP in the wms-server mapfiles that are called as clients? I haven't been successful with that! I have several clients with the same layer structure and one with just default. /Lars MAP NAME MAP_MAIN SIZE 1000 1000 CONFIG "PROJ_LIB" './' UNITS dd EXTENT 9.624750 52.33333 30.333333 66.500000 PROJECTION 'init=epsg:4326' END IMAGETYPE png FONTSET './fonts/fontset.lst' SYMBOLSET "./symbols/symbols.sym" OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END SHAPEPATH ../data/shape WEB IMAGEPATH '/tmp/' IMAGEURL '/tmp/' METADATA "ows_enable_request" "*" 'wms_title' 'MAP_MAIN' 'wms_srs' 'EPSG:32633 EPSG:3006 EPSG:3857 EPSG:4326' "labelcache_map_edge_buffer" "-10" END END ############### Layer 0 as WMS request LAYER NAME "WMS-layer-0" OFFSITE 200 0 0 TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://localhost/cgi-bin/mapserv?map=/var/www/html/map0.map" METADATA 'wms_srs' 'EPSG:32633 EPSG:3006 EPSG:3857 EPSG:4326' "wms_name" "default" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_exceptions_format" "application/vnd.ogc.se_inimage" END END #layer ############### Layer 1 as WMS request LAYER NAME "WMS-layer-1" OFFSITE 200 0 0 TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://localhost/cgi-bin/mapserv?map=/var/www/html/map1.map" METADATA 'wms_srs' 'EPSG:32633 EPSG:3006 EPSG:3857 EPSG:4326' "wms_name" " base,marks,text" #??????????? "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_exceptions_format" "application/vnd.ogc.se_inimage" END END #layer END # Map -------------- next part -------------- An HTML attachment was scrubbed... URL: From tuikku.anttila at gmail.com Tue Feb 10 03:32:41 2015 From: tuikku.anttila at gmail.com (Tuikku Anttila) Date: Tue, 10 Feb 2015 13:32:41 +0200 Subject: [mapserver-users] OGR GeoJSON stream output not working with FCGI Message-ID: Hi, I am trying to get GeoJSON to work as a WFS output format, using an OGR outputformat with FORMATOPTION "storage=stream". With CGI, it works fine, but with FastCGI the response appears in the apache error log and I get an empty response in the browser. It works if I have FORMATOPTION "STORAGE=filesystem" instead of "stream" set in the OUTPUTFORMAT block. I am running Mapserver 6.4.1, have tried GDAL 1.10.1 and 1.11.1. I have tried this on Ubuntu Server 14.04 and CentOS 6.6, and with both Apache mod_fcgid and Nginx spawn-fcgi. Everything seems to work, but the output does not show in the browser, just in the server logs. What could I be missing? Regards, Tuikku Anttila -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at spatialys.com Tue Feb 10 03:41:35 2015 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 10 Feb 2015 12:41:35 +0100 Subject: [mapserver-users] OGR GeoJSON stream output not working with FCGI In-Reply-To: References: Message-ID: <201502101241.35820.even.rouault@spatialys.com> Le mardi 10 f?vrier 2015 12:32:41, Tuikku Anttila a ?crit : > Hi, > > I am trying to get GeoJSON to work as a WFS output format, using an OGR > outputformat with FORMATOPTION "storage=stream". With CGI, it works fine, > but with FastCGI the response appears in the apache error log and I get an > empty response in the browser. It works if I have FORMATOPTION > "STORAGE=filesystem" instead of "stream" set in the OUTPUTFORMAT block. > > I am running Mapserver 6.4.1, have tried GDAL 1.10.1 and 1.11.1. I have > tried this on Ubuntu Server 14.04 and CentOS 6.6, and with both Apache > mod_fcgid and Nginx spawn-fcgi. Everything seems to work, but the output > does not show in the browser, just in the server logs. What could I be > missing? Tuikku, This is issue https://github.com/mapserver/mapserver/pull/4858 It has been workarounded in MapServer 6.4.2 by switching to storage=memory instead with FCGI, and properly fixed in master (if used with GDAL trunk 2.0dev) Regards, Even > > Regards, > > Tuikku Anttila -- Spatialys - Geospatial professional services http://www.spatialys.com From geographika at gmail.com Tue Feb 10 05:18:19 2015 From: geographika at gmail.com (geographika) Date: Tue, 10 Feb 2015 14:18:19 +0100 Subject: [mapserver-users] MapServer Environment Variables and IIS In-Reply-To: <54D91D1D.2050801@gatewaygeomatics.com> References: <54D8C48A.8010401@gmail.com> <54D8DA1F.9060109@gatewaygeomatics.com> <54D8E87C.1000802@gmail.com> <54D91D1D.2050801@gatewaygeomatics.com> Message-ID: <54DA051B.2050408@gmail.com> Some further details after debugging. I modified mmaphttp.c and recompiled MapServer just to confirm the missing environment variables. // pszCurlCABundle = "C:\\MapServer\\bin\\curl\\curl-ca-bundle.crt"; // works when hardcoded pszCurlCABundle = getenv("Path"); msDebug("Test CURL_CA_BUNDLE=%s\n", pszCurlCABundle); test1 = getenv("Path"); msDebug("Path=%s\n", test1); Then run using mapserv the env variables are correct. When run in IIS using FastCGI both appear as null in the log file. [Tue Feb 10 13:54:13 2015].868000 Test CURL_CA_BUNDLE=(null) [Tue Feb 10 13:54:13 2015].868000 Path=(null) getenv is part of the standard C library http://www.codingunit.com/c-reference-stdlib-h-function-getenv So I guess this must be an IIS/FastCGI issue rather than MapServer? Seth On 09/02/2015 21:48, Jeff McKenna wrote: > On 2015-02-09 1:03 PM, geographika wrote: >> Thanks Jeff. >> The environment variable is definitely set in system variables, and I've >> rebooted a few times now. It also happens on both a w08r2 server and a >> Windows 7 machine. >> I can see it in >> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session >> Manager\Environment >> I'm using x64 MapServer, but the environment variables appear in my x64 >> Python script. >> I had this working a couple of years ago, and tried to see if anything >> has changed in the MS source since but no luck. >> >> I think I should also be able to set it in the web.config using the >> following, but also no luck: >> >> >> >> >> > value="C:\Mapserver\bin\curl\curl-ca-bundle.crt" /> >> >> >> >> >> Regards, >> >> Seth >> >> > > I think I may been in your exact shoes once, and it was a problem with > the Curl library in the MapServer build (I believe Curl is used for > this certification/communication, along with the OpenSSL, but you > could clarify this with other developers). I would also test with > MS4W to see if you get the same problem. > > I think you said it used to work with an older MapServer version; I > would therefore test on that same server with that same older > MapServer version/package again too. > > Ha, this is how I debug (yes gives you grey hairs ha!). > > -jeff > > > From thomas.bonfort at gmail.com Tue Feb 10 05:22:28 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 10 Feb 2015 14:22:28 +0100 Subject: [mapserver-users] MapServer Environment Variables and IIS In-Reply-To: <54DA051B.2050408@gmail.com> References: <54D8C48A.8010401@gmail.com> <54D8DA1F.9060109@gatewaygeomatics.com> <54D8E87C.1000802@gmail.com> <54D91D1D.2050801@gatewaygeomatics.com> <54DA051B.2050408@gmail.com> Message-ID: Mod fcgid on apache has special directives to set environment variables, c.f. FcgidInitialEnv . on iis you hopefully have the same... On Feb 10, 2015 8:18 AM, "geographika" wrote: > Some further details after debugging. I modified mmaphttp.c and recompiled > MapServer just to confirm the missing environment variables. > > // pszCurlCABundle = "C:\\MapServer\\bin\\curl\\curl-ca-bundle.crt"; // > works when hardcoded > pszCurlCABundle = getenv("Path"); > msDebug("Test CURL_CA_BUNDLE=%s\n", pszCurlCABundle); > > test1 = getenv("Path"); > msDebug("Path=%s\n", test1); > > Then run using mapserv the env variables are correct. When run in IIS > using FastCGI both appear as null in the log file. > > [Tue Feb 10 13:54:13 2015].868000 Test CURL_CA_BUNDLE=(null) > [Tue Feb 10 13:54:13 2015].868000 Path=(null) > > getenv is part of the standard C library http://www.codingunit.com/c- > reference-stdlib-h-function-getenv > So I guess this must be an IIS/FastCGI issue rather than MapServer? > > Seth > > On 09/02/2015 21:48, Jeff McKenna wrote: > >> On 2015-02-09 1:03 PM, geographika wrote: >> >>> Thanks Jeff. >>> The environment variable is definitely set in system variables, and I've >>> rebooted a few times now. It also happens on both a w08r2 server and a >>> Windows 7 machine. >>> I can see it in >>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session >>> Manager\Environment >>> I'm using x64 MapServer, but the environment variables appear in my x64 >>> Python script. >>> I had this working a couple of years ago, and tried to see if anything >>> has changed in the MS source since but no luck. >>> >>> I think I should also be able to set it in the web.config using the >>> following, but also no luck: >>> >>> >>> >>> >>> >> value="C:\Mapserver\bin\curl\curl-ca-bundle.crt" /> >>> >>> >>> >>> >>> Regards, >>> >>> Seth >>> >>> >>> >> I think I may been in your exact shoes once, and it was a problem with >> the Curl library in the MapServer build (I believe Curl is used for this >> certification/communication, along with the OpenSSL, but you could clarify >> this with other developers). I would also test with MS4W to see if you get >> the same problem. >> >> I think you said it used to work with an older MapServer version; I would >> therefore test on that same server with that same older MapServer >> version/package again too. >> >> Ha, this is how I debug (yes gives you grey hairs ha!). >> >> -jeff >> >> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From geographika at gmail.com Tue Feb 10 06:05:14 2015 From: geographika at gmail.com (geographika) Date: Tue, 10 Feb 2015 15:05:14 +0100 Subject: [mapserver-users] MapServer Environment Variables and IIS In-Reply-To: References: <54D8C48A.8010401@gmail.com> <54D8DA1F.9060109@gatewaygeomatics.com> <54D8E87C.1000802@gmail.com> <54D91D1D.2050801@gatewaygeomatics.com> <54DA051B.2050408@gmail.com> Message-ID: <54DA101A.6070902@gmail.com> Thanks for the reply. It should be possible to set these in IIS in the web.config file as outlined here: http://www.iis.net/configreference/system.webserver/fastcgi/application/environmentvariables However I've tried at all levels (app, web site, server) with no luck. On 10/02/2015 14:22, thomas bonfort wrote: > > Mod fcgid on apache has special directives to set environment > variables, c.f. FcgidInitialEnv . on iis you hopefully have the same... > > On Feb 10, 2015 8:18 AM, "geographika" > wrote: > > Some further details after debugging. I modified mmaphttp.c and > recompiled MapServer just to confirm the missing environment > variables. > > // pszCurlCABundle = > "C:\\MapServer\\bin\\curl\\curl-ca-bundle.crt"; // works when > hardcoded > pszCurlCABundle = getenv("Path"); > msDebug("Test CURL_CA_BUNDLE=%s\n", pszCurlCABundle); > > test1 = getenv("Path"); > msDebug("Path=%s\n", test1); > > Then run using mapserv the env variables are correct. When run in > IIS using FastCGI both appear as null in the log file. > > [Tue Feb 10 13:54:13 2015].868000 Test CURL_CA_BUNDLE=(null) > [Tue Feb 10 13:54:13 2015].868000 Path=(null) > > getenv is part of the standard C library > http://www.codingunit.com/c-reference-stdlib-h-function-getenv > So I guess this must be an IIS/FastCGI issue rather than MapServer? > > Seth > > On 09/02/2015 21:48, Jeff McKenna wrote: > > On 2015-02-09 1:03 PM, geographika wrote: > > Thanks Jeff. > The environment variable is definitely set in system > variables, and I've > rebooted a few times now. It also happens on both a w08r2 > server and a > Windows 7 machine. > I can see it in > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session > Manager\Environment > I'm using x64 MapServer, but the environment variables > appear in my x64 > Python script. > I had this working a couple of years ago, and tried to see > if anything > has changed in the MS source since but no luck. > > I think I should also be able to set it in the web.config > using the > following, but also no luck: > > > fullPath="C:\Mapserver\bin\mapserv.exe"> > > name="CURL_CA_BUNDLE" > value="C:\Mapserver\bin\curl\curl-ca-bundle.crt" /> > > > > > Regards, > > Seth > > > > I think I may been in your exact shoes once, and it was a > problem with the Curl library in the MapServer build (I > believe Curl is used for this certification/communication, > along with the OpenSSL, but you could clarify this with other > developers). I would also test with MS4W to see if you get > the same problem. > > I think you said it used to work with an older MapServer > version; I would therefore test on that same server with that > same older MapServer version/package again too. > > Ha, this is how I debug (yes gives you grey hairs ha!). > > -jeff > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Tue Feb 10 11:25:35 2015 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 10 Feb 2015 19:25:35 +0000 Subject: [mapserver-users] double check - recommended way to optimize air photos for speed in MapServer while maintaining a decent quality and file size. Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA33AC01CBC@swmail01.r8nssis.local> Hello, In the past I prepared my air photos for MapServer by converting them into GeoTiff and creating compressed jpeg overviews. I would like to double check if this is still a recommended method to prepare air photos that are fast, have a decent amount of quality, and are not terribly large. If anyone has any comments on how I should prepare air photos for MapServer and possibly ArcGIS or QGIS let me know. Here is what I used in the past, which seems to work good: gdal_translate -CO TILED=YES -CO PHOTOMETRIC=YCBCR -CO TFW=YES -CO COMPRESS=JPEG -CO BIGTIFF=YES MNPIPE13-SID-9INCH.sid Pipe13.tif gdaladdo -r cubic --config compress_overview JPEG --config photometric_overview YCBCR Pipe2013.tif 2 4 8 16 32 64 128 256 512 1024 I will be provided an ECW file, Mr Sid file, and I will be given the choice of getting either 775 individual jpg or tiff tiles. Thanks for any advice. Mark Volz -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Feb 10 13:34:41 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 10 Feb 2015 21:34:41 +0000 Subject: [mapserver-users] FW: [mapserver-dev] Motion: Retire SDE Support for MapServer 7.0 In-Reply-To: <93B5DA8D-A61B-4248-9403-52F9997381EF@hobu.co> References: <93B5DA8D-A61B-4248-9403-52F9997381EF@hobu.co> Message-ID: Looking for a bit broader input on this idea. OGR supports SDE too so that's another mechanism for users to use SDE with MapServer 7.0 and up... Steve ________________________________________ From: mapserver-dev-bounces at lists.osgeo.org [mapserver-dev-bounces at lists.osgeo.org] on behalf of Howard Butler [howard at hobu.co] Sent: Tuesday, February 10, 2015 3:30 PM To: mapserver-dev at lists.osgeo.org Mailing List Subject: [mapserver-dev] Motion: Retire SDE Support for MapServer 7.0 All, As the former maintainer and current non-maintainer of the SDE MapServer driver, I would like to motion that we we retire it from MapServer for the upcoming release. There are three reasons to consider removal at this time: 1) Availability of the ArcSDE SDK is extremely low (can you even get ESRI to give it to you?) 2) Viability of direct-database query from PostGIS, Oracle, and SQL Server have obsoleted SDE 3) No current MapServer developers have the ability to test any code changes to the SDE driver. Howard _______________________________________________ mapserver-dev mailing list mapserver-dev at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-dev From andy at squeakycode.net Tue Feb 10 16:52:02 2015 From: andy at squeakycode.net (Andy Colson) Date: Tue, 10 Feb 2015 18:52:02 -0600 Subject: [mapserver-users] double check - recommended way to optimize air photos for speed in MapServer while maintaining a decent quality and file size. In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA33AC01CBC@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA33AC01CBC@swmail01.r8nssis.local> Message-ID: <54DAA7B2.2040804@squeakycode.net> On 02/10/2015 01:25 PM, Mark Volz wrote: > Hello, > > In the past I prepared my air photos for MapServer by converting them into GeoTiff and creating compressed jpeg overviews. I would like to double check if this is still a recommended method to prepare air photos that are fast, have a decent amount of quality, and are not terribly large. If anyone has any comments on how I should prepare air photos for MapServer and possibly ArcGIS or QGIS let me know. > > Here is what I used in the past, which seems to work good: > > gdal_translate -CO TILED=YES -CO PHOTOMETRIC=YCBCR -CO TFW=YES -CO COMPRESS=JPEG -CO BIGTIFF=YES MNPIPE13-SID-9INCH.sid Pipe13.tif > > gdaladdo -r cubic --config compress_overview JPEG --config photometric_overview YCBCR Pipe2013.tif 2 4 8 16 32 64 128 256 512 1024 > > I will be provided an ECW file, Mr Sid file, and I will be given the choice of getting either 775 individual jpg or tiff tiles. > > Thanks for any advice. > > *Mark Volz* > > Its what I'm using, but I'm setting jpeg_quality much lower than the default. I ran several at different qualities and found next to no difference when zoomed all the way in. For the gdaladdo I reduce the quality even more, because when your zoomed out, who cares if you can't make out an individual car. I'm using: gdal_translate -of GTiff \ -co compress=jpeg \ -co JPEG_QUALITY=60 \ -co PHOTOMETRIC=YCBCR \ -co tiled=yes \ -co bigtiff=yes \ --config GDAL_CACHEMAX 500 \ src dest gdaladdo -ro -r average \ --config COMPRESS_OVERVIEW JPEG \ --config JPEG_QUALITY_OVERVIEW 40 \ --config PHOTOMETRIC_OVERVIEW YCBCR \ --config INTERLEAVE_OVERVIEW PIXEL \ --config GDAL_CACHEMAX 500 \ dest \ 2 4 8 16 32 64 128 256 512 1024 2048 4096 I think (but no real measure) that too many small files or very few big files are slower than 12'ish files. But that's just a gut feeling. My Tama Iowa imagery is 30 gig, in 12 .tif files: http://maps.camavision.com/map/tamaia?pin=14.27.203.003 The EWC version is 22 gig. performance wise, when zoomed in as close as possible (car level), the ecw and tiff perform about the same. When zoomed all the way out (entire county), once I added 2048 and 4096 to my gdaladdo, the tiff was almost a second faster than ecw. If there are newer/better methods I'd be interested in them too. -Andy From richard.greenwood at gmail.com Tue Feb 10 18:49:33 2015 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 10 Feb 2015 19:49:33 -0700 Subject: [mapserver-users] FW: [mapserver-dev] Motion: Retire SDE Support for MapServer 7.0 In-Reply-To: References: <93B5DA8D-A61B-4248-9403-52F9997381EF@hobu.co> Message-ID: Not being on the PSC my "vote" doesn't mean anything, but 7.0 certainly seems like the time to cut the cord on SDE. Rich On Tue, Feb 10, 2015 at 2:34 PM, Lime, Steve D (MNIT) < Steve.Lime at state.mn.us> wrote: > Looking for a bit broader input on this idea. OGR supports SDE too so > that's another mechanism for users to use SDE with MapServer 7.0 and up... > > Steve > > ________________________________________ > From: mapserver-dev-bounces at lists.osgeo.org [ > mapserver-dev-bounces at lists.osgeo.org] on behalf of Howard Butler [ > howard at hobu.co] > Sent: Tuesday, February 10, 2015 3:30 PM > To: mapserver-dev at lists.osgeo.org Mailing List > Subject: [mapserver-dev] Motion: Retire SDE Support for MapServer 7.0 > > All, > > As the former maintainer and current non-maintainer of the SDE MapServer > driver, I would like to motion that we we retire it from MapServer for the > upcoming release. There are three reasons to consider removal at this time: > > 1) Availability of the ArcSDE SDK is extremely low (can you even get ESRI > to give it to you?) > 2) Viability of direct-database query from PostGIS, Oracle, and SQL Server > have obsoleted SDE > 3) No current MapServer developers have the ability to test any code > changes to the SDE driver. > > Howard > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From fricke at gisberater.com Wed Feb 11 00:30:31 2015 From: fricke at gisberater.com (Lars Fricke) Date: Wed, 11 Feb 2015 09:30:31 +0100 Subject: [mapserver-users] WMS request url gets misinterpreted calling on mapserver from python Message-ID: <54DB1327.9050509@gisberater.com> Hello List, I have a very strange effect I am stuck with. I have a python server (Twisted) from where I make a WMS request to Mapserver. Now the strange thing is, if I issue the request from my python server, I get a "msQueryByRect(): Search returned no results. No matching record(s) found." in ms_error.txt If I take the very request string from the apache access log and put it into the browser, I get a nice image as result. So I assume the BBOX may be interpreted differently depending on the client? Or can this be an encoding issue? Here's my line from access.log: 127.0.0.1 - - [11/Feb/2015:09:17:35 +0100] "GET /wms?SERVICE=WMS&FORMAT=image%2Fjpeg&REQUEST=GetMap&HEIGHT=256&SRS=EPSG%3A3857&VERSION=1.1.1&BBOX=1102680.5700419527%2C6719884.904662984%2C1102757.0070702378%2C6719961.341691271&LAYERS=DOP20&WIDTH=256&MAXNATIVEZOOM=20&TRANSPARENT=false HTTP/1.1" 200 14068 "-" "My Server" I do not see anything in the error.log of Apache at that time. Any help is highly appreciated. Thanks for taking the time! Best Lars From jukka.rahkonen at maanmittauslaitos.fi Wed Feb 11 02:34:55 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 11 Feb 2015 10:34:55 +0000 Subject: [mapserver-users] WMS request url gets misinterpreted calling on mapserver from python Message-ID: Hi, Do you mean that you get nothing else than those lines into ms_errorfile ever, not valid images at all? The log entry looks good to me. The line you copied from access.log has been a success "200" with "14068" bytes sent out which fits well for a small jpeg image. Could it be that your DOP20 source data is little bit sparse and some 256x256 sized tiles just do not contain any data? Then it would be an expected result that you get those lines into your ms_error. -Jukka Rahkonen- Lars Fricke wrote: Hello List, I have a very strange effect I am stuck with. I have a python server (Twisted) from where I make a WMS request to Mapserver. Now the strange thing is, if I issue the request from my python server, I get a "msQueryByRect(): Search returned no results. No matching record(s) found." in ms_error.txt If I take the very request string from the apache access log and put it into the browser, I get a nice image as result. So I assume the BBOX may be interpreted differently depending on the client? Or can this be an encoding issue? Here's my line from access.log: 127.0.0.1 - - [11/Feb/2015:09:17:35 +0100] "GET /wms?SERVICE=WMS&FORMAT=image%2Fjpeg&REQUEST=GetMap&HEIGHT=256&SRS=EPSG%3A3857&VERSION=1.1.1&BBOX=1102680.5700419527%2C6719884.904662984%2C1102757.0070702378%2C6719961.341691271&LAYERS=DOP20&WIDTH=256&MAXNATIVEZOOM=20&TRANSPARENT=false HTTP/1.1" 200 14068 "-" "My Server" I do not see anything in the error.log of Apache at that time. Any help is highly appreciated. Thanks for taking the time! Best Lars _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From fricke at gisberater.com Wed Feb 11 03:03:45 2015 From: fricke at gisberater.com (Lars Fricke) Date: Wed, 11 Feb 2015 12:03:45 +0100 Subject: [mapserver-users] WMS request url gets misinterpreted calling on mapserver from python In-Reply-To: References: Message-ID: <54DB3711.6020506@gisberater.com> Hi Jukka, Thank you for the fast response. If you say there should be an image, maybe I'm doing something wrong in the receiving application. I will check on that first and then come back with the result. Best Lars Am 11.02.2015 um 11:34 schrieb Rahkonen Jukka (MML): > Hi, > > Do you mean that you get nothing else than those lines into ms_errorfile ever, not valid images at all? > > The log entry looks good to me. The line you copied from access.log has been a success "200" with "14068" bytes sent out which fits well for a small jpeg image. Could it be that your DOP20 source data is little bit sparse and some 256x256 sized tiles just do not contain any data? Then it would be an expected result that you get those lines into your ms_error. > > -Jukka Rahkonen- > > Lars Fricke wrote: > > Hello List, > > I have a very strange effect I am stuck with. I have a python server > (Twisted) from where I make a WMS request to Mapserver. Now the strange thing is, if I issue the request from my python server, I get a > "msQueryByRect(): Search returned no results. No matching record(s) found." in ms_error.txt > > If I take the very request string from the apache access log and put it into the browser, I get a nice image as result. So I assume the BBOX may be interpreted differently depending on the client? Or can this be an encoding issue? > > Here's my line from access.log: > 127.0.0.1 - - [11/Feb/2015:09:17:35 +0100] "GET /wms?SERVICE=WMS&FORMAT=image%2Fjpeg&REQUEST=GetMap&HEIGHT=256&SRS=EPSG%3A3857&VERSION=1.1.1&BBOX=1102680.5700419527%2C6719884.904662984%2C1102757.0070702378%2C6719961.341691271&LAYERS=DOP20&WIDTH=256&MAXNATIVEZOOM=20&TRANSPARENT=false > HTTP/1.1" 200 14068 "-" "My Server" > > I do not see anything in the error.log of Apache at that time. > > Any help is highly appreciated. Thanks for taking the time! > > Best > > Lars > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jcigar at ulb.ac.be Wed Feb 11 04:04:08 2015 From: jcigar at ulb.ac.be (Julien Cigar) Date: Wed, 11 Feb 2015 13:04:08 +0100 Subject: [mapserver-users] copyright, logos, etc In-Reply-To: <20150205134140.GI1563@mordor.lan> References: <20150205134140.GI1563@mordor.lan> Message-ID: <20150211120408.GV1563@mordor.lan> On Thu, Feb 05, 2015 at 02:41:40PM +0100, Julien Cigar wrote: > Hello, > > I'm using Mapserver to generate maps for various PostGIS layers and it > works pretty well, especially with SLD to filter WMS requests. > > Now the users want to include: > - a logo (PNG file) in the upper right corner > - a copyright text at the bottom center of the page > - a text "generated at ..." with the date > > For now I have the following MAP file: > https://gist.github.com/silenius/545d479132981dc5a55a (only relevant > parts are shown) > > For the logo and the copyright text it works more or less (although it > seems "?ber complicated" for such simple thing, but maybe there is a > simpler way of doing it ?), the only problem I have is that if I change > the WIDTH and HEIGHT of the map the things disappear, as the POINTS in > the FEATURE section don't fit the map size. I wonder if there is a > simple way to tell Mapserver to "just put that 20px .PNG file in the > upper right corner of the generated map" or something like that .. ? > > Any idea how could I do for the generated date ? > > Thanks ! > > Julien Hello, After digging hours in the documentation I ended by modifying the generated image file with PIL ... It's not the ideal solution but I don't see an easy way in Mapserver to simply add some text to a generated image. I used http://www.mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map for the static ones (which works) but what I really need to do is to make an SQL query (something like select name from map where id=%MYID%) and use that attribute in the TEXT part of the FEATURE section (something like FEATURE POINTS x y END TEXT "Species name: [name]" END) Any idea is welcome on how to do that in the "Mapserver way" .. Julien > > -- > Julien Cigar > Belgian Biodiversity Platform (http://www.biodiversity.be) > PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 > No trees were killed in the creation of this message. > However, many electrons were terribly inconvenienced. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: From fricke at gisberater.com Wed Feb 11 04:34:32 2015 From: fricke at gisberater.com (Lars Fricke) Date: Wed, 11 Feb 2015 13:34:32 +0100 Subject: [mapserver-users] WMS request url gets misinterpreted calling on mapserver from python In-Reply-To: <54DB3711.6020506@gisberater.com> References: <54DB3711.6020506@gisberater.com> Message-ID: <54DB4C58.4060009@gisberater.com> Hi Jukka, hi List, Sorry, false alarm. I had screwed up on a message pipeline so I'd read the images before they were there. That way I also hindered the images to be delivered and screwed up on the next request. So nothing is wrong with Mapserver and I am smarter than before ;-) Best Lars Am 11.02.2015 um 12:03 schrieb Lars Fricke: > Hi Jukka, > > Thank you for the fast response. If you say there should be an image, > maybe I'm doing something wrong in the receiving application. I will > check on that first and then come back with the result. > > Best > > Lars > > Am 11.02.2015 um 11:34 schrieb Rahkonen Jukka (MML): >> Hi, >> >> Do you mean that you get nothing else than those lines into >> ms_errorfile ever, not valid images at all? >> >> The log entry looks good to me. The line you copied from access.log >> has been a success "200" with "14068" bytes sent out which fits well >> for a small jpeg image. Could it be that your DOP20 source data is >> little bit sparse and some 256x256 sized tiles just do not contain >> any data? Then it would be an expected result that you get those >> lines into your ms_error. >> >> -Jukka Rahkonen- >> >> Lars Fricke wrote: >> >> Hello List, >> >> I have a very strange effect I am stuck with. I have a python server >> (Twisted) from where I make a WMS request to Mapserver. Now the >> strange thing is, if I issue the request from my python server, I get a >> "msQueryByRect(): Search returned no results. No matching record(s) >> found." in ms_error.txt >> >> If I take the very request string from the apache access log and put >> it into the browser, I get a nice image as result. So I assume the >> BBOX may be interpreted differently depending on the client? Or can >> this be an encoding issue? >> >> Here's my line from access.log: >> 127.0.0.1 - - [11/Feb/2015:09:17:35 +0100] "GET >> /wms?SERVICE=WMS&FORMAT=image%2Fjpeg&REQUEST=GetMap&HEIGHT=256&SRS=EPSG%3A3857&VERSION=1.1.1&BBOX=1102680.5700419527%2C6719884.904662984%2C1102757.0070702378%2C6719961.341691271&LAYERS=DOP20&WIDTH=256&MAXNATIVEZOOM=20&TRANSPARENT=false >> HTTP/1.1" 200 14068 "-" "My Server" >> >> I do not see anything in the error.log of Apache at that time. >> >> Any help is highly appreciated. Thanks for taking the time! >> >> Best >> >> Lars >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From jcigar at ulb.ac.be Wed Feb 11 05:10:50 2015 From: jcigar at ulb.ac.be (Julien Cigar) Date: Wed, 11 Feb 2015 14:10:50 +0100 Subject: [mapserver-users] Label in SLD Message-ID: <20150211131050.GX1563@mordor.lan> Hello, With the following https://gist.github.com/silenius/1f4a020f35a4113cdd4d is it normal that the Label (line 29-31) within my TextSymbolizer is not rendered (the PointSymbolizer is) ? Thanks, Julien -- Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: From Andreas.Eichner at sid.sachsen.de Wed Feb 11 05:32:54 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Wed, 11 Feb 2015 13:32:54 +0000 Subject: [mapserver-users] copyright, logos, etc In-Reply-To: <20150211120408.GV1563@mordor.lan> References: <20150205134140.GI1563@mordor.lan> <20150211120408.GV1563@mordor.lan> Message-ID: <6F331135492B944D90731CE93743D5681C1FCD@FS-EX-DB102.fs.sachsen.de> > what I really need to do is to > make an SQL query (something like select name from map where id=%MYID%) > and use that attribute in the TEXT part of the FEATURE section (something > like FEATURE POINTS x y END TEXT "Species name: [name]" END) > > Any idea is welcome on how to do that in the "Mapserver way" .. > I have not test it but I would suggest replacing the inlined feature with a OGR point layer connected to a MYSQL view or a OGR VRT datasource that associates every line with the position of the annotation. 1) MYSQL view: CREATE OR REPLACE VIEW species_annotation AS SELECT id, GeomFromText('POINT(60 -10)') AS Shape, name FROM map; LAYER ... # FEATURE # POINTS # 60 -10 # the offset (from lower left) in pixels # END # Points # TEXT "? xyz company 2006" # this is your displaying text # END # Feature CONNECTIONTYPE ogr CONNECTION 'MYSQL: ...' DATA 'species_annotation' LABELITEM 'name' FILTER ([id]=%MYID%) ... END # Layer 2) OGR VRT datasource: In species_annotation.vrt: MYSQL: ... SELECT id, 60 as x, -10 as y, name FROM map id wkbPoint NULL Test with: ogrinfo -al species_annotation.vrt -fid LAYER ... CONNECTIONTYPE ogr CONNECTION 'species_annotation.vrt' DATA 'species_annotation' LABELITEM 'name' FILTER ([id] = %MYID%) ... END # Layer HTH From jcigar at ulb.ac.be Wed Feb 11 05:56:57 2015 From: jcigar at ulb.ac.be (Julien Cigar) Date: Wed, 11 Feb 2015 14:56:57 +0100 Subject: [mapserver-users] copyright, logos, etc In-Reply-To: <6F331135492B944D90731CE93743D5681C1FCD@FS-EX-DB102.fs.sachsen.de> References: <20150205134140.GI1563@mordor.lan> <20150211120408.GV1563@mordor.lan> <6F331135492B944D90731CE93743D5681C1FCD@FS-EX-DB102.fs.sachsen.de> Message-ID: <20150211135656.GY1563@mordor.lan> On Wed, Feb 11, 2015 at 01:32:54PM +0000, Eichner, Andreas - SID wrote: > > what I really need to do is to > > make an SQL query (something like select name from map where id=%MYID%) > > and use that attribute in the TEXT part of the FEATURE section (something > > like FEATURE POINTS x y END TEXT "Species name: [name]" END) > > > > Any idea is welcome on how to do that in the "Mapserver way" .. > > > > I have not test it but I would suggest replacing the inlined feature with a OGR point layer connected to a MYSQL view or a OGR VRT datasource that associates every line with the position of the annotation. > > 1) MYSQL view: > CREATE OR REPLACE VIEW species_annotation AS SELECT id, GeomFromText('POINT(60 -10)') AS Shape, name FROM map; > > LAYER > ... > > # FEATURE > # POINTS > # 60 -10 # the offset (from lower left) in pixels > # END # Points > # TEXT "? xyz company 2006" # this is your displaying text > # END # Feature > CONNECTIONTYPE ogr > CONNECTION 'MYSQL: ...' > DATA 'species_annotation' > LABELITEM 'name' > FILTER ([id]=%MYID%) > > ... > END # Layer > > > 2) OGR VRT datasource: > In species_annotation.vrt: > > > MYSQL: ... > SELECT id, 60 as x, -10 as y, name FROM map > id > wkbPoint > NULL > > > > > Test with: ogrinfo -al species_annotation.vrt -fid > > > LAYER > ... > CONNECTIONTYPE ogr > CONNECTION 'species_annotation.vrt' > DATA 'species_annotation' > LABELITEM 'name' > FILTER ([id] = %MYID%) > ... > END # Layer > > > HTH Thanks, I'll try it that way. Another idea I had was to create a POINT layer with a FEATURE POINTS x y END END and use that layer in my SLD stylesheet (which is generated dynamically) with a ... like on https://gist.github.com/silenius/1f4a020f35a4113cdd4d but it seems that it's unsupported by Mapserver (if I understand well https://github.com/mapserver/mapserver/blob/master/mapogcsld.c#L2706 ) Would it be possible in the future to add support for a CDATA-like section that goes directly within the FEATURE -> TEXT part of the layer? Thanks! Julien -- Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: From Andreas.Eichner at sid.sachsen.de Wed Feb 11 05:57:28 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Wed, 11 Feb 2015 13:57:28 +0000 Subject: [mapserver-users] Label in SLD In-Reply-To: <20150211131050.GX1563@mordor.lan> References: <20150211131050.GX1563@mordor.lan> Message-ID: <6F331135492B944D90731CE93743D5681C1FE2@FS-EX-DB102.fs.sachsen.de> Basically yes as MapServer's SLD implementation does not support s. It only supports a property name optionally enclosed by . > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Julien Cigar > Gesendet: Mittwoch, 11. Februar 2015 14:11 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Label in SLD > > Hello, > > With the following https://gist.github.com/silenius/1f4a020f35a4113cdd4d > is it normal that the Label (line 29-31) within my TextSymbolizer is not > rendered (the PointSymbolizer is) ? > > Thanks, > Julien > > -- > Julien Cigar > Belgian Biodiversity Platform (http://www.biodiversity.be) > PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 > No trees were killed in the creation of this message. > However, many electrons were terribly inconvenienced. From Andreas.Eichner at sid.sachsen.de Wed Feb 11 06:55:37 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Wed, 11 Feb 2015 14:55:37 +0000 Subject: [mapserver-users] copyright, logos, etc In-Reply-To: <20150211135656.GY1563@mordor.lan> References: <20150205134140.GI1563@mordor.lan> <20150211120408.GV1563@mordor.lan> <6F331135492B944D90731CE93743D5681C1FCD@FS-EX-DB102.fs.sachsen.de> <20150211135656.GY1563@mordor.lan> Message-ID: <6F331135492B944D90731CE93743D5681C200D@FS-EX-DB102.fs.sachsen.de> > > Thanks, I'll try it that way. Another idea I had was to create a POINT > layer with a FEATURE POINTS x y END END and use that layer in my SLD > stylesheet (which is generated dynamically) with a > ... like > on https://gist.github.com/silenius/1f4a020f35a4113cdd4d but it seems > that it's unsupported by Mapserver (if I understand well > https://github.com/mapserver/mapserver/blob/master/mapogcsld.c#L2706 ) You're right. That's unsupported. But to me it looks as you could cheat by using an empty : > > Would it be possible in the future to add support for a CDATA-like > section that goes directly within the FEATURE -> TEXT part of the layer? > I guess a basic implementation wouldn't be too hard to implement. But many elements of symbology encoding map to se:ParameterValueType which is a mixture of text nodes and ogc:expressions and this is generally not very well supported. I'd guess this needs huge reworking on both parser and engine... So, to get at least the simple cases supported you might want to file a ticket. From jcigar at ulb.ac.be Wed Feb 11 06:59:12 2015 From: jcigar at ulb.ac.be (Julien Cigar) Date: Wed, 11 Feb 2015 15:59:12 +0100 Subject: [mapserver-users] copyright, logos, etc In-Reply-To: <6F331135492B944D90731CE93743D5681C1FCD@FS-EX-DB102.fs.sachsen.de> References: <20150205134140.GI1563@mordor.lan> <20150211120408.GV1563@mordor.lan> <6F331135492B944D90731CE93743D5681C1FCD@FS-EX-DB102.fs.sachsen.de> Message-ID: <20150211145912.GZ1563@mordor.lan> On Wed, Feb 11, 2015 at 01:32:54PM +0000, Eichner, Andreas - SID wrote: > > what I really need to do is to > > make an SQL query (something like select name from map where id=%MYID%) > > and use that attribute in the TEXT part of the FEATURE section (something > > like FEATURE POINTS x y END TEXT "Species name: [name]" END) > > > > Any idea is welcome on how to do that in the "Mapserver way" .. > > > > I have not test it but I would suggest replacing the inlined feature with a OGR point layer connected to a MYSQL view or a OGR VRT datasource that associates every line with the position of the annotation. > > 1) MYSQL view: > CREATE OR REPLACE VIEW species_annotation AS SELECT id, GeomFromText('POINT(60 -10)') AS Shape, name FROM map; > > LAYER > ... > > # FEATURE > # POINTS > # 60 -10 # the offset (from lower left) in pixels > # END # Points > # TEXT "? xyz company 2006" # this is your displaying text > # END # Feature > CONNECTIONTYPE ogr > CONNECTION 'MYSQL: ...' > DATA 'species_annotation' > LABELITEM 'name' > FILTER ([id]=%MYID%) > > ... > END # Layer > > > 2) OGR VRT datasource: > In species_annotation.vrt: > > > MYSQL: ... > SELECT id, 60 as x, -10 as y, name FROM map > id > wkbPoint > NULL > > > > > Test with: ogrinfo -al species_annotation.vrt -fid > > > LAYER > ... > CONNECTIONTYPE ogr > CONNECTION 'species_annotation.vrt' > DATA 'species_annotation' > LABELITEM 'name' > FILTER ([id] = %MYID%) > ... > END # Layer > > > HTH It's a little ugly but it works with: https://gist.github.com/silenius/f0b0fb856b82a7c70eaa Thank you very much! -- Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: From Andreas.Eichner at sid.sachsen.de Wed Feb 11 07:25:15 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Wed, 11 Feb 2015 15:25:15 +0000 Subject: [mapserver-users] copyright, logos, etc In-Reply-To: <20150211145912.GZ1563@mordor.lan> References: <20150205134140.GI1563@mordor.lan> <20150211120408.GV1563@mordor.lan> <6F331135492B944D90731CE93743D5681C1FCD@FS-EX-DB102.fs.sachsen.de> <20150211145912.GZ1563@mordor.lan> Message-ID: <6F331135492B944D90731CE93743D5681C203A@FS-EX-DB102.fs.sachsen.de> > > It's a little ugly but it works with: > https://gist.github.com/silenius/f0b0fb856b82a7c70eaa Being on PostGIS I'd suggest using the native driver with something like that: CONNECTIONTYPE postgis DATA "geom FROM (select id, name, now() as generated_date, st_GeomFromText('POINT(-5 70)') AS geom FROM map WHERE id=%MYID%) AS tmp USING SRID=-1 USING UNIQUE id" CLASS LABEL TEXT "Species name: [name] (last updated: [generated_date])" FONT "vera" TYPE TRUETYPE SIZE 7 BUFFER 1 COLOR 0 0 0 FORCE TRUE STYLE GEOMTRANSFORM 'labelpoly' COLOR 255 255 255 END END END From jcigar at ulb.ac.be Wed Feb 11 07:39:03 2015 From: jcigar at ulb.ac.be (Julien Cigar) Date: Wed, 11 Feb 2015 16:39:03 +0100 Subject: [mapserver-users] copyright, logos, etc In-Reply-To: <6F331135492B944D90731CE93743D5681C200D@FS-EX-DB102.fs.sachsen.de> References: <20150205134140.GI1563@mordor.lan> <20150211120408.GV1563@mordor.lan> <6F331135492B944D90731CE93743D5681C1FCD@FS-EX-DB102.fs.sachsen.de> <20150211135656.GY1563@mordor.lan> <6F331135492B944D90731CE93743D5681C200D@FS-EX-DB102.fs.sachsen.de> Message-ID: <20150211153903.GA1563@mordor.lan> On Wed, Feb 11, 2015 at 02:55:37PM +0000, Eichner, Andreas - SID wrote: > > > > > Thanks, I'll try it that way. Another idea I had was to create a POINT > > layer with a FEATURE POINTS x y END END and use that layer in my SLD > > stylesheet (which is generated dynamically) with a > > ... like > > on https://gist.github.com/silenius/1f4a020f35a4113cdd4d but it seems > > that it's unsupported by Mapserver (if I understand well > > https://github.com/mapserver/mapserver/blob/master/mapogcsld.c#L2706 ) > > You're right. That's unsupported. But to me it looks as you could cheat by using an empty : > > more or less, it seems that there are some serious issues with the XML parser: The following doesn't work: foo The following returns a strange "msFontsetLookupFonts(): TrueType Font error. Requested font (^A) not found.": foo With: foo it works more or less, it display (foo ) etc > > > > > Would it be possible in the future to add support for a CDATA-like > > section that goes directly within the FEATURE -> TEXT part of the layer? > > > > I guess a basic implementation wouldn't be too hard to implement. But many elements of symbology encoding map to se:ParameterValueType which is a mixture of text nodes and ogc:expressions and this is generally not very well supported. I'd guess this needs huge reworking on both parser and engine... > > So, to get at least the simple cases supported you might want to file a ticket. I'll do that ..! > Thanks, Julien -- Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: From jcigar at ulb.ac.be Wed Feb 11 08:10:49 2015 From: jcigar at ulb.ac.be (Julien Cigar) Date: Wed, 11 Feb 2015 17:10:49 +0100 Subject: [mapserver-users] copyright, logos, etc In-Reply-To: <6F331135492B944D90731CE93743D5681C203A@FS-EX-DB102.fs.sachsen.de> References: <20150205134140.GI1563@mordor.lan> <20150211120408.GV1563@mordor.lan> <6F331135492B944D90731CE93743D5681C1FCD@FS-EX-DB102.fs.sachsen.de> <20150211145912.GZ1563@mordor.lan> <6F331135492B944D90731CE93743D5681C203A@FS-EX-DB102.fs.sachsen.de> Message-ID: <20150211161049.GB1563@mordor.lan> On Wed, Feb 11, 2015 at 03:25:15PM +0000, Eichner, Andreas - SID wrote: > > > > > It's a little ugly but it works with: > > https://gist.github.com/silenius/f0b0fb856b82a7c70eaa > > Being on PostGIS I'd suggest using the native driver with something like that: > > CONNECTIONTYPE postgis > DATA "geom FROM (select id, name, now() as generated_date, st_GeomFromText('POINT(-5 70)') AS geom FROM map WHERE id=%MYID%) AS tmp USING SRID=-1 USING UNIQUE id" > CLASS > LABEL > TEXT "Species name: [name] (last updated: [generated_date])" > FONT "vera" > TYPE TRUETYPE > SIZE 7 > BUFFER 1 > COLOR 0 0 0 > FORCE TRUE > STYLE > GEOMTRANSFORM 'labelpoly' > COLOR 255 255 255 > END > END > END that works even better .. thanks! -- Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: From yeryry at gmail.com Wed Feb 11 18:10:40 2015 From: yeryry at gmail.com (yeryry) Date: Thu, 12 Feb 2015 02:10:40 +0000 Subject: [mapserver-users] msOGRFileNextShape(): OGR error. TopologyException: side location conflict Message-ID: I ran into this old problem today, using the OSGeo4W daily 6.5 build. http://lists.osgeo.org/pipermail/mapserver-users/2009-August/thread.html#62527 http://trac.osgeo.org/mapserver/ticket/3100 Google finds quite a lot of non-mapserver-related questions about this error, but perhaps (as was suggested in the ticket), something can be done to avoid it, as it is related to GEOS (EdgeEndStar::propagateSideLabels). Mapserver seems to render the problematic geometry with no problem, but fails when a query (WMS GetFeatureInfo) falls near it. I think it can't be related to input file format, as it does the same with KML, spatialite, and GML. I have made a simple set of data that shows the problem, but I'm not sure what parts I should post, as altogether it's quite long. From fl_v at inbox.ru Thu Feb 12 03:01:56 2015 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Thu, 12 Feb 2015 14:01:56 +0300 Subject: [mapserver-users] =?utf-8?q?the_lines_one_above_other?= Message-ID: <1423738916.183450096@f194.i.mail.ru> Hello All! The task is to show multilevel junction of highway. The lines should be at the same layer and has the same style, for example see orange lines on attached pic: [img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img] Is it possible to draw the lines one above other by an one layer? May be some method of?Z-index for features in a layer exists? Thanks for any guidance to display this kind of crossroads. Vladimir -------------- next part -------------- An HTML attachment was scrubbed... URL: From fricke at gisberater.com Thu Feb 12 04:24:10 2015 From: fricke at gisberater.com (Lars Fricke) Date: Thu, 12 Feb 2015 13:24:10 +0100 Subject: [mapserver-users] the lines one above other In-Reply-To: <1423738916.183450096@f194.i.mail.ru> References: <1423738916.183450096@f194.i.mail.ru> Message-ID: <54DC9B6A.8020705@gisberater.com> An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Thu Feb 12 04:52:57 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Thu, 12 Feb 2015 12:52:57 +0000 Subject: [mapserver-users] the lines one above other In-Reply-To: <1423738916.183450096@f194.i.mail.ru> References: <1423738916.183450096@f194.i.mail.ru> Message-ID: <6F331135492B944D90731CE93743D5681C2107@FS-EX-DB102.fs.sachsen.de> I'm not sure about this but AFAIK MapServer draws features in the order they are returned by the query. For Shapefiles there is the sortshp utility. If you're on a relational database like PostGIS or OracleSpatial you can try including the "ORDER BY prio" within the DATA. But since MS wraps it into a subquery the database might still return the features out of order. > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Vladimir > Gesendet: Donnerstag, 12. Februar 2015 12:02 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] the lines one above other > > Hello All! > > > > The task is to show multilevel junction of highway. > The lines should be at the same layer and has the same style, for example > see orange lines on attached pic: > [img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img] > Is it possible to draw the lines one above other by an one layer? > May be some method of Z-index for features in a layer exists? > Thanks for any guidance to display this kind of crossroads. > > Vladimir From fricke at gisberater.com Thu Feb 12 05:24:28 2015 From: fricke at gisberater.com (Lars Fricke) Date: Thu, 12 Feb 2015 14:24:28 +0100 Subject: [mapserver-users] the lines one above other In-Reply-To: <6F331135492B944D90731CE93743D5681C2107@FS-EX-DB102.fs.sachsen.de> References: <1423738916.183450096@f194.i.mail.ru> <6F331135492B944D90731CE93743D5681C2107@FS-EX-DB102.fs.sachsen.de> Message-ID: <54DCA98C.7030901@gisberater.com> For me it works by sorting in the map file. I then put the needed layers into my WMS request. The order does not matter in the request it seems. Best Lars Am 12.02.2015 um 13:52 schrieb Eichner, Andreas - SID: > I'm not sure about this but AFAIK MapServer draws features in the order they are returned by the query. For Shapefiles there is the sortshp utility. If you're on a relational database like PostGIS or OracleSpatial you can try including the "ORDER BY prio" within the DATA. But since MS wraps it into a subquery the database might still return the features out of order. > >> -----Urspr?ngliche Nachricht----- >> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] Im Auftrag von Vladimir >> Gesendet: Donnerstag, 12. Februar 2015 12:02 >> An: mapserver-users at lists.osgeo.org >> Betreff: [mapserver-users] the lines one above other >> >> Hello All! >> >> >> >> The task is to show multilevel junction of highway. >> The lines should be at the same layer and has the same style, for example >> see orange lines on attached pic: >> [img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img] >> Is it possible to draw the lines one above other by an one layer? >> May be some method of Z-index for features in a layer exists? >> Thanks for any guidance to display this kind of crossroads. >> >> Vladimir > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From fl_v at inbox.ru Thu Feb 12 05:26:45 2015 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Thu, 12 Feb 2015 16:26:45 +0300 Subject: [mapserver-users] =?utf-8?q?the_lines_one_above_other?= In-Reply-To: <54DC9B6A.8020705@gisberater.com> References: <1423738916.183450096@f194.i.mail.ru> <54DC9B6A.8020705@gisberater.com> Message-ID: <1423747605.619694842@f400.i.mail.ru> Lars. Thank you very much for response. Please see the pics. What I have: http://s14.postimg.org/yk40e0nq9/crossroad.jpg What I need: http://s14.postimg.org/yk40e0nq9/crossroad.jpg The problem is the orange roads lies in a one layer because they are identical features(has the same type). It is done accordingly to specificity the app. And I would like to escape a duplication of layers if it is possible. Therefore i need to locate the features one above other at a one layer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fl_v at inbox.ru Thu Feb 12 05:41:45 2015 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Thu, 12 Feb 2015 16:41:45 +0300 Subject: [mapserver-users] =?utf-8?q?the_lines_one_above_other?= In-Reply-To: <1423747605.619694842@f400.i.mail.ru> References: <1423738916.183450096@f194.i.mail.ru> <54DC9B6A.8020705@gisberater.com> <1423747605.619694842@f400.i.mail.ru> Message-ID: <1423748505.581014320@f385.i.mail.ru> Andreas. Thanks for response too. I use phpmapscript and postgis.?How can I use "order by" ?for this purpose? Sorry. I have some correction: What I have:? http://s18.postimg.org/vkvb8jprd/crossroad1.jpg What I need:? http://s14.postimg.org/yk40e0nq9/crossroad.jpg -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Thu Feb 12 05:48:55 2015 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Thu, 12 Feb 2015 13:48:55 +0000 Subject: [mapserver-users] [EXTERNAL] Re: the lines one above other Message-ID: No, MapServer respects the feature order. Using the ORDER BY with a database connection, MapServer will draw features in that order. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 2/12/15, 7:52 AM, "Eichner, Andreas - SID" wrote: >I'm not sure about this but AFAIK MapServer draws features in the order >they are returned by the query. For Shapefiles there is the sortshp >utility. If you're on a relational database like PostGIS or OracleSpatial >you can try including the "ORDER BY prio" within the DATA. But since MS >wraps it into a subquery the database might still return the features out >of order. > >> -----Urspr?ngliche Nachricht----- >> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] Im Auftrag von Vladimir >> Gesendet: Donnerstag, 12. Februar 2015 12:02 >> An: mapserver-users at lists.osgeo.org >> Betreff: [mapserver-users] the lines one above other >> >> Hello All! >> >> >> >> The task is to show multilevel junction of highway. >> The lines should be at the same layer and has the same style, for >>example >> see orange lines on attached pic: >> [img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img] >> Is it possible to draw the lines one above other by an one layer? >> May be some method of Z-index for features in a layer exists? >> Thanks for any guidance to display this kind of crossroads. >> >> Vladimir >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Thu Feb 12 05:55:38 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 12 Feb 2015 08:55:38 -0500 Subject: [mapserver-users] [EXTERNAL] Re: the lines one above other In-Reply-To: References: Message-ID: Actually there is an issue opened for this, as the order by inside the subquery is not guaranteed to be maintained in the outer query: https://github.com/mapserver/mapserver/issues/5008 . For mssql there has been a patch applied, for postgis it is not needed yet. On 12 February 2015 at 08:48, Smith, Michael ERDC-RDE-CRREL-NH wrote: > No, MapServer respects the feature order. Using the ORDER BY with a > database connection, MapServer will draw features in that order. > > Mike > > -- > Michael Smith > > US Army Corps > Remote Sensing GIS/Center > > > > On 2/12/15, 7:52 AM, "Eichner, Andreas - SID" > wrote: > >>I'm not sure about this but AFAIK MapServer draws features in the order >>they are returned by the query. For Shapefiles there is the sortshp >>utility. If you're on a relational database like PostGIS or OracleSpatial >>you can try including the "ORDER BY prio" within the DATA. But since MS >>wraps it into a subquery the database might still return the features out >>of order. >> >>> -----Urspr?ngliche Nachricht----- >>> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >>> bounces at lists.osgeo.org] Im Auftrag von Vladimir >>> Gesendet: Donnerstag, 12. Februar 2015 12:02 >>> An: mapserver-users at lists.osgeo.org >>> Betreff: [mapserver-users] the lines one above other >>> >>> Hello All! >>> >>> >>> >>> The task is to show multilevel junction of highway. >>> The lines should be at the same layer and has the same style, for >>>example >>> see orange lines on attached pic: >>> [img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img] >>> Is it possible to draw the lines one above other by an one layer? >>> May be some method of Z-index for features in a layer exists? >>> Thanks for any guidance to display this kind of crossroads. >>> >>> Vladimir >>_______________________________________________ >>mapserver-users mailing list >>mapserver-users at lists.osgeo.org >>http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Michael.Smith at erdc.dren.mil Thu Feb 12 05:58:24 2015 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Thu, 12 Feb 2015 13:58:24 +0000 Subject: [mapserver-users] [EXTERNAL] Re: the lines one above other In-Reply-To: References: Message-ID: This is also not an issue in Oracle. M On 2/12/15, 8:55 AM, "thomas bonfort" wrote: >Actually there is an issue opened for this, as the order by inside the >subquery is not guaranteed to be maintained in the outer query: >https://github.com/mapserver/mapserver/issues/5008 . For mssql there >has been a patch applied, for postgis it is not needed yet. > >On 12 February 2015 at 08:48, Smith, Michael ERDC-RDE-CRREL-NH > wrote: >> No, MapServer respects the feature order. Using the ORDER BY with a >> database connection, MapServer will draw features in that order. >> >> Mike >> >> -- >> Michael Smith >> >> US Army Corps >> Remote Sensing GIS/Center >> >> >> >> On 2/12/15, 7:52 AM, "Eichner, Andreas - SID" >> wrote: >> >>>I'm not sure about this but AFAIK MapServer draws features in the order >>>they are returned by the query. For Shapefiles there is the sortshp >>>utility. If you're on a relational database like PostGIS or >>>OracleSpatial >>>you can try including the "ORDER BY prio" within the DATA. But since MS >>>wraps it into a subquery the database might still return the features >>>out >>>of order. >>> >>>> -----Urspr?ngliche Nachricht----- >>>> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >>>> bounces at lists.osgeo.org] Im Auftrag von Vladimir >>>> Gesendet: Donnerstag, 12. Februar 2015 12:02 >>>> An: mapserver-users at lists.osgeo.org >>>> Betreff: [mapserver-users] the lines one above other >>>> >>>> Hello All! >>>> >>>> >>>> >>>> The task is to show multilevel junction of highway. >>>> The lines should be at the same layer and has the same style, for >>>>example >>>> see orange lines on attached pic: >>>> [img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img] >>>> Is it possible to draw the lines one above other by an one layer? >>>> May be some method of Z-index for features in a layer exists? >>>> Thanks for any guidance to display this kind of crossroads. >>>> >>>> Vladimir >>>_______________________________________________ >>>mapserver-users mailing list >>>mapserver-users at lists.osgeo.org >>>http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From fricke at gisberater.com Thu Feb 12 06:01:53 2015 From: fricke at gisberater.com (Lars Fricke) Date: Thu, 12 Feb 2015 15:01:53 +0100 Subject: [mapserver-users] the lines one above other In-Reply-To: <1423747605.619694842@f400.i.mail.ru> References: <1423738916.183450096@f194.i.mail.ru> <54DC9B6A.8020705@gisberater.com> <1423747605.619694842@f400.i.mail.ru> Message-ID: <54DCB251.4070003@gisberater.com> An HTML attachment was scrubbed... URL: From baas at speerit.nl Thu Feb 12 07:44:01 2015 From: baas at speerit.nl (Jelmer Baas) Date: Thu, 12 Feb 2015 15:44:01 +0000 Subject: [mapserver-users] Segfaults with MapScript from Python Message-ID: Hi List, Some of my automated renders are failing because Python crashes with an Segmentation fault. I've finally found at least some logs of this: Feb 12 16:16:19 vm-ctwrender07 kernel: [276759.889265] traps: python[8002] general protection ip:7f104ec4f50f sp:7fff17d8d790 error:0 in libmapserver.so.6.4.1[7f104eb91000+1d8000] Feb 12 15:08:01 vm-ctwrender07 kernel: [272664.046597] traps: python[7841] general protection ip:7f80558877b6 sp:7fff641f27c0 error:0 in libmapserver.so.6.4.1[7f80557c9000+1d8000] Feb 12 13:53:01 vm-ctwrender07 kernel: [268166.881041] python[7614]: segfault at fffffffffffffffc ip 00007f805588750f sp 00007fff641f27c0 error 5 in libmapserver.so.6.4.1[7f80557c9000+1d8000] Unfortunatly, I have no idea how to continue. I suspect this has something todo with odd font rendering (too large, too small), since I had issues with that before. Can someone match these addresses with code and find out where it crashes? Thanks in advance! Regards, Jelmer From theduckylittle at gmail.com Thu Feb 12 07:55:11 2015 From: theduckylittle at gmail.com (Dan Little) Date: Thu, 12 Feb 2015 09:55:11 -0600 Subject: [mapserver-users] Segfaults with MapScript from Python In-Reply-To: References: Message-ID: I don't see any debugging symbols in there making life a little bit more difficult. Is your Python code very complex? Could a useful snippet be posted to a gist? On Thu, Feb 12, 2015 at 9:44 AM, Jelmer Baas wrote: > Hi List, > > Some of my automated renders are failing because Python crashes with an Segmentation fault. I've finally found at least some logs of this: > Feb 12 16:16:19 vm-ctwrender07 kernel: [276759.889265] traps: python[8002] general protection ip:7f104ec4f50f sp:7fff17d8d790 error:0 in libmapserver.so.6.4.1[7f104eb91000+1d8000] > Feb 12 15:08:01 vm-ctwrender07 kernel: [272664.046597] traps: python[7841] general protection ip:7f80558877b6 sp:7fff641f27c0 error:0 in libmapserver.so.6.4.1[7f80557c9000+1d8000] > Feb 12 13:53:01 vm-ctwrender07 kernel: [268166.881041] python[7614]: segfault at fffffffffffffffc ip 00007f805588750f sp 00007fff641f27c0 error 5 in libmapserver.so.6.4.1[7f80557c9000+1d8000] > > Unfortunatly, I have no idea how to continue. I suspect this has something todo with odd font rendering (too large, too small), since I had issues with that before. Can someone match these addresses with code and find out where it crashes? > > Thanks in advance! > > Regards, > Jelmer > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From baas at speerit.nl Thu Feb 12 08:57:54 2015 From: baas at speerit.nl (Jelmer Baas) Date: Thu, 12 Feb 2015 16:57:54 +0000 Subject: [mapserver-users] Segfaults with MapScript from Python In-Reply-To: References: , Message-ID: The code isn't all that complex, not much more than three layers with a postgis source and using an ogr_style column. I'll do my best to create a stripped-down script and test dataset tomorrow. -- Jelmer ________________________________________ Van: Dan Little [theduckylittle at gmail.com] Verzonden: donderdag 12 februari 2015 16:55 Aan: Jelmer Baas CC: mapserver-users at lists.osgeo.org Onderwerp: Re: [mapserver-users] Segfaults with MapScript from Python I don't see any debugging symbols in there making life a little bit more difficult. Is your Python code very complex? Could a useful snippet be posted to a gist? On Thu, Feb 12, 2015 at 9:44 AM, Jelmer Baas wrote: > Hi List, > > Some of my automated renders are failing because Python crashes with an Segmentation fault. I've finally found at least some logs of this: > Feb 12 16:16:19 vm-ctwrender07 kernel: [276759.889265] traps: python[8002] general protection ip:7f104ec4f50f sp:7fff17d8d790 error:0 in libmapserver.so.6.4.1[7f104eb91000+1d8000] > Feb 12 15:08:01 vm-ctwrender07 kernel: [272664.046597] traps: python[7841] general protection ip:7f80558877b6 sp:7fff641f27c0 error:0 in libmapserver.so.6.4.1[7f80557c9000+1d8000] > Feb 12 13:53:01 vm-ctwrender07 kernel: [268166.881041] python[7614]: segfault at fffffffffffffffc ip 00007f805588750f sp 00007fff641f27c0 error 5 in libmapserver.so.6.4.1[7f80557c9000+1d8000] > > Unfortunatly, I have no idea how to continue. I suspect this has something todo with odd font rendering (too large, too small), since I had issues with that before. Can someone match these addresses with code and find out where it crashes? > > Thanks in advance! > > Regards, > Jelmer > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Thu Feb 12 14:10:45 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 12 Feb 2015 17:10:45 -0500 Subject: [mapserver-users] MapServer 7.0 Beta1 Released Message-ID: The MapServer team is pleased to announce the long overdue first beta release of MapServer 7.0. Please help us testing and let us know any findings. Details of the new features, migration instructions, and download links can be found on the dedicated announcement page at http://www.mapserver.org/development/announce/7-0.html . Cheers, The MapServer PSC From richard.greenwood at gmail.com Thu Feb 12 19:13:16 2015 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 12 Feb 2015 20:13:16 -0700 Subject: [mapserver-users] mapserv 7.0 and gif Message-ID: Very exciting to see the 7.0 beta! So I built it and satisfied the gif dependency. I define a gif OUTPUTFORMAT definition in my map file, I request a map with map_imagetype=image/gif but I get a PNG. So is gif support truly gone in 7.0? And if so, it seems a little misleading to have a libgif dependency in the build, to allow a gif OUTPUTFORMAT definition, and to allow a map_imagetype=image/gif request. In any case - thanks for all the work getting to 7.0! Rich -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From fl_v at inbox.ru Fri Feb 13 01:17:13 2015 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Fri, 13 Feb 2015 12:17:13 +0300 Subject: [mapserver-users] =?utf-8?q?the_lines_one_above_other?= In-Reply-To: References: <1423738916.183450096@f194.i.mail.ru> Message-ID: <1423819033.164972282@f178.i.mail.ru> Bobb Thanks you very much for detailed answer. I'll have to place the parts of lines in various layers. There is no other elegant decision as i understood, but I wonder how "web-map-giants" like GOOGLE or OSM get out of this scrape. >Vladimir, >? >I?ve faked this in the past by drawing the same layer many times in one pass (inside of the same mapfile), you need at least one complete layer pass, with other partial layers for the over/under situations.? You can do the partial layer grouping with attributes on the segments that need to go under or over, and this is a manual process for the most part, but it?s a real pain to keep that up to date over time (I?m talking over years) .? I could probably find a programmer that thought of this as a challenge, but you still need a human to decide what is over something else as a last QA. >? >The much harder task is defining which layers (partial segments are over/under other layers..? You need to remove some line segments form at least one of the layers in order to make things display correctly.? Sometimes a layer is over, sometime it?s under.? I actually have two instances in my mapping system, where I have three different bridges stacked on top of each other, two of them a roadways, with the odd one in between them.? The other has a Railway bridge over a roadway bridge crossing. >? >The z-index stuff has always been a painful thing thing to keep updated, but it is doable. >? >I?ve rencetly been looking at this myself for hardcopy pringing purposes. As well. >? >Bobb ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From fl_v at inbox.ru Fri Feb 13 01:26:12 2015 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Fri, 13 Feb 2015 12:26:12 +0300 Subject: [mapserver-users] =?utf-8?q?the_lines_one_above_other?= In-Reply-To: <54DCB251.4070003@gisberater.com> References: <1423738916.183450096@f194.i.mail.ru> <1423747605.619694842@f400.i.mail.ru> <54DCB251.4070003@gisberater.com> Message-ID: <1423819572.167674719@f184.i.mail.ru> Lars,? Thanx in any event for devoting your attention. >Vladimir, > >I see, so you do not need the order of the LAYERS but the order of the FEATURES. I did not understand that correctly at first, sorry. In that case, I guess Andreas approach would be the one. > >Best > >Lars > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Fri Feb 13 01:51:08 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Fri, 13 Feb 2015 09:51:08 +0000 Subject: [mapserver-users] the lines one above other Message-ID: Hi, With OSM and Mapnik it is a two phase process. First osm2pgsql tries to generate sensible z-index values and then Mapnik makes ?order by? queries to the database. The queries are here https://github.com/gravitystorm/openstreetmap-carto/blob/master/project.yaml and as an example (SELECT way, COALESCE(( 'highway_' || (CASE WHEN highway IN ('residential', 'unclassified', 'pedestrian', 'service', 'footway', 'cycleway', 'track', 'path', 'platform') THEN highway ELSE NULL END)), ('railway_' || (CASE WHEN railway IN ('platform') THEN railway ELSE NULL END)) ) AS feature FROM planet_osm_polygon WHERE highway IN ('residential', 'unclassified', 'pedestrian', 'service', 'footway', 'track', 'path', 'platform') OR railway IN ('platform') ORDER BY z_order, way_area DESC ) AS highway_area_casing -Jukka Rahkonen- Vladimir wrote: Bobb Thanks you very much for detailed answer. I'll have to place the parts of lines in various layers. There is no other elegant decision as i understood, but I wonder how "web-map-giants" like GOOGLE or OSM get out of this scrape. Vladimir, I?ve faked this in the past by drawing the same layer many times in one pass (inside of the same mapfile), you need at least one complete layer pass, with other partial layers for the over/under situations. You can do the partial layer grouping with attributes on the segments that need to go under or over, and this is a manual process for the most part, but it?s a real pain to keep that up to date over time (I?m talking over years) . I could probably find a programmer that thought of this as a challenge, but you still need a human to decide what is over something else as a last QA. The much harder task is defining which layers (partial segments are over/under other layers.. You need to remove some line segments form at least one of the layers in order to make things display correctly. Sometimes a layer is over, sometime it?s under. I actually have two instances in my mapping system, where I have three different bridges stacked on top of each other, two of them a roadways, with the odd one in between them. The other has a Railway bridge over a roadway bridge crossing. The z-index stuff has always been a painful thing thing to keep updated, but it is doable. I?ve rencetly been looking at this myself for hardcopy pringing purposes. As well. Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From baas at speerit.nl Fri Feb 13 02:07:05 2015 From: baas at speerit.nl (Jelmer Baas) Date: Fri, 13 Feb 2015 10:07:05 +0000 Subject: [mapserver-users] Segfaults with MapScript from Python In-Reply-To: References: Message-ID: Dan, List, I've been messing around with this issue some more, and found the cause! This record crashes MapScript is this (this is the ONLY record in the database now): OID, geom, ogr_style 1234, POINT(620008 6697971), 'LABEL(t:"(0) test")' The ONLY thing that matters is the OGR_STYLE clause - the (0) part. Replace the style with 'LABEL(t:".(0) test")' and all is well. I attached my test scripts. Run simply with 'python test.py'. Test-data: CREATE TABLE testset ( oid oid, geom geometry, ogr_style character varying(350), filetype character(1) ) Insert into testset(oid, geom, ogr_style) values (1234, '010100002031BF0D00F726AD90D0EB2241846601CDFC8C5941', 'LABEL(t:"(0) test")') This single record crashes Python / MapScript with a lovely " Segmentation fault (core dumped)". Hopefully someone can debug this issue. Regards, Jelmer -----Original Message----- From: Dan Little [mailto:theduckylittle at gmail.com] Sent: donderdag 12 februari 2015 16:55 To: Jelmer Baas Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Segfaults with MapScript from Python I don't see any debugging symbols in there making life a little bit more difficult. Is your Python code very complex? Could a useful snippet be posted to a gist? On Thu, Feb 12, 2015 at 9:44 AM, Jelmer Baas wrote: > Hi List, > > Some of my automated renders are failing because Python crashes with an Segmentation fault. I've finally found at least some logs of this: > Feb 12 16:16:19 vm-ctwrender07 kernel: [276759.889265] traps: python[8002] general protection ip:7f104ec4f50f sp:7fff17d8d790 error:0 in libmapserver.so.6.4.1[7f104eb91000+1d8000] > Feb 12 15:08:01 vm-ctwrender07 kernel: [272664.046597] traps: python[7841] general protection ip:7f80558877b6 sp:7fff641f27c0 error:0 in libmapserver.so.6.4.1[7f80557c9000+1d8000] > Feb 12 13:53:01 vm-ctwrender07 kernel: [268166.881041] python[7614]: segfault at fffffffffffffffc ip 00007f805588750f sp 00007fff641f27c0 error 5 in libmapserver.so.6.4.1[7f80557c9000+1d8000] > > Unfortunatly, I have no idea how to continue. I suspect this has something todo with odd font rendering (too large, too small), since I had issues with that before. Can someone match these addresses with code and find out where it crashes? > > Thanks in advance! > > Regards, > Jelmer > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- A non-text attachment was scrubbed... Name: MapScript crash.zip Type: application/x-zip-compressed Size: 2262 bytes Desc: MapScript crash.zip URL: From fl_v at inbox.ru Fri Feb 13 03:10:06 2015 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Fri, 13 Feb 2015 14:10:06 +0300 Subject: [mapserver-users] =?utf-8?q?the_lines_one_above_other?= In-Reply-To: References: Message-ID: <1423825806.683452680@f348.i.mail.ru> There is question about placing the parts of lines in various layers. I added the small part of line above the highway with linecap=butt for "stops the line exactly at the end" as described in http://mapserver.org/mapfile/symbology/construction.html#linecap. But butts of the line has some thin border, please see the pic: http://s8.postimg.org/iymc3az9h/linecap_butt.jpg How to escape this? Thanx. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fl_v at inbox.ru Fri Feb 13 04:52:51 2015 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Fri, 13 Feb 2015 15:52:51 +0300 Subject: [mapserver-users] =?utf-8?q?=5BEXTERNAL=5D_Re=3A_the_lines_one_ab?= =?utf-8?q?ove_other?= In-Reply-To: References: Message-ID: <1423831971.953386474@f73.i.mail.ru> I would draw your attention to the source of this discussion. http://osgeo-org.1560.x6.nabble.com/the-lines-one-above-other-td5187093.html It seems I found how to display multilevel junction of highway with "ORDER BY" in the case using a one layer. Adding "order by id desc" or "order by id asc" in subquery, also the definition $highwayStyle2 besides $highwayStyle1 works fine. Please see the code and the illustrations below: -------------------------------------------------- $highwayLayer->set('status', MS_ON); $highwayLayer->set('name', 'highway'); $highwayLayer->set('labelitem', 'name'); $highwayLayer->setConnectionType(MS_POSTGIS); $highwayLayer->set('connection', 'user=my_user password=my_pass dbname=my_db host=localhost'); $highwayLayer->set("data","geom from (select id, 'id = '||id as name, geom from my_table where ST_Intersects(geom, !BOX!) order by id desc) as subquery using unique id using srid=3857"); $highwayLayer->setprocessing("close_connection=defer"); $highwayLayer->set("type",MS_LAYER_LINE); $highwayClass = new ClassObj($highwayLayer); $highwayClass->set('name', 'highway'); $highwayStyle1 = new styleObj($highwayClass); $highwayStyle1->color->setRGB(254,173,0); $highwayStyle1->set('linecap','square'); $highwayStyle1->set('width',4); $respdorStyle1->outlinecolor->setRGB(255,0,0); $respdorStyle1->set('outlinewidth',2); $highwayStyle2 = new styleObj($highwayClass); $highwayStyle2->color->setRGB(254,173,0); $highwayStyle2->set('linecap','square'); $highwayStyle2->set('width',4); $respdorStyle2->outlinecolor->setRGB(255,0,0); $respdorStyle2->set('outlinewidth',2); ------------------------- Result when "order by id asc": http://s22.postimg.org/esbobf18x/order_by_id_asc.jpg Result when "order by id desc": http://s10.postimg.org/qeokp2jrd/order_by_id_desc.jpg ------------------------- That's the goods for me but there is the impression of using some undocumented singularity. Thanx for any comments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Fri Feb 13 05:00:38 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Fri, 13 Feb 2015 13:00:38 +0000 Subject: [mapserver-users] mapserv 7.0 and gif In-Reply-To: References: Message-ID: <6F331135492B944D90731CE93743D5681C21EF@FS-EX-DB102.fs.sachsen.de> According to http://www.mapserver.org/MIGRATION_GUIDE.html#mapserver-6-4-to-7-0-migration: * GD graphics library support was removed (http://www.mapserver.org/development/rfc/ms-rfc-99.html) and had been optional since 6.2. * GIF output cannot be produced from MapServer although 8-bit PNG output can be be produced using the AGG/PNG8 driver. It is no longer supported if I understand it correctly. > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Richard Greenwood > Gesendet: Freitag, 13. Februar 2015 04:13 > An: mapserver > Betreff: [mapserver-users] mapserv 7.0 and gif > > Very exciting to see the 7.0 beta! So I built it and satisfied the gif > dependency. I define a gif OUTPUTFORMAT definition in my map file, I > request a map with map_imagetype=image/gif but I get a PNG. So is gif > support truly gone in 7.0? And if so, it seems a little misleading to have > a libgif dependency in the build, to allow a gif OUTPUTFORMAT definition, > and to allow a map_imagetype=image/gif request. > > In any case - thanks for all the work getting to 7.0! > > > Rich > > > -- > > Richard W. Greenwood, PLS > www.greenwoodmap.com From thomas.bonfort at gmail.com Fri Feb 13 05:05:17 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 13 Feb 2015 08:05:17 -0500 Subject: [mapserver-users] mapserv 7.0 and gif In-Reply-To: References: Message-ID: Richard, Allowing for image/gif in requests and GIF outputformats is to allow existing mapfiles and requests to still be serviced without breaking, even though the returned format will be png. The gif dependency is there to allow loading of gif pixmap symbols, as was already the case. -- thomas On 12 February 2015 at 22:13, Richard Greenwood wrote: > Very exciting to see the 7.0 beta! So I built it and satisfied the gif > dependency. I define a gif OUTPUTFORMAT definition in my map file, I request > a map with map_imagetype=image/gif but I get a PNG. So is gif support truly > gone in 7.0? And if so, it seems a little misleading to have a libgif > dependency in the build, to allow a gif OUTPUTFORMAT definition, and to > allow a map_imagetype=image/gif request. > > In any case - thanks for all the work getting to 7.0! > > Rich > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From fl_v at inbox.ru Fri Feb 13 05:14:10 2015 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Fri, 13 Feb 2015 16:14:10 +0300 Subject: [mapserver-users] =?utf-8?q?=5BEXTERNAL=5D_Re=3A_the_lines_one_ab?= =?utf-8?q?ove_other?= In-Reply-To: <1423831971.953386474@f73.i.mail.ru> References: <1423831971.953386474@f73.i.mail.ru> Message-ID: <1423833250.304889110@f126.i.mail.ru> Sorry, I have some correction, it is right illustrations: Result when order by asc: http://s28.postimg.org/lqs8nxw31/asc.jpg Result when order by desc: http://s12.postimg.org/xondilekt/desc.jpg -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Feb 13 05:17:58 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 13 Feb 2015 08:17:58 -0500 Subject: [mapserver-users] [EXTERNAL] Re: the lines one above other In-Reply-To: <1423831971.953386474@f73.i.mail.ru> References: <1423831971.953386474@f73.i.mail.ru> Message-ID: You can do it in a single layer, provided that you have someway of determining via attributes that a given road segment isn't connected to other road segments below it (typically that would be something saying it's a bridge rather than a regular road). The behavior is undocumented and relies on the knowledge of how mapserver treats the line cache for casing. CLASS EXPRESSION ("[type]"="bridge") STYLE END STYLE WIDTH 5 COLOR bridge_outline_color LINECAP butt END STYLE WIDTH 3 COLOR highway_color END END CLASS STYLE WIDTH 5 COLOR highway_outline_color END STYLE WIDTH 3 COLOR highway_color END END (The trick is to add an empty style block so the rendering order for bridges is offset by one compared to normal roads) In your sql query, you also use an "order by z_level asc" so higher roads get drawn after (=over) lower ones. You might want to take a look at https://github.com/mapserver/basemaps where this (along with other tricks for dealing with complex road maps) is used. -- thomas On 13 February 2015 at 07:52, Vladimir wrote: > I would draw your attention to the source of this discussion. > http://osgeo-org.1560.x6.nabble.com/the-lines-one-above-other-td5187093.html > > It seems I found how to display multilevel junction of highway with "ORDER > BY" in the case using a one layer. Adding "order by id desc" or "order by id > asc" in subquery, also the definition $highwayStyle2 besides $highwayStyle1 > works fine. > Please see the code and the illustrations below: > > -------------------------------------------------- > > $highwayLayer->set('status', MS_ON); > $highwayLayer->set('name', 'highway'); > $highwayLayer->set('labelitem', 'name'); > $highwayLayer->setConnectionType(MS_POSTGIS); > $highwayLayer->set('connection', 'user=my_user password=my_pass dbname=my_db > host=localhost'); > > $highwayLayer->set("data","geom from (select id, 'id = '||id as name, geom > from my_table > where ST_Intersects(geom, !BOX!) order by id desc) as subquery using unique > id using srid=3857"); > $highwayLayer->setprocessing("close_connection=defer"); > $highwayLayer->set("type",MS_LAYER_LINE); > > $highwayClass = new ClassObj($highwayLayer); > $highwayClass->set('name', 'highway'); > > $highwayStyle1 = new styleObj($highwayClass); > $highwayStyle1->color->setRGB(254,173,0); > $highwayStyle1->set('linecap','square'); > $highwayStyle1->set('width',4); > $respdorStyle1->outlinecolor->setRGB(255,0,0); > $respdorStyle1->set('outlinewidth',2); > > $highwayStyle2 = new styleObj($highwayClass); > $highwayStyle2->color->setRGB(254,173,0); > $highwayStyle2->set('linecap','square'); > $highwayStyle2->set('width',4); > $respdorStyle2->outlinecolor->setRGB(255,0,0); > $respdorStyle2->set('outlinewidth',2); > > ------------------------- > > Result when "order by id asc": > http://s22.postimg.org/esbobf18x/order_by_id_asc.jpg > > Result when "order by id desc": > http://s10.postimg.org/qeokp2jrd/order_by_id_desc.jpg > > ------------------------- > > That's the goods for me but there is the impression of using some > undocumented singularity. > > Thanx for any comments. > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Andreas.Eichner at sid.sachsen.de Fri Feb 13 05:43:14 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Fri, 13 Feb 2015 13:43:14 +0000 Subject: [mapserver-users] [EXTERNAL] Re: the lines one above other In-Reply-To: <1423831971.953386474@f73.i.mail.ru> References: <1423831971.953386474@f73.i.mail.ru> Message-ID: <6F331135492B944D90731CE93743D5681C2219@FS-EX-DB102.fs.sachsen.de> > It seems I found how to display multilevel junction of highway with "ORDER > BY" in the case using a one layer. Adding "order by id desc" or "order by > id asc" in subquery > $highwayLayer->set("data","geom from (select id, 'id = '||id as name, geom > from my_table > where ST_Intersects(geom, !BOX!) order by id desc) as subquery using > unique id using srid=3857"); Be careful with that as you cannot expect this to work consistently as long as MapServer wraps it in a subquery. The database will likely return your features either in storage order or in index order depending if it uses a sequential scan or the index. You should not rely on an ORDER BY within a subquery... From Steve.Toutant at inspq.qc.ca Fri Feb 13 07:17:59 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 13 Feb 2015 10:17:59 -0500 Subject: [mapserver-users] mapserver 7 wfs_encoding Message-ID: Congratulations for the huge improve performance for WFS filtering with postgis and oracle... Mapserver 7 doesn't use wfs_encoding specified in the mapfile anymore, I see anything in the changelog about that. Is there something change? -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Feb 13 07:21:05 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 13 Feb 2015 10:21:05 -0500 Subject: [mapserver-users] mapserver 7 wfs_encoding In-Reply-To: References: Message-ID: http://mapserver.org/development/rfc/ms-rfc-103.html -- thomas On 13 February 2015 at 10:17, wrote: > Congratulations for the huge improve performance for WFS filtering with > postgis and oracle... > > > Mapserver 7 doesn't use wfs_encoding specified in the mapfile anymore, I see > anything in the changelog about that. > > Is there something change? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Toutant at inspq.qc.ca Fri Feb 13 07:39:32 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 13 Feb 2015 10:39:32 -0500 Subject: [mapserver-users] mapserver 7 wfs_encoding In-Reply-To: References: Message-ID: oh! That means that if our database or datasource is encoded iso-8859-1, we need to set ENCODING "iso-8859-1" in all our layers, there is no parameter at the MAP level right? And, Mapfiles themselves will be expected to be UTF8-encoded. Non UTF8-encoded mapfiles will need to be iconv?d to utf8. That means we cannot right any mapfile in iso-8859-1. we need to set our IDe to write in utf-8. Is my understanding correct? thomas bonfort 2015-02-13 10:21 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO Objet Re: [mapserver-users] mapserver 7 wfs_encoding http://mapserver.org/development/rfc/ms-rfc-103.html -- thomas On 13 February 2015 at 10:17, wrote: > Congratulations for the huge improve performance for WFS filtering with > postgis and oracle... > > > Mapserver 7 doesn't use wfs_encoding specified in the mapfile anymore, I see > anything in the changelog about that. > > Is there something change? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Feb 13 07:41:42 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 13 Feb 2015 10:41:42 -0500 Subject: [mapserver-users] mapserver 7 wfs_encoding In-Reply-To: References: Message-ID: Yes, that is correct. We need to update the migration guide to include this. On 13 February 2015 at 10:39, wrote: > oh! > > That means that if our database or datasource is encoded iso-8859-1, we > need to set ENCODING "iso-8859-1" in all our layers, there is no parameter > at the MAP level right? > > And, > > - Mapfiles themselves will be expected to be UTF8-encoded. Non > UTF8-encoded mapfiles will need to be iconv?d to utf8. > > > That means we cannot right any mapfile in iso-8859-1. we need to set our > IDe to write in utf-8. > > > Is my understanding correct? > > > > > *thomas bonfort >* > > 2015-02-13 10:21 > A > Steve.Toutant at inspq.qc.ca > cc > MapserverList OSGEO > Objet > Re: [mapserver-users] mapserver 7 wfs_encoding > > > > > > > http://mapserver.org/development/rfc/ms-rfc-103.html > > -- > thomas > > On 13 February 2015 at 10:17, wrote: > > Congratulations for the huge improve performance for WFS filtering with > > postgis and oracle... > > > > > > Mapserver 7 doesn't use wfs_encoding specified in the mapfile anymore, I > see > > anything in the changelog about that. > > > > Is there something change? > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Sun Feb 15 18:25:16 2015 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sun, 15 Feb 2015 19:25:16 -0700 Subject: [mapserver-users] building php mapscript 7 beta Message-ID: I'm getting the error below when trying to load php_mapscript.so 7 beta which I built from source on Ubuntu 14.04. I do not know where to look to fix this. Unable to load dynamic library '/usr/lib/php5/20121212/php_mapscript.so' - /usr/lib/php5/20121212/php_mapscript.so: undefined symbol: msInitExpression in Unknown on line 0 Thanks, Rich -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Mon Feb 16 18:19:49 2015 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Mon, 16 Feb 2015 19:19:49 -0700 Subject: [mapserver-users] building php mapscript 7 beta In-Reply-To: References: Message-ID: I put libmapserver.so.7.1-dev in a non-standard location and forgot to put the path in ldconfig. I've forgotten this often enough that I should know by now. Rich On Sun, Feb 15, 2015 at 7:25 PM, Richard Greenwood < richard.greenwood at gmail.com> wrote: > I'm getting the error below when trying to load php_mapscript.so 7 beta > which I built from source on Ubuntu 14.04. I do not know where to look to > fix this. > > Unable to load dynamic library '/usr/lib/php5/20121212/php_mapscript.so' - > /usr/lib/php5/20121212/php_mapscript.so: undefined symbol: msInitExpression > in Unknown on line 0 > > Thanks, > Rich > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Tue Feb 17 18:18:35 2015 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 17 Feb 2015 19:18:35 -0700 Subject: [mapserver-users] multiple mapserv versions side by side Message-ID: I'd like to play with the mapserv 7 beta on the same Ubuntu machine that I have mapserv 6.4 installed on. But both versions are using libmapserver.so so depending on what I have in my ldconfig path it's finding the 6.4 version lib or the 7beta ib. Is there an easier way to have both versions without changing ldconfig each time I switch between the two versions? Sorry, I know this is probably a pretty basic Linux question. Thanks, Rich -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Tue Feb 17 18:48:16 2015 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 17 Feb 2015 21:48:16 -0500 Subject: [mapserver-users] multiple mapserv versions side by side In-Reply-To: References: Message-ID: <54E3FD70.6050204@mapgears.com> On 2015-02-17 9:18 PM, Richard Greenwood wrote: > I'd like to play with the mapserv 7 beta on the same Ubuntu machine that > I have mapserv 6.4 installed on. But both versions are using > libmapserver.so so depending on what I have in my ldconfig path it's > finding the 6.4 version lib or the 7beta ib. Is there an easier way to > have both versions without changing ldconfig each time I switch between > the two versions? Sorry, I know this is probably a pretty basic Linux > question. > Hi Rich, Use cmake ... -DLINK_STATIC_LIBMAPSERVER=1 ... and libmapserver.a will be statically linked into your mapserv executable, and then you can simply copy the executable to your cgi-bin cp ./mapserv /usr/lib/cgi-bin/mapserv70 -- Daniel Morissette T: +1 418-696-5056 #201 http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From richard.greenwood at gmail.com Tue Feb 17 19:14:34 2015 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 17 Feb 2015 20:14:34 -0700 Subject: [mapserver-users] multiple mapserv versions side by side In-Reply-To: <54E3FD70.6050204@mapgears.com> References: <54E3FD70.6050204@mapgears.com> Message-ID: Thanks Daniel. I'd like to also have php mapscript but with static linking i'm getting error below. Any suggestions for that? Linking CXX shared module php_mapscript.so /usr/bin/ld: ../../libmapserver_static.a(cgiutil.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC ../../libmapserver_static.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[2]: *** [mapscript/php/php_mapscript.so] Error 1 On Tue, Feb 17, 2015 at 7:48 PM, Daniel Morissette wrote: > On 2015-02-17 9:18 PM, Richard Greenwood wrote: > >> I'd like to play with the mapserv 7 beta on the same Ubuntu machine that >> I have mapserv 6.4 installed on. But both versions are using >> libmapserver.so so depending on what I have in my ldconfig path it's >> finding the 6.4 version lib or the 7beta ib. Is there an easier way to >> have both versions without changing ldconfig each time I switch between >> the two versions? Sorry, I know this is probably a pretty basic Linux >> question. >> >> > > Hi Rich, > > Use > > cmake ... -DLINK_STATIC_LIBMAPSERVER=1 ... > > and libmapserver.a will be statically linked into your mapserv executable, > and then you can simply copy the executable to your cgi-bin > > cp ./mapserv /usr/lib/cgi-bin/mapserv70 > > > -- > Daniel Morissette > T: +1 418-696-5056 #201 > http://www.mapgears.com/ > Provider of Professional MapServer Support since 2000 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Feb 18 02:05:56 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 18 Feb 2015 11:05:56 +0100 Subject: [mapserver-users] multiple mapserv versions side by side In-Reply-To: References: <54E3FD70.6050204@mapgears.com> Message-ID: You /should/, at least on linux, be able to install to any non standard location without having to compile a static version by using "cmake .. -DCMAKE_INSTALL_PATH=/opt/ms70" and then copying/symlinking /opt/ms70/bin/mapserv to your standard cgi directory. The compiled php_mapscript.so should also pick up the non standard location, although you'll have to manually configure php to use the new php_mapscript.so library. You'll definitely run into issues if you have php load multiple versions of php_mapscript.so. -- thomas On 18 February 2015 at 04:14, Richard Greenwood wrote: > Thanks Daniel. I'd like to also have php mapscript but with static linking > i'm getting error below. Any suggestions for that? > > Linking CXX shared module php_mapscript.so > /usr/bin/ld: ../../libmapserver_static.a(cgiutil.c.o): relocation > R_X86_64_32 against `.rodata' can not be used when making a shared object; > recompile with -fPIC > ../../libmapserver_static.a: error adding symbols: Bad value > collect2: error: ld returned 1 exit status > make[2]: *** [mapscript/php/php_mapscript.so] Error 1 > > > On Tue, Feb 17, 2015 at 7:48 PM, Daniel Morissette > wrote: >> >> On 2015-02-17 9:18 PM, Richard Greenwood wrote: >>> >>> I'd like to play with the mapserv 7 beta on the same Ubuntu machine that >>> I have mapserv 6.4 installed on. But both versions are using >>> libmapserver.so so depending on what I have in my ldconfig path it's >>> finding the 6.4 version lib or the 7beta ib. Is there an easier way to >>> have both versions without changing ldconfig each time I switch between >>> the two versions? Sorry, I know this is probably a pretty basic Linux >>> question. >>> >> >> >> Hi Rich, >> >> Use >> >> cmake ... -DLINK_STATIC_LIBMAPSERVER=1 ... >> >> and libmapserver.a will be statically linked into your mapserv executable, >> and then you can simply copy the executable to your cgi-bin >> >> cp ./mapserv /usr/lib/cgi-bin/mapserv70 >> >> >> -- >> Daniel Morissette >> T: +1 418-696-5056 #201 >> http://www.mapgears.com/ >> Provider of Professional MapServer Support since 2000 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jan.Tappenbeck at ebhl.de Thu Feb 19 06:08:02 2015 From: Jan.Tappenbeck at ebhl.de (Tappenbeck, Jan) Date: Thu, 19 Feb 2015 14:08:02 +0000 Subject: [mapserver-users] possible to create pakates automatically ? Message-ID: <073CE9C90195A24DB8C15C8D341856239774CD@MA22-EX-002.local.ebhl.de> Hi! We are in use of Autodesk Infrastrukture Map Server and for creating packages (backup resources) we are using MapGuide Maestro 6.0a3. It is possible to create package manual - but is it possible to make this by a script or something else ? Regards Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.domenget at rochservice.com Fri Feb 20 01:57:30 2015 From: bruno.domenget at rochservice.com (Bruno D) Date: Fri, 20 Feb 2015 01:57:30 -0800 (PST) Subject: [mapserver-users] MapServer 6.4.1 OGR output error In-Reply-To: <1415811434127-5172655.post@n6.nabble.com> References: <1415811434127-5172655.post@n6.nabble.com> Message-ID: <1424426250932-5188833.post@n6.nabble.com> Hi all, I never got any answer to my problem, and it still isn't solved. Am I the only one having problems outputting OGR files ? Does anybody know what I could be doing wrong ? Thanks, Bruno -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapServer-6-4-1-OGR-output-error-tp5172655p5188833.html Sent from the Mapserver - User mailing list archive at Nabble.com. From fricke at gisberater.com Fri Feb 20 02:16:16 2015 From: fricke at gisberater.com (Lars Fricke) Date: Fri, 20 Feb 2015 11:16:16 +0100 Subject: [mapserver-users] MapServer 6.4.1 OGR output error In-Reply-To: <1424426250932-5188833.post@n6.nabble.com> References: <1415811434127-5172655.post@n6.nabble.com> <1424426250932-5188833.post@n6.nabble.com> Message-ID: <54E70970.9000006@gisberater.com> Lars Fricke Dear Bruno, sorry we did not get back to you. I'm not really sure what your problem could be. Could you: 1) Tell us what you tried already (you said it was a lot) so we do not have to think in a direction you already ruled out. 2) Did you look into the logfile of the web server (not the map server, that you posted)? Maybe there is something there. 3) Did you check on the options with which your MapServer was compiled? You can use mapserv -v (on Linux at least). Hope this gets you further. Best Lars Am 20.02.2015 um 10:57 schrieb Bruno D: > Hi all, > > I never got any answer to my problem, and it still isn't solved. > > Am I the only one having problems outputting OGR files ? Does anybody know > what I could be doing wrong ? > > Thanks, > > Bruno > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/MapServer-6-4-1-OGR-output-error-tp5172655p5188833.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From aki at soum.co.jp Fri Feb 20 02:10:48 2015 From: aki at soum.co.jp (IIJIMA Akihiro) Date: Fri, 20 Feb 2015 19:10:48 +0900 (JST) Subject: [mapserver-users] mapserver-announce ML Message-ID: <20150220.191048.246802197.aki@soum.co.jp> Hello, I want get MapServer security announce. I subscribe "mapserver-announce ML", but check http://lists.osgeo.org/pipermail/mapserver-announce/ announce ML looks like no work. Please tell me, how to get MapServer security announce info ? -- aki From aki at soum.co.jp Fri Feb 20 02:06:34 2015 From: aki at soum.co.jp (IIJIMA Akihiro) Date: Fri, 20 Feb 2015 19:06:34 +0900 (JST) Subject: [mapserver-users] mapserver-announce ML Message-ID: <20150220.190634.145058818.aki@soum.co.jp> Hello, I want get MapServer security announce. I subscribe "mapserver-announce ML", but check http://lists.osgeo.org/pipermail/mapserver-announce/ announce ML looks like no work. Please tell me, how to get MapServer security announce info ? -- aki From Andreas.Eichner at sid.sachsen.de Fri Feb 20 02:28:49 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Fri, 20 Feb 2015 10:28:49 +0000 Subject: [mapserver-users] MapServer 6.4.1 OGR output error In-Reply-To: <1424426250932-5188833.post@n6.nabble.com> References: <1415811434127-5172655.post@n6.nabble.com> <1424426250932-5188833.post@n6.nabble.com> Message-ID: <6F331135492B944D90731CE93743D5681C2390@FS-EX-DB102.fs.sachsen.de> You can't use OGR output formats that way. Calling msPrepareImage() on them triggers a NULL pointer dereference (fixed in https://github.com/mapserver/mapserver/pull/5069). So using $image = $map->draw() $image_url = $image->saveWebImage() is definitely the wrong way. The MapServer code hints to use msGMLWriteQuery() for that which seems to be exported as $map->savequeryasgml(string filename, string namespace) Documentation is rare on that... > Am I the only one having problems outputting OGR files ? Does anybody know > what I could be doing wrong ? From satpal82bhandari at gmail.com Fri Feb 20 05:51:54 2015 From: satpal82bhandari at gmail.com (satpal bhandari) Date: Fri, 20 Feb 2015 19:21:54 +0530 Subject: [mapserver-users] Not able to read Read MultiLineString and multigeometry coordinate with geotools in KML file Message-ID: Hi Team , We are using planning to set up mapserver with geotools.version:12-RC1. We are planning the below approach : 1. Input file KML1. 2. Read KML1 with geotoolls . Get all the details likes folders , placemarkers etc with java code. 3. Creating KML2 file on the fly with the details got in step2 so that this KLM2 file can be used with a standard .map file which will have color coding style as needed in our application(We are following this as mapserver is not able to read kml file's style.). Let me know if the above approach make sense. As a POC we found that below issues : 1. geotools is not able to read MultiLineString tag in KML input file. 2. After reading any coordinate , geotool is only giving the long/lat in returned coordinate , it is not giving the altitude written in kml file. Does it matters to our mapserver to process final kml Please suggest. Regards Satpal -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Feb 20 05:58:45 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 20 Feb 2015 14:58:45 +0100 Subject: [mapserver-users] Not able to read Read MultiLineString and multigeometry coordinate with geotools in KML file In-Reply-To: References: Message-ID: For issue 1 you should take this to the geotools mailing list as you won't get any meaningful answers here. For issue 2, unless you want to display altitude in a label or use different styles based on altitude, this should not be an issue for mapserver itself. On a side note, if kml2 is only to be used by mapserver, then you should preferably be creating shapefiles rather than kml for ingestion by mapserver as you'll be getting way better performance with that format. -- Thomas On Feb 20, 2015 2:52 PM, "satpal bhandari" wrote: > Hi Team , > > We are using planning to set up mapserver with geotools.version:12-RC1. > > We are planning the below approach : > > 1. Input file KML1. > 2. Read KML1 with geotoolls . Get all the details likes folders , > placemarkers etc with java code. > 3. Creating KML2 file on the fly with the details got in step2 so that > this KLM2 file can be used with a standard .map file which will have color > coding style as needed in our application(We are following this as > mapserver is not able to read kml file's style.). > > Let me know if the above approach make sense. > > > As a POC we found that below issues : > > 1. geotools is not able to read MultiLineString tag in KML input file. > 2. After reading any coordinate , geotool is only giving the long/lat in > returned coordinate , it is not giving the altitude written in kml file. > Does it matters to our mapserver to process final kml > > > Please suggest. > > Regards > Satpal > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.domenget at rochservice.com Fri Feb 20 07:21:11 2015 From: bruno.domenget at rochservice.com (Bruno D) Date: Fri, 20 Feb 2015 07:21:11 -0800 (PST) Subject: [mapserver-users] MapServer 6.4.1 OGR output error In-Reply-To: <54E70970.9000006@gisberater.com> References: <1415811434127-5172655.post@n6.nabble.com> <1424426250932-5188833.post@n6.nabble.com> <54E70970.9000006@gisberater.com> Message-ID: <1424445671483-5188947.post@n6.nabble.com> Dear Lars, Thanks for your quick answer ! I tried a lot of things, amongst which : * Compiling and installing MapServer 6.4.1 with different parameters concerning GDal and LibGD * Installing different GDal versions * Selecting outputformat in the mapfile or in the PHP script * Many other things I have since then forgotten... My web server shows no error, the only errors I get are the MapServer ones I posted. "mapserv -v" gives the following result : MapServer version 6.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks for your help, I'm very pleased with Mapserver and the OGR output is the last thing that does not work. Best Bruno -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapServer-6-4-1-OGR-output-error-tp5172655p5188947.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bruno.domenget at rochservice.com Fri Feb 20 07:26:45 2015 From: bruno.domenget at rochservice.com (Bruno D) Date: Fri, 20 Feb 2015 07:26:45 -0800 (PST) Subject: [mapserver-users] MapServer 6.4.1 OGR output error In-Reply-To: <6F331135492B944D90731CE93743D5681C2390@FS-EX-DB102.fs.sachsen.de> References: <1415811434127-5172655.post@n6.nabble.com> <1424426250932-5188833.post@n6.nabble.com> <6F331135492B944D90731CE93743D5681C2390@FS-EX-DB102.fs.sachsen.de> Message-ID: <1424446005530-5188948.post@n6.nabble.com> Hi Andreas, Thanks for your answer. I tried using savequeryasgml(), but it creates a blank gml file that only contains the following text : / / I'll look into that, but as you stated there is almost no documentation... Could someone who succeeded in outputting a DXF/SHP/... file through OGR post a working example ? Thanks ! Bruno -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapServer-6-4-1-OGR-output-error-tp5172655p5188948.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Fri Feb 20 07:32:58 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 20 Feb 2015 15:32:58 +0000 Subject: [mapserver-users] mapserver-announce ML In-Reply-To: <20150220.190634.145058818.aki@soum.co.jp> References: <20150220.190634.145058818.aki@soum.co.jp> Message-ID: Hmmm... I tried subscribing with a different email address and have yet to see the confirmation email so perhaps something is busted on the OSGeo side - Frank W. is listed as the list owner but I doubt that's the case. That said, the mapserver-announce list is very rarely used and if you're already a member of mapserver-users you're already getting those announcements. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of IIJIMA Akihiro Sent: Friday, February 20, 2015 4:07 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] mapserver-announce ML Hello, I want get MapServer security announce. I subscribe "mapserver-announce ML", but check http://lists.osgeo.org/pipermail/mapserver-announce/ announce ML looks like no work. Please tell me, how to get MapServer security announce info ? -- aki _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Fri Feb 20 08:55:21 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 20 Feb 2015 16:55:21 +0000 Subject: [mapserver-users] MapCache Demo Service... Message-ID: Is there any way to tweak what shows up in the demo service (e.g. /mapcache/demo)? Specifically: * Remove/hide layers from the interface * Set a default extent - I only have data for MN so it would be nice to start there * Set the default layer Steve StEVE LIME | DATA & Applications MANAGER MN.IT Services @ MnDNR 651-259-5473 (w) | 651-297-4946 (f) | steve.lime at state.mn.us [cid:image001.jpg at 01D04CFB.B835CBE0] Information Technology for Minnesota Government | mn.gov/oet -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 1600 bytes Desc: image001.jpg URL: From mapserver at markus-spring.de Sat Feb 21 14:21:09 2015 From: mapserver at markus-spring.de (mapserver) Date: Sat, 21 Feb 2015 23:21:09 +0100 Subject: [mapserver-users] Mapcache error: tile y=2 not in [0,2[ Message-ID: <54E904D5.5030604@markus-spring.de> I am building a public mapservice for the city of Harare, where the background map is served through tilecache (mapserver 6.4.1/tilecache 1.2.1). http://197.211.215.14/water/weekly_supply is almost functional (maybe you have to zoom in/out at first) What is bothering me are the two pink tiles in the upper border at 1:400000, which show the message tile y=2 not in [0,2[ in the apache error log. The tiles to the left and right of the pink ones are served o.k. (They are blank anyway) Could somebody tell me what's going on there? Thanks - Markus From A.Abhayasinghe at bom.gov.au Sun Feb 22 21:50:57 2015 From: A.Abhayasinghe at bom.gov.au (aabhayas) Date: Sun, 22 Feb 2015 21:50:57 -0800 (PST) Subject: [mapserver-users] Getcapabilities extremely slow in version 6.4.1 Message-ID: <1424670657919-5189325.post@n6.nabble.com> Hi I have compiled MapServer version 6.4.1 on a Redhat server. I noticed that the Getcapabilities request is extremely slow in the version 6.4.1. I have MapServer version 6.0.4 compiled in the same server. When I do the same Getcapabilities request on the version 6.0.4 it is nearly 20 times faster than the 6.4.1 version. Does anyone has an idea is to why Getcapabilities request is slow in version 6.4.1. Thanks Anuruddha -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Getcapabilities-extremely-slow-in-version-6-4-1-tp5189325.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jukka.rahkonen at maanmittauslaitos.fi Sun Feb 22 21:57:14 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 23 Feb 2015 05:57:14 +0000 Subject: [mapserver-users] Getcapabilities extremely slow in version 6.4.1 In-Reply-To: <1424670657919-5189325.post@n6.nabble.com> References: <1424670657919-5189325.post@n6.nabble.com> Message-ID: <1424671042304.5557@maanmittauslaitos.fi> Hi, It may have something to do with computing the extents of layers. Set layer extents at least for the biggest polygon layers manually in the mapfile and tell us if it makes any difference. -Jukka Rahkonen- ________________________________________ aabhayas wrote: Hi I have compiled MapServer version 6.4.1 on a Redhat server. I noticed that the Getcapabilities request is extremely slow in the version 6.4.1. I have MapServer version 6.0.4 compiled in the same server. When I do the same Getcapabilities request on the version 6.0.4 it is nearly 20 times faster than the 6.4.1 version. Does anyone has an idea is to why Getcapabilities request is slow in version 6.4.1. Thanks Anuruddha -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Getcapabilities-extremely-slow-in-version-6-4-1-tp5189325.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Andreas.Eichner at sid.sachsen.de Mon Feb 23 02:48:04 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Mon, 23 Feb 2015 10:48:04 +0000 Subject: [mapserver-users] MapServer 6.4.1 OGR output error In-Reply-To: <1424446005530-5188948.post@n6.nabble.com> References: <1415811434127-5172655.post@n6.nabble.com> <1424426250932-5188833.post@n6.nabble.com> <6F331135492B944D90731CE93743D5681C2390@FS-EX-DB102.fs.sachsen.de> <1424446005530-5188948.post@n6.nabble.com> Message-ID: <6F331135492B944D90731CE93743D5681C2426@FS-EX-DB102.fs.sachsen.de> To me it seems the WFS code uses msReturnTemplateQuery() from maptemplate.c but this is not exported to (PHP-)MapScript... I would guess that the only way to get OGR output would be to fake a OWS-Request: "WFS", "request" => "GetFeature", "version" => "1.1.0", "typename" => "Bati"); foreach($args as $param => $value) $req->setParameter($param, $value); $req->setParameter("outputformat", $_REQUEST["type_fichier"]); // $map->loadOWSParameters($req); $map->owsDispatch($req); ?> Requires enabling the request type and the output format: WEB METADATA Ows_enable_request "*" Wfs_getfeature_formatlist "dxf midmif shapezip csv kmz" END END HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Bruno D > Gesendet: Freitag, 20. Februar 2015 16:27 > An: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] MapServer 6.4.1 OGR output error > > Hi Andreas, > > Thanks for your answer. I tried using savequeryasgml(), but it creates a > blank gml file that only contains the following text : > / > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > / > > I'll look into that, but as you stated there is almost no documentation... > > Could someone who succeeded in outputting a DXF/SHP/... file through OGR > post a working example ? > > Thanks ! > > Bruno > > > > -- > View this message in context: http://osgeo- > org.1560.x6.nabble.com/MapServer-6-4-1-OGR-output-error- > tp5172655p5188948.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bruno.domenget at rochservice.com Mon Feb 23 06:11:25 2015 From: bruno.domenget at rochservice.com (Bruno D) Date: Mon, 23 Feb 2015 06:11:25 -0800 (PST) Subject: [mapserver-users] MapServer 6.4.1 OGR output error In-Reply-To: <6F331135492B944D90731CE93743D5681C2426@FS-EX-DB102.fs.sachsen.de> References: <1415811434127-5172655.post@n6.nabble.com> <1424426250932-5188833.post@n6.nabble.com> <6F331135492B944D90731CE93743D5681C2390@FS-EX-DB102.fs.sachsen.de> <1424446005530-5188948.post@n6.nabble.com> <6F331135492B944D90731CE93743D5681C2426@FS-EX-DB102.fs.sachsen.de> Message-ID: <1424700685350-5189444.post@n6.nabble.com> Thank you so much Andreas, your solution works perfectly ! I would never have thought of it by myself. Now all I have to do is understand why the generated zip files seem invalid (I can see their content with 7zip, but I can't extract them)... Thanks everyone for your help ! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapServer-6-4-1-OGR-output-error-tp5172655p5189444.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Mon Feb 23 06:52:27 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Mon, 23 Feb 2015 14:52:27 +0000 Subject: [mapserver-users] MapServer 6.4.1 OGR output error In-Reply-To: <1424700685350-5189444.post@n6.nabble.com> References: <1415811434127-5172655.post@n6.nabble.com> <1424426250932-5188833.post@n6.nabble.com> <6F331135492B944D90731CE93743D5681C2390@FS-EX-DB102.fs.sachsen.de> <1424446005530-5188948.post@n6.nabble.com> <6F331135492B944D90731CE93743D5681C2426@FS-EX-DB102.fs.sachsen.de> <1424700685350-5189444.post@n6.nabble.com> Message-ID: <6F331135492B944D90731CE93743D5681C244E@FS-EX-DB102.fs.sachsen.de> Maybe you tried to use the result directly? The owsDispatch() method creates content _plus_ headers. To get the plain content you need to write the output into a buffer, strip off the headers and fetch the contents of the buffer: ms_ioinstallstdouttobuffer(); $map->owsDispatch($req); ms_iostripstdoutbuffercontentheaders(); $result = ms_iogetstdoutbufferstring(); print_r($result); To correct my self: the Wfs_getfeature_formatlist is a comma separated list. > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Bruno D > Gesendet: Montag, 23. Februar 2015 15:11 > An: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] MapServer 6.4.1 OGR output error > > Thank you so much Andreas, your solution works perfectly ! I would never > have > thought of it by myself. > > Now all I have to do is understand why the generated zip files seem > invalid > (I can see their content with 7zip, but I can't extract them)... > > Thanks everyone for your help ! > > > > > -- > View this message in context: http://osgeo- > org.1560.x6.nabble.com/MapServer-6-4-1-OGR-output-error- > tp5172655p5189444.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bruno.domenget at rochservice.com Mon Feb 23 07:34:47 2015 From: bruno.domenget at rochservice.com (Bruno D) Date: Mon, 23 Feb 2015 07:34:47 -0800 (PST) Subject: [mapserver-users] MapServer 6.4.1 OGR output error In-Reply-To: <6F331135492B944D90731CE93743D5681C244E@FS-EX-DB102.fs.sachsen.de> References: <1415811434127-5172655.post@n6.nabble.com> <1424426250932-5188833.post@n6.nabble.com> <6F331135492B944D90731CE93743D5681C2390@FS-EX-DB102.fs.sachsen.de> <1424446005530-5188948.post@n6.nabble.com> <6F331135492B944D90731CE93743D5681C2426@FS-EX-DB102.fs.sachsen.de> <1424700685350-5189444.post@n6.nabble.com> <6F331135492B944D90731CE93743D5681C244E@FS-EX-DB102.fs.sachsen.de> Message-ID: <1424705687993-5189489.post@n6.nabble.com> You are too quick to answer ! I was suspecting the header problem, but I was still looking for the solution. Once again what you suggested works perfectly ! Thanks a lot for your help ! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapServer-6-4-1-OGR-output-error-tp5172655p5189489.html Sent from the Mapserver - User mailing list archive at Nabble.com. From A.Abhayasinghe at bom.gov.au Tue Feb 24 16:21:51 2015 From: A.Abhayasinghe at bom.gov.au (aabhayas) Date: Tue, 24 Feb 2015 16:21:51 -0800 (PST) Subject: [mapserver-users] Getcapabilities extremely slow in version 6.4.1 In-Reply-To: <1424671042304.5557@maanmittauslaitos.fi> References: <1424670657919-5189325.post@n6.nabble.com> <1424671042304.5557@maanmittauslaitos.fi> Message-ID: <1424823711617-5189823.post@n6.nabble.com> Hi Thanks for the quick reply. I did set the extents but still the same result. I even compiled MapServer 6.2.2 and did the same test. Even MapServer 6.2.2 is extremely slow compared to 6.0.4. Thanks Anurduddha -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Getcapabilities-extremely-slow-in-version-6-4-1-tp5189325p5189823.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mathuralok.88 at gmail.com Tue Feb 24 20:33:21 2015 From: mathuralok.88 at gmail.com (alok mathur) Date: Wed, 25 Feb 2015 10:03:21 +0530 Subject: [mapserver-users] Mapserver + KML Message-ID: Hi, I am new to Mapserver and KML. According to my knowledge i found that mapserver reads KML file but only some elements in that. Is there anyway to read KML style tag using mapserver and plot a map with same style. as in mapserver we have to give our own style. Thanks! *Alok Mathur* -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Feb 25 12:37:55 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 25 Feb 2015 20:37:55 +0000 Subject: [mapserver-users] Getcapabilities extremely slow in version 6.4.1 In-Reply-To: <1424823711617-5189823.post@n6.nabble.com> References: <1424670657919-5189325.post@n6.nabble.com> <1424671042304.5557@maanmittauslaitos.fi> <1424823711617-5189823.post@n6.nabble.com> Message-ID: How about against 7.0-beta-1? Do you know which layer is slow or are all slow? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of aabhayas Sent: Tuesday, February 24, 2015 6:22 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getcapabilities extremely slow in version 6.4.1 Hi Thanks for the quick reply. I did set the extents but still the same result. I even compiled MapServer 6.2.2 and did the same test. Even MapServer 6.2.2 is extremely slow compared to 6.0.4. Thanks Anurduddha -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Getcapabilities-extremely-slow-in-version-6-4-1-tp5189325p5189823.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Phil.Anzel at ftc.usda.gov Thu Feb 26 07:39:57 2015 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Thu, 26 Feb 2015 15:39:57 +0000 Subject: [mapserver-users] mapserver-users Digest, Vol 85, Issue 27 In-Reply-To: References: Message-ID: Hi Anurduddha, Did you set "wfs_extext" for each layer? I had a similar problem (Mapserver 6.4.1 accessing large data sets in SQL Server 2012) until I defined every layer's wfs_extent. - Phil Anzel USDA/NRCS contractor - Team Vistronix This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org Sent: Wednesday, February 25, 2015 1:01 PM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 85, Issue 27 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Getcapabilities extremely slow in version 6.4.1 (aabhayas) 2. Mapserver + KML (alok mathur) ---------------------------------------------------------------------- Message: 1 Date: Tue, 24 Feb 2015 16:21:51 -0800 (PST) From: aabhayas To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Getcapabilities extremely slow in version 6.4.1 Message-ID: <1424823711617-5189823.post at n6.nabble.com> Content-Type: text/plain; charset=us-ascii Hi Thanks for the quick reply. I did set the extents but still the same result. I even compiled MapServer 6.2.2 and did the same test. Even MapServer 6.2.2 is extremely slow compared to 6.0.4. Thanks Anurduddha -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Getcapabilities-extremely-slow-in-version-6-4-1-tp5189325p5189823.html Sent from the Mapserver - User mailing list archive at Nabble.com. ------------------------------ Message: 2 Date: Wed, 25 Feb 2015 10:03:21 +0530 From: alok mathur To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver + KML Message-ID: Content-Type: text/plain; charset="utf-8" Hi, I am new to Mapserver and KML. According to my knowledge i found that mapserver reads KML file but only some elements in that. Is there anyway to read KML style tag using mapserver and plot a map with same style. as in mapserver we have to give our own style. Thanks! *Alok Mathur* -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 85, Issue 27 *********************************************** From bob.basques at ci.stpaul.mn.us Thu Feb 26 14:56:02 2015 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 26 Feb 2015 22:56:02 +0000 Subject: [mapserver-users] Converting Mapfile to OUTPUTFORMAT . . . Message-ID: All, I'm trying to convert an older mapfile to use the new OUTPUTFORMAT parameters, and not having much success in setting up a particular color to be displayed as transparent in the resulting PNG. Anyone have a Mapfile fragment as an example of using a particular color as the transparent areas? NOTE: I'm displaying the background color, so setting that to transparent is not going to work in this instance. I need to use a specific RGB value. Thanks Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Feb 26 18:10:33 2015 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 26 Feb 2015 21:10:33 -0500 Subject: [mapserver-users] Converting Mapfile to OUTPUTFORMAT . . . In-Reply-To: References: Message-ID: <54EFD219.1000507@swoodbridge.com> On 2/26/2015 5:56 PM, Basques, Bob (CI-StPaul) wrote: > All, > > I?m trying to convert an older mapfile to use the new OUTPUTFORMAT > parameters, and not having much success in setting up a particular color > to be displayed as transparent in the resulting PNG. > > Anyone have a Mapfile fragment as an example of using a particular color > as the transparent areas? NOTE: I?m displaying the background color, so > setting that to transparent is not going to work in this instance. I > need to use a specific RGB value. Bob, Set the background color to the color you want to be transparent. If you need to have a background also, then create the first layer similar to this and adjust it for your projections: LAYER NAME "background" GROUP "cb" STATUS ON TYPE POLYGON METADATA ows_title "background" ows_extent "-20037508.34 -20037508.34 20037508.34 20037508.34" END PROJECTION "init=epsg:900913" END FEATURE POINTS -20037508.34 -20037508.34 20037508.34 -20037508.34 20037508.34 20037508.34 -20037508.34 20037508.34 -20037508.34 -20037508.34 END END CLASS STYLE COLOR "#80B1D3" END END END -Steve W From bteluk at gmail.com Thu Feb 26 21:28:32 2015 From: bteluk at gmail.com (bteluk at gmail.com) Date: Thu, 26 Feb 2015 21:28:32 -0800 (PST) Subject: [mapserver-users] WFS filter creates a query using a number instead of text In-Reply-To: References: Message-ID: <1425014912697-5190393.post@n6.nabble.com> I can't shine any light on the problem but I have encountered the same problem. Using MapServer v6.0.3, with Postgres 9.1.3, PostGIS v 1.5.3, GDAL v1.8.0.WFS Posted Query looks like this:The DescribeFeatureType for that layer shows the following for the attribute:PostgreSQL has the attribute field specified as a string:Server responds:Postgres Log shows:Certainly appears that the query put to PostGIS is incorrect - it's not quoting the literal value.I have a similar MapServer layer that's based on ESRI Shapefile - same effective attribute set up, and it works fine - of course it's not going via PostgreSQL/PostGIS - so it seems that the problem is specific to the PostgreSQL/PostGIS interface?I tried mucking around with including PostgreSQL casts on the literal eg. "3168::text", using "CAST(pcode as int)" on the PropertyName etc with no luck. Using "PropertyIsLike" did work, but is not an ideal solution. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WFS-filter-creates-a-query-using-a-number-instead-of-text-tp5130361p5190393.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Thu Feb 26 22:55:21 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Fri, 27 Feb 2015 06:55:21 +0000 Subject: [mapserver-users] WFS filter creates a query using a number instead of text In-Reply-To: <1425014912697-5190393.post@n6.nabble.com> References: , <1425014912697-5190393.post@n6.nabble.com> Message-ID: <1425020122084.11966@maanmittauslaitos.fi> Hi, I would recommend to make a test with Mapserver 7.0-beta and GDAL 1.11.2 or at least with 6.4 and 1.10. Your case does feel like an obvious bug but Mapserver 6.0.3 or GDAL 1.8.0 are out of maintenance. I have some ideas for workarounds: You can try if it makes difference to use either the native PostGIS driver or GDAL OGR driver (CONNECTIONTYPW OGR). You can also try to add gml_[item name]_type into the layer metadata http://mapserver.org/ogc/wfs_server.html but I do not know if Mapserver 6.0 supports it and probably it does not change anything because your schema is good already. And perhaps using PropertyIsLike instead of PropertyIsEqualTo could work. -Jukka Rahkonen- ________________________________ bteluk wrote: I can't shine any light on the problem but I have encountered the same problem. Using MapServer v6.0.3, with Postgres 9.1.3, PostGIS v 1.5.3, GDAL v1.8.0. WFS Posted Query looks like this: pcode 3168 The DescribeFeatureType for that layer shows the following for the attribute: PostgreSQL has the attribute field specified as a string: pcode | character varying(10) | Server responds: msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: operator does not exist: character varying = integer LINE 1: ...90 -5,165 -5,165 -50,90 -50))',4283) and ( ("pcode"= 3168) ) ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. Postgres Log shows: 2015-02-27 16:11:42.394 EST gecli 127.0.0.1(41368)ERROR: operator does not exist: character varying = integer at character 250 2015-02-27 16:11:42.394 EST gecli 127.0.0.1(41368)HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. 2015-02-27 16:11:42.394 EST gecli 127.0.0.1(41368)STATEMENT: select "gid","source","ufi","area","pcode","perimeter",encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from sensis.postcode where the_geom && ST_GeomFromText('POLYGON((90 -50,90 -5,165 -5,165 -50,90 -50))',4283) and ( ("pcode"= 3168) ) $ Certainly appears that the query put to PostGIS is incorrect - it's not quoting the literal value. I have a similar MapServer layer that's based on ESRI Shapefile - same effective attribute set up, and it works fine - of course it's not going via PostgreSQL/PostGIS - so it seems that the problem is specific to the PostgreSQL/PostGIS interface? I tried mucking around with including PostgreSQL casts on the literal eg. "3168::text", using "CAST(pcode as int)" on the PropertyName etc with no luck. Using "PropertyIsLike" did work, but is not an ideal solution. ________________________________ View this message in context: Re: WFS filter creates a query using a number instead of text Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jea at hbaspecto.com Fri Feb 27 06:05:20 2015 From: jea at hbaspecto.com (John Abraham) Date: Fri, 27 Feb 2015 07:05:20 -0700 Subject: [mapserver-users] WFS filter creates a query using a number instead of text In-Reply-To: <1425020122084.11966@maanmittauslaitos.fi> References: <1425014912697-5190393.post@n6.nabble.com> <1425020122084.11966@maanmittauslaitos.fi> Message-ID: <75E5EC7D-128B-4DA2-A74A-4F3CCA3E6C8F@hbaspecto.com> > On Feb 26, 2015, at 11:55 PM, Rahkonen Jukka (MML) wrote: > > You can also try to add > > gml_[item name]_type into the layer metadata > I have to add gml_[item name]_type in all my map files, to make them work as wfs in my context. -- John Abraham Sent from my iPhone, please excuse any typos. -------------- next part -------------- An HTML attachment was scrubbed... URL: From no-reply at neogeo-online.net Mon Feb 9 09:04:52 2015 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Mon, 09 Feb 2015 17:04:52 -0000 Subject: [mapserver-users] Symbolscaledenom Message-ID: <54D8DED7.5030700@neogeo-online.net> Hi List, It looks like label OUTLINEWIDTH and OFFSET are dependant of SYMBOLSCALE which leads to strange behaviours and looks on large scale range (see image included -> huge halo and distance between point and its label). Is there a way to detach these parameters from the SYMBOLSCALE settings ? Thanks Guillaume -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture d?e?cran 2015-02-09 a? 17.08.47.png Type: image/png Size: 56280 bytes Desc: not available URL: