public class GenericGeometryHandler extends FixedConstraintsGeometryHandler
Modifier and Type | Class and Description |
---|---|
static class |
GenericGeometryHandler.CRSWrapper
Wraps a
CRSDefinition . |
GML_NAMESPACE_CORE, NS_GML, NS_GML_32
Constructor and Description |
---|
GenericGeometryHandler() |
Modifier and Type | Method and Description |
---|---|
Object |
createGeometry(Instance instance,
int srsDimension)
Create a geometry value from a given instance.
|
protected Object |
createGeometry(Instance instance,
List<GeometryProperty<?>> childGeometries,
CRSDefinition defaultCrs)
Create a geometry value from a given instance.
|
protected Collection<? extends TypeConstraint> |
initConstraints()
Create the associated type constraints.
|
protected Set<? extends QName> |
initSupportedTypes()
Create the set of supported types.
|
checkType, getTypeConstraints
getGeometryFactory, getSupportedTypes
protected Set<? extends QName> initSupportedTypes()
AbstractGeometryHandler
initSupportedTypes
in class AbstractGeometryHandler
AbstractGeometryHandler.initSupportedTypes()
protected Collection<? extends TypeConstraint> initConstraints()
FixedConstraintsGeometryHandler
initConstraints
in class FixedConstraintsGeometryHandler
FixedConstraintsGeometryHandler.initConstraints()
public Object createGeometry(Instance instance, int srsDimension) throws GeometryNotSupportedException
GeometryHandler
instance
- the instancesrsDimension
- the dimension of the instanceBinding
created in
GeometryHandler.getTypeConstraints(TypeDefinition)
.GeometryNotSupportedException
- if the type definition doesn't
represent a geometry type supported by the handlerGeometryHandler.createGeometry(Instance, int)
protected Object createGeometry(Instance instance, List<GeometryProperty<?>> childGeometries, CRSDefinition defaultCrs) throws GeometryNotSupportedException
instance
- the instancechildGeometries
- the child geometries found in the instancedefaultCrs
- the definition of the default CRS for this instanceBinding
created in
FixedConstraintsGeometryHandler.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