GeoEco.Datasets.UpdateCursor.SetGeometry

UpdateCursor.SetGeometry(geometry)

Sets the geometry of the current 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

Changes to the row are not actually submitted through the underlying programming library to the underlying data store until UpdateRow() is called. If you call SetGeometry() but then neglect to call UpdateRow() before calling NextRow(), your changes will be lost.

Parameters:

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