Class: MultiLineString

.Geo. MultiLineString


new MultiLineString(positions [, boundaryBox])

A GeoJSON MultiLineString object

Parameters:
Name Type Argument Description
positions Array

An array of arrays with at least 2-dimensional arrays of 2-dimensional arrays with the first entry being the longitude and the second one being the latitude.

boundaryBox Array <optional>

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

Example
var multiLineString = new jsonOdm.Geo.MultiLineString([
   [[51.2,32],[51.4,21]],
   [[51.5,32],[51.6,21]]
]);

Methods


<static> intersects(multiLineString, geometry)

Checks whether a MultiLineString intersects another geometry

Parameters:
Name Type Description
multiLineString jsonOdm.Geo.MultiLineString
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(multiLineString, geometry)

Checks whether a MultiLineString is inside of another geometry

Parameters:
Name Type Description
multiLineString jsonOdm.Geo.MultiLineString
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