Open soxofaan opened 5 months ago
(this was triggered from https://discuss.eodc.eu/t/aggregate-spatial/766)
This looks like low hanging fruit that can solve some issues. The client can also be smart about injecting a 'load_geojson' process, if that is supported by the backend. That way, users automatically get the 'preferred' behaviour and avoid deprecation warnings from the backend.
DataCube.aggregate_spatial(geometries)
andDataCube.filter_spatial(geometries)
currently allows geometries to be a string orpathlib.Path
, but then it assumes this is a backend-side path and "loads" this with non-standardread_vector
.It would be better (more user friendly, and more standard) to be a bit smarter here:
Also
read_vector
code path