Interface DataRaster

    • Method Detail

      • getWidth

        int getWidth()
        Returns the raster's width in raster units.
        Returns:
        the raster's width in raster units.
      • getHeight

        int getHeight()
        Returns the raster's height in raster units.
        Returns:
        the raster's height in raster units.
      • getSector

        Sector getSector()
        Returns the region covered be the data.
        Returns:
        a sector indicating the region covered by the raster.
      • drawOnTo

        void drawOnTo​(DataRaster canvas)
        Copies this raster into a specified raster.
        Parameters:
        canvas - - the raster to copy into.
      • getSubRaster

        DataRaster getSubRaster​(AVList params)
        Returns a portion of this raster as another raster. Input values are the desired width and height of the return sub-raster, and the sector to copy from this raster to the sub-raster. The returned raster conforms to EPSG:4326 even if this raster does not.
        Parameters:
        params - a list of parameters that specify the width, height and sector of the region to return. Specify these values using AVKey.WIDTH, AVKey.HEIGHT and AVKey.SECTOR.
        Returns:
        the requested raster, or null if the raster could not be created.
        Throws:
        java.lang.IllegalArgumentException - if the specified parameter list is missing the width, height or sector keys or any of those values are invalid.
      • getSubRaster

        DataRaster getSubRaster​(int width,
                                int height,
                                Sector sector,
                                AVList params)
        Returns a portion of this raster as another raster. The returned raster conforms to EPSG:4326 even if this raster does not.
        Parameters:
        width - the width to make the returned sub-raster.
        height - the height to make the returned sub-raster.
        sector - the sector to copy.
        params - a list of parameters that specify the width, height and sector of the region to return. Specify these values using AVKey.WIDTH, AVKey.HEIGHT and AVKey.SECTOR.
        Returns:
        the requested raster, or null if the raster could not be created.
        Throws:
        java.lang.IllegalArgumentException - if the sector is null or the width, height or sector are invalid.