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

raster imports: Use a def query to constrain imports #805

Open
shawnlaffan opened this issue Apr 23, 2022 · 1 comment
Open

raster imports: Use a def query to constrain imports #805

shawnlaffan opened this issue Apr 23, 2022 · 1 comment

Comments

@shawnlaffan
Copy link
Owner

Extracted from to do list for #761 but has more general application.

Use a def query to speed up analyses. Target basedata might be a very small subset of the raster being imported, for example global data from Worldclim being applied to a basedata of Indonesian plants.

Def query for property imports can be the intersection of the extents.

@shawnlaffan shawnlaffan self-assigned this Apr 23, 2022
@shawnlaffan shawnlaffan changed the title raster imports: Use a def query to speed up imports raster imports: Use a def query to constrain imports Apr 23, 2022
@shawnlaffan
Copy link
Owner Author

It should be possible to do this using a Virtual Raster Table to map into the target raster: https://gdal.org/drivers/raster/vrt.html#simplesource

Probably only need to do so when bounds overlap, and adjust the VRT to the intersection so we avoid processing a heap of nodata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant