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" <lars.fri...@skendata.de> 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: "<ows:Exception exceptionCode="NoApplicableCode" >locator="mapserv"><ows:ExceptionText>msWFSGetFeature(): WFS server >error. ms_error->code not found msWFSLayerWhichShapes(): WFS connection >error. WFS request produced unexpected output (junk?) for layer >HK.</ows:ExceptionText></ows:Exception>" 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-users