Package com.luciad.format.gdf
Interface ILcdGDFFeature
- All Superinterfaces:
Cloneable
,ILcdBounded
,ILcdCloneable
,ILcdDataObject
,ILcdShape
,Serializable
- All Known Subinterfaces:
ILcdGDFAreaFeature
,ILcdGDFComplexFeature
,ILcdGDFLineFeature
,ILcdGDFPointFeature
This interface describes general properties of a GDF Feature. Features are the
basic building blocks of GDF models, and represent real world objects (e.g.
roads, lakes, buildings, ...) All objects contained in models decoded by the
TLcdGDFModelDecoder will implement this interface.
- Since:
- 5.1
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(int aIndex) Returns the attribute at the given index.int
Returns the number of attributes of this feature.Returns the feature category to which this feature belongs.Returns the feature class to which this feature belongs.Returns the unique TLcdGDFFeatureKey of this feature.getRelationship
(int aIndex) Returns the relationship at the given index.int
Returns the number of relationships of this feature.Returns the source description of this feature, or null if none exists.Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.util.ILcdCloneable
clone
Methods inherited from interface com.luciad.datamodel.ILcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
Methods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Method Details
-
getFeatureCategory
TLcdGDFFeatureCategory getFeatureCategory()Returns the feature category to which this feature belongs.- Returns:
- the TLcdGDFFeatureCategory to which this feature belongs.
-
getFeatureClass
TLcdGDFFeatureClass getFeatureClass()Returns the feature class to which this feature belongs.- Returns:
- the feature class to which this feature belongs.
-
getSourceDescription
ILcdGDFSourceDescription getSourceDescription()Returns the source description of this feature, or null if none exists.- Returns:
- the source description of this feature.
-
getAttributeCount
int getAttributeCount()Returns the number of attributes of this feature.- Returns:
- the number of attributes of this feature.
-
getAttribute
Returns the attribute at the given index.- Parameters:
aIndex
- the index of the attribute to be returned.- Returns:
- the attribute at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getAttributeCount()
.
-
getRelationshipCount
int getRelationshipCount()Returns the number of relationships of this feature.- Returns:
- the number of relationships of this feature.
-
getRelationship
Returns the relationship at the given index.- Parameters:
aIndex
- the index of the relationship to be returned.- Returns:
- the relationship at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getRelationshipCount()
.
-
getFeatureKey
TLcdGDFFeatureKey getFeatureKey()Returns the unique TLcdGDFFeatureKey of this feature.- Returns:
- the feature key of this feature.
-