Mapscript/Python setting featureID for WFS
Scott Schwab
schwab.scott at GEOEYE.COM
Wed Nov 8 14:52:24 PST 2006
I am new to MapServer and MapScript, so sorry if this is an obvious question.
I have a CGI-BIN script, in python, which produces a series of layers, each
layer with one or more shapeObjs placed within it. If I produce an image
from this script, it looks fine.
I decided to try WFS, and my GetCapabilities request seems to work okay, but
when I do a getFeature on the layer, I get the proper boundaries, but I get
the message of FeatureId item "ID" not found in typename "layerOne". (See
below)
My question is, since I am producing the shape and layer on the fly, based
on a set of geographic points, how do I set attribute on the shape or layer
that is the value for an feature id attribute "ID". If I use
shpObj.initValue(#) and shpObj.setValue(i,value), how do I associate the
feature item tag "ID" with the value?
Thank you for any ideas and help,
Scott
---- response from getFeature ----
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <wfs:FeatureCollection xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs
http://ogc.dmsolutions.ca/wfs/1.0.0/WFS-basic.xsd
http://mapserver.gis.umn.edu/mapserver
http://10:155.0.190:9090/cgi-bin/maps/makemap1.py?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=LayerOne&OUTPUTFORMAT=XMLSCHEMA">
- <gml:boundedBy>
- <gml:Box srsName="EPSG:4326">
<gml:coordinates>-110.000000,35.000000
-90.000000,58.000000</gml:coordinates>
</gml:Box>
</gml:boundedBy>
- <!-- WARNING: FeatureId item 'ID' not found in typename 'LayerOne'.
-->
</wfs:FeatureCollection>
--
View this message in context: http://www.nabble.com/Mapscript-Python-setting-featureID-for-WFS-tf2598495.html#a7248863
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list