|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectPropertySourceImpl
AbstractCoverage
AbstractGridCoverage
public abstract class AbstractGridCoverage
Base class for Geotk implementation of grid coverage.
| coverage/geotk-coverage (download) | View source code for this class |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class AbstractCoverage |
|---|
AbstractCoverage.Renderable |
| Field Summary | |
|---|---|
static Logger |
LOGGER
The logger for grid coverage operations. |
| Fields inherited from class AbstractCoverage |
|---|
crs |
| Fields inherited from class PropertySourceImpl |
|---|
cachedPropertyNames, properties, propertySources |
| Constructor Summary | |
|---|---|
protected |
AbstractGridCoverage(CharSequence name,
CoordinateReferenceSystem crs,
GridCoverage[] sources,
PropertySource propertySource,
Map<?,?> properties)
Constructs a grid coverage with sources. |
protected |
AbstractGridCoverage(CharSequence name,
CoordinateReferenceSystem crs,
PropertySource propertySource,
Map<?,?> properties)
Constructs a grid coverage using the specified coordinate reference system. |
protected |
AbstractGridCoverage(CharSequence name,
GridCoverage coverage)
Constructs a new coverage with the same parameters than the specified coverage. |
| Method Summary | |
|---|---|
protected String |
formatEvaluateError(DirectPosition point,
boolean outside)
Constructs an error message for a position that can not be evaluated. |
protected String |
formatEvaluateError(Point2D point,
boolean outside)
Constructs an error message for a point that can not be evaluated. |
boolean[] |
getDataBlock(GridRange range,
boolean[] destination)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
byte[] |
getDataBlock(GridRange range,
byte[] destination)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
double[] |
getDataBlock(GridRange range,
double[] destination)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
float[] |
getDataBlock(GridRange range,
float[] destination)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
int[] |
getDataBlock(GridRange range,
int[] destination)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
short[] |
getDataBlock(GridRange range,
short[] destination)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
GridPacking |
getGridPacking()
Deprecated. Not yet implemented, and maybe will never be implemented. |
int |
getNumOverviews()
Returns the number of predetermined overviews for the grid. |
GridCoverage |
getOverview(int index)
Returns a pre-calculated overview for a grid coverage. |
GridGeometry |
getOverviewGridGeometry(int index)
Returns the grid geometry for an overview. |
byte[] |
getPackedDataBlock(GridRange range)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
List<GridCoverage> |
getSources()
Returns the source data for a grid coverage. |
boolean |
isDataEditable()
Returns true if grid data can be edited. |
void |
setDataBlock(GridRange range,
boolean[] values)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
void |
setDataBlock(GridRange range,
byte[] values)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
void |
setDataBlock(GridRange range,
double[] values)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
void |
setDataBlock(GridRange range,
float[] values)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
void |
setDataBlock(GridRange range,
int[] values)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
void |
setDataBlock(GridRange range,
short[] values)
Deprecated. We should use some higher level construct instead (multi-dimensional array or something similar). |
| Methods inherited from class 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 PropertySourceImpl |
|---|
getProperties, getProperty, getPropertyClass, getPropertyNames, getPropertyNames |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface GridCoverage |
|---|
getGridGeometry, getOptimalDataBlockSizes |
| Methods inherited from interface 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 Logger LOGGER
| Constructor Detail |
|---|
protected AbstractGridCoverage(CharSequence name,
CoordinateReferenceSystem crs,
PropertySource propertySource,
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(CharSequence name,
CoordinateReferenceSystem crs,
GridCoverage[] sources,
PropertySource propertySource,
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(CharSequence name,
GridCoverage coverage)
name - The name for this coverage, or null for the same than coverage.coverage - The source coverage.| Method Detail |
|---|
public List<GridCoverage> getSources()
GridCoverage was produced from
an underlying dataset, the returned list is an empty list. If the GridCoverage was
produced using 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 GridCoverages will be affected when others are updated,
as well as to trace back to the "raw data".
getSources in interface CoveragegetSources in interface GridCoveragegetSources in class AbstractCoveragepublic boolean isDataEditable()
true if grid data can be edited. The default
implementation returns false.
isDataEditable in interface GridCoveragepublic int getNumOverviews()
getNumOverviews in interface GridCoverage
public GridGeometry getOverviewGridGeometry(int index)
throws IndexOutOfBoundsException
getOverviewGridGeometry in interface GridCoverageIndexOutOfBoundsException - if the specified index is out of bounds.
public GridCoverage getOverview(int index)
throws IndexOutOfBoundsException
getOverview in interface GridCoverageIndexOutOfBoundsException - if the specified index is out of bounds.@Deprecated public 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 GridCoverage
@Deprecated
public byte[] getPackedDataBlock(GridRange range)
throws 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 GridCoverageInvalidRangeException
@Deprecated
public boolean[] getDataBlock(GridRange range,
boolean[] destination)
throws 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.
getDataBlock in interface GridCoverageInvalidRangeException
@Deprecated
public byte[] getDataBlock(GridRange range,
byte[] destination)
throws 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.
getDataBlock in interface GridCoverageInvalidRangeException
@Deprecated
public short[] getDataBlock(GridRange range,
short[] destination)
throws 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.
getDataBlock in interface GridCoverageInvalidRangeException
@Deprecated
public int[] getDataBlock(GridRange range,
int[] destination)
throws 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.
getDataBlock in interface GridCoverageInvalidRangeException
@Deprecated
public float[] getDataBlock(GridRange range,
float[] destination)
throws 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.
getDataBlock in interface GridCoverageInvalidRangeException
@Deprecated
public double[] getDataBlock(GridRange range,
double[] destination)
throws 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.
getDataBlock in interface GridCoverageInvalidRangeException
@Deprecated
public void setDataBlock(GridRange range,
boolean[] values)
throws InvalidRangeException,
GridNotEditableException
setDataBlock in interface GridCoverageInvalidRangeException
GridNotEditableException
@Deprecated
public void setDataBlock(GridRange range,
byte[] values)
throws InvalidRangeException,
GridNotEditableException
setDataBlock in interface GridCoverageInvalidRangeException
GridNotEditableException
@Deprecated
public void setDataBlock(GridRange range,
short[] values)
throws InvalidRangeException,
GridNotEditableException
setDataBlock in interface GridCoverageInvalidRangeException
GridNotEditableException
@Deprecated
public void setDataBlock(GridRange range,
int[] values)
throws InvalidRangeException,
GridNotEditableException
setDataBlock in interface GridCoverageInvalidRangeException
GridNotEditableException
@Deprecated
public void setDataBlock(GridRange range,
float[] values)
throws InvalidRangeException,
GridNotEditableException
setDataBlock in interface GridCoverageInvalidRangeException
GridNotEditableException
@Deprecated
public void setDataBlock(GridRange range,
double[] values)
throws InvalidRangeException,
GridNotEditableException
setDataBlock in interface GridCoverageInvalidRangeException
GridNotEditableException
protected String formatEvaluateError(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 String formatEvaluateError(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 | |||||||||