Class GeoRaster

java.lang.Object
com.vividsolutions.jump.workbench.imagery.geoimg.GeoRaster
All Implemented Interfaces:
Disposable
Direct Known Subclasses:
GeoReferencedRaster

public class GeoRaster extends Object implements Disposable
  • Field Details

    • imageFileLocation

      protected String imageFileLocation
    • fixed_reader

      protected Object fixed_reader
    • src

      protected javax.media.jai.RenderedOp src
    • type

      protected String type
    • used_loader

      protected Object used_loader
    • cache_hints

      protected RenderingHints cache_hints
  • Constructor Details

    • GeoRaster

      public GeoRaster(String imageFileLocation)
    • GeoRaster

      public GeoRaster(String imageFileLocation, Object fixed_reader)
  • Method Details

    • getURI

      protected URI getURI()
    • fetchRaster

      protected void fetchRaster() throws ReferencedImageException
      Basic fetchRasters retrieves a raster from a file. To get a raster from somewhere else, override this method in subclasses.
      Throws:
      ReferencedImageException - if an Exception occurs in File#canRead, in createJAIRenderedOP or if no reader wants to decode the Raster
    • readRasterfile

      protected void readRasterfile() throws ReferencedImageException
      Throws:
      ReferencedImageException
    • normalize

      protected void normalize(javax.media.jai.RenderedOp image)
      This method must be overridden if an image is not a square image in modelspace. It should be transformed to make it a square image in modelspace.
      Parameters:
      image - image to be normalized (squared)
    • getImage

      @Deprecated public javax.media.jai.RenderedOp getImage() throws ReferencedImageException
      Deprecated.
      Throws:
      ReferencedImageException
    • getRenderedOp

      public javax.media.jai.RenderedOp getRenderedOp() throws ReferencedImageException
      Throws:
      ReferencedImageException
    • fullContrast

      public javax.media.jai.RenderedOp fullContrast()
    • getMinimumExtreme

      public double[] getMinimumExtreme()
    • getMaximumExtreme

      public double[] getMaximumExtreme()
    • getType

      protected String getType()
    • getLoader

      protected Object getLoader()
    • createCacheRenderingHints

      public RenderingHints createCacheRenderingHints()
    • createJAIRenderedOP

      protected void createJAIRenderedOP(URI uri, com.sun.media.jai.codec.ImageCodec codec) throws IOException
      Throws:
      IOException
    • dispose

      public void dispose()
      Specified by:
      dispose in interface Disposable
    • hasFileExtension

      protected static boolean hasFileExtension(ImageReaderSpi provider, URI uri)
    • hasFileExtension

      protected static boolean hasFileExtension(ImageReaderSpi provider, String ext)
    • hasNoFileExtensions

      protected static boolean hasNoFileExtensions(ImageReaderSpi provider)
    • listValidImageIOReaders

      protected static List<ImageReaderSpi> listValidImageIOReaders(URI uri, Class filter)
      create a list of ImageReaderSpi's supposedly able to open the URI
    • listValidJAICodecs

      protected static List<com.sun.media.jai.codec.ImageCodec> listValidJAICodecs(URI uri) throws IOException
      create a list of ImageCodec's supposedly able to open URI
      Throws:
      IOException
    • listValidReaders

      public static List<Object> listValidReaders(URI uri) throws IOException
      create a list of JAI ImageCodec's and ImageIO readers supposedly able to open URI
      Throws:
      IOException
    • listAllReaders

      public static List<Object> listAllReaders()
      list all JAI ImageCodec's and ImageIO readers available in this jre
    • createInput

      protected static Object createInput(URI uri) throws IOException
      Throws:
      IOException
    • createInput

      protected static Object createInput(URI uri, Object loader) throws IOException
      Throws:
      IOException
    • createInputStream

      protected static InputStream createInputStream(URI uri) throws IOException
      Throws:
      IOException
    • disposeInput

      protected static void disposeInput(Object input)