<< Click to Display Table of Contents >>
new sg.geometry.MultiLineString()
Description
create a multi-line string.
Position
Geometry.js
Properties
Properties |
Type |
Description |
extent |
sg.geometry.Extent |
Geometry extent |
parts |
Array.<sg.geometry.Geometry> |
Array of geometries |
type |
String |
Geometry type |
Methods
Methods |
Type |
Description |
||||||
addPart(part) |
sg.geometry.Geometry |
add geometries to the collection
|
||||||
toWkt() |
Returns: String |
return WKT string Returns:
|
||||||
getExtent() |
Returns: sg.geometry.Extent |
return geometry extent Returns:
|
||||||
update() |
sg.geometry.MultiLineString |
update line attribute (After update, the old data would be replaced by the new data.)
|
||||||
getFirstPoint_() |
Returns: sg.geometry.Point |
Get the first vertex of a multi-line. Returns:
|
||||||
getCentroid() |
Returns: sg.geometry.Point |
return the centroid of a multi-line Returns:
|
||||||
Clone() |
Returns: sg.geometry.MultiLineString |
Copy the multi-line geomtery object Returns:
|
||||||
forEachVertex(callback) |
function |
Get each verttex of a multi-line geomtery object
callback(context) { //Vertex Context.point; //Vertex index Context.pointIndex; }
|
Example
|
©2015 Supergeo Technologies Inc.