[gdal-dev] even.rouault at spatialys.com

Kemal Ardıl Gülez ardilgulez at gmail.com
Wed Jan 25 22:08:01 PST 2017


>> Hello all,
>>
>> I'm trying to read a WFS source. The GetFeature request to the WFS source
>> returns rows in the form of:
>>
>> <gml:featureMember>
>>     <groups fid="group.44107041">
>>         <subgroupno>120</subgroupno>
>>         <group>288</group>
>>         <idno>40402578</idno>
>>         <description>Descripton</description>
>>         <groundref>56945117</groundref>
>>         <hoodref>158699</hoodref>
>>         <surfacearea>804.67</surfacearea>
>>         <type>2</type>
>>         <status>2</status>
>>         <geom>
>>             <gml:MultiPolygon srsName="
>> http://www.opengis.net/gml/srs/epsg.xml#4326">
>>                 <gml:polygonMember>
>>                     <gml:Polygon>
>>                         <gml:outerBoundaryIs>
>>                             <gml:LinearRing>
>>                                 <gml:coordinates decimal="." cs="," ts="
>> ">67.58201,80.5654
>>                                     67.58207,80.5652 67.58187,80.5653
>>                                     67.58159,80.5654 67.58118,80.5654
>>                                     67.58118,80.5655 67.58137,80.5655
>>                                     67.58143,80.5655 67.58159,80.5654
>>                                     67.58201,80.5654
>>                                 </gml:coordinates>
>>                             </gml:LinearRing>
>>                         </gml:outerBoundaryIs>
>>                     </gml:Polygon>
>>                 </gml:polygonMember>
>>             </gml:MultiPolygon>
>>         </geom>
>>         <createdate>2012-04-08T07:13:10</createdate>
>>         <netsurfacearea>804.440800604637</netsurfacearea>
>>         <typeid>2000000000001</typeid>
>>         <supergroupstatus>2</supergroupstatus>
>>         <parentstatus>3</parentstatus>
>>     </groups>
>> </gml:featureMember>
>>
>> But when I retrieve it with ogrinfo or ogr-fdw (which also uses OGR for
>> reading and parsing any ogr data source) for postgres, the only fields
that
>> I can get are:
>>
>> - fid
>> - geom
>> - status
>> - createdate
>>
>> Is this some kind of a problem with the WFS driver of OGR or is there
>> something that I'm doing wrong or I have to do and I'm not doing?
>
>Can you show the result of the DescribeFeatureType request, or better just
provide the
>endpoint to the WFS server and the layer used ?

> Even

The WFS server has IP restrictions so even if I provide it, you won't be
able to consume it.

Let me provide the DescribeFeatureType request to you.

<xsd:complexType name="groupsType">
    <xsd:complexContent>
        <xsd:extension base="gml:AbstractFeatureType">
            <xsd:sequence>
                <xsd:element maxOccurs="1" minOccurs="0" name="subgroupno"
nillable="true" type="xsd:string"/>
                <xsd:element maxOccurs="1" minOccurs="0" name="group"
nillable="true" type="xsd:string"/>
                <xsd:element maxOccurs="1" minOccurs="0" name="idno"
nillable="true" type="xsd:long"/>
                <xsd:element maxOccurs="1" minOccurs="0" name="description"
nillable="true" type="xsd:string"/>
                <xsd:element maxOccurs="1" minOccurs="0" name="groundref"
nillable="true" type="xsd:int"/>
                <xsd:element maxOccurs="1" minOccurs="0" name="hoodref"
nillable="true" type="xsd:int"/>
                <xsd:element maxOccurs="1" minOccurs="0" name="surfacearea"
nillable="true" type="xsd:double"/>
                <xsd:element maxOccurs="1" minOccurs="0" name="type"
nillable="true" type="xsd:short"/>
                <xsd:element maxOccurs="1" minOccurs="0" name="status"
nillable="true" type="xsd:short"/>
                <xsd:element maxOccurs="1" minOccurs="0" name="geom"
nillable="true" type="gml:GeometryPropertyType"/>
                <xsd:element maxOccurs="1" minOccurs="0" name="createdate"
nillable="true" type="xsd:dateTime"/>
                <xsd:element maxOccurs="1" minOccurs="0"
name="netsurfacearea" nillable="true" type="xsd:double"/>
                <xsd:element maxOccurs="1" minOccurs="0" name="typeid"
nillable="true" type="xsd:long"/>
                <xsd:element maxOccurs="1" minOccurs="0"
name="supergroupstatus" nillable="true" type="xsd:short"/>
                <xsd:element maxOccurs="1" minOccurs="0"
name="parentstatus" nillable="true" type="xsd:short"/>
            </xsd:sequence>
        </xsd:extension>
    </xsd:complexContent>
</xsd:complexType>
<xsd:element name="groups" substitutionGroup="gml:_Feature"
type="groupsType"/>

Thank you for your response.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170126/76c1b3a2/attachment-0001.html>


More information about the gdal-dev mailing list