public interface GeometryHandler
Modifier and Type | Method and Description |
---|---|
Object |
createGeometry(Instance instance,
int srsDimension)
Create a geometry value from a given instance.
|
Set<QName> |
getSupportedTypes()
Get the geometry types supported by the geometry handler.
|
Iterable<TypeConstraint> |
getTypeConstraints(TypeDefinition type)
Get the type constraints to associated with a geometry type definition.
This method should at least return the Binding and
GeometryType constraints. |
Set<QName> getSupportedTypes()
Iterable<TypeConstraint> getTypeConstraints(TypeDefinition type) throws GeometryNotSupportedException
Binding
and
GeometryType
constraints. Usually the binding should be
GeometryProperty
.type
- the type definition the constraints will be associated toGeometryNotSupportedException
- if the type definition doesn't
represent a geometry type supported by the handlerObject createGeometry(Instance instance, int srsDimension) throws GeometryNotSupportedException
instance
- the instancesrsDimension
- the dimension of the instanceBinding
created in
getTypeConstraints(TypeDefinition)
.GeometryNotSupportedException
- if the type definition doesn't
represent a geometry type supported by the handlerBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a