Here is the complete layer definition.
LAYER
NAME DATA_TEST
DEBUG 5
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"
"wfs_getfeature_formatlist" "gml,geojson"
END # METADATA
TYPE point
STATUS ON
EXTENT -180 -90 180 90
LABELITEM 'name'
CONNECTIONTYPE OGR
CONNECTION '/data/wfs/WFS_TEST.sqlite'
DATA 'select id, "POINT(" || long || " " || lat || ")" as WKT_GEOMETRY,
name from test'
PROJECTION
"init=epsg:4326"
END # PROJECTION
END # LAYER
From: TC Haddad [mailto:[email protected]]
Sent: Saturday, May 7, 2016 1:14 PM
To: Ian Walberg <[email protected]>
Cc: [email protected]
Subject: Re: [mapserver-users] WFS - featureid/resourceid
Do you have a FILTERITEM specified in the LAYER?
See this thread to see if the solution helps:
http://lists.osgeo.org/pipermail/mapserver-users/2015-June/077933.html
On Sat, May 7, 2016 at 1:04 PM, Ian Walberg
<[email protected]<mailto:[email protected]>> wrote:
The db is sqlite.
ian
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users