mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
dc1c85fa38
commit
69cd46bf58
@ -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 ) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user