Constructors for PostGIS geometry objects.
(require '[psql.spatial :as st])
Constructors for PostGIS geometry objects. (require '[psql.spatial :as st])
(geography geometry)Tag a geometry with SRID 4326 (WGS84) so it can be stored in a PostGIS
geography column, which requires a known SRID.
Tag a geometry with SRID 4326 (WGS84) so it can be stored in a PostGIS `geography` column, which requires a known SRID.
(geometry-collection geometries)Create a GeometryCollection from a collection of geometry objects.
Create a GeometryCollection from a collection of geometry objects.
(line-string points)Create a LineString from a collection of points.
Create a LineString from a collection of points.
(linear-ring points)Use to construct Polygons from Points.
Use to construct Polygons from Points.
(multi-line-string line-strings)Create a MultiLineString from a collection of LineStrings.
Create a MultiLineString from a collection of LineStrings.
(multi-point points)Create a MultiPoint from a collection of Points.
Create a MultiPoint from a collection of Points.
(multi-polygon polygons)Create a MultiPolygon from a collection of Polygons.
Create a MultiPolygon from a collection of Polygons.
(pg-geom geometry)Wrap a geometry in the lightweight PGgeometry envelope for JDBC.
Wrap a geometry in the lightweight PGgeometry envelope for JDBC.
(point coll-or-str)(point x y)(point x y z)Create a 2D or 3D Point.
Create a 2D or 3D Point.
(polygon linear-rings)Create a Polygon from a collection of LinearRings.
Create a Polygon from a collection of LinearRings.
(srid geometry)Return the SRID of a geometry object.
Return the SRID of a geometry object.
(with-srid! geometry srid)Set the SRID on a geometry object. Mutate the object.
Set the SRID on a geometry object. Mutate the object.
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 |