Liking cljdoc? Tell your friends :D

honeysql-postgis.helpers

PostGIS functions as HoneySQL expressions.

Each returns a vector in HoneySQL's DSL, so they compose with each other and with anything else HoneySQL accepts, and nothing here calls HoneySQL: it is not a dependency.

TWO OF THEM DO MORE THAN NAME A FUNCTION. ST_Transform and ST_SetSRID cast their SRID to integer, because a bound parameter reaches PostGIS as bigint while both signatures take integer, and the call then does not resolve. The other ten return exactly the vector you would write by hand, so they are a naming convenience: (ST_X :g) reads as PostGIS where [:ST_X :g] reads as data.

PostGIS functions as HoneySQL expressions.

Each returns a vector in HoneySQL's DSL, so they compose with each other and
with anything else HoneySQL accepts, and nothing here calls HoneySQL: it is
not a dependency.

TWO OF THEM DO MORE THAN NAME A FUNCTION. `ST_Transform` and `ST_SetSRID`
cast their SRID to integer, because a bound parameter reaches PostGIS as
bigint while both signatures take integer, and the call then does not
resolve. The other ten return exactly the vector you would write by hand, so
they are a naming convenience: (ST_X :g) reads as PostGIS where [:ST_X :g]
reads as data.
raw docstring

ST_3DClosestPointclj

(ST_3DClosestPoint g1 g2)

The point on g1 closest to g2 in three dimensions.

The point on `g1` closest to `g2` in three dimensions.
sourceraw docstring

ST_3DDistanceclj

(ST_3DDistance g1 g2)

The shortest 3D distance between g1 and g2, in the units of their SRID.

The shortest 3D distance between `g1` and `g2`, in the units of their SRID.
sourceraw docstring

ST_AsTextclj

(ST_AsText g)

g as WKT.

`g` as WKT.
sourceraw docstring

ST_DumpPointsclj

(ST_DumpPoints g)

The vertices of g, one row each, as a set of geometry_dump rows.

The vertices of `g`, one row each, as a set of geometry_dump rows.
sourceraw docstring

ST_Mclj

(ST_M g)

The M ordinate of g, the fourth dimension of an XYZM geometry.

The M ordinate of `g`, the fourth dimension of an XYZM geometry.
sourceraw docstring

ST_MakeLineclj

(ST_MakeLine g1 g2)

A line from g1 to g2.

A line from `g1` to `g2`.
sourceraw docstring

ST_MakePointclj

(ST_MakePoint x y z)

A 3D point from x, y and z, which carry no SRID until one is set.

A 3D point from `x`, `y` and `z`, which carry no SRID until one is set.
sourceraw docstring

ST_SetSRIDclj

(ST_SetSRID g srid)

g labelled as being in srid, without reprojecting it.

THE SRID IS CAST TO INTEGER, for the reason given on ST_Transform. Setting an SRID declares what the coordinates already mean; ST_Transform converts them.

`g` labelled as being in `srid`, without reprojecting it.

THE SRID IS CAST TO INTEGER, for the reason given on `ST_Transform`. Setting
an SRID declares what the coordinates already mean; `ST_Transform` converts
them.
sourceraw docstring

ST_Transformclj

(ST_Transform g srid)

g projected into srid.

THE SRID IS CAST TO INTEGER. As a bound parameter it reaches PostGIS as bigint, and the signature takes integer, so the call does not resolve: function st_transform(geometry, bigint) does not exist. The value stays a parameter; only its type is pinned.

`g` projected into `srid`.

THE SRID IS CAST TO INTEGER. As a bound parameter it reaches PostGIS as
bigint, and the signature takes integer, so the call does not resolve:
`function st_transform(geometry, bigint) does not exist`. The value stays a
parameter; only its type is pinned.
sourceraw docstring

ST_Xclj

(ST_X g)

The X ordinate of g, which is longitude in a geographic SRID.

The X ordinate of `g`, which is longitude in a geographic SRID.
sourceraw docstring

ST_Yclj

(ST_Y g)

The Y ordinate of g, which is latitude in a geographic SRID.

The Y ordinate of `g`, which is latitude in a geographic SRID.
sourceraw docstring

ST_Zclj

(ST_Z g)

The Z ordinate of g.

The Z ordinate of `g`.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close