Class: GeoBound

GeoBound

Geo Bound

new GeoBound(w, s, e, n)

Parameters:
Name Type Description
w float West
s float South
e float East
n float North

Methods


getCenter()

Get geo center
Returns:
Geo center as array of 2 float
Type
Array.<float>

getNorth()

Get North
Returns:
North
Type
float

setNorth(val)

Set North
Parameters:
Name Type Description
val float

getSouth()

Get South
Returns:
South
Type
float

setSouth(val)

Set South
Parameters:
Name Type Description
val float

getWest()

Get West
Returns:
West
Type
float

setWest(val)

Set West
Parameters:
Name Type Description
val float

getEast()

Get East
Returns:
East
Type
float

setEast(val)

Set East
Parameters:
Name Type Description
val float

computeFromCoordinates(coordinates)

Compute the geo bound from coordinates
Parameters:
Name Type Description
coordinates Array.<Array.<float>> Coordinates as bi-dimensionnal array of float

isPointInside(point)

Check if a point is inside the given bound
Parameters:
Name Type Description
point Array The point
Returns:
return the test
Type
Boolean

intersects(geoBound)

Intersects this geo bound with another one
Parameters:
Name Type Description
geoBound GeoBound Geo bound
Returns:
Intersects ?
Type
Boolean

intersectsGeometry(geometry)

Intersects this geo bound with GeoJSON geometry
Parameters:
Name Type Description
geometry JSON GeoJSON geometry
Returns:
Intersects ?
Type
Boolean