-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(v-3): QGIS essentials #369
base: v3-dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went a bit too detailed, but hopefully we won't need to touch these again!
Some other comments not related to this specific commit, but related to the new objects:
- Point class "distance_to" ignores Point units (extra test can reveal it). Also a problem in C#
- Line method "from_coords" doesn't exist in C#
return result | ||
|
||
@classmethod | ||
def from_list(cls, coords: List[float], units: str | Units) -> "Polyline": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we follow C# methods, should we assume units are passed as the last element in the list (without keyword)? Same for Line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the keywords are required for the class definition but not in the classmethods. So, for classmethods, yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided to keep units as a seperate argument to be able to compatible with all the classes.
Formatting PR (you can ignore it and format yourself after changes, if you prefer): #370 |
Fixed. |
adds QGIS essentials.
Geometry:
Interface:
Proxies: