[Qgis-developer] Python: drop z/m values

Tom Chadwin tom.chadwin at nnpa.org.uk
Tue Mar 29 04:00:48 PDT 2016

Currently, I detect the geometry type of input layers (which the user
supplies, so they could be anything) with layer.wkbType(). This fails
(returning -2147483646) if the input layer has z/m values (and will probably
also fail with eg curved geometries).

Is there a way to "flatten/simplify" newer/more complex geometry types into
simple point/line/poly types?

View this message in context: http://osgeo-org.1560.x6.nabble.com/Python-drop-z-m-values-tp5258674.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

More information about the Qgis-developer mailing list