public interface ChoiceGeometryType extends GeometryType, GeometryDescriptor
Modifier and Type | Method and Description |
---|---|
Object |
convert(Object obj)
Yet another hack in order to use our FeatureType.
|
Class<?>[] |
getChoices()
Gets the choices
|
getCoordinateReferenceSystem
getSuper, isIdentified
equals, getBinding, getDescription, getName, getRestrictions, getUserData, hashCode, isAbstract
getCoordinateReferenceSystem, getType
getDefaultValue, getLocalName
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
Class<?>[] getChoices()
Object convert(Object obj)
Best to explain by Example.
Consider a choice between Polygon and MultiPolygon. It doesn't make sense to be a Geometry Attribute Type since normal attribute type inspection will allow users/clients to set Points and lines as legal attribute. For parsing purposes, this make the FeatureType a little more accurate. It is not perfect of course since The choice Line, Polygon and MultiPolygon still has to be of Type Geometry but it is a little better.
Copyright © 1996–2023 Geotools. All rights reserved.