Constructs a LinearRing from the given source of a line. Will close the line if it's not already closed
An identifier for the LineString
ReadonlyidId of the geometry
ProtectedrawSpatial Reference of the geometry
Returns the number of contained points.
Returns an array of the contained lines formatted as API Point objects. A new array is returned each time this is called.
Returns the string 'LinearRing'.
ProtectedchildProtectedgeoReturns an array of point arrays (e.g. [[x1, y1], [x2, y2]] )
Will update the n-th contained point with the values of the point parameter. It is assumed the point is in the same spatial reference as the Multipoint
StaticcloseWill inspect an array of verticies. If the last vertex is different than the first vertex, will add a copy of the first vertex to the end, thus closing the line. The array parameter will be modified
An array of 2-element arrays of verticies.
StaticfromOptionalid: string | numberStaticfromOptionalid: string | numberStaticparse
Baseclass of all geometries. All geometry types must derive from this class. Not intented to be instantiated on its own.