Skip to main content
deleted 82 characters in body; edited title
Source Link
underdark
  • 84.5k
  • 22
  • 233
  • 415

How to create feature ina polygon layer Quantum GISfeature using Python?

Good morning, I'mI'm making a plugin for Quantum GIS in python,. I have a polygon layer, I edit the layer and create a new space object, but as I can do with python code? I needwant to create a new feature. I

So far, I have this because I need a polygon geometry to add the feature:

surface = QgsGeometry.fromPolygon (polygon)

The problem is that I do not create a polygon. I have a list of points where I want to place the polygon. Can

Can anyone help?

create feature in polygon layer Quantum GIS

Good morning, I'm making a plugin for Quantum GIS in python, I have a polygon layer, I edit the layer and create a new space object, but as I can do with python code? I need to create a new feature. I have this because I need a polygon geometry to add the feature:

surface = QgsGeometry.fromPolygon (polygon)

The problem is that I do not create a polygon. I have a list of points where I want to place the polygon. Can anyone help?

How to create a polygon feature using Python?

I'm making a plugin for Quantum GIS in python. I have a polygon layer and want to create a new feature.

So far, I have this because I need a polygon geometry to add the feature:

surface = QgsGeometry.fromPolygon (polygon)

The problem is that I do not create a polygon. I have a list of points where I want to place the polygon.

Can anyone help?

added 4 characters in body
Source Link
Nathan W
  • 35k
  • 5
  • 99
  • 148

Good morning, I'm making a plugin for Quantum GIS in python, I have a polygon layer, I edit the layer and create a new space object, but as I can do with python code? I need to create a new feature. I have this because I need a polygon geometry to add the feature:

surface = QgsGeometry.fromPolygon (polygon)

surface = QgsGeometry.fromPolygon (polygon)

The problem is that I do not create a polygon. I have a list of points where I want to place the polygon. Can anyone help?

Good morning, I'm making a plugin for Quantum GIS in python, I have a polygon layer, I edit the layer and create a new space object, but as I can do with python code? I need to create a new feature. I have this because I need a polygon geometry to add the feature:

surface = QgsGeometry.fromPolygon (polygon)

The problem is that I do not create a polygon. I have a list of points where I want to place the polygon. Can anyone help?

Good morning, I'm making a plugin for Quantum GIS in python, I have a polygon layer, I edit the layer and create a new space object, but as I can do with python code? I need to create a new feature. I have this because I need a polygon geometry to add the feature:

surface = QgsGeometry.fromPolygon (polygon)

The problem is that I do not create a polygon. I have a list of points where I want to place the polygon. Can anyone help?

Source Link
malagueff
  • 159
  • 2
  • 5

create feature in polygon layer Quantum GIS

Good morning, I'm making a plugin for Quantum GIS in python, I have a polygon layer, I edit the layer and create a new space object, but as I can do with python code? I need to create a new feature. I have this because I need a polygon geometry to add the feature:

surface = QgsGeometry.fromPolygon (polygon)

The problem is that I do not create a polygon. I have a list of points where I want to place the polygon. Can anyone help?