|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.feature.type.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 }
Field Summary | |
static java.lang.String |
GEOMETRY_ATTRIBUTE_NAME
The attribute name used to store the geometry |
static FeatureType |
LINE
The FeatureType reference that should be used for Lines |
static FeatureType |
POINT
The FeatureType reference that should be used for Points |
static FeatureType |
POLYGON
The FeatureType reference that should be used for Polygons |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final FeatureType POLYGON
public static final FeatureType POINT
public static final FeatureType LINE
public static final java.lang.String GEOMETRY_ATTRIBUTE_NAME
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |