Class RasterManager

  • All Implemented Interfaces:
    Cloneable

    public class RasterManager
    extends Object
    implements Cloneable
    Author:
    Simone Giannecchini, GeoSolutions SAS, Daniele Romagnoli, GeoSolutions SAS
    • Field Detail

      • ALTERNATIVE_CRS_CACHE_EXPIRATION_SECONDS_KEY

        public static final String ALTERNATIVE_CRS_CACHE_EXPIRATION_SECONDS_KEY
        See Also:
        Constant Field Values
      • ALTERNATIVE_CRS_CACHE_SIZE_KEY

        public static final String ALTERNATIVE_CRS_CACHE_SIZE_KEY
        See Also:
        Constant Field Values
    • Method Detail

      • getPathType

        public PathType getPathType()
      • getCoverageIdentifier

        public String getCoverageIdentifier()
      • getHints

        public Hints getHints()
      • getTypeName

        public String getTypeName()
      • hasAlternativeCRS

        public boolean hasAlternativeCRS​(Integer epsgCode)
                                  throws IOException
        Checks if this EPSG code matches at least one feature. Since this method may perform a database query to find out, it's important to call it last while performing conditionals, leaving cheaper tests first.
        Throws:
        IOException
      • getGranuleCatalog

        public GranuleCatalog getGranuleCatalog()
        TODO this should not leak through
      • createStore

        public void createStore​(SimpleFeatureType indexSchema)
                         throws IOException
        Create a store for the coverage related to this RasterManager using the provided schema
        Throws:
        IOException
      • removeStore

        public void removeStore​(String typeName,
                                boolean forceDelete,
                                boolean checkForReferences)
                         throws IOException
        Remove a store for the coverage related to this RasterManager
        Throws:
        IOException
      • getGranuleSource

        public GranuleSource getGranuleSource​(boolean readOnly,
                                              Hints hints)
      • dispose

        public void dispose()
      • initialize

        public void initialize​(boolean checkDomains)
                        throws IOException
        Throws:
        IOException
      • initialize

        public void initialize​(boolean checkDomains,
                               Transaction transaction)
                        throws IOException
        Throws:
        IOException
      • getDefaultCM

        public ColorModel getDefaultCM()
      • getDefaultPalette

        public byte[][] getDefaultPalette()
      • isExpandMe

        public boolean isExpandMe()
      • getCrsAttribute

        public String getCrsAttribute()
                               throws IOException
        Returns the name of the crs attribute in heterogeneous mosaics (for non-heterogenous ones, it will return null)
        Throws:
        IOException
      • getParentLocation

        public String getParentLocation()
        The parent directory that can be used with the PathType enumeration
      • getLocationAttribute

        public String getLocationAttribute()
        The attribute containing the location information for the single granules
      • getName

        public String getName()
        Returns the coverage name
      • getPamDataset

        public PAMDataset getPamDataset()
        Returns the PAM dataset for this coverage, if one is available