[Qgis-developer] Re: geometryType differs in layer and provider

p0cisk p0cisk at o2.pl
Wed Dec 7 03:15:29 EST 2011


Hi Ole
Everything is OK, QgsVectorLayer.geometryType() returns QGis::GeometryType:
Point - 0
Line - 1
Polygon - 2
UnknownGeometry - 3
NoGeometry - 4

and QgsVectorDataProvider.geometryType() returns QGis::WkbType:
WKBUnknown - 0
WKBPoint - 1
WKBLineString - 2
WKBPolygon - 3
WKBMultiPoint - 4
WKBMultiLineString - 5
WKBMultiPolygon - 6
WKBNoGeometry - 7
WKBPoint25D - 8
WKBLineString25D - 9
WKBPolygon25D 	- 10
WKBMultiPoint25D - 11
WKBMultiLineString25D - 12
WKBMultiPolygon25D - 13

So in your case you have Polygon layer.
Here are enumerators  http://www.qgis.org/api/classQGis.html
http://www.qgis.org/api/classQGis.html 

Regards,
Peter

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/geometryType-differs-in-layer-and-provider-tp7069389p7069713.html
Sent from the qgis-developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list