All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.las.ogdi.OGDIFeatureAttributes

java.lang.Object
   |
   +----com.las.ogdi.OGDIFeatureAttributes

public class OGDIFeatureAttributes
extends Object
The FeatureAttributes class defines information on an OGDIFeature (id, bounding box, specific attributes). It can be null.

Version:
1.1
Author:
Las Inc.

Constructor Index

 o OGDIFeatureAttributes(ecs_Object, Vector)
Overloads the creation of a FeatureAttributes with an ecs structure.
 o OGDIFeatureAttributes(String, OGDICoordinate, OGDICoordinate, Object[], Vector)
Creates a FeatureAttributes instance.

Method Index

 o getAttributes()
Gets the attributes of an OGDI object.
 o getId()
Gets the id of an object.
 o getMaximum()
Gets the maximum point of an object.
 o getMinimum()
Gets the mimimum point of an object.
 o toString()
Gets the complete object information.

Constructors

 o OGDIFeatureAttributes
 public OGDIFeatureAttributes(String id,
                              OGDICoordinate minimum,
                              OGDICoordinate maximum,
                              Object attributes[],
                              Vector format)
Creates a FeatureAttributes instance. There should be a one-to-one relationship between attribute and format. If the attributes or format is null then getAttributes will be null.

Parameters:
id - the id of the geometric object
minimum - the minimum coordinate of the bounding box (upper left)
maximum - the maximum coordinate of the bounding box (lower right)
attributes - the array of specific attributes
format - the format of the attributes as OGDIAttributeFormat
Returns:
no return
Throws: IllegalArgumentException
if no id,minimum or maximum or an attribute has wrong format
 o OGDIFeatureAttributes
 public OGDIFeatureAttributes(ecs_Object info,
                              Vector format)
Overloads the creation of a FeatureAttributes with an ecs structure. If the attributes are empty or null or format is null then getAttributes will be null. If the format is empty, there is no validation so everything gets into String. Note: Format types retrieved by ecs are only String, Integer and Double.

Parameters:
info - the id, specific attributes and bounding box coordinates
format - the format of the attributes as OGDIAttributeFormat
Returns:
no return
Throws: IllegalArgumentException
if no id,minimum or maximum or an attribute has wrong format

Methods

 o getId
 public String getId()
Gets the id of an object.

Parameters:
no - parameter
Returns:
a string id
Throws: no
exception
 o getMinimum
 public OGDICoordinate getMinimum()
Gets the mimimum point of an object.

Parameters:
no - parameter
Returns:
a Coordinate object
Throws: no
exception
 o getMaximum
 public OGDICoordinate getMaximum()
Gets the maximum point of an object.

Parameters:
no - parameter
Returns:
a Coordinate object
Throws: no
exception
 o getAttributes
 public Object[] getAttributes()
Gets the attributes of an OGDI object. If the attributes or format is null then getAttributes will be null.

Parameters:
no - parameter
Returns:
null or an array of objects representing the values of the attributes
Throws: no
exception
See Also:
getAttributesFormat
 o toString
 public String toString()
Gets the complete object information.

Parameters:
no - parameter
Returns:
the object info (id, minimum, maximum and other attributes) as a string
Throws: no
exception
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index