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.
(ST_3DClosestPoint g1 g2)The point on g1 closest to g2 in three dimensions.
The point on `g1` closest to `g2` in three dimensions.
(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.
(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.
(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.
(ST_MakeLine g1 g2)A line from g1 to g2.
A line from `g1` to `g2`.
(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.
(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.
(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.
(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |