A MultiPoint is a collection of points represented as a
H.geo.MultiGeometry with a H.geo.Point as generic type parameter T.
| Name | Type | Description |
|---|---|---|
points |
Array.<!H.geo.IPoint> |
The list of points which are initially represented by the MultiPoint. |
Throws:
-
if the
pointsarguments is not valid
Extends
Methods
-
equals (other)boolean inherited
-
Checks whether the geometry is equal to the geometry supplied by the caller. Two geometries are considered as equal if they represent the same geometry type and have equal coordinate values.
Name Type Description other* The geometry to check against
Returns:
Type Description boolean trueif the two geometries are equal, otherwisefalse -
getBoundingBox ()H.geo.Rect inherited
-
Returns the bounding rectangle of the geometry.
Returns:
Type Description H.geo.Rect the bounding rectangle of the geometry or nullif the bounding rectangle can't be computed (e.g. for a geometry without coordinates) -
getGeometries ()Array.<!T> inherited
-
Returns the aggregated geometries of the multi-geometry. The returned geometries must be treated as read-only to not violate the integrity of the multi-geometry.
Returns:
Type Description Array.<!T> An array of geometries -
push (geometry) inherited
-
Adds the specified geometry to the current multi-geometry.
Name Type Description geometryT A geometry which will be added to the current multi-geometry
Throws:
-
in case of invalid
geometryargument
-
-
remove (geometry)T inherited
-
Removes the specified geometry from the multi-geometry.
Name Type Description geometryT The geometry (by reference) to remove from this multi-geometry.
Returns:
Type Description T the removed geometry or nullif the geometry was not found -
removeAt (index)T inherited
-
Removes a contained geometry at the given index.
Name Type Description indexnumber The index of the geometry to remove.
Throws:
-
if no geometry exists at the given index.
Returns:
Type Description T the removed geometry. -
-
splice (index, opt_deleteCount, opt_items)Array.<!T> inherited
-
This method splices the specified MultiGeometry at the provided index, removing the specified number of items at that index and inserting new items.
Name Type Description indexnumber The index at which to start changing the list.
opt_deleteCountnumber optional The number of geometries to remove.
opt_itemsArray.<!T> optional The geometries to add.
Returns:
Type Description Array.<!T> the removed geometries. -
toGeoJSON ()Object inherited
-
To obtain a GeoJSON representation of the given geometry.
Returns:
Type Description Object A GeoJSON Geometry object representing the given geometry. -
toString () inherited
-
To obtain a Well-Known-Text (WKT) representation of the geometry.