public abstract class GeoRaster extends java.lang.Object implements Disposable
Modifier and Type | Field and Description |
---|---|
protected java.awt.RenderingHints |
cache_hints |
protected java.lang.Object |
fixed_reader |
protected java.lang.String |
imageFileLocation |
protected java.lang.String |
loader |
protected javax.media.jai.RenderedOp |
src |
protected java.lang.String |
type |
Constructor and Description |
---|
GeoRaster(java.lang.String imageFileLocation) |
GeoRaster(java.lang.String imageFileLocation,
java.lang.Object fixed_reader) |
Modifier and Type | Method and Description |
---|---|
java.awt.RenderingHints |
createCacheRenderingHints() |
protected static java.lang.Object |
createInput(java.net.URI uri) |
protected static java.lang.Object |
createInput(java.net.URI uri,
java.lang.Object loader) |
protected static java.io.InputStream |
createInputStream(java.net.URI uri) |
protected void |
createJAIRenderedOP(java.net.URI uri,
com.sun.media.jai.codec.ImageCodec codec) |
void |
dispose() |
protected static void |
disposeInput(java.lang.Object input) |
protected void |
fetchRaster()
Basic fetchRasters retrieves a raster from a file.
|
javax.media.jai.RenderedOp |
fullContrast() |
javax.media.jai.RenderedOp |
getImage() |
protected java.lang.String |
getLoader() |
double[] |
getMaximumExtreme() |
double[] |
getMinimumExtreme() |
protected java.lang.String |
getType() |
protected static boolean |
hasFileExtension(javax.imageio.spi.ImageReaderSpi provider,
java.lang.String ext) |
protected static boolean |
hasFileExtension(javax.imageio.spi.ImageReaderSpi provider,
java.net.URI uri) |
protected static boolean |
hasNoFileExtensions(javax.imageio.spi.ImageReaderSpi provider) |
static java.util.List<java.lang.Object> |
listAllReaders()
list all JAI ImageCodec's and ImageIO readers available in this jre
|
protected static java.util.List<javax.imageio.spi.ImageReaderSpi> |
listValidImageIOReaders(java.net.URI uri,
java.lang.Class filter)
create a list of ImageReaderSpi's supposedly able to open the URI
|
protected static java.util.List<com.sun.media.jai.codec.ImageCodec> |
listValidJAICodecs(java.net.URI uri)
create a list of ImageCodec's supposedly able to open URI
|
static java.util.List<java.lang.Object> |
listValidReaders(java.net.URI uri)
create a list of JAI ImageCodec's and ImageIO readers supposedly able to open URI
|
void |
log(java.lang.String msg) |
protected void |
normalize(javax.media.jai.RenderedOp image)
This method must be overridden if an image is not a square image in
modelspace.
|
protected void |
readRasterfile() |
protected java.lang.String imageFileLocation
protected java.lang.Object fixed_reader
protected javax.media.jai.RenderedOp src
protected java.lang.String type
protected java.lang.String loader
protected java.awt.RenderingHints cache_hints
public GeoRaster(java.lang.String imageFileLocation)
public GeoRaster(java.lang.String imageFileLocation, java.lang.Object fixed_reader)
protected void fetchRaster() throws ReferencedImageException
java.net.URISyntaxException
java.io.IOException
ReferencedImageException
protected void readRasterfile() throws ReferencedImageException
ReferencedImageException
protected void normalize(javax.media.jai.RenderedOp image)
image
- public javax.media.jai.RenderedOp getImage() throws ReferencedImageException
ReferencedImageException
public javax.media.jai.RenderedOp fullContrast()
public double[] getMinimumExtreme()
public double[] getMaximumExtreme()
protected java.lang.String getType()
protected java.lang.String getLoader()
public java.awt.RenderingHints createCacheRenderingHints()
protected void createJAIRenderedOP(java.net.URI uri, com.sun.media.jai.codec.ImageCodec codec) throws java.io.IOException
java.io.IOException
public void dispose()
dispose
in interface Disposable
public void log(java.lang.String msg)
protected static boolean hasFileExtension(javax.imageio.spi.ImageReaderSpi provider, java.net.URI uri)
protected static boolean hasFileExtension(javax.imageio.spi.ImageReaderSpi provider, java.lang.String ext)
protected static boolean hasNoFileExtensions(javax.imageio.spi.ImageReaderSpi provider)
protected static java.util.List<javax.imageio.spi.ImageReaderSpi> listValidImageIOReaders(java.net.URI uri, java.lang.Class filter) throws java.io.IOException
provider
- uri
- java.io.IOException
protected static java.util.List<com.sun.media.jai.codec.ImageCodec> listValidJAICodecs(java.net.URI uri) throws java.io.IOException
java.io.IOException
public static java.util.List<java.lang.Object> listValidReaders(java.net.URI uri) throws java.io.IOException
java.io.IOException
public static java.util.List<java.lang.Object> listAllReaders()
protected static java.lang.Object createInput(java.net.URI uri) throws java.io.IOException
java.io.IOException
protected static java.lang.Object createInput(java.net.URI uri, java.lang.Object loader) throws java.io.IOException
java.io.IOException
protected static java.io.InputStream createInputStream(java.net.URI uri) throws java.io.IOException
java.io.IOException
protected static void disposeInput(java.lang.Object input)