(average numbers)
Return the average of numbers
.
Return the average of `numbers`.
(bearing-to point-1 point-2)
Returns the (initial) bearing from point-1
to the point-2
in degrees.
Returns the (initial) bearing from `point-1` to the `point-2` in degrees.
(bounding-box south-west north-east)
Make a new Bounding Box.
Make a new Bounding Box.
(cartesian point)
Convert lat/lon point to cartesian point.
Convert lat/lon point to cartesian point.
(centroid points)
Calculate the centroid of points
.
Calculate the centroid of `points`.
(destination-point point bearing distance)
Returns the destination point from point
having travelled the
given distance
(in km) on the given initial bearing
(bearing may
vary before destination is reached).
Returns the destination point from `point` having travelled the given `distance` (in km) on the given initial `bearing` (bearing may vary before destination is reached).
(distance-to point-1 point-2)
.Returns the distance from point-1
to point-2
, in km using the
Haversine formula.
.Returns the distance from `point-1` to `point-2`, in km using the Haversine formula.
(final-bearing-to point-1 point-2)
Returns final bearing arriving at destination point-2
from
point-1
. The final bearing will differ from the initial bearing by
varying degrees according to distance and latitude.
Returns final bearing arriving at destination `point-2` from `point-1`. The final bearing will differ from the initial bearing by varying degrees according to distance and latitude.
(coordinates obj)
Returns the coordinates of obj
.
Returns the coordinates of `obj`.
(srid obj)
Returns spatial reference system identifier obj
.
Returns spatial reference system identifier `obj`.
(point-x point)
Returns the x coordinate of point
.
Returns the x coordinate of `point`.
(point-z point)
Returns the z coordinate of point
.
Returns the z coordinate of `point`.
(point-y point)
Returns the y coordinate of point
.
Returns the y coordinate of `point`.
(ewkt obj)
Returns obj
as a WKT formatted string.
Returns `obj` as a WKT formatted string.
(latitude? latitude)
Returns true if latitude
is a number and betweeen -90.0 and 90.0,
otherwise false.
Returns true if `latitude` is a number and betweeen -90.0 and 90.0, otherwise false.
(line-string srid & coordinates)
Make a new LineString.
Make a new LineString.
(longitude? longitude)
Returns true if longitude
is a number and between -180.0 and
180.0, otherwise false.
Returns true if `longitude` is a number and between -180.0 and 180.0, otherwise false.
(multi-line-string srid & coordinates)
Make a new MultiLineString.
Make a new MultiLineString.
(multi-point srid & coordinates)
Make a new MultiPoint.
Make a new MultiPoint.
(multi-polygon srid & coordinates)
Make a new MultiPolygon.
Make a new MultiPolygon.
(parse-dms s)
Parse a coordinate in degree, minutes, seconds format.
Example:
(parse-dms "51° 28' 40.12" N") ;=> 51.57811111111111
Parse a coordinate in degree, minutes, seconds format. Example: (parse-dms "51° 28' 40.12" N") ;=> 51.57811111111111
(parse-dms-point s)
Parse a point in degree, minutes, seconds format.
Parse a point in degree, minutes, seconds format.
(print-bounding-box box writer)
Print the geometric obj
as type
to writer
.
Print the geometric `obj` as `type` to `writer`.
(print-bounding-box bounding-box writer)
Print bounding-box
to writer
.
Print `bounding-box` to `writer`.
(print-geo type obj writer)
Print the geometric obj
as type
to writer
.
Print the geometric `obj` as `type` to `writer`.
(read-bounding-box [south-west north-east])
Read a LineString from coordinates
.
Read a LineString from `coordinates`.
(read-line-string [srid coordinates])
Read a LineString from coordinates
.
Read a LineString from `coordinates`.
(read-multi-line-string [srid coordinates])
Read a MultiLineString from coordinates
.
Read a MultiLineString from `coordinates`.
(read-multi-point [srid coordinates])
Read a MultiPoint from coordinates
.
Read a MultiPoint from `coordinates`.
(read-multi-polygon [srid coordinates])
Read a MultiPolygon from coordinates
.
Read a MultiPolygon from `coordinates`.
(read-point [srid coordinates])
Read a Point from coordinates
.
Read a Point from `coordinates`.
(read-polygon [srid coordinates])
Read a Point from coordinates
.
Read a Point from `coordinates`.
(to-degrees x)
Converts an angle measured in degrees to an approximately equivalent angle measured in degrees.
Converts an angle measured in degrees to an approximately equivalent angle measured in degrees.
(to-radians x)
Converts an angle measured in degrees to an approximately equivalent angle measured in radians.
Converts an angle measured in degrees to an approximately equivalent angle measured in radians.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close