org.deegree.services.wcs.model
Class Grid

java.lang.Object
  extended by org.deegree.services.wcs.model.Grid

public class Grid
extends java.lang.Object

This class defines an output grid for a WCS request.

Version:
$Revision: 19964 $, $Date: 2009-10-05 17:20:14 +0200 (Mo, 05. Okt 2009) $
Author:
Oliver Tonnhofer, last edited by: $Author: aschmitz $

Method Summary
static Grid fromRes(double resx, double resy, double resz, org.deegree.geometry.Envelope targetEnvelope)
          Create a Gird for the given pixel resolution and output envelope
static Grid fromSize(int width, int height, int depth, org.deegree.geometry.Envelope targetEnvelope)
          Create a Gird for the given grid size and output envelope
 int getDepth()
           
 org.deegree.geometry.Envelope getEnvelope()
           
 int getHeight()
           
 double getResolution()
           
 int getWidth()
           
 java.lang.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,
                            org.deegree.geometry.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,
                           org.deegree.geometry.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 org.deegree.geometry.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.