<< Click to Display Table of Contents >>
new sg.geometry.MultiPolygon()
Description
create a multi-polygon object.
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
|
||||||||||
getExtent() |
Returns: sg.geometry.Extent |
return geometry extent object Returns:
|
||||||||||
update(updatePart) |
None |
whether to update other geometry parts
|
||||||||||
toWkt() |
Returns: String |
convert to WKT string Returns:
|
||||||||||
Contains(geom) |
sg.geometry.Geometry |
return whether a geometry object is contained in a multi-polygon geometry object.
Returns:
|
||||||||||
getCentroid() |
Returns: sg.geometry.Point |
return the centroid of a multi-polygon geometry object Returns:
|
||||||||||
getFirstPoint_ |
Returns: sg.geometry.Point |
Get the first vertex of a multi-polygon geometry object Returns:
|
||||||||||
Clone() |
Returns: sg.geometry.MultiPolygon |
Copy the multi-polygon geomtery object Returns:
|
||||||||||
forEachVertex(callback) |
function |
Get each verttex of a mult-polygon
callback(context) { //Vertex Context.point; //Vertex index Context.pointIndex; } |
Example
|
©2015 Supergeo Technologies Inc.