GeoEco.Datasets.InsertCursor.SetGeometry

InsertCursor.SetGeometry(geometry)

Sets the geometry of the new row.

This method will fail if the cursor’s Table does not have geometry. To determine if it has geometry, check the GeometryType property of the Table instance.

Note

The new row is not actually submitted through the underlying programming library to the underlying data store until InsertRow() is called. If you call SetGeometry() but then neglect to call InsertRow() before closing the cursor, your row will not be inserted.

Parameters:

geometry (object) – Instance of the OGR Geometry class representing the geometry of the row.