Package org.geotools.api.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()
toGeometryType
.- Author:
- Justin Deoliveira, The Open Planning Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CoordinateReferenceSystem
getCoordinateReferenceSystem()
The coordinate reference system in which these geometries are defined.GeometryType
getType()
Override ofAttributeDescriptor.getType()
which type narrows toGeometryType
.-
Methods inherited from interface AttributeDescriptor
getDefaultValue, getLocalName
-
Methods inherited from interface PropertyDescriptor
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
-
-
-
-
Method Detail
-
getType
GeometryType getType()
Override ofAttributeDescriptor.getType()
which type narrows toGeometryType
.- Specified by:
getType
in interfaceAttributeDescriptor
- Specified by:
getType
in interfacePropertyDescriptor
- 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.
-
-