Skip to main content

multiCurve

Creates a MultiCurve geometry from an array of curves.

Each curve can be either LineString, CircularString or CompoundCurve.

Type Parameters

  • P

Parameters

NameTypeDefaultDescription
geometries( LineString | CircularString | CompoundCurve )[]Array of curve geometry objects to be included in the collection
options?objectOptional geometry options
options.id?number | stringOptional identifier to be assigned to the geometry instance.
options.properties?POptional data to be assigned to the geometry instance.
options.consume?booleanfalseWhether to consume the input geometries - consumed geometries become detached, are no longer valid and should not be used.
When true the ownership of input geometries is passed to created collection geometry, no extra copies are made, but the input geometries can no longer be used on their own.
When false the clones of input geometries are used to create a collection geometry.

Returns

MultiCurve<P>

A new MultiCurve geometry

Throws

Examples