-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More intuitive QgsPoint python constructors
In python, the wkb type of a QgsPoint will by default be determined from the provided parameters, where Z and M will be added as required if the wkbType is Undefined. QgsPoint(x, y, z=nan, m=nan, wkbType=QgsWkbTypes.Undefined) Thanks to the python API support of named parameters, it's also straightforward to specify z, m and wkbType in any desired combination. On the other hand, on C++ side it's often preferable to use QgsPoint(QgsWkbTypes::WkbType wkbType, double x, double y, double z, double m); due to the lack of named parameters which make it harder to specify a specific type and the advantage of typesafety that makes it possible to verload the first constructor with this one.
- Loading branch information
Showing
5 changed files
with
111 additions
and
75 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
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