|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.jai.PropertySourceImpl
org.geotools.coverage.AbstractCoverage
org.geotools.coverage.grid.AbstractGridCoverage
public abstract class AbstractGridCoverage
Base class for Geotools implementation of grid coverage.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.geotools.coverage.AbstractCoverage |
---|
AbstractCoverage.Renderable |
Field Summary | |
---|---|
static java.util.logging.Logger |
LOGGER
The logger for grid coverage operations. |
Fields inherited from class org.geotools.coverage.AbstractCoverage |
---|
crs |
Fields inherited from class javax.media.jai.PropertySourceImpl |
---|
cachedPropertyNames, properties, propertySources |
Constructor Summary | |
---|---|
protected |
AbstractGridCoverage(java.lang.CharSequence name,
org.opengis.referencing.crs.CoordinateReferenceSystem crs,
org.opengis.coverage.grid.GridCoverage[] sources,
javax.media.jai.PropertySource propertySource,
java.util.Map<?,?> properties)
Constructs a grid coverage with sources. |
protected |
AbstractGridCoverage(java.lang.CharSequence name,
org.opengis.referencing.crs.CoordinateReferenceSystem crs,
javax.media.jai.PropertySource propertySource,
java.util.Map<?,?> properties)
Constructs a grid coverage using the specified coordinate reference system. |
protected |
AbstractGridCoverage(java.lang.CharSequence name,
org.opengis.coverage.grid.GridCoverage coverage)
Constructs a new coverage with the same parameters than the specified coverage. |
Method Summary | |
---|---|
protected java.lang.String |
formatEvaluateError(org.opengis.geometry.DirectPosition point,
boolean outside)
Constructs an error message for a position that can not be evaluated. |
protected java.lang.String |
formatEvaluateError(java.awt.geom.Point2D point,
boolean outside)
Constructs an error message for a point that can not be evaluated. |
boolean[] |
getDataBlock(org.opengis.coverage.grid.GridRange range,
boolean[] destination)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
byte[] |
getDataBlock(org.opengis.coverage.grid.GridRange range,
byte[] destination)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
double[] |
getDataBlock(org.opengis.coverage.grid.GridRange range,
double[] destination)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
float[] |
getDataBlock(org.opengis.coverage.grid.GridRange range,
float[] destination)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
int[] |
getDataBlock(org.opengis.coverage.grid.GridRange range,
int[] destination)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
short[] |
getDataBlock(org.opengis.coverage.grid.GridRange range,
short[] destination)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
org.opengis.coverage.grid.GridPacking |
getGridPacking()
Deprecated. Not yet implemented, and maybe will never be implemented. |
int |
getNumOverviews()
Returns the number of predetermined overviews for the grid. |
org.opengis.coverage.grid.GridCoverage |
getOverview(int index)
Returns a pre-calculated overview for a grid coverage. |
org.opengis.coverage.grid.GridGeometry |
getOverviewGridGeometry(int index)
Returns the grid geometry for an overview. |
byte[] |
getPackedDataBlock(org.opengis.coverage.grid.GridRange range)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
java.util.List<org.opengis.coverage.grid.GridCoverage> |
getSources()
Returns the source data for a grid coverage. |
boolean |
isDataEditable()
Returns true if grid data can be edited. |
void |
setDataBlock(org.opengis.coverage.grid.GridRange gridRange,
boolean[] values)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
void |
setDataBlock(org.opengis.coverage.grid.GridRange gridRange,
byte[] values)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
void |
setDataBlock(org.opengis.coverage.grid.GridRange gridRange,
double[] values)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
void |
setDataBlock(org.opengis.coverage.grid.GridRange gridRange,
float[] values)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
void |
setDataBlock(org.opengis.coverage.grid.GridRange gridRange,
int[] values)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
void |
setDataBlock(org.opengis.coverage.grid.GridRange gridRange,
short[] values)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
void |
setPackedDataBlock(org.opengis.coverage.grid.GridRange gridRange,
byte[] values)
Deprecated. This operation can hardly be implemented efficiently in Java with a byte[] argument type, since we can't easily cast an array
of byte[] to an array of arbitrary type. |
Methods inherited from class org.geotools.coverage.AbstractCoverage |
---|
dispose, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluateInverse, find, find, getCommonPointRule, getCoordinateReferenceSystem, getDimension, getDomainElements, getDomainExtents, getEnvelope, getLocale, getName, getRangeElements, getRangeType, getRenderableImage, list, select, show, show, show, toString |
Methods inherited from class javax.media.jai.PropertySourceImpl |
---|
getProperties, getProperty, getPropertyClass, getPropertyNames, getPropertyNames |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.coverage.grid.GridCoverage |
---|
getGridGeometry, getOptimalDataBlockSizes |
Methods inherited from interface org.opengis.coverage.Coverage |
---|
evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluateInverse, find, find, getCommonPointRule, getCoordinateReferenceSystem, getDomainElements, getDomainExtents, getEnvelope, getNumSampleDimensions, getRangeElements, getRangeType, getRenderableImage, getSampleDimension, list, select |
Field Detail |
---|
public static final java.util.logging.Logger LOGGER
Constructor Detail |
---|
protected AbstractGridCoverage(java.lang.CharSequence name, org.opengis.referencing.crs.CoordinateReferenceSystem crs, javax.media.jai.PropertySource propertySource, java.util.Map<?,?> properties)
null
, then the subclasses must override
AbstractCoverage.getDimension()
.
name
- The grid coverage name.crs
- The coordinate reference system. This specifies the coordinate system used when
accessing a coverage or grid coverage with the evaluate(...)
methods.propertySource
- The source for this coverage, or null
if none. Source may be
(but is not limited to) a PlanarImage
or an
other AbstractGridCoverage
object.properties
- The set of properties for this coverage, or null
if there is none.
Keys are String
objects (CaselessStringKey
are accepted as well), while values may be any Object
.protected AbstractGridCoverage(java.lang.CharSequence name, org.opengis.referencing.crs.CoordinateReferenceSystem crs, org.opengis.coverage.grid.GridCoverage[] sources, javax.media.jai.PropertySource propertySource, java.util.Map<?,?> properties)
sources
argument.
name
- The grid coverage name.crs
- The coordinate reference system.sources
- The sources for a grid coverage, or null
if none.propertySource
- The source for properties for this coverage, or null
if none.properties
- Set of additional properties for this coverage, or null
if there is none.protected AbstractGridCoverage(java.lang.CharSequence name, org.opengis.coverage.grid.GridCoverage coverage)
name
- The name for this coverage, or null
for the same than coverage
.coverage
- The source coverage.Method Detail |
---|
public java.util.List<org.opengis.coverage.grid.GridCoverage> getSources()
GridCoverage
was produced from
an underlying dataset, the returned list is an empty list. If the GridCoverage
was
produced using org.opengis.coverage.grid.GridCoverageProcessor
, then it should
return the source grid coverage of the one used as input to GridCoverageProcessor
.
In general the getSources()
method is intended to return the original
GridCoverage
on which it depends. This is intended to allow applications
to establish what GridCoverage
s will be affected when others are updated,
as well as to trace back to the "raw data".
getSources
in interface org.opengis.coverage.Coverage
getSources
in interface org.opengis.coverage.grid.GridCoverage
getSources
in class AbstractCoverage
public boolean isDataEditable()
true
if grid data can be edited. The default
implementation returns false
.
isDataEditable
in interface org.opengis.coverage.grid.GridCoverage
public int getNumOverviews()
getNumOverviews
in interface org.opengis.coverage.grid.GridCoverage
public org.opengis.coverage.grid.GridGeometry getOverviewGridGeometry(int index) throws java.lang.IndexOutOfBoundsException
getOverviewGridGeometry
in interface org.opengis.coverage.grid.GridCoverage
java.lang.IndexOutOfBoundsException
- if the specified index is out of bounds.public org.opengis.coverage.grid.GridCoverage getOverview(int index) throws java.lang.IndexOutOfBoundsException
getOverview
in interface org.opengis.coverage.grid.GridCoverage
java.lang.IndexOutOfBoundsException
- if the specified index is out of bounds.public org.opengis.coverage.grid.GridPacking getGridPacking()
UnsupportedOperationException
.
We don't know at this time if and when this method will be implemented, since
the API is going to change when we will shift to ISO 19123.
getGridPacking
in interface org.opengis.coverage.grid.GridCoverage
@Deprecated public byte[] getPackedDataBlock(org.opengis.coverage.grid.GridRange range) throws org.opengis.coverage.grid.InvalidRangeException
UnsupportedOperationException
.
We don't know at this time if and when this method will be implemented, since
the API is going to change when we will shift to ISO 19123.
getPackedDataBlock
in interface org.opengis.coverage.grid.GridCoverage
org.opengis.coverage.grid.InvalidRangeException
@Deprecated public boolean[] getDataBlock(org.opengis.coverage.grid.GridRange range, boolean[] destination) throws org.opengis.coverage.grid.InvalidRangeException, java.lang.ArrayIndexOutOfBoundsException
UnsupportedOperationException
.
We don't know at this time if and when this method will be implemented, since
the API is going to change when we will shift to ISO 19123.
getDataBlock
in interface org.opengis.coverage.grid.GridCoverage
org.opengis.coverage.grid.InvalidRangeException
java.lang.ArrayIndexOutOfBoundsException
@Deprecated public byte[] getDataBlock(org.opengis.coverage.grid.GridRange range, byte[] destination) throws org.opengis.coverage.grid.InvalidRangeException, java.lang.ArrayIndexOutOfBoundsException
UnsupportedOperationException
.
We don't know at this time if and when this method will be implemented, since
the API is going to change when we will shift to ISO 19123.
getDataBlock
in interface org.opengis.coverage.grid.GridCoverage
org.opengis.coverage.grid.InvalidRangeException
java.lang.ArrayIndexOutOfBoundsException
@Deprecated public short[] getDataBlock(org.opengis.coverage.grid.GridRange range, short[] destination) throws org.opengis.coverage.grid.InvalidRangeException, java.lang.ArrayIndexOutOfBoundsException
UnsupportedOperationException
.
We don't know at this time if and when this method will be implemented, since
the API is going to change when we will shift to ISO 19123.
getDataBlock
in interface org.opengis.coverage.grid.GridCoverage
org.opengis.coverage.grid.InvalidRangeException
java.lang.ArrayIndexOutOfBoundsException
@Deprecated public int[] getDataBlock(org.opengis.coverage.grid.GridRange range, int[] destination) throws org.opengis.coverage.grid.InvalidRangeException, java.lang.ArrayIndexOutOfBoundsException
UnsupportedOperationException
.
We don't know at this time if and when this method will be implemented, since
the API is going to change when we will shift to ISO 19123.
getDataBlock
in interface org.opengis.coverage.grid.GridCoverage
org.opengis.coverage.grid.InvalidRangeException
java.lang.ArrayIndexOutOfBoundsException
@Deprecated public float[] getDataBlock(org.opengis.coverage.grid.GridRange range, float[] destination) throws org.opengis.coverage.grid.InvalidRangeException, java.lang.ArrayIndexOutOfBoundsException
UnsupportedOperationException
.
We don't know at this time if and when this method will be implemented, since
the API is going to change when we will shift to ISO 19123.
getDataBlock
in interface org.opengis.coverage.grid.GridCoverage
org.opengis.coverage.grid.InvalidRangeException
java.lang.ArrayIndexOutOfBoundsException
@Deprecated public double[] getDataBlock(org.opengis.coverage.grid.GridRange range, double[] destination) throws org.opengis.coverage.grid.InvalidRangeException, java.lang.ArrayIndexOutOfBoundsException
UnsupportedOperationException
.
We don't know at this time if and when this method will be implemented, since
the API is going to change when we will shift to ISO 19123.
getDataBlock
in interface org.opengis.coverage.grid.GridCoverage
org.opengis.coverage.grid.InvalidRangeException
java.lang.ArrayIndexOutOfBoundsException
@Deprecated public void setDataBlock(org.opengis.coverage.grid.GridRange gridRange, boolean[] values) throws org.opengis.coverage.grid.InvalidRangeException, org.opengis.coverage.grid.GridNotEditableException, java.lang.ArrayIndexOutOfBoundsException
setDataBlock
in interface org.opengis.coverage.grid.GridCoverage
org.opengis.coverage.grid.InvalidRangeException
org.opengis.coverage.grid.GridNotEditableException
java.lang.ArrayIndexOutOfBoundsException
@Deprecated public void setDataBlock(org.opengis.coverage.grid.GridRange gridRange, byte[] values) throws org.opengis.coverage.grid.InvalidRangeException, org.opengis.coverage.grid.GridNotEditableException, java.lang.ArrayIndexOutOfBoundsException
setDataBlock
in interface org.opengis.coverage.grid.GridCoverage
org.opengis.coverage.grid.InvalidRangeException
org.opengis.coverage.grid.GridNotEditableException
java.lang.ArrayIndexOutOfBoundsException
@Deprecated public void setDataBlock(org.opengis.coverage.grid.GridRange gridRange, short[] values) throws org.opengis.coverage.grid.InvalidRangeException, org.opengis.coverage.grid.GridNotEditableException, java.lang.ArrayIndexOutOfBoundsException
setDataBlock
in interface org.opengis.coverage.grid.GridCoverage
org.opengis.coverage.grid.InvalidRangeException
org.opengis.coverage.grid.GridNotEditableException
java.lang.ArrayIndexOutOfBoundsException
@Deprecated public void setDataBlock(org.opengis.coverage.grid.GridRange gridRange, int[] values) throws org.opengis.coverage.grid.InvalidRangeException, org.opengis.coverage.grid.GridNotEditableException, java.lang.ArrayIndexOutOfBoundsException
setDataBlock
in interface org.opengis.coverage.grid.GridCoverage
org.opengis.coverage.grid.InvalidRangeException
org.opengis.coverage.grid.GridNotEditableException
java.lang.ArrayIndexOutOfBoundsException
@Deprecated public void setDataBlock(org.opengis.coverage.grid.GridRange gridRange, float[] values) throws org.opengis.coverage.grid.InvalidRangeException, org.opengis.coverage.grid.GridNotEditableException, java.lang.ArrayIndexOutOfBoundsException
setDataBlock
in interface org.opengis.coverage.grid.GridCoverage
org.opengis.coverage.grid.InvalidRangeException
org.opengis.coverage.grid.GridNotEditableException
java.lang.ArrayIndexOutOfBoundsException
@Deprecated public void setDataBlock(org.opengis.coverage.grid.GridRange gridRange, double[] values) throws org.opengis.coverage.grid.InvalidRangeException, org.opengis.coverage.grid.GridNotEditableException, java.lang.ArrayIndexOutOfBoundsException
setDataBlock
in interface org.opengis.coverage.grid.GridCoverage
org.opengis.coverage.grid.InvalidRangeException
org.opengis.coverage.grid.GridNotEditableException
java.lang.ArrayIndexOutOfBoundsException
@Deprecated public void setPackedDataBlock(org.opengis.coverage.grid.GridRange gridRange, byte[] values) throws org.opengis.coverage.grid.InvalidRangeException, org.opengis.coverage.grid.GridNotEditableException, java.lang.ArrayIndexOutOfBoundsException
byte[]
argument type, since we can't easily cast an array
of byte[]
to an array of arbitrary type.
org.opengis.coverage.grid.InvalidRangeException
org.opengis.coverage.grid.GridNotEditableException
java.lang.ArrayIndexOutOfBoundsException
protected java.lang.String formatEvaluateError(java.awt.geom.Point2D point, boolean outside)
point
- The coordinate point to format.outside
- true
if the evaluation failed because the given point is outside
the coverage, or false
if it failed for an other (unknown) reason.
protected java.lang.String formatEvaluateError(org.opengis.geometry.DirectPosition point, boolean outside)
point
- The coordinate point to format.outside
- true
if the evaluation failed because the given point is outside
the coverage, or false
if it failed for an other (unknown) reason.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |