org.deegree.coverage.raster
Class SampleResolution
java.lang.Object
  
org.deegree.coverage.raster.SampleResolution
- All Implemented Interfaces: 
 - Serializable
 
public class SampleResolution
- extends Object
- implements Serializable
  
Defines the resolution(s) of a sample.
- Version:
 
  - $Revision: 31644 $, $Date: 2011-08-24 22:27:43 +0200 (Wed, 24 Aug 2011) $
 
- Author:
 
  - Rutger Bezema, last edited by: $Author: mschneider $
 
- See Also:
 - Serialized Form
 
 
 
 
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(Object other)
- Overrides:
 equals in class Object
 
 
hashCode
public int hashCode()
- Overrides:
 hashCode in class Object
 
 
toString
public String toString()
- Overrides:
 toString in class Object
 
 
Copyright © 2011. All Rights Reserved.