[gdal-dev] Missing geometry type when using ogr2ogr to write FileGDB

Stefan Keller sfkeller at gmail.com
Sun Apr 21 13:18:38 PDT 2013


Hi Even

You're right about the parantheses of URLs with & in the shell.

2013/4/21 Even Rouault <even.rouault at mines-paris.org>
> So the geometry type is undefined. OGR then reports a unknown geometry
type.
> There could be a mix of geometries in such a layer.

Yes that's it.
To be specific, every feature/object/instance has a gml:Box and a
gml:Polygon (see below).
That's a weird output from this ArcGIS server stuff and an incomplete
response of DescribeFeatureType.

Yours, Stefan

----
Response from "
http://maps.zh.ch/wfs/FnsNSWFS?SERVICE=WFS&VERSION=1.0.0&EQUEST=GetFeature&TYPENAME=svo_zonen
"
  <...>
  <gml:featureMember>
    <ms:svo_zonen fid="svo_zonen.4896">
      <gml:boundedBy>
        <gml:Box srsName="EPSG:21781">
          <gml:coordinates>693970.812500,273550.094000
694049.875000,273650.312500</gml:coordinates>
        </gml:Box>
      </gml:boundedBy>
      <ms:msGeometry>
      <gml:Polygon srsName="EPSG:21781">
        <gml:outerBoundaryIs>
          <gml:LinearRing>
            <gml:coordinates>694037.000000,273550.094000
694021.625000,...</gml:coordinates>
          </gml:LinearRing>
        </gml:outerBoundaryIs>
      </gml:Polygon>
      </ms:msGeometry>
      <ms:geodb_oid>4896</ms:geodb_oid>
      <ms:objectid>49</ms:objectid>
      <ms:svozoneoid>141</ms:svozoneoid>
      ...
    </ms:svo_zonen>
  </gml:featureMember>
  ...


2013/4/21 Even Rouault <even.rouault at mines-paris.org>

> Le dimanche 21 avril 2013 19:44:19, Stefan Keller a écrit :
> > I got the real problem: It occurs with this WFS source:
> > http://maps.zh.ch/wfs/FnsNSWFS?SERVICE=WFS&REQUEST=GetCapabilities
> >
> > => ogrinfo reports no geometry with this WFS:
> >
> > $ ogrinfo -ro WFS:http://maps.zh.ch/wfs/FnsNSWFS?TYPENAME=svo_zonen
> > INFO: Open of `WFS:http://maps.zh.ch/wfs/FnsNSWFS?TYPENAME=svo_zonen'
> >       using driver `WFS' successful.
> > 1: svo_zonen
> >
> > Should be
> > 1: svo_zonen (Polygon)
> >
> > No geometry reported here in parantheses. So it's a configuration or
> > installation problem of the WFS server (ArcGIS)
> >
> > In QGIS this works (QGIS reader seems to guess somehow the geometry
> type).
>
> Yes, when examining the
> "
> http://maps.zh.ch/wfs/FnsNSWFS?TYPENAME=svo_zonen&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType
> "
> you can see :
>
>           <element name="msGeometry" type="gml:GeometryPropertyType"
> minOccurs="0" maxOccurs="1"/>
>
> So the geometry type is undefined. OGR then reports a unknown geometry
> type.
> There could be a mix of geometries in such a layer.
>
> I guess that QGIS will inspect the whole layer content after having
> downloaded
> it to determine the geometry type, but the OGR WFS driver doesn't do that
> for
> effeciency purposes. It can operate on arbitrarily huge layers in streaming
> mode (true for OGR 1.10)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130421/ce9ccc65/attachment.html>


More information about the gdal-dev mailing list