Please sign in to comment.
[api] Raises ValueError and TypeError exceptions when QgsGeometry.asP…
…olygon() is called on non-single-polygon geometries Previously we would just return an empty list when geometries of invalid type were used, but this is dangerous and we are safer to explicitly raise errors preventing use of asPolygon() with incompatible geometry types. (cherry picked from commit 514c5e2)
- Loading branch information
Showing with 90 additions and 5 deletions.