| org.geotools.coverage.AbstractCoverage org.geotools.coverage.TransformedCoverage
TransformedCoverage | public class TransformedCoverage extends AbstractCoverage (Code) | | A coverage wrapping an other one with a different coordinate reference system. The coordinate
transformation is applied on the fly every time an
evaluate method is invoked. It may
be efficient if few points are queried, but become ineficient if a large amount of points is
queried. In the later case, consider reprojecting the whole grid coverage instead.
Note: This class is not thread safe for performance reasons. If desired,
users should create one instance of
TransformedCoverage for each thread.
version: $Id: TransformedCoverage.java 25050 2007-04-06 00:41:49Z jgarnett $ author: Martin Desruisseaux since: 2.1 |
Field Summary | |
final protected Coverage | coverage The wrapped coverage. |
Constructor Summary | |
protected | TransformedCoverage(CharSequence name, CoordinateReferenceSystem crs, Coverage coverage) Creates a new coverage wrapping the specified one. |
Method Summary | |
final public Object | evaluate(DirectPosition coord) Returns the value vector for a given point in the coverage. | final public boolean[] | evaluate(DirectPosition coord, boolean[] dest) Returns a sequence of boolean values for a given point in the coverage. | final public byte[] | evaluate(DirectPosition coord, byte[] dest) Returns a sequence of byte values for a given point in the coverage. | final public int[] | evaluate(DirectPosition coord, int[] dest) Returns a sequence of integer values for a given point in the coverage. | final public float[] | evaluate(DirectPosition coord, float[] dest) Returns a sequence of float values for a given point in the coverage. | final public double[] | evaluate(DirectPosition coord, double[] dest) Returns a sequence of double values for a given point in the coverage. | public Envelope | getEnvelope() Returns the envelope. | public int | getNumSampleDimensions() The number of sample dimensions in the coverage. | public SampleDimension | getSampleDimension(int index) Retrieve sample dimension information for the coverage.
Parameters: index - Index for sample dimension to retrieve. | public static Coverage | reproject(CharSequence name, CoordinateReferenceSystem crs, Coverage coverage) Creates a new coverage wrapping the specified one with a different CRS.
If the specified coverage already uses the specified CRS (or an equivalent one),
it is returned unchanged.
Parameters: name - The name for this new coverage. Parameters: crs - The crs for this coverage. Parameters: coverage - The coverage to wraps. |
coverage | final protected Coverage coverage(Code) | | The wrapped coverage.
|
TransformedCoverage | protected TransformedCoverage(CharSequence name, CoordinateReferenceSystem crs, Coverage coverage) throws FactoryException(Code) | | Creates a new coverage wrapping the specified one.
Parameters: name - The name for this new coverage. Parameters: crs - The crs for this coverage. Parameters: coverage - The coverage to wraps. throws: FactoryException - if no transformation can be found from the coverage CRS to thespecified CRS. |
evaluate | final public Object evaluate(DirectPosition coord) throws CannotEvaluateException(Code) | | Returns the value vector for a given point in the coverage.
Parameters: coord - The coordinate point where to evaluate. throws: PointOutsideCoverageException - if coord is outside coverage. throws: CannotEvaluateException - if the computation failed for some other reason. |
evaluate | final public boolean[] evaluate(DirectPosition coord, boolean[] dest) throws CannotEvaluateException(Code) | | Returns a sequence of boolean values for a given point in the coverage.
|
evaluate | final public byte[] evaluate(DirectPosition coord, byte[] dest) throws CannotEvaluateException(Code) | | Returns a sequence of byte values for a given point in the coverage.
|
evaluate | final public int[] evaluate(DirectPosition coord, int[] dest) throws CannotEvaluateException(Code) | | Returns a sequence of integer values for a given point in the coverage.
|
evaluate | final public float[] evaluate(DirectPosition coord, float[] dest) throws CannotEvaluateException(Code) | | Returns a sequence of float values for a given point in the coverage.
|
evaluate | final public double[] evaluate(DirectPosition coord, double[] dest) throws CannotEvaluateException(Code) | | Returns a sequence of double values for a given point in the coverage.
|
getEnvelope | public Envelope getEnvelope()(Code) | | Returns the envelope.
|
getNumSampleDimensions | public int getNumSampleDimensions()(Code) | | The number of sample dimensions in the coverage.
For grid coverages, a sample dimension is a band.
The number of sample dimensions in the coverage. |
getSampleDimension | public SampleDimension getSampleDimension(int index) throws IndexOutOfBoundsException(Code) | | Retrieve sample dimension information for the coverage.
Parameters: index - Index for sample dimension to retrieve. Indices are numbered 0 to(-1). Sample dimension information for the coverage. throws: IndexOutOfBoundsException - if index is out of bounds. |
reproject | public static Coverage reproject(CharSequence name, CoordinateReferenceSystem crs, Coverage coverage) throws FactoryException(Code) | | Creates a new coverage wrapping the specified one with a different CRS.
If the specified coverage already uses the specified CRS (or an equivalent one),
it is returned unchanged.
Parameters: name - The name for this new coverage. Parameters: crs - The crs for this coverage. Parameters: coverage - The coverage to wraps. A coverage using the specified CRS. throws: FactoryException - if no transformation can be found from the coverage CRS to thespecified CRS. |
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)
|
|
|