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.
| OpenLayers. | A 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 | |
| OpenLayers. | |
| Functions | |
| getLength | {Float} The length of the curve |
| getGeodesicLength | Calculate the approximate length of the geometry were it projected onto the earth. |
| point | {Array(OpenLayers.Geometry.Point)} |
getGeodesicLength: function( projection )
Calculate the approximate length of the geometry were it projected onto the earth.
| projection | {OpenLayers.Projection} The spatial reference system for the geometry coordinates. If not provided, Geographic/WGS84 is assumed. |
{Float} The appoximate geodesic length of the geometry in meters.
{Float} The length of the curve
getLength: function()
Calculate the approximate length of the geometry were it projected onto the earth.
getGeodesicLength: function( projection )