Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Add operation data_frame_find_closest() #706

Closed
forman opened this issue Jul 12, 2018 · 0 comments · Fixed by #712
Closed

Add operation data_frame_find_closest() #706

forman opened this issue Jul 12, 2018 · 0 comments · Fixed by #712

Comments

@forman
Copy link
Member

forman commented Jul 12, 2018

Expected behavior

Users of Glaciers CCI data require an operation that would provide the Glaciers that are closest to a given location. With the result, they would then perform other operations, e.g. finding the largest glacier within the new Glacier set.

Proposed signature is:

data_frame_find_closest(gdf: gpd.GeoDataFrame, 
                        location: GeometryLike, 
                        max_results: int = 1,
                        distance_var_name: str = None) -> gpd.GeoDataFrame

If distance_var_name is given, a column is included that contains the actual great-circle distances in meters.

Actual behavior

Such operation does not exist yet.

Specifications

Cate 1.0 ... 2.0.dev15

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant