Please sign in to comment.
[FEATURE][API] Add some nice PyQGIS API for working with geometry col…
…lections - Calling removeGeometry with an invalid index will now raise an IndexError - Calling collection will return the first geometry in the collection, collection the second, etc. And negative indices return from the end of the collection, so collection[-1] returns the last geometry in the collection. - Geometries can be deleted by calling `del collection` (deletes the second geometry from the collection). Also supports negative indices to count from the end of the collection.
- Loading branch information
Showing with 207 additions and 2 deletions.