-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor generalize points #23
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
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 think the same comments from #22 apply here, so
- CLI command
@overridedecoratorgpd.GeoDataFrame->GeoDataFrameetc.reference_data: dict[str, gpd.GeoDataFrame] | None = None,this type annotation
76dd55f to
39478cf
Compare
39478cf to
1daf0b0
Compare
0733f55 to
9906552
Compare
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.
Looks good, I think we can merge at this point but for future reference I think unique_key_column needs to be dropped as a member and reduce_nearby_points_by_clustering should be refactored to use the gdf's index. Also as far as I can tell the cluster_members_column column will persist in the output data which would be unwanted, but since (I think) it's related to the id handling it can probably be handled later?
|
Yeah, I think those changes can be implemented later. |
Added input geometry type check, changed execute to _execute, added alg class documentation, changed import style in module and added default parameter values.
9906552 to
9984360
Compare
9984360 to
66600b9
Compare
Description
Generalize points algorithm was refactored into GeneralizePoints algorithm class that inherits BaseAlgorithm.
Changes in this PR:
ID handling will be implemented in a separate PR.
Type of change
Bug fix
New feature
Other
Non-breaking change
Breaking change
Developer checklist