org.geotools.feature.type
Class BasicFeatureTypes

java.lang.Object
  extended by org.geotools.feature.type.BasicFeatureTypes

public class BasicFeatureTypes
extends java.lang.Object

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
static java.lang.String DEFAULT_NAMESPACE
          Default namespace used for our POINT, LINE, POLYGON types.
static org.opengis.feature.simple.SimpleFeatureType FEATURE
          The base type for all features
static java.lang.String GEOMETRY_ATTRIBUTE_NAME
          The attribute name used to store the geometry
static org.opengis.feature.simple.SimpleFeatureType LINE
          The FeatureType reference that should be used for Lines
static org.opengis.feature.simple.SimpleFeatureType POINT
          The FeatureType reference that should be used for Points
static org.opengis.feature.simple.SimpleFeatureType POLYGON
          The FeatureType reference that should be used for Polygons
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEATURE

public static final org.opengis.feature.simple.SimpleFeatureType FEATURE
The base type for all features


POLYGON

public static final org.opengis.feature.simple.SimpleFeatureType POLYGON
The FeatureType reference that should be used for Polygons


POINT

public static final org.opengis.feature.simple.SimpleFeatureType POINT
The FeatureType reference that should be used for Points


LINE

public static final org.opengis.feature.simple.SimpleFeatureType LINE
The FeatureType reference that should be used for Lines


GEOMETRY_ATTRIBUTE_NAME

public static final java.lang.String GEOMETRY_ATTRIBUTE_NAME
The attribute name used to store the geometry

See Also:
Constant Field Values

DEFAULT_NAMESPACE

public static final java.lang.String DEFAULT_NAMESPACE
Default namespace used for our POINT, LINE, POLYGON types.

See Also:
Constant Field Values


Copyright © 1996-2010 Geotools. All Rights Reserved.