to start off with:
Coding in C++
Using WFS Version 1.0.0
Using QT 5.4.1
Windows 8 Latest versions
I'm trying to read in a WFS in code via Gdal compiled with Xerces - I'm able to read the GML files so I can pull spatial point/lines/polygons etc. But I'm not too sure how I do this with the feature names/layers. Any help?]
This is what I'm trying to get: The Cities layer name and Continents layer name, but via code.
<schema xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml"
targetNamespace="http://mapserver.gis.umn.edu/mapserver"elementFormDefault="qualified" version="0.1">
<import namespace="http://www.opengis.net/gml"
schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
<element name="continents" type="ms:continentsType"
substitutionGroup="gml:_Feature"/>
<complexType name="continentsType">
<complexContent>
<extension base="gml:AbstractFeatureType">
<sequence>
<element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0"maxOccurs="1"/>
<element name="NA2DESC" type="string"/>
<element name="NA3DESC" type="string"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="cities" type="ms:citiesType" substitutionGroup="gml:_Feature"/>
<complexType name="citiesType">
<complexContent>
<extension base="gml:AbstractFeatureType">
<sequence>
<element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/>
<element name="POPULATION" type="string"/>
<element name="NAME" type="string"/>
</sequence>
</extension>
</complexContent>
</complexType>
</schema>
You can call the Features type by using this WFS GET request http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType