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 69ce039
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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.