-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fix get_terrain_attribute
bug with edge_method='none'
#245
Conversation
Update upstream
get_terrain_attribute
edge method get_terrain_attribute
edge method
get_terrain_attribute
edge methodget_terrain_attribute
bug with edge_method='none'
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.
Thanks for improving on these methods!
It's uncontroversial to default to the GDAL functionality, but I think GDAL is wrong in propagating NaNs like that. If you think we should default to GDAL-behavior, then sure.
When you are missing only one point in the corner, I agree the results is still OK! But when you are missing half of the cell, the terrain attribute value will be aberrant. |
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.
Great!
Resolves #244
get_terrain_attribute
withedge_method='none'
,edge_method='none'
andfill_method=
none`),slope
convenience function, and adapt doctests of other attributes with new default methods.We should have more specific, in-depth tests for the edge and filling methods. Not the aim of this PR, so opening an issue for it.