Skip to content
Permalink
Browse files

ogr provider: return wkbNone if ogr reports unknown geometry and firs…

…t feature is geometryless (fixes #7505)
  • Loading branch information
jef-n committed Jun 21, 2014
1 parent ce96eaa commit 69ce0397a3cccf63ae766094346d984d94a13687
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/providers/ogr/qgsogrprovider.cpp
@@ -711,6 +711,10 @@ int QgsOgrProvider::getOgrGeomType( OGRLayerH ogrLayer )
{
geomType = OGR_G_GetGeometryType( firstGeometry );
}
else
{
geomType = wkbNone;
}
OGR_F_Destroy( firstFeature );
}
OGR_L_ResetReading( ogrLayer );

0 comments on commit 69ce039

Please sign in to comment.
You can’t perform that action at this time.