new Point(position [, boundaryBox])
A GeoJSON Point object
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
position |
Array | A 2-dimensional array with the first entry being the longitude and the second one being the latitude, i.e. [51,32] |
|
boundaryBox |
Array |
<optional> |
An array with [min. longitude, min. latitude, max. longitude, max. latitude] |
Example
var point = new jsonOdm.Geo.Point([51.5,32]);
Methods
-
<static> intersects(point, geometry)
-
Checks whether a Point intersects a geometry witch is equal to the Point being inside a geometry. This is an alias of jsonOdm.Geo.Point.within
Parameters:
Name Type Description point
jsonOdm.Geo.Point 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(point, geometry)
-
Checks whether a Point is inside of another geometry
Parameters:
Name Type Description point
jsonOdm.Geo.Point 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