Bug report #14165

Geometry checker plugin error (3D geom)

Added by Paolo Cavallini almost 5 years ago. Updated over 2 years ago.

Category:Data Provider
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:up/downstream
Crashes QGIS or corrupts data:No Copied to github as #:22167


I'm getting:

Failed to create the output layer: non riesco a creare il layer (errore
OGR:Geometry type of `Unrecognised: 1003' not supported in shapefiles.
Type can be overridden with a layer creation option

Note from Even Rouault:

Sounds like a PolygonZ (=1003) is passed to OGR as WKB encoded with ISO
SQL/MM to GDAL 1.11 or older. Only GDAL 2.0 will support that. GDAL 1.X
will only support old-style 99-402 extended dimension (Z) WKB, so
Polygon25D = 0x80000003

Thanks Even. In this case, the plugin would be essentially broken in all
systems with gdal<2 (as in Debian sid9), right?

Yes, it seems than any 3D geometry outputted by this plugin will not be GDAL
1.X compatible. 2D geometries should be OK though.
Perhaps there's somewhere in QGIS code base a way of converting ISO WKB to
old-style WKB ?


#1 Updated by Sandro Mani almost 5 years ago

The geometry checker plugin simply clones the layer using QgsVectorFileWriter before it starts processing it. So QgsVectorFileWriter needs to be adapted to handle 3D geometries. The geometry checker plugin itself should not really care about whether a geometry is 2D or 3D.

#2 Updated by Paolo Cavallini almost 5 years ago

  • Category changed from C++ plugins/Geometry Checker to Data Provider

#3 Updated by Giovanni Manghi over 3 years ago

  • Easy fix? set to No
  • Regression? set to No

#4 Updated by Paolo Cavallini over 2 years ago

  • Status changed from Open to Closed
  • Description updated (diff)
  • Resolution set to up/downstream

Now GHDAL 1 should be outdated in most if not all systems.

Also available in: Atom PDF