Package org.geotools.feature.type
Class BasicFeatureTypes
Object
BasicFeatureTypes
Defines required attributes for Annotations.
Annotations represent a text based geographic feature. The geometry stored in the feature indicates where the text
should be drawn and the attribute indicated by the #ANNOTATION_ATTRIBUTE_NAME attribute holds the text to be
displayed for the feature.
Example:
if ( feature.getFeatureType().isDescendedFrom( AnnotationFeatureType.ANNOTATION ) )
{
String attributeName = (String)feature.getAttribute( AnnotationFeatureType.ANNOTATION_ATTRIBUTE_NAME );
String annotationText = (String)feature.getAttribute( attributeName );
... // Do something with the annotation text and feature
}
- Author:
- John Meagher
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault namespace used for our POINT, LINE, POLYGON types.static final SimpleFeatureTypeThe base type for all featuresstatic final StringThe attribute name used to store the geometrystatic final SimpleFeatureTypeThe FeatureType reference that should be used for Linesstatic final SimpleFeatureTypeThe FeatureType reference that should be used for Pointsstatic final SimpleFeatureTypeThe FeatureType reference that should be used for Polygons -
Method Summary
-
Field Details
-
FEATURE
The base type for all features -
POLYGON
The FeatureType reference that should be used for Polygons -
POINT
The FeatureType reference that should be used for Points -
LINE
The FeatureType reference that should be used for Lines -
GEOMETRY_ATTRIBUTE_NAME
The attribute name used to store the geometry- See Also:
-
DEFAULT_NAMESPACE
Default namespace used for our POINT, LINE, POLYGON types.- See Also:
-