geom.CircularString()

class geom.CircularString(coords)
Arguments
  • coords (Array) – Coordinates array.

Create a new circularstring.

Example Use

Sample code to new circularstring:

>> var CircularString = require("geoscript/geom").CircularString;
>> var cs = new CircularString([[6.12, 10.0], [7.07, 7.07], [10.0, 0.0]]);
>> cs.controlPoints.length
3
>> cs.linear.getGeometryType()
LineString
>> cs.curvedWkt
CIRCULARSTRING (6.12 10.0, 7.07 7.07, 10.0 0.0)

Properties

In addition to the properties common to geom.LineString() subclasses, circularstring geometries have the properties documented below.

CircularString.curvedWkt

String() The curved WKT as a string.

CircularString.controlPoints

Array An array of the original control Points.

CircularString.linear

geom.LineString() A linearized LineString.

Methods

CircularString geometries have the methods common to geom.LineString() subclasses.