seasketch / geoprocessing

Serverless geoprocessing system
https://github.com/seasketch/geoprocessing/wiki
BSD 3-Clause "New" or "Revised" License
10 stars 2 forks source link

Increase accuracy of polygon overlap - virtual resampling #284

Open twelch opened 2 months ago

twelch commented 2 months ago

Problem: you have a small polygon and geoblaze is not finding overlapping pixels with a raster with large pixels because the polygon doesn't happen to cross the pixel centerline.

Building on #156, implement a "virtual resampling" technique that breaks each raster pixel into 1 or more additional rows/columns at runtime in memory (upsample).

This could solve for #260 as well. The tricky part is making sure that the geoblaze stats stay accurate/sane.

Geoblaze PR - https://github.com/GeoTIFF/geoblaze/pull/228

twelch commented 2 months ago

cc @DanielJDufour I created a formal issue to track this so we don't have to use the old closed performance issue.

DanielJDufour commented 1 month ago

I have merged the virtual resampling code into GeoBlaze! I still need to create proper documentation and publish a release w/ changelog. I'll update when that's done.