rafaqz / Rasters.jl

Raster manipulation for the Julia language
MIT License
206 stars 36 forks source link

Resample with filename argument does not compress data #706

Open ConnectedSystems opened 1 month ago

ConnectedSystems commented 1 month ago

The resample method with filename argument provided outputs uncompressed data.

resample(
    a_raster_to_write;
    crs=some_crs,
    filename="test.tiff"
)

I understand it uses gdalwarp under the hood, but due to the way flags are built up, there is no way to pass the compress options

rafaqz commented 1 month ago

Ah nice catch.

Yes it should allow all the same options as write, also for any other method that writes to disk.

I'm currently working on Rasters.create that does this under the hood, I'll make sure it's linked up.