All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.las.ogdi.OGDIArea

java.lang.Object
   |
   +----com.las.ogdi.OGDIFeature
           |
           +----com.las.ogdi.OGDIArea

public class OGDIArea
extends OGDIFeature
The Area class defines objects each composed of an array of Ring objects covering a single geographic entity.

 Area features are then composed of one or more rings. Rings are 
 similar to line features except that the last coordinate is always 
 equal to the first.

Version:
1.0
Author:
Las Inc.

Constructor Index

 o OGDIArea(OGDIRing[])
Creates an Area instance.
 o OGDIArea(OGDIRing[], OGDIFeatureAttributes)
Creates an Area instance with object information.

Method Index

 o getRings()
Gets the coordinates of an Area.
 o toString()
Gets the complete area description.

Constructors

 o OGDIArea
 public OGDIArea(OGDIRing ring[])
Creates an Area instance.

Parameters:
ring - the array of rings in the current coordinate system
Returns:
no return
Throws: IllegalArgumentException
if area is badly formatted (has less than 1 ring)
 o OGDIArea
 public OGDIArea(OGDIRing ring[],
                 OGDIFeatureAttributes info)
Creates an Area instance with object information.

Parameters:
ring - the array of rings in the current coordinate system
info - the object information
Returns:
no return
Throws: IllegalArgumentException
if area is badly formatted (has less than 1 ring)

Methods

 o getRings
 public OGDIRing[] getRings()
Gets the coordinates of an Area.

Parameters:
no - parameter
Returns:
a Ring array covering the area (a ring can be null if badly formatted)
Throws: no
exception
 o toString
 public String toString()
Gets the complete area description.

Parameters:
no - parameter
Returns:
the area's rings (and optionally its attributes) as a string
Throws: no
exception
Overrides:
toString in class OGDIFeature
See Also:
toString, toString

All Packages  Class Hierarchy  This Package  Previous  Next  Index