Yes we see the same and that was my reason for asking.

Thanks
Ian

From: TC Haddad [mailto:[email protected]]
Sent: Saturday, May 7, 2016 12:39 PM
To: Ian Walberg <[email protected]>
Cc: [email protected]
Subject: Re: [mapserver-users] WFS - featureid/resourceid


Well it looks like your map file settings are fine, and a correctly formatted 
URL would be:

http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=DATA_TEST.1
However the resulting error message indicates that something may else may be 
amiss:

msQueryByFilter(): Search returned no results. No matching record(s) found.
LayerDefaultTranslateFilter(): General error message. This data driver does not 
implement filter translation support

On Sat, May 7, 2016 at 12:29 PM, Ian Walberg 
<[email protected]<mailto:[email protected]>> wrote:
And also in the WEB section


  METADATA
                "wfs_title"          "WFS Test"
                "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv?";
                "wfs_srs"            "EPSG:4326"
                "wfs_abstract"       "WFS Test"
                "wfs_enable_request" "*"
                "wfs_getfeature_formatlist" "geojson"

Ian

From: mapserver-users 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Ian Walberg
Sent: Saturday, May 7, 2016 12:27 PM
To: TC Haddad <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>

Subject: Re: [mapserver-users] WFS - featureid/resourceid

Here is what we have in the map file layer, what have we missed?

METADATA
                        "wfs_srs" "EPSG:4326"
                        "wfs_title" "DATA_POI"
                        "gml_featureid" "id"
                        "gml_include_items" "all"
                        "wfs_enable_request" "*"
                        "wfs_encoding" "UTF-8"
                        "wfs_abstract" "Points"
                        "wfs_getfeature_formatlist" "geojson"
                END
Thanks

Ian

From: TC Haddad [mailto:[email protected]]
Sent: Saturday, May 7, 2016 12:12 PM
To: Ian Walberg <[email protected]<mailto:[email protected]>>
Cc: Rahkonen Jukka (MML) 
<[email protected]<mailto:[email protected]>>;
 [email protected]<mailto:[email protected]>
Subject: Re: [mapserver-users] WFS - featureid/resourceid


Ian

you may have to enable the GetFeatureById option in your mapfile as at the 
moment it looks like you have it turned off.
Put something like this in the LAYER block to enable all WFS requests:

"wfs_enable_request" "*"
From there you can begin to test with:

http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeatureById
And the server will tell you what other parameters you need to add to the URL 
in order to successfully return a record.

On Sat, May 7, 2016 at 11:44 AM, Ian Walberg 
<[email protected]<mailto:[email protected]>> wrote:
Jukka,

We could not get that to work, what is the syntax for our setup?

Thanks

Ian

From: Rahkonen Jukka (MML) 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Saturday, May 7, 2016 10:54 AM
To: Ian Walberg <[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>
Subject: VS: [mapserver-users] WFS - featureid/resourceid

I would try the GetFeatureById stored query 
http://mapserver.org/ogc/wfs_server.html

Jukka Rahkonen
________________________________
Lähettäjä: Ian Walberg<mailto:[email protected]>
Lähetetty: ‎7.‎5.‎2016 20:47
Vastaanottaja: 
[email protected]<mailto:[email protected]>
Aihe: [mapserver-users] WFS - featureid/resourceid
Folks,

How do we select just a single feature using FEATUREID or RESOUCEID.

http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST

Thanks

Ian
_______________________________________________
mapserver-users mailing list
[email protected]<mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
[email protected]<mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to