Class MultiCurve

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<Curve>

    @NonNullByDefault
    public class MultiCurve
    extends MultiGeometry<Curve>
    The MULTICURVE is a collection of curves, which can include linear strings, circular strings or compound strings. It only specifies a type of Geometry as it could contain LineStrings and CompoundCurves.
    Author:
    Sebastian Baumhekel
    See Also:
    Serialized Form
    • Field Detail

      • TYPE

        public static final int TYPE
        The OGIS geometry type number for aggregate curves, which can include linear strings, circular strings or compound strings.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MultiCurve

        public MultiCurve()
        Constructs an instance.
      • MultiCurve

        public MultiCurve​(java.lang.Iterable<Curve> lines)
        Constructs an instance.
        Parameters:
        lines - lines
        Throws:
        java.lang.IllegalArgumentException - if given lines are not of a curve type
    • Method Detail

      • length

        public double length()
        Gets the length of this line.
        Returns:
        length