[gdal-dev] Get WFS attributes form the gml namespace as OGR fields

Tamas Szekeres szekerest at gmail.com
Thu Oct 19 13:55:50 PDT 2017


Hi all,

It looks like whenever we have a dataset (shapefile,db table,etc...) which
has a
column with such names like "description", "name", "location" GeoServer
maps it to the elements in the gml namespace (in a 1.1 request),
therefore DescribeFeatureType doesn't contain these attributes.

For example this response doesn't include the name attribute

http://cstest.coordinatesolutions.com/geoserver/wfs?VERSION=1.1.0&SERVICE=WFS&REQUEST=DescribeFeatureType&TYPENAME=ogi:okcounties

However that attribute is returned in the GetFeature request in the
gml:name section, like:

http://cstest.coordinatesolutions.com/geoserver/wfs?VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=ogi:okcounties

But as the result of this behaviour the WFS driver doesn't include this
item in the layer definition. Is that possible to retrieve these attributes
from the WFS driver as OGR fields for example to use them in SQL
expressions?

Thanks,

Tamas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171019/63003895/attachment.html>


More information about the gdal-dev mailing list