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]>
Cc: Rahkonen Jukka (MML) <[email protected]>; 
[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