Skip to content

Commit

Permalink
ogr provider: return wkbNone if ogr reports unknown geometry and firs…
Browse files Browse the repository at this point in the history
…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.
4 changes: 4 additions & 0 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 69ce039

Please sign in to comment.