Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
spelling
Source Link
Mr Purple
  • 1.5k
  • 12
  • 27

Finally, I need to reference the source for the polgonpolygon generator code: http://stackoverflow.com/questions/23411688/drawing-polygon-with-n-number-of-sides-in-python-3-2

Finally, I need to reference the source for the polgon generator code: http://stackoverflow.com/questions/23411688/drawing-polygon-with-n-number-of-sides-in-python-3-2

Finally, I need to reference the source for the polygon generator code: http://stackoverflow.com/questions/23411688/drawing-polygon-with-n-number-of-sides-in-python-3-2

added 64 characters in body
Source Link
Mr Purple
  • 1.5k
  • 12
  • 27

OK so you want to know how to generate polygons centered on selected points in pyQGIS and retain all the attributes of the points in the new polygons? Here's a script to do that: Note that the code was written to apply to a points-containing example shape file I have. You need to remove the section which reads in my example file in order for it to use your 'selected' points features. note also that the result will be better if your layer is in a 'projected' projection such as UTM and not in lat/lon.

OK so you want to know how to generate polygons centered on selected points in pyQGIS? Here's a script to do that: Note that the code was written to apply to a points-containing example shape file I have. You need to remove the section which reads in my example file in order for it to use your 'selected' points features. note also that the result will be better if your layer is in a 'projected' projection such as UTM and not in lat/lon.

OK so you want to know how to generate polygons centered on selected points in pyQGIS and retain all the attributes of the points in the new polygons? Here's a script to do that: Note that the code was written to apply to a points-containing example shape file I have. You need to remove the section which reads in my example file in order for it to use your 'selected' points features. note also that the result will be better if your layer is in a 'projected' projection such as UTM and not in lat/lon.

Source Link
Mr Purple
  • 1.5k
  • 12
  • 27
Loading