use of eu.esdihumboldt.hale.common.schema.model.TypeConstraint in project hale by halestudio.
the class CircleByCenterPointHandler method initConstraints.
/**
* @see eu.esdihumboldt.hale.io.gml.geometry.FixedConstraintsGeometryHandler#initConstraints()
*/
@Override
protected Collection<? extends TypeConstraint> initConstraints() {
Collection<TypeConstraint> constraints = new ArrayList<TypeConstraint>(2);
constraints.add(Binding.get(GeometryProperty.class));
constraints.add(GeometryType.get(LineString.class));
constraints.add(new GeometryFactory(this));
return constraints;
}
use of eu.esdihumboldt.hale.common.schema.model.TypeConstraint in project hale by halestudio.
the class GenericGeometryHandler method initConstraints.
/**
* @see FixedConstraintsGeometryHandler#initConstraints()
*/
@Override
protected Collection<? extends TypeConstraint> initConstraints() {
Collection<TypeConstraint> constraints = new ArrayList<TypeConstraint>(3);
// binding is collection, as we can't be sure that all contained
// geometries share the same CRS
constraints.add(Binding.get(Collection.class));
// set element type binding to GeometryProperty
constraints.add(ElementType.get(GeometryProperty.class));
// geometry binding is Geometry, as we can't narrow it down further
constraints.add(GeometryType.get(Geometry.class));
// set geometry factory constraint
constraints.add(new GeometryFactory(this));
return constraints;
}
use of eu.esdihumboldt.hale.common.schema.model.TypeConstraint in project hale by halestudio.
the class LinearRingHandler method initConstraints.
/**
* @see eu.esdihumboldt.hale.io.gml.geometry.FixedConstraintsGeometryHandler#initConstraints()
*/
@Override
protected Collection<? extends TypeConstraint> initConstraints() {
Collection<TypeConstraint> constraints = new ArrayList<TypeConstraint>(2);
constraints.add(Binding.get(GeometryProperty.class));
constraints.add(GeometryType.get(LinearRing.class));
constraints.add(new GeometryFactory(this));
return constraints;
}
use of eu.esdihumboldt.hale.common.schema.model.TypeConstraint in project hale by halestudio.
the class PointHandler method initConstraints.
/**
* @see FixedConstraintsGeometryHandler#initConstraints()
*/
@Override
protected Collection<? extends TypeConstraint> initConstraints() {
Collection<TypeConstraint> constraints = new ArrayList<TypeConstraint>(2);
// contains one point
constraints.add(Binding.get(GeometryProperty.class));
constraints.add(GeometryType.get(Point.class));
// set geometry factory constraint
constraints.add(new GeometryFactory(this));
return constraints;
}
use of eu.esdihumboldt.hale.common.schema.model.TypeConstraint in project hale by halestudio.
the class PolygonHandler method initConstraints.
/**
* @see FixedConstraintsGeometryHandler#initConstraints()
*/
@Override
protected Collection<? extends TypeConstraint> initConstraints() {
Collection<TypeConstraint> constraints = new ArrayList<TypeConstraint>(2);
constraints.add(Binding.get(GeometryProperty.class));
constraints.add(GeometryType.get(Polygon.class));
constraints.add(new GeometryFactory(this));
return constraints;
}
Aggregations