2

I am trying to automate a process where I am converting point shapefiles to polygons in QGIS using Points2One. I am fairly new to Python coding and have not been able to find any example code online of this being done.

Is it possible to do this using Python code?

I am using QGIS version 2.14.

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
D.Murphy
  • 21
  • 2
  • Have you looked into the code of Points2One? http://bazaar.launchpad.net/~goyodiaz/points2one/trunk/files/head:/points2one/ – underdark Jul 30 '16 at 13:20

1 Answers1

1

Not sure about points2one, but one option would be to first convert points to line layer:

How to connect points by lines?

Then you may use the python code/logic in the polygonizer plug-in noted in the question to convert line to polygon layer:

Create polygon layer from polyline layer

artwork21
  • 35,114
  • 8
  • 66
  • 134