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
Fix PyQGIS QgsLineString constructor only accepts lists of QgsPoint,
not QgsPointXY as indicated by the documentation Also add support for constructing QgsLineString using arrays of arrays of floats, given that we're having to hand-roll sip conversion code anyway! Now the following is supported: line = QgsLineString([[1,2], [3,4], [5,6]]) which is much nicer and more "pythonic" then the explicit QgsPoint/QgsPointXY sequences! Fixes #43200
- Loading branch information
1 parent
2a06fcc
commit 2b6c3c1
Showing
4 changed files
with
479 additions
and
36 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
Oops, something went wrong.