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.
-
OGDIFeatureAttributes(ecs_Object, Vector)
- Overloads the creation of a FeatureAttributes with an ecs structure.
-
OGDIFeatureAttributes(String, OGDICoordinate, OGDICoordinate, Object[], Vector)
- Creates a FeatureAttributes instance.
-
getAttributes()
- Gets the attributes of an OGDI object.
-
getId()
- Gets the id of an object.
-
getMaximum()
- Gets the maximum point of an object.
-
getMinimum()
- Gets the mimimum point of an object.
-
toString()
- Gets the complete object information.
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
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
getId
public String getId()
- Gets the id of an object.
- Parameters:
- no - parameter
- Returns:
- a string id
- Throws: no
- exception
getMinimum
public OGDICoordinate getMinimum()
- Gets the mimimum point of an object.
- Parameters:
- no - parameter
- Returns:
- a Coordinate object
- Throws: no
- exception
getMaximum
public OGDICoordinate getMaximum()
- Gets the maximum point of an object.
- Parameters:
- no - parameter
- Returns:
- a Coordinate object
- Throws: no
- exception
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
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