Abstract base class; normally only used for creating subclasses and not instantiated in apps. Base class for vector geometries.
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 optionsProperties
Name Type Description tensionNumber a [0,1] number / can be interpreted as the "length" of the tangent, default 0.5
resolutionNumber size of segment to split
pointsPerSegInteger number of points per segment to add if no resolution is provided, default add 10 points per segment
Returns:
- Type
- ol.geom.Geometry