use of eu.esdihumboldt.hale.common.schema.model.TypeConstraint in project hale by halestudio.
the class SurfaceHandler method initConstraints.
/**
* @see FixedConstraintsGeometryHandler#initConstraints()
*/
@Override
protected Collection<? extends TypeConstraint> initConstraints() {
Collection<TypeConstraint> constraints = new ArrayList<TypeConstraint>(2);
constraints.add(Binding.get(GeometryProperty.class));
// FIXME can also be a MultiPolygon - is this a problem?
constraints.add(GeometryType.get(Polygon.class));
constraints.add(new GeometryFactory(this));
return constraints;
}
Aggregations