torchgeo icon indicating copy to clipboard operation
torchgeo copied to clipboard

Overrideable resample property for IntersectionDataset

Open robmarkcole opened this issue 1 year ago • 0 comments

Summary

IntersectionDataset performs nearest resampling by default which does not always give a desirable result. This FR is to add the ability to override this behaviour

Rationale

No response

Implementation

Add an overrideable resample property (similar to dtype) that changes resampling to bilinear for float32 and nearest for long. Then pass this into rasterio.merge.merge here

Alternatives

No response

Additional information

No response

robmarkcole avatar Apr 19 '24 11:04 robmarkcole