public class GeometryDescriptorImpl extends AttributeDescriptorImpl implements GeometryDescriptor
defaultValueisNillable, maxOccurs, minOccurs, name, type| Constructor and Description |
|---|
GeometryDescriptorImpl(GeometryType type,
Name name,
int min,
int max,
boolean isNillable,
Object defaultValue) |
| Modifier and Type | Method and 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.
|
equals, getDefaultValue, hashCode, toStringgetMaxOccurs, getMinOccurs, getName, getUserData, isNillablegetDefaultValuegetMaxOccurs, getMinOccurs, getName, getUserData, isNillablepublic GeometryDescriptorImpl(GeometryType type, Name name, int min, int max, boolean isNillable, Object defaultValue)
public GeometryType getType()
PropertyDescriptorThis value should never be null. The type contains information about the
value of the property such as its java class.
getType in interface AttributeDescriptorgetType in interface GeometryDescriptorgetType in interface PropertyDescriptorgetType in class AttributeDescriptorImplPropertyDescriptor.getType()public CoordinateReferenceSystem getCoordinateReferenceSystem()
GeometryDescriptorThis 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.
getCoordinateReferenceSystem in interface GeometryDescriptorpublic String getLocalName()
AttributeDescriptor
getName().getLocalPart().getLocalName in interface AttributeDescriptorgetLocalName in class AttributeDescriptorImplCopyright © 1996–2021 Geotools. All rights reserved.