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

Vector Zonal Stats: Support for vector data with non-point geometry (e.g. tiles) #72

Closed
Tracked by #42
alronlam opened this issue Jul 4, 2022 · 0 comments
Closed
Tracked by #42
Labels
enhancement New feature or request

Comments

@alronlam
Copy link
Contributor

alronlam commented Jul 4, 2022

Creating an issue to track that Vector Zonal Stats currently only primarily supports point geometries.

There is a work-around where you simply convert these non-point geometries into points by getting the centroids. From there you can utilize the VZS feature already. But that might cause some imprecision.

A popular dataset example that doesn't come in the form of points is Ookla, where data is in the form of tiles.

Case 1: AOI Tile is smaller than data tile (Ookla)
For example, if your AOI tiles are 1m x 1m, but Ookla tiles are 30m x 30m, and assuming they are aligned (all AOI tiles are within an Ookla tile), then ideally, the average download speed of the Ookla tile should be attributed to all 900 AOI tiles within it. However, if we convert to point geometries, only one of the AOI tiles will intersect with the Ookla tile centroid and get the right attributes; the rest will be null.

Case 2: AOI Tile is bigger than data tile (Ookla)
In the reverse case where the AOI tile is bigger than the Ookla tile (which is likely the majority case), this should be more tolerable because it is likely that each AOI tile will get multiple Ookla tile centroids anyway, leading to a reasonable approximation.

@tm-kah-alforja tm-kah-alforja mentioned this issue Jul 4, 2022
12 tasks
@butchtm butchtm added the enhancement New feature or request label Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

3 participants