PolylinePipeline

PolylinePipeline

PolylinePipeline

DOC_TBA

Methods

<static> wrapLongitude

Breaks a Polyline into segments such that it does not cross the ±180 degree meridian of an ellipsoid.

Parameters:
Name Type Description
ellipsoid Ellipsoid The ellipsoid to wrap around.
positions Array The polyline's Cartesian positions.
Returns:
An array of polyline segment objects containing the Cartesian and Cartographic positions and indices.
Example
var polylines = new PolylineCollection();
polylines.add(...);
var positions = polylines.get(0).getPositions();
var segments = PolylinePipeline.wrapLongitude(ellipsoid, positions);
See: