Class: MultiPoint

.Geo. MultiPoint


new MultiPoint(positions [, boundaryBox])

A GeoJSON MultiPoint object

Parameters:
Name Type Argument Description
positions Array

An array of 2-dimensional arrays with the first entry being the longitude and the second one being the latitude, i.e. [[51,32],[51.4,21]]

boundaryBox Array <optional>

An array with [min. longitude, min. latitude, max. longitude, max. latitude]

Example
var multiPoint = new jsonOdm.Geo.MultiPoint([
   [51.5,32],[51.6,21]
]);

Methods


<static> intersects(multiPoint, geometry)

Checks whether a MultiPoint intersects another geometry

Parameters:
Name Type Description
multiPoint jsonOdm.Geo.MultiPoint
geometry jsonOdm.Geo.Point | jsonOdm.Geo.BoundaryBox | jsonOdm.Geo.MultiPoint | jsonOdm.Geo.LineString | jsonOdm.Geo.MultiLineString | jsonOdm.Geo.Polygon | jsonOdm.Geo.MultiPolygon | jsonOdm.Geo.GeometryCollection

Any jsonOdm.Geo.<geometry> object

Returns:
Type
boolean

<static> within(multiPoint, geometry)

Checks whether a MultiPoint is inside of another geometry

Parameters:
Name Type Description
multiPoint jsonOdm.Geo.MultiPoint
geometry jsonOdm.Geo.Point | jsonOdm.Geo.BoundaryBox | jsonOdm.Geo.MultiPoint | jsonOdm.Geo.LineString | jsonOdm.Geo.MultiLineString | jsonOdm.Geo.Polygon | jsonOdm.Geo.MultiPolygon | jsonOdm.Geo.GeometryCollection

Any jsonOdm.Geo.<geometry> object

Returns:
Type
boolean