Skip to content

Commit 8618b97

Browse files
author
mhugent
committed
Return NoGeometry type if provider is attribute only
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14190 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0aa3ca3 commit 8618b97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/qgsvectorlayer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,6 +1301,9 @@ QGis::GeometryType QgsVectorLayer::geometryType() const
13011301
case QGis::WKBMultiPolygon:
13021302
case QGis::WKBMultiPolygon25D:
13031303
return QGis::Polygon;
1304+
1305+
case QGis::WKBNoGeometry:
1306+
return QGis::NoGeometry;
13041307
}
13051308
QgsDebugMsg( QString( "Data Provider Geometry type is not recognised, is %1" ).arg( type ) );
13061309
}

0 commit comments

Comments
 (0)