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