[gdal-dev] Reading a WFS source with OGR: Most columns don't appear in results

Kemal Ardıl Gülez ardilgulez at gmail.com
Wed Jan 25 07:35:03 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?

The OGR versions that I tried with are:

- 1.11.4
- 2.1.0
- 2.1.1
- 2.1.2

Thank you all in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170125/5c434870/attachment.html>


More information about the gdal-dev mailing list