ALKMaps.Geometry.Curve

A Curve is a MultiPoint, whose points are assumed to be connected.  To this end, we provide a “getLength()” function, which iterates through the points, summing the distances between them.

Inherits

Summary
ALKMaps.Geometry.CurveA Curve is a MultiPoint, whose points are assumed to be connected.
Properties
componentTypes{Array(String)} An array of class names representing the types of components that the collection can include.
Constructor
ALKMaps.Geometry.Curve
Functions
getLength{Float} The length of the curve
getGeodesicLengthCalculate the approximate length of the geometry were it projected onto the earth.

Properties

componentTypes

{Array(String)} An array of class names representing the types of components that the collection can include.  A null value means the component types are not restricted.

Constructor

ALKMaps.Geometry.Curve

Parameters

point{Array(ALKMaps.Geometry.Point)}

Functions

getLength

getLength: function()

Returns

{Float} The length of the curve

getGeodesicLength

getGeodesicLength: function(projection)

Calculate the approximate length of the geometry were it projected onto the earth.

projection{ALKMaps.Projection} The spatial reference system for the geometry coordinates.  If not provided, Geographic/WGS84 is assumed.

Returns

{Float} The approximate geodesic length of the geometry in meters.

getLength: function()
{Float} The length of the curve
getGeodesicLength: function(projection)
Calculate the approximate length of the geometry were it projected onto the earth.
MultiPoint is a collection of Points.
Point geometry class.
Methods for coordinate transforms between coordinate systems.
Close