From jmckenna at gatewaygeomatics.com Wed May 1 15:13:09 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 1 May 2019 19:13:09 -0300 Subject: [mapserver-users] 7.4.0-rc1 available for testing Message-ID: <6bf378a9-a9f3-c22b-0cba-8145c37ceb92@gatewaygeomatics.com> The first release candidate for MapServer 7.4.0 is now available for download: https://mapserver.org/download.html#development-releases For the detailed list of upcoming 7.4.0 changes please see the changelog: https://mapserver.org/development/changelog/changelog-7-4.html Thank you to all of the users, developers, documenters, and packagers for sharing the passion for such a great project. -- The MapServer Team From Michael.Kalbermatten at ne.ch Fri May 3 01:09:29 2019 From: Michael.Kalbermatten at ne.ch (=?iso-8859-1?Q?Kalbermatten_Micha=EBl?=) Date: Fri, 3 May 2019 08:09:29 +0000 Subject: [mapserver-users] WFS requests on Oracle data Message-ID: Dear all, I am having quite a strange behaviour trying to do a WFS request with a filter body on an Oracle table. I have another project where we are using the same configuration on PostGIS layers and this is not a problem, thus I think it is quite specific to Oracle... The layer definition would be something like: LAYER NAME "the_layer" TYPE POINT STATUS ON CONNECTION "user/password at my_alias" EXTENT 2500000 1160000 2600000 1250000 CONNECTIONTYPE PLUGIN PLUGIN "C:\Mapserver7_x64\bin\ms\plugins\oci\msplugin_oracle.dll" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "GEOM FROM ( SELECT * FROM my_schema.my_table )" METADATA "ows_title" " the_layer " "wms_srs" "EPSG:2056" "gml_include_items" "*" "wfs_enable_request" "*" "gml_geometries" "geom" "gml_geom_type" "point" "ows_metadataurl_href" "" "wfs_srs" "EPSG:2056" "gml_featureid" "NOCOM" END TEMPLATE "ttt" PROJECTION "init=epsg:2056" END CLASS NAME "The class" STYLE SYMBOL "triangle" SIZE 10 COLOR 255 221 85 END END TOLERANCE 10 END Some remarks: the Oracle raw data has not any projection defined, the geometry looks like: MDSYS.SDO_GEOMETRY(2001, NULL, MDSYS.SDO_POINT_TYPE(2549853.47, 1194865.78, NULL), NULL, NULL) If I add a projection condition in the DATA section of the mapfile ("USING srid 2056"), then the layer does not work anymore. IHMO, Oracle has always had quite a strange projection support... Furthermore, I am using the PLUGIN connection type, because my version of Mapserver (taken from gisinternals) does not support Oracle Spatial directly and the OGR included version neither. Now, almost all kind of requests are working (WMS, raw WFS without any XML body). Here under is the log (DEBUG 5) of two WFS requests, on the same layer, using the same envelopes. In the first request, the envelope XML tag contains an attribute (srsName) referring to the projection. This attribute is not defined in the second request. There are no results for the first request and there are results for the second request, which I have been using for years. The only thing differing is the famous srsName attribute on the envelope tag. Actually, I am thinking that I misused this for years and that this actually worked (with a lot of chance...) You can also see how this induces a different FLTLayerApplyPlainFilterToLayer() definition between the two requests. Without the srsName attribute, Mapserver only uses the rect filter, otherwise it seems to add an "intersects" condition, which make the query not returning any results. My question is, why this difference as the projection is the same everywhere in my Mapfile (always 2056) and is there a way to make it work with that famous srsName attribute defined ? Thanks a lot for any hint or explanation on that... Best regards Michael DEBUG: [Fri May 3 09:10:49 2019].285000 msWFSParseRequest(): WFS post request: geom 2558525 1201600 2566375 1208250 [Fri May 3 09:10:49 2019].584000 FLTLayerApplyPlainFilterToLayer(): intersects([shape],fromText('POLYGON ((2558525.0000000000000000 1201600.0000000000000000, 2558525.0000000000000000 1208250.0000000000000000, 2566375.0000000000000000 1208250.0000000000000000, 2566375.0000000000000000 1201600.0000000000000000, 2558525.0000000000000000 1201600.0000000000000000))')) = TRUE, rect=2558525,1201600,2566375,1208250.00000001 [Fri May 3 09:10:49 2019].764000 msQueryByFilter(): Search returned no results. No matching record(s) found. [Fri May 3 09:10:49 2019].764000 mapserv request processing time (msLoadMap not incl.): 0.479s [Fri May 3 09:10:49 2019].764000 msFreeMap(): freeing map at 00000152DD1D0E60. [Fri May 3 09:10:59 2019].732000 CGI Request 2 on process 7356 [Fri May 3 09:10:59 2019].732000 msWFSParseRequest(): WFS post request: geom 2558525 1201600 2566375 1208250 [Fri May 3 09:10:59 2019].768000 FLTLayerApplyPlainFilterToLayer(): rect=2558525,1201600,2566375,1208250 [Fri May 3 09:10:59 2019].895000 mapserv request processing time (msLoadMap not incl.): 0.163s Result obtained with the first request: missing -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Kalbermatten at ne.ch Fri May 3 01:36:06 2019 From: Michael.Kalbermatten at ne.ch (=?iso-8859-1?Q?Kalbermatten_Micha=EBl?=) Date: Fri, 3 May 2019 08:36:06 +0000 Subject: [mapserver-users] WFS requests on Oracle data In-Reply-To: References: Message-ID: <2741d60f571e4a29afaad7760098c956@ne.ch> Actually I found the solution... I am sorry for the noise. For the record, I solved my issue by setting "USING None" at the end of the DATA section of the Mapfile. For more explanations, please have a look at: https://www.mapserver.org/input/vector/oracle.html#using-none Although I have a defined spatial index, it looks like the PLUGIN mode somehow does not support spatial queries. If anybody has a better explanation, I would be happy to hear about it. Thanks ! Michael De : mapserver-users De la part de Kalbermatten Micha?l Envoy? : vendredi, 3 mai 2019 10:09 ? : 'mapserver-users at lists.osgeo.org' Objet : [mapserver-users] WFS requests on Oracle data Dear all, I am having quite a strange behaviour trying to do a WFS request with a filter body on an Oracle table. I have another project where we are using the same configuration on PostGIS layers and this is not a problem, thus I think it is quite specific to Oracle... The layer definition would be something like: LAYER NAME "the_layer" TYPE POINT STATUS ON CONNECTION "user/password at my_alias" EXTENT 2500000 1160000 2600000 1250000 CONNECTIONTYPE PLUGIN PLUGIN "C:\Mapserver7_x64\bin\ms\plugins\oci\msplugin_oracle.dll" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "GEOM FROM ( SELECT * FROM my_schema.my_table )" METADATA "ows_title" " the_layer " "wms_srs" "EPSG:2056" "gml_include_items" "*" "wfs_enable_request" "*" "gml_geometries" "geom" "gml_geom_type" "point" "ows_metadataurl_href" "" "wfs_srs" "EPSG:2056" "gml_featureid" "NOCOM" END TEMPLATE "ttt" PROJECTION "init=epsg:2056" END CLASS NAME "The class" STYLE SYMBOL "triangle" SIZE 10 COLOR 255 221 85 END END TOLERANCE 10 END Some remarks: the Oracle raw data has not any projection defined, the geometry looks like: MDSYS.SDO_GEOMETRY(2001, NULL, MDSYS.SDO_POINT_TYPE(2549853.47, 1194865.78, NULL), NULL, NULL) If I add a projection condition in the DATA section of the mapfile ("USING srid 2056"), then the layer does not work anymore. IHMO, Oracle has always had quite a strange projection support... Furthermore, I am using the PLUGIN connection type, because my version of Mapserver (taken from gisinternals) does not support Oracle Spatial directly and the OGR included version neither. Now, almost all kind of requests are working (WMS, raw WFS without any XML body). Here under is the log (DEBUG 5) of two WFS requests, on the same layer, using the same envelopes. In the first request, the envelope XML tag contains an attribute (srsName) referring to the projection. This attribute is not defined in the second request. There are no results for the first request and there are results for the second request, which I have been using for years. The only thing differing is the famous srsName attribute on the envelope tag. Actually, I am thinking that I misused this for years and that this actually worked (with a lot of chance...) You can also see how this induces a different FLTLayerApplyPlainFilterToLayer() definition between the two requests. Without the srsName attribute, Mapserver only uses the rect filter, otherwise it seems to add an "intersects" condition, which make the query not returning any results. My question is, why this difference as the projection is the same everywhere in my Mapfile (always 2056) and is there a way to make it work with that famous srsName attribute defined ? Thanks a lot for any hint or explanation on that... Best regards Michael DEBUG: [Fri May 3 09:10:49 2019].285000 msWFSParseRequest(): WFS post request: geom 2558525 1201600 2566375 1208250 [Fri May 3 09:10:49 2019].584000 FLTLayerApplyPlainFilterToLayer(): intersects([shape],fromText('POLYGON ((2558525.0000000000000000 1201600.0000000000000000, 2558525.0000000000000000 1208250.0000000000000000, 2566375.0000000000000000 1208250.0000000000000000, 2566375.0000000000000000 1201600.0000000000000000, 2558525.0000000000000000 1201600.0000000000000000))')) = TRUE, rect=2558525,1201600,2566375,1208250.00000001 [Fri May 3 09:10:49 2019].764000 msQueryByFilter(): Search returned no results. No matching record(s) found. [Fri May 3 09:10:49 2019].764000 mapserv request processing time (msLoadMap not incl.): 0.479s [Fri May 3 09:10:49 2019].764000 msFreeMap(): freeing map at 00000152DD1D0E60. [Fri May 3 09:10:59 2019].732000 CGI Request 2 on process 7356 [Fri May 3 09:10:59 2019].732000 msWFSParseRequest(): WFS post request: geom 2558525 1201600 2566375 1208250 [Fri May 3 09:10:59 2019].768000 FLTLayerApplyPlainFilterToLayer(): rect=2558525,1201600,2566375,1208250 [Fri May 3 09:10:59 2019].895000 mapserv request processing time (msLoadMap not incl.): 0.163s Result obtained with the first request: missing -------------- next part -------------- An HTML attachment was scrubbed... URL: From dieter.zuberbuehler at gogis.ch Fri May 3 04:41:37 2019 From: dieter.zuberbuehler at gogis.ch (GOGIS Dieter =?ISO-8859-1?Q?Zuberb=FChler?=) Date: Fri, 03 May 2019 13:41:37 +0200 Subject: [mapserver-users] 7.4.0-rc1 available for testing -> segmentation fault in php-cli In-Reply-To: <6bf378a9-a9f3-c22b-0cba-8145c37ceb92@gatewaygeomatics.com> References: <6bf378a9-a9f3-c22b-0cba-8145c37ceb92@gatewaygeomatics.com> Message-ID: <2d5aad92e1a54d1c0346ea260e2ec234c0d9bcb7.camel@gogis.ch> Dear Mapserver Developers, i'm developing a custom php/mapscript application since more than ten years and was waiting for the php7.x mapscript support to upgrade my application. now i have troubles with the php-cli calls that i need for precaching/processing several things. I could build the php_mapscript.so module and in libapache2-mod-php everything works as expected. But in the php-cli (same version) i get a segmentation fault processing a querytemplate: @$oMap->queryByRect($my_extent); //this is fine in both php $result = $oMap->processquerytemplate(array(),false); //this fails in php-cli GNU Debugger output: Program received signal SIGSEGV, Segmentation fault. 0x00005555557ff8aa in zend_hash_internal_pointer_reset_ex () (gdb) bt #0 0x00005555557ff8aa in zend_hash_internal_pointer_reset_ex () #1 0x00007fffe78cc04d in mapscript_extract_associative_array () at /usr/lib/php/20180731/php_mapscript.so #2 0x00007fffe78c7784 in zim_mapObj_processQueryTemplate () at /usr/lib/php/20180731/php_mapscript.so #3 0x000055555587abce in execute_ex () #4 0x000055555587bcb3 in zend_execute () #5 0x00005555557ece22 in zend_execute_scripts () #6 0x000055555578ce70 in php_execute_script () #7 0x000055555587e18c in () #8 0x000055555564490b in () #9 0x00007ffff5c29b97 in __libc_start_main (main= 0x5555556444f0, argc=9, argv=0x7fffffffe4f8, init=, fini=, rtld_fini=, stack_end=0x7fffffffe4e8) at ../csu/libc-start.c:310 #10 0x0000555555644aaa in _start () The system is where i run the application is Ubuntu 18.04LTS with the current php7.3 The Query is based on postgis layers. Any Hint? Thanks in advance, Dieter -- -+-+-+-+-+-+-+-+-+-+-+-+-+-+- Dieter Zuberb?hler GOGIS GmbH Gutenbergstrasse 1 CH-4142 M?nchenstein Tel. +4144 586 60 15 Mob. +4178 619 98 91 www.gogis.ch On Wed, 2019-05-01 at 19:13 -0300, Jeff McKenna wrote: > The first release candidate for MapServer 7.4.0 is now available for > download: > > https://mapserver.org/download.html#development-releases > > For the detailed list of upcoming 7.4.0 changes please see the > changelog: > https://mapserver.org/development/changelog/changelog-7-4.html > > > Thank you to all of the users, developers, documenters, and > packagers > for sharing the passion for such a great project. > From dieter.zuberbuehler at gogis.ch Mon May 6 06:06:42 2019 From: dieter.zuberbuehler at gogis.ch (GOGIS Dieter =?ISO-8859-1?Q?Zuberb=FChler?=) Date: Mon, 06 May 2019 15:06:42 +0200 Subject: [mapserver-users] 7.4.0-rc1 available for testing -> segmentation fault in php-cli In-Reply-To: <2d5aad92e1a54d1c0346ea260e2ec234c0d9bcb7.camel@gogis.ch> References: <6bf378a9-a9f3-c22b-0cba-8145c37ceb92@gatewaygeomatics.com> <2d5aad92e1a54d1c0346ea260e2ec234c0d9bcb7.camel@gogis.ch> Message-ID: <46850759740b437754d5d16402cc8fad0920050f.camel@gogis.ch> Dear Mapserver Developers, i could fix this issue only by downgrading to php7.2. Here, everything is fine... Hint: it's maybe a libssl dependency problem libssl-dev : Depends: libssl1.1 (= 1.1.0g-2ubuntu4.3) but 1.1.1b- 1+ubuntu18.04.1+deb.sury.org+1 is to be installed => perhaps this will be fixed for future releases... Thanks anyway! Dieter On Fri, 2019-05-03 at 13:41 +0200, GOGIS Dieter Zuberb?hler wrote: > Dear Mapserver Developers, > > i'm developing a custom php/mapscript application since more than ten > years and was waiting for the php7.x mapscript support to upgrade my > application. now i have troubles with the php-cli calls that i need > for > precaching/processing several things. > > I could build the php_mapscript.so module and in libapache2-mod-php > everything works as expected. But in the php-cli (same version) i get > a > segmentation fault processing a querytemplate: > > @$oMap->queryByRect($my_extent); //this is fine in both php > $result = $oMap->processquerytemplate(array(),false); //this fails in > php-cli > > GNU Debugger output: > > Program received signal SIGSEGV, Segmentation fault. > 0x00005555557ff8aa in zend_hash_internal_pointer_reset_ex () > (gdb) bt > #0 0x00005555557ff8aa in zend_hash_internal_pointer_reset_ex () > #1 0x00007fffe78cc04d in mapscript_extract_associative_array () > at /usr/lib/php/20180731/php_mapscript.so > #2 0x00007fffe78c7784 in zim_mapObj_processQueryTemplate () > at /usr/lib/php/20180731/php_mapscript.so > #3 0x000055555587abce in execute_ex () > #4 0x000055555587bcb3 in zend_execute () > #5 0x00005555557ece22 in zend_execute_scripts () > #6 0x000055555578ce70 in php_execute_script () > #7 0x000055555587e18c in () > #8 0x000055555564490b in () > #9 0x00007ffff5c29b97 in __libc_start_main (main= > 0x5555556444f0, argc=9, argv=0x7fffffffe4f8, init= out>, > fini=, rtld_fini=, > stack_end=0x7fffffffe4e8) > at ../csu/libc-start.c:310 > #10 0x0000555555644aaa in _start () > > The system is where i run the application is Ubuntu 18.04LTS with the > current php7.3 > > The Query is based on postgis layers. > > Any Hint? > > Thanks in advance, > > Dieter > From pe_lord at protonmail.com Tue May 7 09:41:44 2019 From: pe_lord at protonmail.com (pe_lord) Date: Tue, 7 May 2019 09:41:44 -0700 (MST) Subject: [mapserver-users] 7.2.1 html [shpxy] formating (templating) Message-ID: <1557247304683-0.post@n6.nabble.com> I try to format my html getfeatureinfo response with my geometry coordinate (point). In my html.html response, I want [shpxy] with a "&" separator. Here what I set into my html template: [shpxy xh="x=" yh="y=" cs="&"] and I get this response: x=701467,y=305958 I need to concatenate my x an y with a & to build an url. Something I'm doing wrong? -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From jukka.rahkonen at maanmittauslaitos.fi Wed May 8 08:31:10 2019 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 8 May 2019 15:31:10 +0000 Subject: [mapserver-users] WCS 2.0.1 does not honour the list of crsSupported Message-ID: <808f170e2aef41808b3fd455ff5614c2@C119S212VM042.msvyvi.vaha.local> Hi, I have defined the CRS list for the WCS service with the "ows_srs" metadata and that reflects correctly to CRS list in GetCapabilities "". However, it seems that Mapserver accepts any CRS as SubsettingCRS and OutputCRS. According to the standard the service should give expections "SubsettingCrs-NotSupported" or "OutputCrs-NotSupported" . Also if I use some non-existing CRS the error is not the one defined in the standard, but: msProcessProjection(): Projection library error. proj error "no options found in 'init' file" for "init=epsg:045". Value "epsg:3034" does work as OutputCRS even it probably shouldn't because in GetCapabilities it is shown as http://www.opengis.net/def/crs/EPSG/0/3045 I wonder if I have understood something wrong with the WCS configuration of if I have just discovered a couple of bugs. I guess that there is no way to disable the older WCS 1.x versions by using just mapfile but I would be glad to be wrong. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed May 8 08:53:19 2019 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 8 May 2019 15:53:19 +0000 Subject: [mapserver-users] WCS 2.0.1 sends multipart response for ascii grid format Message-ID: <7d415a6bd6e948fa9bc5a40db5056e38@C119S212VM042.msvyvi.vaha.local> Hi, I have Mapserver 7.2.1 and outputformat defined as OUTPUTFORMAT NAME AAIGRID DRIVER "GDAL/AAIGRID" MIMETYPE "application/x-ascii-grid" IMAGEMODE FLOAT32 EXTENSION "grd" FORMATOPTION "SIGNIFICANT_DIGITS=5" END The WCS 2.0.1 GetCoverage request is sending the response as multipart. The first part is the ASCII grid and it is followed by these two parts --wcs Content-Type: application/octet-stream Content-Description: coverage data Content-Transfer-Encoding: binary Content-ID: coverage/out.grd.aux.xml Content-Disposition: INLINE; filename=out.grd.aux.xml 2 72.000000 72.000000 --wcs Content-Type: application/octet-stream Content-Description: coverage data Content-Transfer-Encoding: binary Content-ID: coverage/out.prj Content-Disposition: INLINE; filename=out.prj PROJCS["ETRS89_TM35FIN_E_N",GEOGCS["GCS_ETRS_1989",DATUM["D_ETRS_1989",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",27],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]] Is there a way to get rid of the last parts of the response? -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Thu May 9 04:03:14 2019 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Thu, 9 May 2019 11:03:14 +0000 Subject: [mapserver-users] WCS 2.0.1 sends multipart response for ascii grid format Message-ID: <12fc5b7db8cf47f0a9f0227231d85014@C119S212VM042.msvyvi.vaha.local> Hi, I thought I could resolve the problem by setting CONFIG "GDAL_PAM_ENABLED" "NO" Unfortunately nothing changed. -Jukka Rahkonen- L?hett?j?: Rahkonen Jukka (MML) L?hetetty: keskiviikko 8. toukokuuta 2019 18.53 Vastaanottaja: Mapserver-Users (mapserver-users at lists.osgeo.org) Aihe: WCS 2.0.1 sends multipart response for ascii grid format Hi, I have Mapserver 7.2.1 and outputformat defined as OUTPUTFORMAT NAME AAIGRID DRIVER "GDAL/AAIGRID" MIMETYPE "application/x-ascii-grid" IMAGEMODE FLOAT32 EXTENSION "grd" FORMATOPTION "SIGNIFICANT_DIGITS=5" END The WCS 2.0.1 GetCoverage request is sending the response as multipart. The first part is the ASCII grid and it is followed by these two parts --wcs Content-Type: application/octet-stream Content-Description: coverage data Content-Transfer-Encoding: binary Content-ID: coverage/out.grd.aux.xml Content-Disposition: INLINE; filename=out.grd.aux.xml 2 72.000000 72.000000 --wcs Content-Type: application/octet-stream Content-Description: coverage data Content-Transfer-Encoding: binary Content-ID: coverage/out.prj Content-Disposition: INLINE; filename=out.prj PROJCS["ETRS89_TM35FIN_E_N",GEOGCS["GCS_ETRS_1989",DATUM["D_ETRS_1989",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",27],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]] Is there a way to get rid of the last parts of the response? -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu May 9 19:53:29 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 10 May 2019 02:53:29 +0000 Subject: [mapserver-users] 7.2.1 html [shpxy] formating (templating) In-Reply-To: <1557247304683-0.post@n6.nabble.com> References: <1557247304683-0.post@n6.nabble.com> Message-ID: I think cs is coordinate separator so it only comes into play if you have multiple points. Try xf=?&? where xf means ?x footer?. ________________________________ From: mapserver-users on behalf of pe_lord Sent: Tuesday, May 7, 2019 11:41:44 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] 7.2.1 html [shpxy] formating (templating) I try to format my html getfeatureinfo response with my geometry coordinate (point). In my html.html response, I want [shpxy] with a "&" separator. Here what I set into my html template: [shpxy xh="x=" yh="y=" cs="&"] and I get this response: x=701467,y=305958 I need to concatenate my x an y with a & to build an url. Something I'm doing wrong? -- Sent from: https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fosgeo-org.1560.x6.nabble.com%2FMapserver-User-f4226646.html&data=02%7C01%7Csteve.lime%40state.mn.us%7C518d2ae99b60442b0d2c08d6d30ae651%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636928441098283309&sdata=ylBKFHAzd9lQj7fqZSvr9%2FtxsTfBJajah0FayYoBOHw%3D&reserved=0 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-users&data=02%7C01%7Csteve.lime%40state.mn.us%7C518d2ae99b60442b0d2c08d6d30ae651%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636928441098283309&sdata=YRDYd7RQTNsXjfKRT99mSCeYAib8RuV3BXSwjbZ1zNc%3D&reserved=0 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Fri May 10 00:06:08 2019 From: sethg at geographika.co.uk (Seth G) Date: Fri, 10 May 2019 03:06:08 -0400 Subject: [mapserver-users] 7.2.1 html [shpxy] formating (templating) In-Reply-To: References: <1557247304683-0.post@n6.nabble.com> Message-ID: https://mapserver.org/mapfile/template.html#query is a little unclear It states: [shpxy formatting options] Available attributes (h = header, f=footer, s=separator) Along with Steve's suggestion maybe try s="&" -- web:http://geographika.co.uk twitter: @geographika On Fri, May 10, 2019, at 4:53 AM, Lime, Steve D (MNIT) wrote: > I think cs is coordinate separator so it only comes into play if you have multiple points. Try xf=?&? where xf means ?x footer?. > *From:* mapserver-users on behalf of pe_lord > *Sent:* Tuesday, May 7, 2019 11:41:44 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] 7.2.1 html [shpxy] formating (templating) > > I try to format my html getfeatureinfo response with my geometry coordinate > (point). > > In my html.html response, I want [shpxy] with a "&" separator. > > Here what I set into my html template: > [shpxy xh="x=" yh="y=" cs="&"] > > and I get this response: > x=701467,y=305958 > > I need to concatenate my x an y with a & to build an url. Something I'm > doing wrong? > > > > > -- > Sent from: https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fosgeo-org.1560.x6.nabble.com%2FMapserver-User-f4226646.html&data=02%7C01%7Csteve.lime%40state.mn.us%7C518d2ae99b60442b0d2c08d6d30ae651%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636928441098283309&sdata=ylBKFHAzd9lQj7fqZSvr9%2FtxsTfBJajah0FayYoBOHw%3D&reserved=0 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-users&data=02%7C01%7Csteve.lime%40state.mn.us%7C518d2ae99b60442b0d2c08d6d30ae651%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636928441098283309&sdata=YRDYd7RQTNsXjfKRT99mSCeYAib8RuV3BXSwjbZ1zNc%3D&reserved=0 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pe_lord at protonmail.com Fri May 10 05:52:45 2019 From: pe_lord at protonmail.com (pe_lord) Date: Fri, 10 May 2019 05:52:45 -0700 (MST) Subject: [mapserver-users] 7.2.1 html [shpxy] formating (templating) In-Reply-To: References: <1557247304683-0.post@n6.nabble.com> Message-ID: <1557492765609-0.post@n6.nabble.com> Thanks Steve you were right! xf="&" -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From steve.lime at state.mn.us Fri May 10 07:52:18 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 10 May 2019 14:52:18 +0000 Subject: [mapserver-users] MapServer 7.4 Release Candidate 2 Available Message-ID: Hi all: The second release candidate for MapServer 7.4.0 is now available for download: https://mapserver.org/download.html#development-releases For the detailed list of upcoming 7.4.0 changes please see the changelog: https://mapserver.org/development/changelog/changelog-7-4.html Thank you to all of the users, developers, documenters, and packagers for all you do! --Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeter at netgis.de Fri May 10 08:17:26 2019 From: schroeter at netgis.de (Sven Schroeter) Date: Fri, 10 May 2019 17:17:26 +0200 Subject: [mapserver-users] PHP Mapscript Swig Message-ID: <7d0a564b-c89e-bc05-b7dc-53bc46247960@netgis.de> Hi, sorry for the cross-post, but maybe there's someone here who doesn't read the ms4w list... I'm using the new MS4W 4.0.0 and try to build a WMS Wrapper for the new PHP Mapscript with Swig. I am currently writing the complete PHP mapscript code from my client so that it runs with both versions, so far this works fine, msIO_getStdoutBufferBytes() is the only problem so far... Here is my Test Code for the last MS4W 3.3.0 with old PHP Mapscript This works fine trying two example requests with getCapabilities and getMap ############################################# ... $oMap= ms_newMapObj($mymapfile); ms_ioinstallstdouttobuffer(); $request = ms_newowsrequestobj(); //Get Request foreach ($_GET as $k=>$v) { ??? $request->setParameter($k, $v); } $oMap->owsdispatch($request); $oMap->free(); unset($oMap); $contenttype = strtolower(ms_iostripstdoutbuffercontenttype()); //Capabilities Request if ($contenttype == "application/vnd.ogc.wms_xml; charset=utf-8"){ ??? header('Content-type: application/xml; charset=utf-8'); ??? echo ms_iogetstdoutbufferstring(); } //getMap jpeg else if ($contenttype == 'image/jpeg'){ ??? header('Content-type: image/jpeg'); ??? echo ms_iogetStdoutBufferBytes(); } ... and here ist the same Code using the new Swig Version: The getCapabilities Request works fine, not the getMap Request. I get no picture but only this text: Resource id #7 ############################################# ... include("../includes/phpmapscriptng-swig/mapscript.php"); $oMap= new mapObj($mymapfile); msIO_installStdoutToBuffer(); $request = new OWSRequest(); //Get Request foreach ($_GET as $k=>$v) { ??? $request->setParameter($k, $v); } $oMap->OWSDispatch($request); unset($oMap); $contenttype = strtolower(msIO_stripStdoutBufferContentType()); //Capabilities Request if ($contenttype == "application/vnd.ogc.wms_xml; charset=utf-8"){ ??? header('Content-type: application/xml; charset=utf-8'); ??? echo msIO_getStdoutBufferString(); } //getMap jpeg else if ($contenttype == 'image/jpeg'){ ??? header('Content-type: image/jpeg'); ??? echo msIO_getStdoutBufferBytes(); } ... Any idea? Thanks Sven From sethg at geographika.co.uk Fri May 10 08:51:42 2019 From: sethg at geographika.co.uk (Seth G) Date: Fri, 10 May 2019 11:51:42 -0400 Subject: [mapserver-users] PHP Mapscript Swig In-Reply-To: <7d0a564b-c89e-bc05-b7dc-53bc46247960@netgis.de> References: <7d0a564b-c89e-bc05-b7dc-53bc46247960@netgis.de> Message-ID: <6b44d805-bda1-4075-aead-9482d4242684@www.fastmail.com> Hi Sven, Probably the same issue as here? https://github.com/mapserver/mapserver/issues/5798 You could try with the new release candidate for MS 7.4 to see if it is now resolved. Seth -- web:http://geographika.co.uk twitter: @geographika On Fri, May 10, 2019, at 5:22 PM, Sven Schroeter wrote: > Hi, > sorry for the cross-post, but maybe there's someone here who doesn't > read the ms4w list... > > I'm using the new MS4W 4.0.0 and try to build a WMS Wrapper for the new > PHP Mapscript with Swig. > I am currently writing the complete PHP mapscript code from my client so > that it runs with both versions, so far this works fine, > msIO_getStdoutBufferBytes() is the only problem so far... > > Here is my Test Code for the last MS4W 3.3.0 with old PHP Mapscript > This works fine trying two example requests with getCapabilities and getMap > > ############################################# > ... > > $oMap= ms_newMapObj($mymapfile); > > ms_ioinstallstdouttobuffer(); > > $request = ms_newowsrequestobj(); > > //Get Request > foreach ($_GET as $k=>$v) { > ??? $request->setParameter($k, $v); > } > > $oMap->owsdispatch($request); > $oMap->free(); > unset($oMap); > > $contenttype = strtolower(ms_iostripstdoutbuffercontenttype()); > > //Capabilities Request > if ($contenttype == "application/vnd.ogc.wms_xml; charset=utf-8"){ > ??? header('Content-type: application/xml; charset=utf-8'); > ??? echo ms_iogetstdoutbufferstring(); > } > > //getMap jpeg > else if ($contenttype == 'image/jpeg'){ > ??? header('Content-type: image/jpeg'); > ??? echo ms_iogetStdoutBufferBytes(); > } > > ... > > > and here ist the same Code using the new Swig Version: > The getCapabilities Request works fine, not the getMap Request. > I get no picture but only this text: > Resource id #7 > > ############################################# > ... > > include("../includes/phpmapscriptng-swig/mapscript.php"); > $oMap= new mapObj($mymapfile); > > msIO_installStdoutToBuffer(); > > $request = new OWSRequest(); > > //Get Request > foreach ($_GET as $k=>$v) { > ??? $request->setParameter($k, $v); > } > > $oMap->OWSDispatch($request); > > unset($oMap); > > $contenttype = strtolower(msIO_stripStdoutBufferContentType()); > > //Capabilities Request > if ($contenttype == "application/vnd.ogc.wms_xml; charset=utf-8"){ > ??? header('Content-type: application/xml; charset=utf-8'); > ??? echo msIO_getStdoutBufferString(); > } > > //getMap jpeg > else if ($contenttype == 'image/jpeg'){ > ??? header('Content-type: image/jpeg'); > ??? echo msIO_getStdoutBufferBytes(); > } > > ... > > > Any idea? > > Thanks Sven > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From parsispresswala at gmail.com Tue May 14 01:36:05 2019 From: parsispresswala at gmail.com (parsis presswala) Date: Tue, 14 May 2019 14:06:05 +0530 Subject: [mapserver-users] Sqlite error in generated tiles Message-ID: Hello, I am seeding tiles using multiple sqlite database.I am generating tiles of 15 zoom level but there are some potion in which I am not able load my tiles even after seeding is completed. When I check what's wrong I got *sqlite backend failed on set: SQL logic error (1) *error. Here is a url in which I am getting error. http://localhost/worldcache/gmaps/world-tileset at grid2/15/23007/14603.png I have checked the sqlite file version which is also not specific. I am getting this. *1000-11000.sqlite3: SQLite 3.x database, last written using SQLite version 3022000* I tried to delete that area and again regenerate it but had not luck, what should I do? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From parsispresswala at gmail.com Tue May 14 04:04:14 2019 From: parsispresswala at gmail.com (parsis presswala) Date: Tue, 14 May 2019 16:34:14 +0530 Subject: [mapserver-users] Sqlite error in generated tiles Message-ID: Hello, I am seeding tiles using multiple sqlite database.I am generating tiles of 15 zoom level but there are some potion in which I am not able load my tiles even after seeding is completed. When I check what's wrong I got *sqlite backend failed on set: SQL logic error (1) *error. Here is a url in which I am getting error. http://localhost/worldcache/gmaps/world-tileset at grid2/15/23007/14603.png I have checked the sqlite file version which is also not specific. I am getting this. *1000-11000.sqlite3: SQLite 3.x database, last written using SQLite version 3022000* I tried to delete that area and again regenerate it but had not luck, what should I do? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Wed May 15 11:07:19 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 15 May 2019 18:07:19 +0000 Subject: [mapserver-users] Sqlite error in generated tiles In-Reply-To: References: Message-ID: I was searching through some old posts and found one that referenced checking permissions on the database file and/or the directory containing those files. What does that look like? --Steve ________________________________ From: mapserver-users on behalf of parsis presswala Sent: Tuesday, May 14, 2019 6:04:14 AM To: mapserver-users Subject: [mapserver-users] Sqlite error in generated tiles Hello, I am seeding tiles using multiple sqlite database.I am generating tiles of 15 zoom level but there are some potion in which I am not able load my tiles even after seeding is completed. When I check what's wrong I got sqlite backend failed on set: SQL logic error (1) error. Here is a url in which I am getting error. http://localhost/worldcache/gmaps/world-tileset at grid2/15/23007/14603.png I have checked the sqlite file version which is also not specific. I am getting this. 1000-11000.sqlite3: SQLite 3.x database, last written using SQLite version 3022000 I tried to delete that area and again regenerate it but had not luck, what should I do? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeter at netgis.de Thu May 16 01:29:51 2019 From: schroeter at netgis.de (Sven Schroeter) Date: Thu, 16 May 2019 10:29:51 +0200 Subject: [mapserver-users] transparency with php mapscript Message-ID: <7974144c-83ce-2236-119f-f48aafd29732@netgis.de> Hello, I test current php mapscript versions under Windows and try to give a layer transparency. With mapserver versions < 7 this was possible: $layer_poly->opacity = 68; With the version MS4W 3.3.1 with Mapserver > 7 and PHP Mapscript it works like this: $layer_poly->updateFromString('LAYER COMPOSITE OPACITY 68 END END'); In the new version MS4W 4.0.0 with the SWIG API I tried the following variants: $layer_poly->opacity = 68; $layer_poly->setOpacity(68); $layer_poly->updateFromString('LAYER COMPOSITE OPACITY 68 END END'); In all variants no error message, but also no transparency. Any ideas? Thanks Sven From jmckenna at gatewaygeomatics.com Thu May 16 04:47:55 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 16 May 2019 08:47:55 -0300 Subject: [mapserver-users] transparency with php mapscript In-Reply-To: <7974144c-83ce-2236-119f-f48aafd29732@netgis.de> References: <7974144c-83ce-2236-119f-f48aafd29732@netgis.de> Message-ID: <2e89c261-02d0-59c2-2615-d053534cd0e7@gatewaygeomatics.com> Hi Sven, As you know, all methods and functions are now listed in the SWIG API reference document when using MS4W 4.0, and in the layerObj methods section you can see a setOpacity() function (https://mapserver.org/mapscript/mapscript.html#layerobj-methods). Another trick is to open the local included file "C:/ms4w/apps/phpmapscriptng-swig/include/mapscript.php" in your text editor and search for "opacity" or "setOpacity" there, just to confirm with your local installation of MS4W. Recently another MS4W user asked about opacity, so I had created a test script showing setOpacity() in action with SWIG MapScript: https://ms4w.com/trac/wiki/SWIGMapScriptNewLayer However, I admit that that example script is long and opacity is kind of hidden in the code, so I have created another example for you at: https://ms4w.com/trac/wiki/SWIGMapScriptOpacity which takes an existing layer and adds a COMPOSITE object with the command: // set opacity (actually creates a new COMPOSITE object) $oPolyLayer->setOpacity(40); I hope that makes it more clear. -jeff -- Thank you for using MS4W. "MS4W: open doors as well as windows" -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-05-16 5:29 AM, Sven Schroeter wrote: > Hello, > > I test current php mapscript versions under Windows and try to give a > layer transparency. > > With mapserver versions < 7 this was possible: > > $layer_poly->opacity = 68; > > With the version MS4W 3.3.1 with Mapserver > 7 and PHP Mapscript it > works like this: > > $layer_poly->updateFromString('LAYER COMPOSITE OPACITY 68 END END'); > > In the new version MS4W 4.0.0 with the SWIG API I tried the following > variants: > > $layer_poly->opacity = 68; > $layer_poly->setOpacity(68); > $layer_poly->updateFromString('LAYER COMPOSITE OPACITY 68 END END'); > > In all variants no error message, but also no transparency. > > Any ideas? > > Thanks Sven > > > From jmckenna at gatewaygeomatics.com Thu May 16 04:58:01 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 16 May 2019 08:58:01 -0300 Subject: [mapserver-users] transparency with php mapscript In-Reply-To: <2e89c261-02d0-59c2-2615-d053534cd0e7@gatewaygeomatics.com> References: <7974144c-83ce-2236-119f-f48aafd29732@netgis.de> <2e89c261-02d0-59c2-2615-d053534cd0e7@gatewaygeomatics.com> Message-ID: I forgot to mention that that test script uses an important trick to test: it saves the mapfile to a temporary file, where you can confirm that a COMPOSITE object is indeed created (here is that script again https://ms4w.com/trac/wiki/SWIGMapScriptOpacity ) -jeff -- Thank you for using MS4W. "MS4W: open doors as well as windows" -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-05-16 8:47 AM, Jeff McKenna wrote: > Hi Sven, > > As you know, all methods and functions are now listed in the SWIG API > reference document when using MS4W 4.0, and in the layerObj methods > section you can see a setOpacity() function > (https://mapserver.org/mapscript/mapscript.html#layerobj-methods). > > Another trick is to open the local included file > "C:/ms4w/apps/phpmapscriptng-swig/include/mapscript.php" in your text > editor and search for "opacity" or "setOpacity" there, just to confirm > with your local installation of MS4W. > > Recently another MS4W user asked about opacity, so I had created a test > script showing setOpacity() in action with SWIG MapScript: > https://ms4w.com/trac/wiki/SWIGMapScriptNewLayer > > However, I admit that that example script is long and opacity is kind of > hidden in the code, so I have created another example for you at: > https://ms4w.com/trac/wiki/SWIGMapScriptOpacity which takes an existing > layer and adds a COMPOSITE object with the command: > > ? // set opacity (actually creates a new COMPOSITE object) > ? $oPolyLayer->setOpacity(40); > > I hope that makes it more clear. > > -jeff > > From rainy3 at poczta.onet.pl Thu May 16 07:48:31 2019 From: rainy3 at poczta.onet.pl (=?UTF-8?Q?Marek_B=c4=85k?=) Date: Thu, 16 May 2019 16:48:31 +0200 Subject: [mapserver-users] Mapserver - Mapcache - solidness of generated tiles. Message-ID: <5732ef81-e912-d959-a2ac-cab98668b169@poczta.onet.pl> Hello All, I need to implement tile expiration mechanism. I did quick POC. I've imported osm.pbf file and created two tilesets based on same maps and same database data. Then I run ImageMagick compare on correspondings files from both runs and... they are different (AE was 741 pixels per tested file). Is there any way to make render mechanism to produce same png files when underlying database data has not changed? Can I use more than 255 color with forced color palette? Regards, Marek From leigh at bowline.tech Thu May 16 12:24:59 2019 From: leigh at bowline.tech (Leigh Porter) Date: Thu, 16 May 2019 20:24:59 +0100 Subject: [mapserver-users] map server WFS with GML input Message-ID: <18E92550-6B5D-4EF8-87D5-15CF952F0B49@bowline.tech> Hey All! I just joined the list. I have used mapserver for a while and just started with WFS. I?m serving WFS requests from a GML input file. Input is like this: -3.187863,54.948226 f2964c095957f50f54b16d18c71be4a1f09f55e7f321edac3f38b469877e7fc5 2019-03 Avon and Somerset Constabulary Avon and Somerset Constabulary On or near Field View E01019107 Allerdale 002B Other theft Under investigation But the output doesn?t include any of the other feature attributes (such as Crime_ID). 50.948685 -2.807610 50.948685 -2.807610 50.948685 -2.807610 The mapfile looks like this: LAYER NAME street-avon TYPE POINT STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "/vsicurl/http://127.0.0.1/2019-03-avon-and-somerset-street.csv.gml" CLASS STYLE COLOR 0 255 0 SYMBOL 'circle' SIZE 6 END END END I don?t think I need to add anything to the apple for the feature attributes to be included in the WFS output, or do I? Thanks! Leigh -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu May 16 13:46:21 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 16 May 2019 20:46:21 +0000 Subject: [mapserver-users] Version 7.4.0 released... Message-ID: Hi all: The MapServer team is proud to announce the initial release of MapServer 7.4. This release is largely focused on MapScript improvements including support for PHP 7. A full changelog can be found at: https://mapserver.org/development/changelog/changelog-7-4.html#changelog-7-4 The tarball can be downloaded at: https://mapserver.org/download.html As always this is a group effort so thanks much to all folks working on development, documentation, testing and packaging. Your work is greatly appreciated. --Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu May 16 14:25:28 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 16 May 2019 21:25:28 +0000 Subject: [mapserver-users] map server WFS with GML input In-Reply-To: <18E92550-6B5D-4EF8-87D5-15CF952F0B49@bowline.tech> References: <18E92550-6B5D-4EF8-87D5-15CF952F0B49@bowline.tech> Message-ID: Hi Leigh: Welcome! MapServer by default won't expose any attributes unless you explicitly tell it to. Look at the gml_include_items and gml_exclude_items layer metadata on this page: https://mapserver.org/ogc/wfs_server.html --Steve ________________________________ From: mapserver-users on behalf of Leigh Porter Sent: Thursday, May 16, 2019 2:24:59 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] map server WFS with GML input Hey All! I just joined the list. I have used mapserver for a while and just started with WFS. I?m serving WFS requests from a GML input file. Input is like this: -3.187863,54.948226 f2964c095957f50f54b16d18c71be4a1f09f55e7f321edac3f38b469877e7fc5 2019-03 Avon and Somerset Constabulary Avon and Somerset Constabulary On or near Field View E01019107 Allerdale 002B Other theft Under investigation But the output doesn?t include any of the other feature attributes (such as Crime_ID). 50.948685 -2.807610 50.948685 -2.807610 50.948685 -2.807610 The mapfile looks like this: LAYER NAME street-avon TYPE POINT STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "/vsicurl/http://127.0.0.1/2019-03-avon-and-somerset-street.csv.gml" CLASS STYLE COLOR 0 255 0 SYMBOL 'circle' SIZE 6 END END END I don?t think I need to add anything to the apple for the feature attributes to be included in the WFS output, or do I? Thanks! Leigh -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu May 16 14:33:45 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 16 May 2019 18:33:45 -0300 Subject: [mapserver-users] map server WFS with GML input In-Reply-To: References: <18E92550-6B5D-4EF8-87D5-15CF952F0B49@bowline.tech> Message-ID: <2589c424-92cf-0581-d861-c5cf459c1ded@gatewaygeomatics.com> To expand on what Steve said: see the "World Continents" example layer in that same document, you should likely copy/paste that entire METADATA object into your own layer, and edit accordingly https://mapserver.org/ogc/wfs_server.html#example-wfs-server-mapfile -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-05-16 6:25 PM, Lime, Steve D (MNIT) wrote: > Hi Leigh: Welcome! MapServer by default won't expose any attributes > unless you explicitly tell it to. Look at the gml_include_items and > gml_exclude_items?layer metadata on this page: > > > https://mapserver.org/ogc/wfs_server.html > > > --Steve > ------------------------------------------------------------------------ > *From:* mapserver-users on > behalf of Leigh Porter > *Sent:* Thursday, May 16, 2019 2:24:59 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] map server WFS with GML input > > Hey All! > > I just joined the list. I have used mapserver for a while and just > started with WFS. > > > I?m serving WFS requests from a GML input file. Input is like this: > > > ? ?? fid="2019_03_avon_and_somerset_street.0"> > > ??-3.187863,54.948226 > > ??f2964c095957f50f54b16d18c71be4a1f09f55e7f321edac3f38b469877e7fc5 > ? ? ??2019-03 > ? ? ??Avon and Somerset Constabulary > ? ? ??Avon and Somerset Constabulary > ? ? ??On or near Field View > ? ? ??E01019107 > ? ? ??Allerdale 002B > ? ? ??Other theft > ? ? ??Under > investigation > ? ? ?? > ? ?? > ?? > > But the output doesn?t include any of the other feature attributes (such > as Crime_ID). > > > ? ? > ? ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ? ? ? srsName="urn:ogc:def:crs:EPSG::4326"> > ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? ? ? 50.948685 -2.807610 > ? ? ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? ? ? 50.948685 -2.807610 > ? ? ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? > ? ? ? ? ? ? > ? ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ? ? ? gml:id=".1" > ? ? ? ? ? ? ? ? srsName="urn:ogc:def:crs:EPSG::4326"> > ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? ? ? 50.948685 -2.807610 > ? ? ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? > ? ? ? ? ? ? > ? ? ? ? > ? ? > > The mapfile looks like this: > > ? ?LAYER > ? ? ? ? ? ? ? ??NAME street-avon > ? ? ? ? ? ? ? ??TYPE POINT > ? ? ? ? ? ? ? ??STATUS DEFAULT > ? ? ? ? ? ? ? ??CONNECTIONTYPE OGR > ? ? ? ? ? ? ? ??CONNECTION > "/vsicurl/http://127.0.0.1/2019-03-avon-and-somerset-street.csv.gml > " > ? ? ? ? ? ? ? ??CLASS > ? ? ? ? ? ? ? ? ? ? ? ??STYLE > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??COLOR 0 255 0 > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??SYMBOL 'circle' > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??SIZE 6 > ? ? ? ? ? ? ? ? ? ? ? ??END > ? ? ? ? ? ? ? ??END > ? ? ? ??END > > > I don?t think I need to add anything to the apple for the feature > attributes to be included in the WFS output, or do I? > > > Thanks! > Leigh > > > From leigh at bowline.tech Thu May 16 14:57:57 2019 From: leigh at bowline.tech (Leigh Porter) Date: Thu, 16 May 2019 22:57:57 +0100 Subject: [mapserver-users] map server WFS with GML input In-Reply-To: <2589c424-92cf-0581-d861-c5cf459c1ded@gatewaygeomatics.com> References: <18E92550-6B5D-4EF8-87D5-15CF952F0B49@bowline.tech> <2589c424-92cf-0581-d861-c5cf459c1ded@gatewaygeomatics.com> Message-ID: Steve, Jeff, thanks gents! > On 16 May 2019, at 22:33, Jeff McKenna wrote: > > https://mapserver.org/ogc/wfs_server.html#example-wfs-server-mapfile -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Fri May 17 10:10:09 2019 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 17 May 2019 17:10:09 +0000 Subject: [mapserver-users] FW: OSGeo Local Chapter (aka TCMUG) Meeting Message-ID: An embedded message was scrubbed... From: unknown sender Subject: Date: no date Size: 5430 URL: From Mark.Woodward at chemringts.com Tue May 21 07:59:46 2019 From: Mark.Woodward at chemringts.com (Mark Woodward) Date: Tue, 21 May 2019 14:59:46 +0000 Subject: [mapserver-users] GDAL/OGR Open Options Message-ID: <4537dacc47094ae880509d8866faead5@ex2.chemringts.com> Hi, Is it possible to pass OGR/GDAL open options when using a vector data source via the OGR driver? I would particularly like to pass ZOOM_LEVEL_AUTO to the MVT MBtiles driver. Thanks, Mark ________________________________________ Follow Us: LinkedIn | Google+ | Twitter Chemring Technology Solutions Limited, Roke Manor, Old Salisbury Lane, Romsey, Hampshire, SO51 0ZN, United Kingdom. Part of the Chemring Group. Registered in England & Wales. Registered No: 01528540 http://www.chemringts.com ________________________________________ The information contained in this e-mail and any attachments is proprietary to Chemring Technology Solutions Limited and must not be passed to any third party without permission. This communication is for information only and shall not create or change any contractual relationship. ________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeter at netgis.de Wed May 22 00:53:53 2019 From: schroeter at netgis.de (Sven Schroeter) Date: Wed, 22 May 2019 09:53:53 +0200 Subject: [mapserver-users] Fwd: Re: [MS4W-Users] transparency with php mapscript In-Reply-To: References: Message-ID: <5f68b419-7903-cfc0-a74e-73626835bed5@netgis.de> Hi all, I'm fighting with the SWIG PHP MapScript Opacity again and found a very strange behavior. Here is my test script: include("../includes/phpmapscriptng-swig/mapscript_70400.php"); $map = new mapObj(MAPFILE_PATH.'test.map'); // set image format $map->selectOutputFormat("image/jpeg"); $oRasterLayer = $map->getLayerByName('tk_rlp_tms_grau'); $oPolyLayer = $map->getLayerByName('grenzen_vg'); $oRasterLayer->setOpacity(10); $oRasterLayer->status = MS_ON; $oPolyLayer->setOpacity(30); $oPolyLayer->status = MS_ON; // set image size $map->setsize(1000,768); $map->setextent(300497,5495624,366043,5558489); // Bild im MapServer IMAGEPATH abspeichern. $image = $map->draw(); //Bildname, Extension und Pfad $picname = md5(rand()); $picext = ".jpeg"; $picpathname = MS_TMP_PATH.$picname.$picext; // Bild im MapServer IMAGEPATH abspeichern. $mapimage = $image->save($picpathname,$map); //URL $imgurl = MS_TMP_URL.$picname.$picext; //header('Location: '.$imgurl); echo ''; If I set the width of the image to a number with 2 zeros at the end everything works fine. e.g. $map->setsize(800,814); or $map->setsize(1000,768); as soon as I change the value for the width of the image it often doesn't work anymore and the layers don't have transparency anymore. e.g. $map->setsize(801,814); or $map->setsize(1011,768); It is extremely difficult to see a pattern here. All variants work with the old Mapscript. Is this a bug? Thanks + Greeting Sven From jmckenna at gatewaygeomatics.com Wed May 22 05:49:13 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 22 May 2019 09:49:13 -0300 Subject: [mapserver-users] transparency with php mapscript In-Reply-To: <5f68b419-7903-cfc0-a74e-73626835bed5@netgis.de> References: <5f68b419-7903-cfc0-a74e-73626835bed5@netgis.de> Message-ID: <17a1bba9-5a0d-0b9c-3749-5251ce618b78@gatewaygeomatics.com> Hi Sven, You found a good one. It took me some time to figure out what is happening. In fact this is due to MS4W 4.0.0 being compiled with Pixman support; unfortunately I had hit this back in 2016 and removed Pixman for that reason. Here we are again though :) I'll remove Pixman for the next MS4W 4.0.1 release. Follow along the progress at https://ms4w.com/trac/ticket/218 Thanks for reporting this. -jeff -- Thank you for using MS4W. "MS4W: open doors as well as windows" -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-05-22 4:53 AM, Sven Schroeter wrote: > Hi all, > > I'm fighting with the SWIG PHP MapScript Opacity again and found a very > strange behavior. > > Here is my test script: > > include("../includes/phpmapscriptng-swig/mapscript_70400.php"); > $map = new mapObj(MAPFILE_PATH.'test.map'); > > // set image format > $map->selectOutputFormat("image/jpeg"); > $oRasterLayer = $map->getLayerByName('tk_rlp_tms_grau'); > $oPolyLayer = $map->getLayerByName('grenzen_vg'); > > $oRasterLayer->setOpacity(10); > $oRasterLayer->status = MS_ON; > > $oPolyLayer->setOpacity(30); > $oPolyLayer->status = MS_ON; > > // set image size > $map->setsize(1000,768); > $map->setextent(300497,5495624,366043,5558489); > > // Bild im MapServer IMAGEPATH abspeichern. > $image = $map->draw(); > > //Bildname, Extension und Pfad > $picname = md5(rand()); > $picext = ".jpeg"; > > $picpathname = MS_TMP_PATH.$picname.$picext; > > // Bild im MapServer IMAGEPATH abspeichern. > $mapimage = $image->save($picpathname,$map); //URL > > > $imgurl = MS_TMP_URL.$picname.$picext; > > //header('Location: '.$imgurl); > > echo ''; > > > > If I set the width of the image to a number with 2 zeros at the end > everything works fine. > e.g. $map->setsize(800,814); > or $map->setsize(1000,768); > > as soon as I change the value for the width of the image it often > doesn't work anymore and the layers don't have transparency anymore. > e.g. $map->setsize(801,814); > or $map->setsize(1011,768); > > It is extremely difficult to see a pattern here. > All variants work with the old Mapscript. > Is this a bug? > > Thanks + Greeting > Sven > > From Jens.Gramenz at leibniz-liag.de Mon May 27 06:16:04 2019 From: Jens.Gramenz at leibniz-liag.de (Gramenz, Jens) Date: Mon, 27 May 2019 13:16:04 +0000 Subject: [mapserver-users] Fwd: Re: [MS4W-Users] transparency with php mapscript Message-ID: <32aabd32989948fbac21d8cf1e6033e2@leibniz-liag.de> Hi Sven, I encountered the same problem few weeks ago. The pattern does exist: If the width of the image is not evenly divisible by four, than the layer transparency fails. I was just about to write a message like yours, but as I managed to reproduce the bug with a small testscript, I stumbled upon an error and then found out that it is already a known thing... http://osgeo-org.1560.x6.nabble.com/Layer-opacity-not-working-td5292269.html As Jeff pointed out, if you built it on your own, then you can disable pixman, if you don't actually need it... Cairo support was dependent of pixman I think. If you are using a compiled package, maybe you can circumvent this issue by using the OPACITY at CLASS level. I know that OPACITY is already deprecated, but it might be useful until we are forced to use COMPOSITE blocks. LAYER __OPACITY 50 # doesn't work __CLASS ____STYLE ______OPACITY 50 # works ____END __END END If the layer objects are disjoint, the result should be the same. If polygons of the same layer overlap their opacities will add up, which or might not be useful behaviour... I am also interested in alternatives. For example: Is it possible to change pixman, so the bug doesn't occur? Sadly, I didn't manage to compile Mapserver with PHP7 myself yet. If it turns out that nobody needs Pixman/Cairo and MS4W will be compiled without it, it would be fine for me as well. Best wishes, Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: From nuno.box at gmail.com Tue May 28 00:26:24 2019 From: nuno.box at gmail.com (nsilva) Date: Tue, 28 May 2019 00:26:24 -0700 (MST) Subject: [mapserver-users] MapServer on Centos 7 In-Reply-To: References: <7.0.1.0.0.20180425154442.04b26e00@cerc.co.uk> Message-ID: <1559028384174-0.post@n6.nabble.com> At this point, i'm only interested to know if i can use only MapCache withou a MapServer....or do i have to install MapServer as well. I want to create a mapcache server farm to speed up client requests as well a WMTS service to clients with low bandwidth...i already tryed MapProxy with sucess and now i'm trying to install another server with MapCache for a Proof of Concept. By now I installed it on a Ubuntu Server 18 but i'm not getting the tiles from the server that provides a WMS service...and i can't find 'recipes' online for Centos7... do you have any hints or saved recipe? Kind regards, Nuno Silva -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From steve.lime at state.mn.us Tue May 28 04:19:06 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 28 May 2019 11:19:06 +0000 Subject: [mapserver-users] MapServer on Centos 7 In-Reply-To: <1559028384174-0.post@n6.nabble.com> References: <7.0.1.0.0.20180425154442.04b26e00@cerc.co.uk> , <1559028384174-0.post@n6.nabble.com> Message-ID: You can use MapCache without MapServer. You?ll need something to provide WMS services to tile (or proxy) but that could be anything. I don?t have any hints for CentOS but it should run there fine... ?Steve ________________________________ From: mapserver-users on behalf of nsilva Sent: Tuesday, May 28, 2019 2:26:24 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer on Centos 7 At this point, i'm only interested to know if i can use only MapCache withou a MapServer....or do i have to install MapServer as well. I want to create a mapcache server farm to speed up client requests as well a WMTS service to clients with low bandwidth...i already tryed MapProxy with sucess and now i'm trying to install another server with MapCache for a Proof of Concept. By now I installed it on a Ubuntu Server 18 but i'm not getting the tiles from the server that provides a WMS service...and i can't find 'recipes' online for Centos7... do you have any hints or saved recipe? Kind regards, Nuno Silva -- Sent from: https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fosgeo-org.1560.x6.nabble.com%2FMapserver-User-f4226646.html&data=02%7C01%7Csteve.lime%40state.mn.us%7C51392d1b6ed74a53247808d6e33dcbc7%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636946251879500828&sdata=ckapnzZLvcCugGOweVsLmiV6qN8W7wsjnbAsOuk6AGU%3D&reserved=0 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-users&data=02%7C01%7Csteve.lime%40state.mn.us%7C51392d1b6ed74a53247808d6e33dcbc7%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636946251879500828&sdata=ar%2FcN3ZiMH9SDGx5loYO9IXhAA%2BmsYagI8hAPLEiNYc%3D&reserved=0 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nuno.box at gmail.com Tue May 28 06:26:15 2019 From: nuno.box at gmail.com (nsilva) Date: Tue, 28 May 2019 06:26:15 -0700 (MST) Subject: [mapserver-users] MapServer on Centos 7 In-Reply-To: References: <7.0.1.0.0.20180425154442.04b26e00@cerc.co.uk> <1559028384174-0.post@n6.nabble.com> Message-ID: <1559049975201-0.post@n6.nabble.com> Thanks Steve for the fast reply! By now i have a ncWMS2 server that delivers a WMS service using .nc (NetCDF) files ...i was trying to use mapcache to process that WMS service, but i keep getting errors from curl : curl failed to request url http://myserver.local:8080/ncWMS2>?VERSION=1.3.0&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=259722.000000 \xf699727.000000 \xca302512.000000 \xd0142517.000000&WIDTH=1556&HEIGHT=1556&FORMAT=PNG&SRS=EPSG %a27700&LAYERS=ww3.total.2 : The requested URL returned error: 400 , referer: http://10.1.3.38/mapcache/demo/wms Since i'm a newbie on this subject, perhaps something needs to be configured in the mapcache.xml file, when i copy that URL in the error, i can't obtain a valid response from my ncWMS2 server...there's a lot of jibberish caused by slashes . I was trying to find someone that uses mapcache -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From steve.lime at state.mn.us Tue May 28 07:06:44 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 28 May 2019 14:06:44 +0000 Subject: [mapserver-users] MapServer on Centos 7 In-Reply-To: <1559049975201-0.post@n6.nabble.com> References: <7.0.1.0.0.20180425154442.04b26e00@cerc.co.uk> <1559028384174-0.post@n6.nabble.com> <1559049975201-0.post@n6.nabble.com> Message-ID: Perhaps post the relevant mapcache config snippets... I'm using MapCache with both MapServer and non-MapServer WMS sources. -----Original Message----- Thanks Steve for the fast reply! By now i have a ncWMS2 server that delivers a WMS service using .nc (NetCDF) files ...i was trying to use mapcache to process that WMS service, but i keep getting errors from curl : curl failed to request url http://myserver.local:8080/ncWMS2>?VERSION=1.3.0&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=259722.000000 \xf699727.000000 \xca302512.000000 \xd0142517.000000&WIDTH=1556&HEIGHT=1556&FORMAT=PNG&SRS=EPSG %a27700&LAYERS=ww3.total.2 : The requested URL returned error: 400 , referer: http://10.1.3.38/mapcache/demo/wms Since i'm a newbie on this subject, perhaps something needs to be configured in the mapcache.xml file, when i copy that URL in the error, i can't obtain a valid response from my ncWMS2 server...there's a lot of jibberish caused by slashes . I was trying to find someone that uses mapcache -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html _______________________________________________ mapserver-users mailing list [hidden email] https://lists.osgeo.org/mailman/listinfo/mapserver-users From nuno.box at gmail.com Tue May 28 07:52:50 2019 From: nuno.box at gmail.com (nsilva) Date: Tue, 28 May 2019 07:52:50 -0700 (MST) Subject: [mapserver-users] MapServer on Centos 7 In-Reply-To: References: <7.0.1.0.0.20180425154442.04b26e00@cerc.co.uk> <1559028384174-0.post@n6.nabble.com> <1559049975201-0.post@n6.nabble.com> Message-ID: <1559055170645-0.post@n6.nabble.com> That's one of the problems...i'm still trying to get a working mapcache.xml working...i'm using several examples online, and none appears to work... Can you share one of yours config snippets so i can use it as a template? (feel free to change hostnames or internal IP addresses ) -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From jmckenna at gatewaygeomatics.com Tue May 28 08:02:37 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 28 May 2019 12:02:37 -0300 Subject: [mapserver-users] MapServer on Centos 7 In-Reply-To: <1559055170645-0.post@n6.nabble.com> References: <7.0.1.0.0.20180425154442.04b26e00@cerc.co.uk> <1559028384174-0.post@n6.nabble.com> <1559049975201-0.post@n6.nabble.com> <1559055170645-0.post@n6.nabble.com> Message-ID: <4c52624a-cc21-196f-bd55-3b076cdbf7bd@gatewaygeomatics.com> On 2019-05-28 11:52 AM, nsilva wrote: > That's one of the problems...i'm still trying to get a working mapcache.xml > working...i'm using several examples online, and none appears to work... > > Can you share one of yours config snippets so i can use it as a template? > (feel free to change hostnames or internal IP addresses ) > > If you are looking for a known working mapcache.xml to use as a starter, MS4W includes a working one at /ms4w/apps/mapcache/mapcache.xml You can grab it from https://ms4w.com (MS4W shares 40+ mapfiles and settings for Windows users, so it works out-of-the-box. I use those settings also for my CentOS and Ubuntu servers, it's just nice to start from something working). You can also view its Apache settings as well, and port those to your server. Hope that helps. PS. you can see those settings live in action at https://ms4w.me -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ From gustafson.erik at gmail.com Tue May 28 23:31:25 2019 From: gustafson.erik at gmail.com (Erik Gustafson) Date: Wed, 29 May 2019 08:31:25 +0200 Subject: [mapserver-users] MapServer on Centos 7 In-Reply-To: <1559049975201-0.post@n6.nabble.com> References: <7.0.1.0.0.20180425154442.04b26e00@cerc.co.uk> <1559028384174-0.post@n6.nabble.com> <1559049975201-0.post@n6.nabble.com> Message-ID: On Tue, May 28, 2019 at 3:26 PM nsilva wrote: > Thanks Steve for the fast reply! > > By now i have a ncWMS2 server that delivers a WMS service using .nc > (NetCDF) > files ...i was trying to use mapcache to process that WMS service, but i > keep getting errors from curl : > > > curl failed to request url > http://myserver.local:8080/ncWMS2 > >?VERSION=1.3.0&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=259722.000000 > \xf699727.000000 \xca302512.000000 > \xd0142517.000000&WIDTH=1556&HEIGHT=1556&FORMAT=PNG&SRS=EPSG > %a27700&LAYERS=ww3.total.2 : > The requested URL returned error: 400 , referer: > http://10.1.3.38/mapcache/demo/wms > > Since i'm a newbie on this subject, perhaps something needs to be > configured > in the mapcache.xml file, when i copy that URL in the error, i can't obtain > a valid response from my ncWMS2 server...there's a lot of jibberish caused > by slashes . > > Yes, thats URL looks strange and ncWMS2 says it's bad. The source-block in mapcache should look something like this: http://myserver.local:8080/ncWMS2 image/png ww3.total.2 /Erik -------------- next part -------------- An HTML attachment was scrubbed... URL: