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 Summary
Fields Modifier and Type Field Description protected RenderingHintscache_hintsprotected Objectfixed_readerprotected StringimageFileLocationprotected javax.media.jai.RenderedOpsrcprotected Stringtypeprotected Objectused_loader
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RenderingHintscreateCacheRenderingHints()protected static ObjectcreateInput(URI uri)protected static ObjectcreateInput(URI uri, Object loader)protected static InputStreamcreateInputStream(URI uri)protected voidcreateJAIRenderedOP(URI uri, com.sun.media.jai.codec.ImageCodec codec)voiddispose()protected static voiddisposeInput(Object input)protected voidfetchRaster()Basic fetchRasters retrieves a raster from a file.javax.media.jai.RenderedOpfullContrast()javax.media.jai.RenderedOpgetImage()Deprecated.protected ObjectgetLoader()double[]getMaximumExtreme()double[]getMinimumExtreme()javax.media.jai.RenderedOpgetRenderedOp()protected StringgetType()protected URIgetURI()protected static booleanhasFileExtension(ImageReaderSpi provider, String ext)protected static booleanhasFileExtension(ImageReaderSpi provider, URI uri)protected static booleanhasNoFileExtensions(ImageReaderSpi provider)static List<Object>listAllReaders()list all JAI ImageCodec's and ImageIO readers available in this jreprotected static List<ImageReaderSpi>listValidImageIOReaders(URI uri, Class filter)create a list of ImageReaderSpi's supposedly able to open the URIprotected static List<com.sun.media.jai.codec.ImageCodec>listValidJAICodecs(URI uri)create a list of ImageCodec's supposedly able to open URIstatic List<Object>listValidReaders(URI uri)create a list of JAI ImageCodec's and ImageIO readers supposedly able to open URIprotected voidnormalize(javax.media.jai.RenderedOp image)This method must be overridden if an image is not a square image in modelspace.protected voidreadRasterfile()
-
-
-
Field Detail
-
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
-
-
Method Detail
-
getURI
protected URI getURI()
-
fetchRaster
protected void fetchRaster() throws ReferencedImageExceptionBasic 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:
disposein interfaceDisposable
-
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)
-
-