[mapserver-users] Mapserver as WFS 1.1.0 client

Lars Fricke lars.fricke at skendata.de
Tue Dec 23 08:58:26 PST 2014


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&TYPENAME=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-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lars Fricke
> Sent: Monday, December 22, 2014 12:58 AM
> To: mapserver-users at 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 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
>




More information about the MapServer-users mailing list