Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GUI Mockup

Image ModifiedThe 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.

Image Added


Drafted code example

Code Block
languagejava
titleResample Service Provider
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);

}

...