This could be done in two stages:
- Add support assuming that the number of coordinates is small and fits in worker memory. This is useful when grabbing a small number of coordinates from a large distributed array (which happens to be my use case! 😊), and should be relatively easy to do.
- Add support when the coordinates array is also distributed. This is more challenging.