| org.geotools.coverage.AbstractCoverage org.geotools.coverage.grid.AbstractGridCoverage
All known Subclasses: org.geotools.coverage.grid.GridCoverage2D,
AbstractGridCoverage | abstract public class AbstractGridCoverage extends AbstractCoverage implements GridCoverage(Code) | | Base class for Geotools implementation of grid coverage.
since: 2.1 version: $Id: AbstractGridCoverage.java 27862 2007-11-12 19:51:19Z desruisseaux $ author: Martin Desruisseaux |
Field Summary | |
final public static Logger | LOGGER The logger for grid coverage operations. |
Constructor Summary | |
protected | AbstractGridCoverage(CharSequence name, CoordinateReferenceSystem crs, PropertySource source, Map properties) Constructs a grid coverage using the specified coordinate reference system. | protected | AbstractGridCoverage(CharSequence name, CoordinateReferenceSystem crs, GridCoverage[] sources, PropertySource source, Map properties) Constructs a grid coverage with sources. | protected | AbstractGridCoverage(CharSequence name, GridCoverage coverage) Constructs a new coverage with the same parameters than the specified coverage. |
Method Summary | |
public boolean[] | getDataBlock(GridRange range, boolean[] destination) Returns a sequence of byte values for a block. | public byte[] | getDataBlock(GridRange range, byte[] destination) Returns a sequence of byte values for a block. | public short[] | getDataBlock(GridRange range, short[] destination) Returns a sequence of short values for a block. | public int[] | getDataBlock(GridRange range, int[] destination) Returns a sequence of integer values for a block. | public float[] | getDataBlock(GridRange range, float[] destination) Returns a sequence of float values for a block. | public double[] | getDataBlock(GridRange range, double[] destination) Returns a sequence of double values for a block. | public GridPacking | getGridPacking() Returns information for the packing of grid coverage values. | public int | getNumOverviews() Returns the number of predetermined overviews for the grid. | public GridCoverage | getOverview(int index) Returns a pre-calculated overview for a grid coverage. | public GridGeometry | getOverviewGridGeometry(int index) Returns the grid geometry for an overview. | public byte[] | getPackedDataBlock(GridRange range) Returns a block of grid coverage data for all sample dimensions. | public List | getSources() Returns the source data for a grid coverage. | public boolean | isDataEditable() Returns
true if grid data can be edited. | protected String | pointOutsideCoverage(Point2D point) Constructs an error message for a point outside the coverage.
This is used for formatting error messages.
Parameters: point - The coordinate point to format. | protected String | pointOutsideCoverage(DirectPosition point) Constructs an error message for a point outside the coverage.
This is used for formatting error messages.
Parameters: point - The coordinate point to format. | public void | setDataBlock(GridRange gridRange, boolean[] values) Set a block of values for all sample dimensions. | public void | setDataBlock(GridRange gridRange, byte[] values) Set a block of values for all sample dimensions. | public void | setDataBlock(GridRange gridRange, short[] values) Set a block of values for all sample dimensions. | public void | setDataBlock(GridRange gridRange, int[] values) Set a block of values for all sample dimensions. | public void | setDataBlock(GridRange gridRange, float[] values) Set a block of values for all sample dimensions. | public void | setDataBlock(GridRange gridRange, double[] values) Set a block of values for all sample dimensions. | public void | setPackedDataBlock(GridRange gridRange, byte[] values) Set a block of values for all sample dimensions. | static String | toString(Point2D point, Locale locale) Constructs a string for the specified point.
This is used for formatting error messages.
Parameters: point - The coordinate point to format. Parameters: locale - The locale for formatting numbers. | static String | toString(DirectPosition point, Locale locale) Constructs a string for the specified point.
This is used for formatting error messages.
Parameters: point - The coordinate point to format. Parameters: locale - The locale for formatting numbers. |
LOGGER | final public static Logger LOGGER(Code) | | The logger for grid coverage operations.
|
AbstractGridCoverage | protected AbstractGridCoverage(CharSequence name, CoordinateReferenceSystem crs, PropertySource source, Map properties)(Code) | | Constructs a grid coverage using the specified coordinate reference system. If the
coordinate reference system is
null , then the subclasses must override
AbstractGridCoverage.getDimension() .
Parameters: name - The grid coverage name. Parameters: crs - The coordinate reference system. This specifies the coordinatesystem used when accessing a coverage or grid coverage with the evaluate(...) methods. Parameters: source - The source for this coverage, or null if none.Source may be (but is not limited to) a PlanarImage or another AbstractGridCoverage object. Parameters: properties - The set of properties for this coverage, or null if there is none."Properties" in Java Advanced Imaging is what OpenGIS calls "Metadata".Keys are String objects (CaselessStringKey are accepted as well),while values may be any Object. |
AbstractGridCoverage | protected AbstractGridCoverage(CharSequence name, CoordinateReferenceSystem crs, GridCoverage[] sources, PropertySource source, Map properties)(Code) | | Constructs a grid coverage with sources. Arguments are the same than for the
, with an additional
sources argument.
Parameters: name - The grid coverage name. Parameters: crs - The coordinate reference system. Parameters: sources - The for a grid coverage,or null if none. Parameters: source - The source for properties for this coverage, or null if none. Parameters: properties - Set of additional properties for this coverage, or null if thereis none. |
AbstractGridCoverage | protected AbstractGridCoverage(CharSequence name, GridCoverage coverage)(Code) | | Constructs a new coverage with the same parameters than the specified coverage.
Parameters: name - The name for this coverage, or null for the same than coverage . Parameters: coverage - The source coverage. |
getDataBlock | public boolean[] getDataBlock(GridRange range, boolean[] destination) throws InvalidRangeException, ArrayIndexOutOfBoundsException(Code) | | Returns a sequence of byte values for a block.
The default implementation throws an
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 | public byte[] getDataBlock(GridRange range, byte[] destination) throws InvalidRangeException, ArrayIndexOutOfBoundsException(Code) | | Returns a sequence of byte values for a block.
The default implementation throws an
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 | public short[] getDataBlock(GridRange range, short[] destination) throws InvalidRangeException, ArrayIndexOutOfBoundsException(Code) | | Returns a sequence of short values for a block.
The default implementation throws an
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 | public int[] getDataBlock(GridRange range, int[] destination) throws InvalidRangeException, ArrayIndexOutOfBoundsException(Code) | | Returns a sequence of integer values for a block.
The default implementation throws an
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 | public float[] getDataBlock(GridRange range, float[] destination) throws InvalidRangeException, ArrayIndexOutOfBoundsException(Code) | | Returns a sequence of float values for a block.
The default implementation throws an
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 | public double[] getDataBlock(GridRange range, double[] destination) throws InvalidRangeException, ArrayIndexOutOfBoundsException(Code) | | Returns a sequence of double values for a block.
The default implementation throws an
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 | public GridPacking getGridPacking()(Code) | | Returns information for the packing of grid coverage values.
The default implementation throws an
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.
|
getNumOverviews | public int getNumOverviews()(Code) | | Returns the number of predetermined overviews for the grid.
The default implementation returns 0.
|
getOverview | public GridCoverage getOverview(int index) throws IndexOutOfBoundsException(Code) | | Returns a pre-calculated overview for a grid coverage. The default implementation always
throws an exception, since the default
is 0.
throws: IndexOutOfBoundsException - if the specified index is out of bounds. |
getOverviewGridGeometry | public GridGeometry getOverviewGridGeometry(int index) throws IndexOutOfBoundsException(Code) | | Returns the grid geometry for an overview. The default implementation always throws
an exception, since the default
is 0.
throws: IndexOutOfBoundsException - if the specified index is out of bounds. |
getPackedDataBlock | public byte[] getPackedDataBlock(GridRange range) throws InvalidRangeException(Code) | | Returns a block of grid coverage data for all sample dimensions.
The default implementation throws an
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.
|
getSources | public List getSources()(Code) | | Returns the source data for a grid coverage. If the
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".
|
isDataEditable | public boolean isDataEditable()(Code) | | Returns
true if grid data can be edited. The default
implementation returns
false .
|
pointOutsideCoverage | protected String pointOutsideCoverage(Point2D point)(Code) | | Constructs an error message for a point outside the coverage.
This is used for formatting error messages.
Parameters: point - The coordinate point to format. An error message. |
pointOutsideCoverage | protected String pointOutsideCoverage(DirectPosition point)(Code) | | Constructs an error message for a point outside the coverage.
This is used for formatting error messages.
Parameters: point - The coordinate point to format. An error message. |
setDataBlock | public void setDataBlock(GridRange gridRange, boolean[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code) | | Set a block of values for all sample dimensions. The default implementation always throws
an exception, since this grid coverage is not editable by default.
|
setDataBlock | public void setDataBlock(GridRange gridRange, byte[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code) | | Set a block of values for all sample dimensions. The default implementation always throws
an exception, since this grid coverage is not editable by default.
|
setDataBlock | public void setDataBlock(GridRange gridRange, short[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code) | | Set a block of values for all sample dimensions. The default implementation always throws
an exception, since this grid coverage is not editable by default.
|
setDataBlock | public void setDataBlock(GridRange gridRange, int[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code) | | Set a block of values for all sample dimensions. The default implementation always throws
an exception, since this grid coverage is not editable by default.
|
setDataBlock | public void setDataBlock(GridRange gridRange, float[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code) | | Set a block of values for all sample dimensions. The default implementation always throws
an exception, since this grid coverage is not editable by default.
|
setDataBlock | public void setDataBlock(GridRange gridRange, double[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code) | | Set a block of values for all sample dimensions. The default implementation always throws
an exception, since this grid coverage is not editable by default.
|
setPackedDataBlock | public void setPackedDataBlock(GridRange gridRange, byte[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code) | | Set a block of values for all sample dimensions. The default implementation always throws
an exception, since this grid coverage is not editable by default.
byte[] byte[] |
toString | static String toString(Point2D point, Locale locale)(Code) | | Constructs a string for the specified point.
This is used for formatting error messages.
Parameters: point - The coordinate point to format. Parameters: locale - The locale for formatting numbers. The coordinate point as a string, without '(' or ')' characters. |
toString | static String toString(DirectPosition point, Locale locale)(Code) | | Constructs a string for the specified point.
This is used for formatting error messages.
Parameters: point - The coordinate point to format. Parameters: locale - The locale for formatting numbers. The coordinate point as a string, without '(' or ')' characters. |
Fields inherited from org.geotools.coverage.AbstractCoverage | final protected CoordinateReferenceSystem crs(Code)(Java Doc)
|
Methods inherited from org.geotools.coverage.AbstractCoverage | public boolean dispose(boolean force)(Code)(Java Doc) public void dispose()(Code)(Java Doc) public Set evaluate(DirectPosition coord, Set list)(Code)(Java Doc) public boolean[] evaluate(DirectPosition coord, boolean[] dest) throws CannotEvaluateException(Code)(Java Doc) public byte[] evaluate(DirectPosition coord, byte[] dest) throws CannotEvaluateException(Code)(Java Doc) public int[] evaluate(DirectPosition coord, int[] dest) throws CannotEvaluateException(Code)(Java Doc) public float[] evaluate(DirectPosition coord, float[] dest) throws CannotEvaluateException(Code)(Java Doc) public double[] evaluate(DirectPosition coord, double[] dest) throws CannotEvaluateException(Code)(Java Doc) public Set evaluateInverse(Record v)(Code)(Java Doc) public List find(DirectPosition p, int limit)(Code)(Java Doc) public GeometryValuePair find(DirectPosition p)(Code)(Java Doc) public CommonPointRule getCommonPointRule()(Code)(Java Doc) public CoordinateReferenceSystem getCoordinateReferenceSystem()(Code)(Java Doc) final public int getDimension()(Code)(Java Doc) public InternationalString[] getDimensionNames()(Code)(Java Doc) final public String[] getDimensionNames(Locale locale)(Code)(Java Doc) public Set getDomainElements()(Code)(Java Doc) public Set getDomainExtents()(Code)(Java Doc) public Envelope getEnvelope()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public String[] getMetadataNames()(Code)(Java Doc) public String getMetadataValue(String name) throws MetadataNameNotFoundException(Code)(Java Doc) public InternationalString getName()(Code)(Java Doc) public Set getRangeElements()(Code)(Java Doc) public RecordType getRangeType()(Code)(Java Doc) public RenderableImage getRenderableImage(int xAxis, int yAxis)(Code)(Java Doc) public List getSources()(Code)(Java Doc) public Set list()(Code)(Java Doc) public Set select(Geometry arg0, Period arg1)(Code)(Java Doc) public void show(int xAxis, int yAxis)(Code)(Java Doc) public void show(String title, int xAxis, int yAxis)(Code)(Java Doc) public void show(String title)(Code)(Java Doc) public void show()(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|