Open-EO / openeo-geopyspark-driver

OpenEO driver for GeoPySpark (Geotrellis)
Apache License 2.0
25 stars 4 forks source link

GTiff/sample_by_feature of spatial data cube returns only a single asset #681

Open bossie opened 4 months ago

bossie commented 4 months ago

Unlike netCDF, saving a spatial data cube to GeoTiff with sample_by_feature enabled, will result in only a single asset/STAC Item.

Process graph with 25 input features: process_graph.json

Corresponding job results with only a single output GeoTiff: job_results.json

bossie commented 4 months ago

Related: https://github.com/Open-EO/openeo-geopyspark-driver/blob/6f6fbc38d9de2e5ddb6cac4315efd04172695f52/tests/test_download.py#L236

bossie commented 4 months ago

FWIW the single GeoTiff is what you would expect for sample_by_feature: false: it covers the entire envelope but only has valid pixels for the input features, the rest is NODATA.