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

Add ingestion of vector data #123

Open
danlooo opened this issue Nov 4, 2024 · 0 comments
Open

Add ingestion of vector data #123

danlooo opened this issue Nov 4, 2024 · 0 comments

Comments

@danlooo
Copy link
Owner

danlooo commented Nov 4, 2024

One advantage of DGGS is the integration of both raster and vector data. Raster data ingestion involves just transforming the geographic coordinate of each pixel to DGGS cell index space.

API

  • in: polygon list with vertices defining edges to outside and holes
  • out: List of cell ids representing the given polygons

Challenges

  • geographical coordinates inside a polygon are defined only implicitly by vertices of boundaries and holes
  • The inverse (cell list to polygon) is trivial
  • Topology might be altered after conversion to DGGS, e.g. rivers disconnected to the ocean or disjoint lines intersect, like in all rasterization (Zhou et al. 2020)
  • concave polygons needs way more checks and add only little distortion (see here)

Applications

  • Ingestion of geojson
  • Raster data in which each pixel has a bounding box footprint

Other implementations

Potential requirements

  • All points inside a polygon, e.g. edge - epsilon, must be within a output cell list
  • Two adjacent polygons with zero overlap must not have any overlapping cell ids (e.g. here)
  • Just convert polygon vertices (inner and outer rings) like openEAGGR vs boundaries (linestrings) vs fill cells within a polygon like H3
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