Namespace: Geometry

ol.geom. Geometry

Abstract base class; normally only used for creating subclasses and not instantiated in apps. Base class for vector geometries.

See:

Methods


convexHull()

Compute a convex hull on a geometry using Andrew's Monotone Chain Algorithm

Returns:

the convex hull vertices

Type
Array.<ol.geom.Point>

cspline(options)

Cache cspline calculation on a geometry

Parameters:
Name Type Description
options
Properties
Name Type Description
tension Number

a [0,1] number / can be interpreted as the "length" of the tangent, default 0.5

resolution Number

size of segment to split

pointsPerSeg Integer

number of points per segment to add if no resolution is provided, default add 10 points per segment

Returns:
Type
ol.geom.Geometry