All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class com.las.ogdi.OGDIRegion
java.lang.Object
   |
   +----com.las.ogdi.OGDIRegion
  -  public class OGDIRegion
  -  extends Object
The Region class defines a delimiting zone of interest and resolution.
 Geographic objects are always located within the currently selected region.
 The northing and easting parameters are substituted with the coordinates 
 in the format defined by the type of projection. If using latlong as the 
 projection, the coordinates are specified in the same manner. 
 If using UTM, then utm values are required. The res parameter is used for 
 matrix/image coverage's.  This defines the resolution of the matrix/image being returned 
 from the server to the client. The coordinates are entered in the following order:OGDIRegion(West_limit, North_limit, East_limit, South_limit, EW_resolution, 
 NS_resolution).
 The correspondance with the parameters are: 
 OGDIRegion(x1, y1, x2, y2, xRes, yRes).
 Here's an example with latitude/longitude coordinates (in decimal degrees):
 OGDIRegion region = new OGDIRegion(-86.802, 37.6021, -73.0964, 24.8276, 0.006853, 
 0.006853);
 Here's an example with UTM coordinates (in metres):
 OGDIRegion region = new OGDIRegion(576235, 5033880, 606509, 5017050, 4.99983, 
 4.99983);
  -  Version:
  
-  1.0
  
-  Author:
  
-  Las Inc.
   
  -   OGDIRegion(double, double, double, double, double, double) OGDIRegion(double, double, double, double, double, double)
-   Creates a Region instance defined by a left reference, an upper reference,
 a right reference, a lower reference and two resolution (x and y),
 all expressed in current geographic units.
   
  -   getX1() getX1()
-   Gets the most-at-left x geographic reference in the current unit.
  
-   getX2() getX2()
-   Gets the most-at-right x geographic reference in the current unit.
  
-   getXRes() getXRes()
-   Gets the x-plane geographic resolution in the current unit.
  
-   getY1() getY1()
-   Gets the upper y geographic reference in the current unit.
  
-   getY2() getY2()
-   Gets the lower y geographic reference in the current unit.
  
-   getYRes() getYRes()
-   Gets the y-plane geographic resolution in the current unit.
  
-   setX1(double) setX1(double)
-   Sets the most-at-left x geographic reference in the current unit.
  
-   setX2(double) setX2(double)
-   Sets the most-at-right x geographic reference in the current unit.
  
-   setXRes(double) setXRes(double)
-   Sets the x-plane geographic resolution in the current unit.
  
-   setY1(double) setY1(double)
-   Sets the upper y geographic reference in the current unit.
  
-   setY2(double) setY2(double)
-   Sets the lower y geographic reference in the current unit.
  
-   setYRes(double) setYRes(double)
-   Sets the y-plane geographic resolution in the current unit.
  
-   toString() toString()
-   Gets the complete region description.
   
 OGDIRegion
OGDIRegion
 public OGDIRegion(double x1,
                   double y1,
                   double x2,
                   double y2,
                   double xRes,
                   double yRes)
  -  Creates a Region instance defined by a left reference, an upper reference,
 a right reference, a lower reference and two resolution (x and y),
 all expressed in current geographic units.
   
- 
    -  Parameters:
    
-  x1 - the left reference of the region in the current units
    -  y1 - the upper reference of the region in the current units
    -  x2 - the right reference of the region in the current units
    -  y2 - the lower reference of the region in the current units
    -  xRes - the x-plane resolution in the current units
    -  yRes - the y-plane resolution in the current units
    
-  Returns:
    
-  no return
    
-  Throws: IllegalArgumentException
    
-  if x1 not less than x2, y2 not less than y1 or negative resolution
  
 
   
 getY1
getY1
 public double getY1()
  -  Gets the upper y geographic reference in the current unit.
   
- 
    -  Parameters:
    
-  no - parameter
    
-  Returns:
    
-  a real number
    
-  Throws: no
    
-  exception
  
 
 setY1
setY1
 public void setY1(double y1)
  -  Sets the upper y geographic reference in the current unit.
   
- 
    -  Parameters:
    
-  y1 - a real number
    
-  Returns:
    
-  no return
    
-  Throws: IllegalArgumentException
    
-  if y1 is not greater than lower reference
  
 
 getY2
getY2
 public double getY2()
  -  Gets the lower y geographic reference in the current unit.
   
- 
    -  Parameters:
    
-  no - parameter
    
-  Returns:
    
-  a real number
    
-  Throws: no
    
-  exception
  
 
 setY2
setY2
 public void setY2(double y2)
  -  Sets the lower y geographic reference in the current unit.
   
- 
    -  Parameters:
    
-  y2 - a real number
    
-  Returns:
    
-  no return
    
-  Throws: IllegalArgumentException
    
-  if y2 is not less than upper reference
  
 
 getX2
getX2
 public double getX2()
  -  Gets the most-at-right x geographic reference in the current unit.
   
- 
    -  Parameters:
    
-  no - parameter
    
-  Returns:
    
-  a real number
    
-  Throws: no
    
-  exception
  
 
 setX2
setX2
 public void setX2(double x2)
  -  Sets the most-at-right x geographic reference in the current unit.
   
- 
    -  Parameters:
    
-  x2 - a real number
    
-  Returns:
    
-  no return
    
-  Throws: IllegalArgumentException
    
-  if x2 is not greater than left reference
  
 
 getX1
getX1
 public double getX1()
  -  Gets the most-at-left x geographic reference in the current unit.
   
- 
    -  Parameters:
    
-  no - parameter
    
-  Returns:
    
-  a real number
    
-  Throws: no
    
-  exception
  
 
 setX1
setX1
 public void setX1(double x1)
  -  Sets the most-at-left x geographic reference in the current unit.
   
- 
    -  Parameters:
    
-  x1 - a real number
    
-  Returns:
    
-  no return
    
-  Throws: IllegalArgumentException
    
-  if x1 is not less than right reference
  
 
 getXRes
getXRes
 public double getXRes()
  -  Gets the x-plane geographic resolution in the current unit.
   
- 
    -  Parameters:
    
-  no - parameter
    
-  Returns:
    
-  a real number
    
-  Throws: no
    
-  exception
  
 
 setXRes
setXRes
 public void setXRes(double xRes)
  -  Sets the x-plane geographic resolution in the current unit.
   
- 
    -  Parameters:
    
-  xRes - a real number
    
-  Returns:
    
-  no return
    
-  Throws: IllegalArgumentException
    
-  if resolution is zero or less
  
 
 getYRes
getYRes
 public double getYRes()
  -  Gets the y-plane geographic resolution in the current unit.
   
- 
    -  Parameters:
    
-  no - parameter
    
-  Returns:
    
-  a real number
    
-  Throws: no
    
-  exception
  
 
 setYRes
setYRes
 public void setYRes(double yRes)
  -  Sets the y-plane geographic resolution in the current unit.
   
- 
    -  Parameters:
    
-  yRes - a real number
    
-  Returns:
    
-  no return
    
-  Throws: IllegalArgumentException
    
-  if resolution is zero or less
  
 
 toString
toString
 public String toString()
  -  Gets the complete region description.
   
- 
    -  Parameters:
    
-  no - parameter
    
-  Returns:
    
-  the region (west, north, east, south, x-plane and y-plane resolution) as a string
    
-  Throws: no
    
-  exception
    
-  Overrides:
    
-  toString in class Object
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index