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

Even Rouault even.rouault at spatialys.com
Wed Jan 25 10:57:36 PST 2017


On mercredi 25 janvier 2017 18:35:03 CET Kemal Ardıl Gülez wrote:
> 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

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170125/86459d72/attachment-0001.html>


More information about the gdal-dev mailing list