Package org.geotools.feature.type
Class GeometryDescriptorImpl
- Object
-
- PropertyDescriptorImpl
-
- AttributeDescriptorImpl
-
- GeometryDescriptorImpl
-
- All Implemented Interfaces:
AttributeDescriptor
,GeometryDescriptor
,PropertyDescriptor
public class GeometryDescriptorImpl extends AttributeDescriptorImpl implements GeometryDescriptor
-
-
Field Summary
-
Fields inherited from class AttributeDescriptorImpl
defaultValue
-
Fields inherited from class PropertyDescriptorImpl
isNillable, maxOccurs, minOccurs, name, type
-
-
Constructor Summary
Constructors Constructor Description GeometryDescriptorImpl(GeometryType type, Name name, int min, int max, boolean isNillable, Object defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordinateReferenceSystem
getCoordinateReferenceSystem()
The coordinate reference system in which these geometries are defined.String
getLocalName()
The local name for this AttributeDescriptor.GeometryType
getType()
The type of the property defined by the descriptor.-
Methods inherited from class AttributeDescriptorImpl
equals, getDefaultValue, hashCode, toString
-
Methods inherited from class PropertyDescriptorImpl
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
-
Methods inherited from interface AttributeDescriptor
getDefaultValue
-
Methods inherited from interface PropertyDescriptor
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
-
-
-
-
Constructor Detail
-
GeometryDescriptorImpl
public GeometryDescriptorImpl(GeometryType type, Name name, int min, int max, boolean isNillable, Object defaultValue)
-
-
Method Detail
-
getType
public GeometryType getType()
Description copied from interface:PropertyDescriptor
The type of the property defined by the descriptor.This value should never be
null
. The type contains information about the value of the property such as its java class.- Specified by:
getType
in interfaceAttributeDescriptor
- Specified by:
getType
in interfaceGeometryDescriptor
- Specified by:
getType
in interfacePropertyDescriptor
- Overrides:
getType
in classAttributeDescriptorImpl
- See Also:
PropertyDescriptor.getType()
-
getCoordinateReferenceSystem
public CoordinateReferenceSystem getCoordinateReferenceSystem()
Description copied from interface:GeometryDescriptor
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.- Specified by:
getCoordinateReferenceSystem
in interfaceGeometryDescriptor
-
getLocalName
public String getLocalName()
Description copied from interface:AttributeDescriptor
The local name for this AttributeDescriptor. Specifically this returnsgetName().getLocalPart
().- Specified by:
getLocalName
in interfaceAttributeDescriptor
- Overrides:
getLocalName
in classAttributeDescriptorImpl
- Returns:
- The local name for this attribute descriptor.
-
-