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 pre-set options to h3fy resolution #118

Open
darribas opened this issue Dec 31, 2020 · 1 comment
Open

Add pre-set options to h3fy resolution #118

darribas opened this issue Dec 31, 2020 · 1 comment
Assignees

Comments

@darribas
Copy link
Member

Picking this up from #111:

Going forward, it'd be great to give also str options, something like:

  • auto: some "magic" that gives the "correct" one, if we can come up with some heuristics
  • balanced (or some alternative name): for the resolution that'll give you the closest number of hexagons to those passed in source
  • compacted: one that allocates to a H3 Polyfill compacted version
  • ...

And from @knaaptime:

one option might be to try and roughly match the number of input geoms, another option might be to try and match the size, e.g. by taking the best match between mean area of input geoms and the hexes listed at https://h3geo.org/docs/core-library/restable

@sjsrey
Copy link
Member

sjsrey commented Apr 15, 2022

@darribas how about a new argument called auto_resolution that can take the following values:

mean: sets resolution to give h3 hexagons approximating the mean source area
median: sets resolution h3 hexagons approximating the median source area

if this is set, then the resolution argument is ignored?

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

2 participants