Class HomogeneousCRSAcceptor

Object
HomogeneousCRSAcceptor
All Implemented Interfaces:
GranuleAcceptor

public class HomogeneousCRSAcceptor extends Object implements GranuleAcceptor
Check for homogeneous CRS in the upcoming granule.

If the upcoming granules has a CRS which is not homogenenous with the one for the mosaic we have to discard it.

  • Constructor Details

    • HomogeneousCRSAcceptor

      public HomogeneousCRSAcceptor()
  • Method Details

    • accepts

      public boolean accepts(GridCoverage2DReader reader, String inputCoverageName, File fileBeingProcessed, ImageMosaicConfigHandler mosaicConfigHandler) throws IOException
      Specified by:
      accepts in interface GranuleAcceptor
      Parameters:
      reader - the coverage being added to the catalog
      inputCoverageName - the name of the coverage being added
      fileBeingProcessed - File handle of the coverage being handled
      mosaicConfigHandler - the mosaic config handler being used
      Returns:
      whether coverage should be added to the mosaic or not
      Throws:
      IOException