Liking cljdoc? Tell your friends :D

geo.core


*readers*clj/s

source

asinclj/s

(asin x)

Returns the arc sine of x.

Returns the arc sine of `x`.
sourceraw docstring

atan2clj/s

(atan2 y x)

Returns the arc sine of x.

Returns the arc sine of `x`.
sourceraw docstring

averageclj/s

(average numbers)

Return the average of numbers.

Return the average of `numbers`.
sourceraw docstring

bearing-toclj/s

(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.
sourceraw docstring

bounding-boxclj/s

(bounding-box south-west north-east)

Make a new Bounding Box.

Make a new Bounding Box.
sourceraw docstring

bounding-box-at-pointclj/s

(bounding-box-at-point point distance)
source

BoundingBoxclj/s

source

cartesianclj/s

(cartesian point)

Convert lat/lon point to cartesian point.

Convert lat/lon point to cartesian point.
sourceraw docstring

centroidclj/s

(centroid points)

Calculate the centroid of points.

Calculate the centroid of `points`.
sourceraw docstring

cosclj/s

(cos x)

Returns the cosine of x.

Returns the cosine of `x`.
sourceraw docstring

destination-pointclj/s

(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).
sourceraw docstring

distance-toclj/s

(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.
sourceraw docstring

earth-radiusclj/s

source

final-bearing-toclj/s

(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.
sourceraw docstring

ICoordinateclj/sprotocol

coordinatesclj/s

(coordinates obj)

Returns the coordinates of obj.

Returns the coordinates of `obj`.

sridclj/s

(srid obj)

Returns spatial reference system identifier obj.

Returns spatial reference system identifier `obj`.
source

IPointclj/sprotocol

point-xclj/s

(point-x point)

Returns the x coordinate of point.

Returns the x coordinate of `point`.

point-yclj/s

(point-y point)

Returns the y coordinate of point.

Returns the y coordinate of `point`.

point-zclj/s

(point-z point)

Returns the z coordinate of point.

Returns the z coordinate of `point`.
source

IWellKnownTextclj/sprotocol

ewktclj/s

(ewkt obj)

Returns obj as a WKT formatted string.

Returns `obj` as a WKT formatted string.
source

latitude?clj/s

(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.
sourceraw docstring

line-stringclj/s

(line-string srid & coordinates)

Make a new LineString.

Make a new LineString.
sourceraw docstring

LineStringclj/s

source

longitude?clj/s

(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.
sourceraw docstring

multi-line-stringclj/s

(multi-line-string srid & coordinates)

Make a new MultiLineString.

Make a new MultiLineString.
sourceraw docstring

multi-pointclj/s

(multi-point srid & coordinates)

Make a new MultiPoint.

Make a new MultiPoint.
sourceraw docstring

multi-polygonclj/s

(multi-polygon srid & coordinates)

Make a new MultiPolygon.

Make a new MultiPolygon.
sourceraw docstring

MultiLineStringclj/s

source

MultiPointclj/s

source

MultiPolygonclj/s

source

parse-dmsclj/s

(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
sourceraw docstring

parse-dms-pointclj/s

(parse-dms-point s)

Parse a point in degree, minutes, seconds format.

Parse a point in degree, minutes, seconds format.
sourceraw docstring

parse-locationclj/s

(parse-location s)
source

piclj/s

source

Pointclj/s

source

pointclj/s

(point srid x y & [z])

Make a new Point.

Make a new Point.
sourceraw docstring

point?clj/s

(point? x)
source

polygonclj/s

(polygon srid & coordinates)

Make a new Polygon.

Make a new Polygon.
sourceraw docstring

Polygonclj/s

source

clj
(print-bounding-box box writer)

Print the geometric obj as type to writer.

Print the geometric `obj` as `type` to `writer`.
cljs
(print-bounding-box bounding-box writer)

Print bounding-box to writer.

Print `bounding-box` to `writer`.
source (clj)source (cljs)raw docstring

(print-geo type obj writer)

Print the geometric obj as type to writer.

Print the geometric `obj` as `type` to `writer`.
source (clj)source (cljs)raw docstring

read-bounding-boxclj/s

(read-bounding-box [south-west north-east])

Read a LineString from coordinates.

Read a LineString from `coordinates`.
sourceraw docstring

read-line-stringclj/s

(read-line-string [srid coordinates])

Read a LineString from coordinates.

Read a LineString from `coordinates`.
sourceraw docstring

read-multi-line-stringclj/s

(read-multi-line-string [srid coordinates])

Read a MultiLineString from coordinates.

Read a MultiLineString from `coordinates`.
sourceraw docstring

read-multi-pointclj/s

(read-multi-point [srid coordinates])

Read a MultiPoint from coordinates.

Read a MultiPoint from `coordinates`.
sourceraw docstring

read-multi-polygonclj/s

(read-multi-polygon [srid coordinates])

Read a MultiPolygon from coordinates.

Read a MultiPolygon from `coordinates`.
sourceraw docstring

read-pointclj/s

(read-point [srid coordinates])

Read a Point from coordinates.

Read a Point from `coordinates`.
sourceraw docstring

read-polygonclj/s

(read-polygon [srid coordinates])

Read a Point from coordinates.

Read a Point from `coordinates`.
sourceraw docstring

register-tag-parsers!cljs

(register-tag-parsers!)
source

sinclj/s

(sin x)

Returns the sine of x.

Returns the sine of `x`.
sourceraw docstring

sqrtclj/s

(sqrt x)

Returns the square root of x.

Returns the square root of `x`.
sourceraw docstring

to-degreesclj/s

(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.
sourceraw docstring

to-radiansclj/s

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close