Class MultiCurve

All Implemented Interfaces:
Serializable, 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:
  • Field Details

    • 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:
  • Constructor Details

    • MultiCurve

      public MultiCurve()
      Constructs an instance.
    • MultiCurve

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

    • length

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