Skip to content
Permalink
Browse files
Return NoGeometry type if provider is attribute only
git-svn-id: http://svn.osgeo.org/qgis/trunk@14190 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 4, 2010
1 parent dc1c85f commit 69cd46bf5893104fad74c8632d4eea57083d7f4e
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/qgsvectorlayer.cpp
@@ -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 ) );
}

0 comments on commit 69cd46b

Please sign in to comment.