Skip to content


Return NoGeometry type if provider is attribute only
Browse files Browse the repository at this point in the history
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 4, 2010
1 parent 0aa3ca3 commit 8618b97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,9 @@ QGis::GeometryType QgsVectorLayer::geometryType() const
case QGis::WKBMultiPolygon:
case QGis::WKBMultiPolygon25D:
return QGis::Polygon;

case QGis::WKBNoGeometry:
return QGis::NoGeometry;
QgsDebugMsg( QString( "Data Provider Geometry type is not recognised, is %1" ).arg( type ) );
Expand Down

0 comments on commit 8618b97

Please sign in to comment.