public class GeometryDescriptorImpl extends AttributeDescriptorImpl implements GeometryDescriptor
defaultValue
isNillable, 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, toString
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
getDefaultValue
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
public GeometryDescriptorImpl(GeometryType type, Name name, int min, int max, boolean isNillable, Object defaultValue)
public GeometryType getType()
PropertyDescriptor
This value should never be null
. The type contains information about the
value of the property such as its java class.
getType
in interface AttributeDescriptor
getType
in interface GeometryDescriptor
getType
in interface PropertyDescriptor
getType
in class AttributeDescriptorImpl
PropertyDescriptor.getType()
public CoordinateReferenceSystem getCoordinateReferenceSystem()
GeometryDescriptor
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.
getCoordinateReferenceSystem
in interface GeometryDescriptor
public String getLocalName()
AttributeDescriptor
getName().getLocalPart
().getLocalName
in interface AttributeDescriptor
getLocalName
in class AttributeDescriptorImpl
Copyright © 1996–2023 Geotools. All rights reserved.