Please sign in to comment.
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 with 111 additions and 75 deletions.