We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aceef9e commit 7b7c377Copy full SHA for 7b7c377
src/providers/ogr/qgsogrprovider.cpp
@@ -699,6 +699,11 @@ OGRwkbGeometryType QgsOgrProvider::getOgrGeomType( OGRLayerH ogrLayer )
699
{
700
geomType = OGR_FD_GetGeomType( fdef );
701
702
+ // Handle wkbUnknown and its Z/M variants. QGIS has no unknown Z/M variants,
703
+ // so just use flat wkbUnknown
704
+ if ( wkbFlatten( geomType ) == wkbUnknown )
705
+ geomType = wkbUnknown;
706
+
707
// Some ogr drivers (e.g. GML) are not able to determine the geometry type of a layer like this.
708
// In such cases, we use virtual sublayers for each geometry if the layer contains
709
// multiple geometries (see subLayers) otherwise we guess geometry type from first feature
0 commit comments