org.deegree.coverage.raster
Class SampleResolution
java.lang.Object
org.deegree.coverage.raster.SampleResolution
- All Implemented Interfaces:
- java.io.Serializable
public class SampleResolution
- extends java.lang.Object
- implements java.io.Serializable
Defines the resolution(s) of a sample.
- Version:
- $Revision: 25249 $, $Date: 2010-07-09 16:33:21 +0200 (Fr, 09. Jul 2010) $
- Author:
- Rutger Bezema, last edited by: $Author: aschmitz $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SampleResolution
public SampleResolution(double[] resolutions)
- Parameters:
resolutions
-
getResolution
public double getResolution(int dim)
- Returns the resolution (in coordinate system units) of the sample domain for the given dimension (crs-axis).
- Parameters:
dim
- the 'crs-axis' to get the dimension for
- Returns:
- the resolution of the sample domain of the given dimension.
createGeoReference
public RasterGeoReference createGeoReference(RasterGeoReference.OriginLocation location,
Envelope envelope)
- Create a raster reference for the given envelope from this resolution.
- Parameters:
location
- of the origin of the raster reference, if null
center will be assumed.envelope
- the envelope to create a raster reference for.
- Returns:
- the raster reference with sample resolutions and the origin fitting the given envelope, if no resolutions
were known,
null
will be returned;
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2011. All Rights Reserved.