geoutils icon indicating copy to clipboard operation
geoutils copied to clipboard

Re-organize raster and vector functionalities as separate functions

Open rhugonnet opened this issue 9 months ago • 2 comments

Already mentioned when discussing #383, we need to move out all function of Raster and Vector to live outside the class, both to facilitate the Xarray accessor and tests.

Here's an idea of structure, adding new modules:

In geoutils/:

raster/ -- accessor.py (Xarray raster accessor) -- distance.py (proximity) -- georef.py (for reproject, crop)

vector/ -- geometric.py (buffer_with_overlap) -- georef.py (reproject, crop)

raster_vector_interface.py (rasterize, polygonize, create_mask, to_pointcloud)

rhugonnet avatar Apr 30 '24 21:04 rhugonnet