new MultiPolygon(positions [, boundaryBox])
A GeoJSON MultiPolygon object
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
positions |
Array | An array of Polygon position arrays |
|
boundaryBox |
Array |
<optional> |
An array with [min. longitude, min. latitude, max. longitude, max. latitude] |
Example
Methods
-
<static> intersects(multiPolygon, geometry)
-
Checks whether a MultiPolygon intersects another geometry
Parameters:
Name Type Description multiPolygon
jsonOdm.Geo.MultiPolygon 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(multiPolygon, geometry)
-
Checks whether a MultiPolygon is inside of another geometry
Parameters:
Name Type Description multiPolygon
jsonOdm.Geo.MultiPolygon 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