public class BasicFeatureTypes extends Object
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 }
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NAMESPACE
Default namespace used for our POINT, LINE, POLYGON types.
|
static SimpleFeatureType |
FEATURE
The base type for all features
|
static String |
GEOMETRY_ATTRIBUTE_NAME
The attribute name used to store the geometry
|
static SimpleFeatureType |
LINE
The FeatureType reference that should be used for Lines
|
static SimpleFeatureType |
POINT
The FeatureType reference that should be used for Points
|
static SimpleFeatureType |
POLYGON
The FeatureType reference that should be used for Polygons
|
public static final SimpleFeatureType FEATURE
public static final SimpleFeatureType POLYGON
public static final SimpleFeatureType POINT
public static final SimpleFeatureType LINE
public static final String GEOMETRY_ATTRIBUTE_NAME
public static final String DEFAULT_NAMESPACE
Copyright © 1996–2023 Geotools. All rights reserved.