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

Accept list of matrices / data.farmes as inputs #99

Open
dcooley opened this issue Jul 19, 2023 · 0 comments
Open

Accept list of matrices / data.farmes as inputs #99

dcooley opened this issue Jul 19, 2023 · 0 comments

Comments

@dcooley
Copy link
Owner

dcooley commented Jul 19, 2023

To support converting structures like this into sfc_polygons

$`8cbe63562a54bff`
        lat      lng
1 -37.82030 144.9833
2 -37.82019 144.9833
3 -37.82012 144.9832
4 -37.82016 144.9831
5 -37.82026 144.9831
6 -37.82033 144.9832

$`8cbe635631103ff`
        lat      lng
1 -37.81851 144.9675
2 -37.81840 144.9675
3 -37.81833 144.9674
4 -37.81837 144.9673
5 -37.81847 144.9673
6 -37.81854 144.9674

All the various auxillary functions will need updating too, e.g.

  • geometries::utils::sexp_col_int()
  • geometries::bbox::calculate_bbox()
  • sfheaders::zm::calculate_zm_ranges()
    etc...

Design options:

  • 'unlist' the list and create a data.frame with an ID column, taken from the named element of the list?
  • accept the list as-is and loop over each element (will need to keep track of z/m-ranges, bbox)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant