public abstract class AbstractGridCoverage extends AbstractCoverage implements GridCoverage
AbstractCoverage.Renderable
Modifier and Type | Field and Description |
---|---|
static Logger |
LOGGER
The logger for grid coverage operations.
|
crs
Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
List<GridCoverage> |
getSources()
Returns the source data for a grid coverage.
|
boolean |
isDataEditable()
Returns
true if grid data can be edited. |
dispose, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, getCoordinateReferenceSystem, getDimension, getEnvelope, getLocale, getName, getRangeType, getRenderableImage, show, show, show, toString
getProperties, getProperty, getPropertyClass, getPropertyNames, getPropertyNames
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGridGeometry, getOptimalDataBlockSizes, getRenderedImage
evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, getCoordinateReferenceSystem, getEnvelope, getNumSampleDimensions, getRangeType, getRenderableImage, getSampleDimension
public static final Logger LOGGER
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.public List<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 Coverage
getSources
in interface GridCoverage
getSources
in class AbstractCoverage
public boolean isDataEditable()
true
if grid data can be edited. The default implementation returns false
.isDataEditable
in interface GridCoverage
true
if grid data can be edited.public int getNumOverviews()
getNumOverviews
in interface GridCoverage
public GridGeometry getOverviewGridGeometry(int index) throws IndexOutOfBoundsException
getOverviewGridGeometry
in interface GridCoverage
index
- Overview index for which to retrieve grid geometry. Indices start at 0.IndexOutOfBoundsException
- if the specified index is out of bounds.public GridCoverage getOverview(int index) throws IndexOutOfBoundsException
getOverview
in interface GridCoverage
index
- Index of grid coverage overview to retrieve. Indexes start at 0.IndexOutOfBoundsException
- if the specified index is out of bounds.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.Copyright © 1996–2019 Geotools. All rights reserved.