Skip to content

Is it possible to multithread H3 methods in python? #810

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

You must be logged in to vote

If the main issue is splitting up the work for specific large polygons, the simplest option is to divide the polygon itself into pieces, e.g. vertical strips, and send those to different threads for processing. The default H3 polyfill mode, which only includes cells whose centers are within the polygon, will ensure that contiguous partial polygons processed in this way will yield the same set as the original polygon, without duplicates or gaps.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@hsbsid
Comment options

@dfellis
Comment options

Comment options

You must be logged in to vote
1 reply
@hsbsid
Comment options

Answer selected by hsbsid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants