Skip to content

Only Polygon GeoJSON supported #783

Answered by nrabinowitz
ccall48 asked this question in Q&A
Discussion options

You must be logged in to vote

This is a better question for the h3-py repo, but I believe the issue here is that you can't pass a FeatureCollection, or any feature that's not a Polygon, to polyfill_geojson. You'll need to iterate through your features one by one, e.g.

out = set()
for feature in polygons.features:
  out.update(h3.polyfill_geojson(feature, 8))

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dfellis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants