All Packages Class Hierarchy This Package Previous Next Index
Class com.las.ogdi.OGDILine
java.lang.Object
|
+----com.las.ogdi.OGDIFeature
|
+----com.las.ogdi.OGDILine
- public class OGDILine
- extends OGDIFeature
The Line class defines objects which holds an array of
Coordinate objects homogenous in direction.
- Version:
- 1.0
- Author:
- Las Inc.
-
OGDILine(OGDICoordinate[])
- Creates a Line instance with an array of coordinates.
-
OGDILine(OGDICoordinate[], OGDIFeatureAttributes)
- Creates a Line instance with an array of coordinates and object information.
-
getCoords()
- Gets the coordinates of a Line.
-
toString()
- Gets the complete line description.
OGDILine
public OGDILine(OGDICoordinate c[])
- Creates a Line instance with an array of coordinates.
- Parameters:
- c - the line of coordinates in the current coordinate system
- Returns:
- no return
- Throws: IllegalArgumentException
- if line is badly formatted (has less than 2 points)
OGDILine
public OGDILine(OGDICoordinate c[],
OGDIFeatureAttributes info)
- Creates a Line instance with an array of coordinates and object information.
- Parameters:
- c - the line of coordinates in the current coordinate system
- info - the object information
- Returns:
- no return
- Throws: IllegalArgumentException
- if line is badly formatted (has less than 2 points)
getCoords
public OGDICoordinate[] getCoords()
- Gets the coordinates of a Line.
- Parameters:
- no - parameter
- Returns:
- an array of Coordinate objects
- Throws: no
- exception
toString
public String toString()
- Gets the complete line description.
- Parameters:
- no - parameter
- Returns:
- the Line's coordinates (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