Return NoGeometry type if provider is attribute only

git-svn-id: http://svn.osgeo.org/qgis/trunk@14190 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mhugent 2010-09-04 07:54:42 +00:00
parent dc1c85fa38
commit 69cd46bf58

View File

@ -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 ) );
}