Replies: 1 comment 4 replies
-
Broad plan for me is to work with @hellkite500 and @jduckerOWP to integrate coverage fraction into the existing Python bindings (#34) so it can be used right away in some respect... Purely volunteer for me atm, so hard to commit to any timing. Open to funding if a given timeline is desired. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, following up from #34 where we discussed a broad range of issues around future prospects and generalization/s.
Some topics we discussed below, please pull me up on details or things I've missed if you want anything changed or added.
xmin,xmax,ymin,ymax,nx,ny
as the grid spec, and return value is simply cell index and coverage fraction - this is proved by Coverage fraction #40 (and much less polished experiments in https://github.com/mdsumner/exactextractr/tree/MIKE-decouple-terra-raster)1, 2
Dependent on funding but clear and in scope for exactextract and its R, Python interface.
3
Seems readily available and of interest especially to @hellkite500 and @mdsumner, for further discussion ... There's a few nuances, about whether an actual raster is the input or just its grid specification, and variations on the output - these could potentially be as little as individual cell index and their fraction, with row/start/stop indexes defining the fully covered fill as an dense optimization, or more tied to actual values and calculations with groupings from the polygon layer.
The variations possible both for input and output make this a fairly open ended topic in terms of the core scope.
4
It's possible that a quad-mesh model (a structured mesh, rectangular in index space nx*ny) could fit the optimized case for regular-raster/polygons. The boundary-affected cells input as geos polygons, and the remaining flood-fill coverage using the grid index rather than the geometry of the mesh. (this is @mdsumner thinking aloud)
Prospects for unstructured meshes are probably much more a general meshing problem, but with similar optimizations to identify boundary-affected cells vs. the flood-fill remainder. (Experiments with Triangle library certainly show that the raster-cell as polygon case does not scale well, and so it would be similar for general meshes - possibly faster with CGAL, but still there's the scale problem of how-big-a-mesh and how optimizations are handled, which gets us quite far from the current scope of exactextract).
Beta Was this translation helpful? Give feedback.
All reactions