[Qgis-developer] Poligon coordinates in PyQgis 2

Nathan Woodrow madmanwoo at gmail.com
Fri Oct 18 00:19:25 PDT 2013


On Fri, Oct 18, 2013 at 5:13 PM, Geo DrinX <geodrinx at gmail.com> wrote:

> poly.wkbType() == QGis.WKBPolygon


That should be geom.wkbType() == QGis.WKBPolygon

poly is a list-of-list.

Polygons are list-of-lists-of-points. A list for each ring in the polygon
Linestrings are list-of-points.

This hasn't changed since 1.8, or in a long time.

- Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20131018/6d41bf3f/attachment.html>


More information about the Qgis-developer mailing list