Class HomogeneousCRSAcceptor

  • All Implemented Interfaces:

    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 Detail

      • HomogeneousCRSAcceptor

        public HomogeneousCRSAcceptor()
    • Method Detail

      • accepts

        public boolean accepts​(GridCoverage2DReader reader,
                               String inputCoverageName,
                               File fileBeingProcessed,
                               ImageMosaicConfigHandler mosaicConfigHandler)
                        throws IOException
        Specified by:
        accepts in interface GranuleAcceptor
        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
        whether coverage should be added to the mosaic or not