Package org.geotools.api.feature.type
Interface FeatureType
-
- All Superinterfaces:
AttributeType
,ComplexType
,PropertyType
- All Known Subinterfaces:
SimpleFeatureType
- All Known Implementing Classes:
ComplexFeatureTypeImpl
,FeatureTypeImpl
,FeatureTypeProxy
,NonFeatureTypeProxy
,SimpleFeatureTypeImpl
,UniqueNameFeatureTypeImpl
,VPFFeatureClass
,VPFFeatureType
public interface FeatureType extends ComplexType
The type of a Feature.Beyond a complex type, a feature defines some additional information:
- The default geometric attribute
- The coordinate referencing system (derived from the default geometry)
- Author:
- Jody Garnett, Refractions Research, Justin Deoliveira, The Open Planning Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CoordinateReferenceSystem
getCoordinateReferenceSystem()
The coordinate reference system of the feature.GeometryDescriptor
getGeometryDescriptor()
Describe the default geometric attribute for this feature.boolean
isIdentified()
Features are always identified.-
Methods inherited from interface AttributeType
getSuper
-
Methods inherited from interface ComplexType
getBinding, getDescriptor, getDescriptor, getDescriptors, isInline
-
Methods inherited from interface PropertyType
equals, getDescription, getName, getRestrictions, getUserData, hashCode, isAbstract
-
-
-
-
Method Detail
-
isIdentified
boolean isIdentified()
Features are always identified.- Specified by:
isIdentified
in interfaceAttributeType
- Returns:
true
- See Also:
Attribute#getID()
-
getGeometryDescriptor
GeometryDescriptor getGeometryDescriptor()
Describe the default geometric attribute for this feature.This method returns
null
in the case where no such attribute exists.- Returns:
- The descriptor of the default geometry attribute, or
null
.
-
getCoordinateReferenceSystem
CoordinateReferenceSystem getCoordinateReferenceSystem()
The coordinate reference system of the feature.This value is derived from the default geometry attribute:
((GeometryType)getDefaultGeometry().getType()).getCRS();
This method will return
null
in the case where no default geometric attribute is defined.- Returns:
- The coordinate referencing system, or
null
.
-
-