Re: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client
Håvard, Good job, thank you. Now there is a fair chance to think of the OGR option for more formats. Cheers Lars Am 22.01.2015 um 15:20 schrieb Håvard Tveite: On 2014-12-24 9:18, Lars Fricke wrote: Mike, you were right. It works exactly as you say. The reason I could not get it to work yesterday night was due to a wrong EPSG code, so nothing specific. Thank you very much for putting this solution under the Christmas tree for me. I wonder if this option should also be pointed out in the docs with the WFS description? WFS through OGR should now be better documented. Håvard Blessed Christmas everybody! Cheers Lars Am 23.12.2014 um 19:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: Lars, You can create a layer for mapserver that is an OGR layer (part of the GDAL library). LAYER ... CONNECTIONTYPE OGR DATA "..." ... END The DATA definition can be a OGR VRT that points to a WFS 1.1.0 layer, See http://www.gdal.org/drv_wfs.html Mike On 12/23/14, 12:32 PM, "Lars Fricke" wrote: Hello Michael, I'm not sure I understand what you mean? Best Lars Am 23.12.2014 um 18:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: Lars, Could you add a gdal layer into mapserver and use gdal to make the wfs 1.1.0 request? Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client
On 2014-12-24 9:18, Lars Fricke wrote: Mike, you were right. It works exactly as you say. The reason I could not get it to work yesterday night was due to a wrong EPSG code, so nothing specific. Thank you very much for putting this solution under the Christmas tree for me. I wonder if this option should also be pointed out in the docs with the WFS description? WFS through OGR should now be better documented. Håvard Blessed Christmas everybody! Cheers Lars Am 23.12.2014 um 19:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: Lars, You can create a layer for mapserver that is an OGR layer (part of the GDAL library). LAYER ... CONNECTIONTYPE OGR DATA "..." ... END The DATA definition can be a OGR VRT that points to a WFS 1.1.0 layer, See http://www.gdal.org/drv_wfs.html Mike On 12/23/14, 12:32 PM, "Lars Fricke" wrote: Hello Michael, I'm not sure I understand what you mean? Best Lars Am 23.12.2014 um 18:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: Lars, Could you add a gdal layer into mapserver and use gdal to make the wfs 1.1.0 request? Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Håvard Tveite Department of Mathematical Sciences and Technology, NMBU Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client
Mike, you were right. It works exactly as you say. The reason I could not get it to work yesterday night was due to a wrong EPSG code, so nothing specific. Thank you very much for putting this solution under the Christmas tree for me. I wonder if this option should also be pointed out in the docs with the WFS description? Blessed Christmas everybody! Cheers Lars Am 23.12.2014 um 19:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: Lars, You can create a layer for mapserver that is an OGR layer (part of the GDAL library). LAYER ... CONNECTIONTYPE OGR DATA "..." ... END The DATA definition can be a OGR VRT that points to a WFS 1.1.0 layer, See http://www.gdal.org/drv_wfs.html Mike On 12/23/14, 12:32 PM, "Lars Fricke" wrote: Hello Michael, I'm not sure I understand what you mean? Best Lars Am 23.12.2014 um 18:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: Lars, Could you add a gdal layer into mapserver and use gdal to make the wfs 1.1.0 request? Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client
Mike, got it to work for one server but unfortunately the more important one delivers neither errors nor data. I will follow up on this tomorrow. Thank's for the idea, it may indeed lead forward. Best Lars Am 23.12.2014 um 19:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: Lars, You can create a layer for mapserver that is an OGR layer (part of the GDAL library). LAYER ... CONNECTIONTYPE OGR DATA "..." ... END The DATA definition can be a OGR VRT that points to a WFS 1.1.0 layer, See http://www.gdal.org/drv_wfs.html Mike On 12/23/14, 12:32 PM, "Lars Fricke" wrote: Hello Michael, I'm not sure I understand what you mean? Best Lars Am 23.12.2014 um 18:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: Lars, Could you add a gdal layer into mapserver and use gdal to make the wfs 1.1.0 request? Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client
Lars, You can create a layer for mapserver that is an OGR layer (part of the GDAL library). LAYER ... CONNECTIONTYPE OGR DATA "..." ... END The DATA definition can be a OGR VRT that points to a WFS 1.1.0 layer, See http://www.gdal.org/drv_wfs.html Mike On 12/23/14, 12:32 PM, "Lars Fricke" wrote: >Hello Michael, > >I'm not sure I understand what you mean? > >Best > >Lars > > >Am 23.12.2014 um 18:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: >> Lars, >> >> Could you add a gdal layer into mapserver and use gdal to make the wfs >> 1.1.0 request? >> >> Mike >> > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client
Hm, I had a look but would that not make it a raster layer? I do however need the vector to cascade the WFS. Am I getting this right? Am 23.12.2014 um 18:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: Lars, Could you add a gdal layer into mapserver and use gdal to make the wfs 1.1.0 request? Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client
Good idea! -Original Message- From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:michael.sm...@erdc.dren.mil] Sent: Tuesday, December 23, 2014 11:19 AM To: fri...@gisberater.com; Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Subject: Re: [EXTERNAL] Re: [mapserver-users] Mapserver as WFS 1.1.0 client Lars, Could you add a gdal layer into mapserver and use gdal to make the wfs 1.1.0 request? Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 12/23/14, 12:15 PM, "Lars Fricke" wrote: >Well at least now I know. > >Thanks for both of your effort. > >Cheers and blessed Christmas. > >Lars > >Based on other input from Daniel Morissette I think it's pretty safe to >say that MapServer only supports WFS layers with versions 0.0.14 and >1.0.0. Sorry... I don't know what it would take to extend things to >1.1.0 though (patches welcome). Steve -Original Message- From: >Lars Fricke [mailto:lars.fri...@skendata.de] Sent: Tuesday, December >23, >2014 10:58 AM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org >Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client Hello >Steve, Thank you for your answer. I tried setting to GET and this is >what i got: "locator="mapserv">msWFSGetFeature(): WFS server >error. ms_error->code not found msWFSLayerWhichShapes(): WFS connection >error. WFS request produced unexpected output (junk?) for layer >HK." The message about the wrong >version is not showing up. Maybe I'm doing something wrong? Here's my >layer definition: "LAYER NAME "HK" TYPE Point UNITS METERS CONNECTION >"http://localhost:8081/geoserver/wfs?"; CONNECTIONTYPE WFS #EXTENT >618740 >5962679 1737924 7376186 does not seem to matter STATUS ON METADATA >"wfs_version" "1.1.0" "wfs_title" "HK" "wfs_connectiontimeout" "60" >"wfs_typename" "Data:HK" "wfs_maxfeatures" "500" "wfs_request_method" >"GET" "gml_include_items" "all" "wfs_title" "HK" "wfs_srs" "EPSG:3857" >"gml_featureid" "GCOA_ID" "wfs_enable_request" "*" END # METADATA >PROJECTION "init=epsg:3857" END # PROJECTION CLASS NAME "Koordinaten" >STYLE COLOR 190 87 66 OUTLINECOLOR 255 0 0 SIZE 4 SYMBOL "circle_filled" >END # STYLE END # CLASS END # LAYER" The request is: >"http://localhost:8082/wfs?SERVICE=WFS&VERSION=1.1.0&&request=GetFeatur >e&T YPENAME=HK&local&SRS=EPSG:3857&bbox=793732,6570204,793765,6570228" >Thank you Cheers Lars Am 22.12.2014 um 16:09 schrieb Lime, Steve D (MNIT): >>> Looking at the mapwfslayer.c code it's a little confusing. I see >>>references to 0.0.14 and 1.0.0 for POST requests and 0.0.14, 1.0.0 >>>and >>>1.1 for GET requests. You can try setting: >>> >>> "wfs_request_method" "GET" >>> >>> In the layer metadata and see if that works for you. >>> >>> Steve >>> >>> -Original Message- >>> From: mapserver-users-boun...@lists.osgeo.org >>> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lars >>> Fricke >>> Sent: Monday, December 22, 2014 12:58 AM >>> To: mapserver-users@lists.osgeo.org >>> Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client >>> >>> Hello List, >>> >>> can you please give me a quick feedback on which version WFS >>>MapServer supports as CLIENT (see below)? I can't really find it in the docs. >>> Thank you. >>> >>> Lars Fricke >>> >>> >>> Am 18.12.2014 um 08:29 schrieb Lars Fricke: Hello, I am trying to access an external WFS with MapServer as client to cascade it. I get the following error message: msBuildWFSLayerPostRequest(): WFS connection error. MapServer supports only WFS 1.0.0 or 0.0.14 (please verify the version metadata wfs_version). Indeed the external server only sends version 1.1.0 and my mapfile has: ... METADATA "wfs_version""1.1.0" ... Now when I search on the net, I find bug reports about WMS 1.1.0 and MapServer but no information if I can use it as a 1.1.0 client at all. And if so, do I need to use something specific to activate it? I'm on a German Ubuntu 14.04 64bit with Apache2 and mapserv -v says: MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks for looking into this. Best Lars ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> ___ >>> mapserver-users mailing list >>> mapserver-users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapse
Re: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client
Lars, Could you add a gdal layer into mapserver and use gdal to make the wfs 1.1.0 request? Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 12/23/14, 12:15 PM, "Lars Fricke" wrote: >Well at least now I know. > >Thanks for both of your effort. > >Cheers and blessed Christmas. > >Lars > >Based on other input from Daniel Morissette I think it's pretty safe to >say that MapServer only supports WFS layers with versions 0.0.14 and >1.0.0. Sorry... I don't know what it would take to extend things to >1.1.0 though (patches welcome). Steve -Original Message- From: >Lars Fricke [mailto:lars.fri...@skendata.de] Sent: Tuesday, December 23, >2014 10:58 AM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org >Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client Hello >Steve, Thank you for your answer. I tried setting to GET and this is >what i got: "locator="mapserv">msWFSGetFeature(): WFS server >error. ms_error->code not found msWFSLayerWhichShapes(): WFS connection >error. WFS request produced unexpected output (junk?) for layer >HK." The message about the wrong >version is not showing up. Maybe I'm doing something wrong? Here's my >layer definition: "LAYER NAME "HK" TYPE Point UNITS METERS CONNECTION >"http://localhost:8081/geoserver/wfs?"; CONNECTIONTYPE WFS #EXTENT 618740 >5962679 1737924 7376186 does not seem to matter STATUS ON METADATA >"wfs_version" "1.1.0" "wfs_title" "HK" "wfs_connectiontimeout" "60" >"wfs_typename" "Data:HK" "wfs_maxfeatures" "500" "wfs_request_method" >"GET" "gml_include_items" "all" "wfs_title" "HK" "wfs_srs" "EPSG:3857" >"gml_featureid" "GCOA_ID" "wfs_enable_request" "*" END # METADATA >PROJECTION "init=epsg:3857" END # PROJECTION CLASS NAME "Koordinaten" >STYLE COLOR 190 87 66 OUTLINECOLOR 255 0 0 SIZE 4 SYMBOL "circle_filled" >END # STYLE END # CLASS END # LAYER" The request is: >"http://localhost:8082/wfs?SERVICE=WFS&VERSION=1.1.0&&request=GetFeature&T >YPENAME=HK&local&SRS=EPSG:3857&bbox=793732,6570204,793765,6570228" >Thank you Cheers Lars Am 22.12.2014 um 16:09 schrieb Lime, Steve D (MNIT): >>> Looking at the mapwfslayer.c code it's a little confusing. I see >>>references to 0.0.14 and 1.0.0 for POST requests and 0.0.14, 1.0.0 and >>>1.1 for GET requests. You can try setting: >>> >>> "wfs_request_method" "GET" >>> >>> In the layer metadata and see if that works for you. >>> >>> Steve >>> >>> -Original Message- >>> From: mapserver-users-boun...@lists.osgeo.org >>> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lars >>> Fricke >>> Sent: Monday, December 22, 2014 12:58 AM >>> To: mapserver-users@lists.osgeo.org >>> Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client >>> >>> Hello List, >>> >>> can you please give me a quick feedback on which version WFS MapServer >>>supports as CLIENT (see below)? I can't really find it in the docs. >>> Thank you. >>> >>> Lars Fricke >>> >>> >>> Am 18.12.2014 um 08:29 schrieb Lars Fricke: Hello, I am trying to access an external WFS with MapServer as client to cascade it. I get the following error message: msBuildWFSLayerPostRequest(): WFS connection error. MapServer supports only WFS 1.0.0 or 0.0.14 (please verify the version metadata wfs_version). Indeed the external server only sends version 1.1.0 and my mapfile has: ... METADATA "wfs_version""1.1.0" ... Now when I search on the net, I find bug reports about WMS 1.1.0 and MapServer but no information if I can use it as a 1.1.0 client at all. And if so, do I need to use something specific to activate it? I'm on a German Ubuntu 14.04 64bit with Apache2 and mapserv -v says: MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks for looking into this. Best Lars ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> ___ >>> mapserver-users mailing list >>> mapserver-users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > >___ >mapserver-users mailing list >mapserver-users@lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-