[mapserver-users] WFS - featureid/resourceid
Ian Walberg
ian.walberg at airborne.aero
Sat May 7 13:19:29 PDT 2016
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:tchaddad at gmail.com]
Sent: Saturday, May 7, 2016 1:14 PM
To: Ian Walberg <ian.walberg at airborne.aero>
Cc: mapserver-users at lists.osgeo.org
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 <ian.walberg at airborne.aero<mailto:ian.walberg at airborne.aero>> wrote:
The db is sqlite.
ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160507/5289bd1a/attachment.htm>
More information about the MapServer-users
mailing list