Skip to content
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

tree_to_geopandas function #211

Closed
nreinicke opened this issue May 14, 2024 · 0 comments · Fixed by #230
Closed

tree_to_geopandas function #211

nreinicke opened this issue May 14, 2024 · 0 comments · Fixed by #230
Assignees
Labels
python Applies to the python code
Milestone

Comments

@nreinicke
Copy link
Collaborator

To support #200 we can create a new function tree_to_geopandas function that converts the "tree" key from the default result (python dictionary) into a geopandas dataframe.

Each Compass output row may have an entire tree, but, we do not want a GDF of trees (plural), we want instead to plot a single tree. Following the logic above, we can add one more index column so that each row is a link in a tree in a result:

for each Compass run result row _i_:
  for each tree _j_:
    for each tree branch _k_:
      create row for `_index` _i_, `_tree` _k_,  `_edge_id` edgeid(_k_)
@nreinicke nreinicke added this to the PyCon 2024 milestone May 14, 2024
@nreinicke nreinicke added the python Applies to the python code label May 14, 2024
@nreinicke nreinicke self-assigned this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Applies to the python code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant