Search in sources :

Example 1 with GeometryFactory

use of eu.esdihumboldt.hale.io.gml.geometry.constraint.GeometryFactory in project hale by halestudio.

the class ArcByCenterPointHandler method 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;
}
Also used : DefaultGeometryProperty(eu.esdihumboldt.hale.common.instance.geometry.DefaultGeometryProperty) GeometryProperty(eu.esdihumboldt.hale.common.schema.geometry.GeometryProperty) GeometryFactory(eu.esdihumboldt.hale.io.gml.geometry.constraint.GeometryFactory) LineString(com.vividsolutions.jts.geom.LineString) TypeConstraint(eu.esdihumboldt.hale.common.schema.model.TypeConstraint) ArrayList(java.util.ArrayList)

Example 2 with GeometryFactory

use of eu.esdihumboldt.hale.io.gml.geometry.constraint.GeometryFactory in project hale by halestudio.

the class CircleHandler method 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;
}
Also used : DefaultGeometryProperty(eu.esdihumboldt.hale.common.instance.geometry.DefaultGeometryProperty) GeometryProperty(eu.esdihumboldt.hale.common.schema.geometry.GeometryProperty) GeometryFactory(eu.esdihumboldt.hale.io.gml.geometry.constraint.GeometryFactory) LineString(com.vividsolutions.jts.geom.LineString) TypeConstraint(eu.esdihumboldt.hale.common.schema.model.TypeConstraint) ArrayList(java.util.ArrayList)

Example 3 with GeometryFactory

use of eu.esdihumboldt.hale.io.gml.geometry.constraint.GeometryFactory in project hale by halestudio.

the class CurveHandler 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 MultiLineString - is this a problem?
    constraints.add(GeometryType.get(LineString.class));
    constraints.add(new GeometryFactory(this));
    return constraints;
}
Also used : GeometryProperty(eu.esdihumboldt.hale.common.schema.geometry.GeometryProperty) GeometryFactory(eu.esdihumboldt.hale.io.gml.geometry.constraint.GeometryFactory) LineString(com.vividsolutions.jts.geom.LineString) TypeConstraint(eu.esdihumboldt.hale.common.schema.model.TypeConstraint) ArrayList(java.util.ArrayList)

Example 4 with GeometryFactory

use of eu.esdihumboldt.hale.io.gml.geometry.constraint.GeometryFactory in project hale by halestudio.

the class EnvelopeHandler 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(Polygon.class));
    constraints.add(new GeometryFactory(this));
    return constraints;
}
Also used : DefaultGeometryProperty(eu.esdihumboldt.hale.common.instance.geometry.DefaultGeometryProperty) GeometryProperty(eu.esdihumboldt.hale.common.schema.geometry.GeometryProperty) GeometryFactory(eu.esdihumboldt.hale.io.gml.geometry.constraint.GeometryFactory) TypeConstraint(eu.esdihumboldt.hale.common.schema.model.TypeConstraint) ArrayList(java.util.ArrayList) Polygon(com.vividsolutions.jts.geom.Polygon)

Example 5 with GeometryFactory

use of eu.esdihumboldt.hale.io.gml.geometry.constraint.GeometryFactory in project hale by halestudio.

the class LineStringHandler 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;
}
Also used : DefaultGeometryProperty(eu.esdihumboldt.hale.common.instance.geometry.DefaultGeometryProperty) GeometryProperty(eu.esdihumboldt.hale.common.schema.geometry.GeometryProperty) GeometryFactory(eu.esdihumboldt.hale.io.gml.geometry.constraint.GeometryFactory) LineString(com.vividsolutions.jts.geom.LineString) TypeConstraint(eu.esdihumboldt.hale.common.schema.model.TypeConstraint) ArrayList(java.util.ArrayList)

Aggregations

GeometryProperty (eu.esdihumboldt.hale.common.schema.geometry.GeometryProperty)15 GeometryFactory (eu.esdihumboldt.hale.io.gml.geometry.constraint.GeometryFactory)15 ArrayList (java.util.ArrayList)15 TypeConstraint (eu.esdihumboldt.hale.common.schema.model.TypeConstraint)14 DefaultGeometryProperty (eu.esdihumboldt.hale.common.instance.geometry.DefaultGeometryProperty)13 LineString (com.vividsolutions.jts.geom.LineString)7 Polygon (com.vividsolutions.jts.geom.Polygon)3 Geometry (com.vividsolutions.jts.geom.Geometry)2 LinearRing (com.vividsolutions.jts.geom.LinearRing)2 Collection (java.util.Collection)2 GeometryCollection (com.vividsolutions.jts.geom.GeometryCollection)1 Point (com.vividsolutions.jts.geom.Point)1 CodeDefinition (eu.esdihumboldt.hale.common.instance.geometry.impl.CodeDefinition)1 MutableInstance (eu.esdihumboldt.hale.common.instance.model.MutableInstance)1 DefaultInstance (eu.esdihumboldt.hale.common.instance.model.impl.DefaultInstance)1 CRSDefinition (eu.esdihumboldt.hale.common.schema.geometry.CRSDefinition)1 HasValueFlag (eu.esdihumboldt.hale.common.schema.model.constraint.type.HasValueFlag)1 XmlMixedFlag (eu.esdihumboldt.hale.io.xsd.constraint.XmlMixedFlag)1 XMLStreamException (javax.xml.stream.XMLStreamException)1