public class Multipoint extends Geometry
Geometry.GeometryType
Modifier and Type | Method and Description |
---|---|
Multipoint |
addPoint(double[] points)
Adds an array of points to the Multipoint
|
Multipoint |
addPoint(double x,
double y)
Adds a point to the Multipoint.
|
Multipoint |
addPoint(Point point)
Adds a point to the Multipoint.
|
static Multipoint |
create(com.google.gwt.core.client.JavaScriptObject json)
Creates a new Multipoint object using a JSON object.
|
static Multipoint |
create(SpatialReference sr)
Creates a new Multipoint object.
|
Extent |
getExtent()
Gets the extent of all the points.
|
Point |
getPoint(int index)
Returns the point at the specified index.
|
com.google.gwt.core.client.JsArray<com.google.gwt.core.client.JsArrayNumber> |
getPoints()
An array of one or more points.
|
Point |
removePoint(int index)
Removes a point from the Multipoint.
|
Multipoint |
setPoint(int index,
Point point)
Updates the point at the specified index.
|
fromJson, geographicToWebMercator, getExtentForScale, getJson, getJsonType, getLength, getLineIntersection, getScale, getSpatialReference, getType, isClockwise, setSpatialReference, toJson, toMapGeometry, toMapPoint, toScreenGeometry, toScreenPoint, webMercatorToGeographic
public static Multipoint create(SpatialReference sr)
sr
- - Spatial reference of the geometry.public static Multipoint create(com.google.gwt.core.client.JavaScriptObject json)
json
- - JSON object representing the geometry.public final com.google.gwt.core.client.JsArray<com.google.gwt.core.client.JsArrayNumber> getPoints()
public final Multipoint addPoint(Point point)
point
- - The point to add.public final Multipoint addPoint(double x, double y)
x
- - X-Coordinate of the pointy
- - Y-Coordinate of the pointpublic final Multipoint addPoint(double[] points)
json
- - A JSON object representing a point.public final Extent getExtent()
public final Point getPoint(int index)
index
- - Positional index of the point in the points property.public final Point removePoint(int index)
index
- - The index of the point to remove.public final Multipoint setPoint(int index, Point point)
index
- - Positional index of the point in the points property.point
- - Point that specifies the new location.