org.opengis.feature.type
Interface GeometryDescriptor

All Superinterfaces:
AttributeDescriptor, PropertyDescriptor
All Known Subinterfaces:
ChoiceGeometryType
All Known Implementing Classes:
ChoiceGeometryTypeImpl, GeometryDescriptorImpl

public interface GeometryDescriptor
extends AttributeDescriptor

Describes an instance of a geometry attribute.

This interface adds no additional methods, the point of it is convenience to type narrow getType() to GeometryType.

Author:
Justin Deoliveira, The Open Planning Project

Method Summary
 CoordinateReferenceSystem getCoordinateReferenceSystem()
          The coordinate reference system in which these geometries are defined.
 GeometryType getType()
          Override of AttributeDescriptor.getType() which type narrows to GeometryType.
 
Methods inherited from interface AttributeDescriptor
getDefaultValue, getLocalName
 
Methods inherited from interface PropertyDescriptor
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
 

Method Detail

getType

GeometryType getType()
Override of AttributeDescriptor.getType() which type narrows to GeometryType.

Specified by:
getType in interface AttributeDescriptor
Specified by:
getType in interface PropertyDescriptor
See Also:
PropertyDescriptor.getType()

getCoordinateReferenceSystem

CoordinateReferenceSystem getCoordinateReferenceSystem()
The coordinate reference system in which these geometries are defined.

This method may return null, but this should only occur in cases where the actual crs is not known. A common case is when a shapefile does not have an accompanied .prj file.



Copyright © 1996-2014 Geotools. All Rights Reserved.