org.geotools.image.io.text |
package org.geotools.image.io.text
Extensions to {@link javax.imageio.ImageReader} for ASCII files.
The gt2-imageio.jar file declares a service provider for the
following image readers:
{@link javax.imageio.ImageReader} subclass |
Name |
MIME type |
{@link org.geotools.image.io.RawBinaryImageReader} |
raw |
image/raw |
{@link org.geotools.image.io.text.TextMatrixImageReader} |
matrix |
text/matrix |
{@link org.geotools.image.io.text.TextRecordImageReader} |
gridded records |
text/x-grid |
Example: a user may want to read an ASCII
file containing gridded elevation on the ocean floor (left side below). The
{@link org.geotools.image.io.TextRecordImageReader} class can read such file,
detect automatically minimum and maximum values (in order to scale the grayscale
palette) and produce the image below:
Longitude Latitude Altitude
59.9000 -30.0000 -3022
59.9333 -30.0000 -3194
59.9667 -30.0000 -3888
60.0000 -30.0000 -3888
45.0000 -29.9667 -2502
45.0333 -29.9667 -2502
45.0667 -29.9667 -2576
45.1000 -29.9667 -2576
45.1333 -29.9667 -2624
45.1667 -29.9667 -2690
45.2000 -29.9667 -2690
45.2333 -29.9667 -2692
45.2667 -29.9667 -2606
45.3000 -29.9667 -2606
45.3333 -29.9667 -2528
etc... |
|
|
Java Source File Name | Type | Comment |
LineReader.java | Class | A buffered character-input stream that keeps track of line numbers
and stream position. |
RecordList.java | Class | List of data records in an image. |
TestReader.java | Class | A dummy implementation of
TextImageReader used only by default implementation
of
TextImageReader.Spi.canDecodeInput . |
TextImageReader.java | Class | Base class for text image decoders. |
TextImageWriter.java | Class | Base class for text image encoders. |
TextMatrixImageReader.java | Class | An image decoder for matrix of floating-point numbers. |
TextMatrixImageWriter.java | Class | An image encoder for matrix of floating-point numbers. |
TextMatrixImageWriterTest.java | Class | Tests
TextMatrixImageWriter . |
TextRecordImageReader.java | Class | Image decoder for text files storing pixel values as records.
Such text files use one line (record) by pixel. |