org.deegree.coverage.raster.geom
Class Grid

java.lang.Object
  extended by org.deegree.coverage.raster.geom.Grid

public class Grid
extends Object

This class defines an output grid for a WCS request.

Version:
$Revision: 31644 $, $Date: 2011-08-24 22:27:43 +0200 (Wed, 24 Aug 2011) $
Author:
Oliver Tonnhofer, last edited by: $Author: mschneider $

Method Summary
static Grid fromRes(double resx, double resy, double resz, Envelope targetEnvelope)
          Create a Gird for the given pixel resolution and output envelope
static Grid fromSize(int width, int height, int depth, Envelope targetEnvelope)
          Create a Gird for the given grid size and output envelope
 int getDepth()
           
 Envelope getEnvelope()
           
 int getHeight()
           
 double getResolution()
           
 int getWidth()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

fromSize

public static Grid fromSize(int width,
                            int height,
                            int depth,
                            Envelope targetEnvelope)
Create a Gird for the given grid size and output envelope

Parameters:
width - the width of the grid in pixel
height - the height of the grid in pixel
depth - the depth of the grid in pixel
targetEnvelope - the envelope of the output grid
Returns:
a new grid

fromRes

public static Grid fromRes(double resx,
                           double resy,
                           double resz,
                           Envelope targetEnvelope)
Create a Gird for the given pixel resolution and output envelope

Parameters:
resx - resolution of a pixel (ie. the width of each grid cell in CRS units)
resy - resolution of a pixel (ie. the height of each grid cell in CRS units)
resz - resolution of a pixel (ie. the depth of each grid cell in CRS units)
targetEnvelope - the envelope of the output grid
Returns:
a new grid

getWidth

public int getWidth()
Returns:
the width

getHeight

public int getHeight()
Returns:
the height

getEnvelope

public Envelope getEnvelope()
Returns:
the envelope

getResolution

public double getResolution()
Returns:
the lowest resolution of the grid

getDepth

public final int getDepth()
Returns:
the depth

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.