[Qgis-developer] WKBNoGeometry

Radim Blazek radim.blazek at gmail.com
Thu Dec 19 09:47:27 PST 2013


How can I create empty QgsGeometry, i.e. type WKBNoGeometry?

Simple QgsGeometry() does not create empty geometry.  It has mGeometry
= 0 and saving in OGR results in warnings: "OGR error: Pointer 'hFeat'
is NULL in 'OGR_L_CreateFeature'".

QgsGeometry.fromWkt('POINT EMPTY') creates something but probably
wrong and use of such geometry is causing QGIS crash.

Radim


More information about the Qgis-developer mailing list