Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[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
1 parent
9e5bb36
commit 0ca9777
Showing
3 changed files
with
80 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters