Please sign in to comment.
[api] Raises ValueError and TypeError exceptions when QgsGeometry.asP…
…oint() is called on non-single-point geometries Previously we would just return QgsPointXY(0,0) when geometries of invalid type were used, but this is dangerous and we are safer to explicitly raise errors preventing use of asPoint() with incompatible geometry types.
- Loading branch information
Showing with 80 additions and 5 deletions.