Skip to content

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

Description

@dcooley

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions