GUI Mockup
The ResamplingProvider would be registered as any SPI by adding it to META-INF/services.
In order to implement this we would need three new registries. One for the resampling presets and two for the up- and down- samplers.
The following image shows a brief diagram of the classes.
Drafted code example
Code Block | ||||
---|---|---|---|---|
| ||||
package org.esa.snap.core.gpf.ui.resample; import org.esa.snap.core.datamodel.Product; import org.esa.snap.core.datamodel.RasterDataNode; public interface ResamplingProvider { String getName(); boolean isCompatible(Product p); ResampleMethodology getResampleMethod(RasterDataNode raster); } |
...