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.
(line-string points)Make a LineString from a collection of points.
Make a LineString from a collection of points.
(linear-ring points)Used for constructing Polygons from Points.
Used for constructing Polygons from Points.
(multi-line-string line-strings)Make a MultiLineString from a collection of LineStrings.
Make a MultiLineString from a collection of LineStrings.
(multi-point points)Make a MultiPoint from a collection of Points.
Make a MultiPoint from a collection of Points.
(multi-polygon polygons)Make a MultiPolygon from a collection of Polygons.
Make 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)Make a 2D or 3D Point.
Make a 2D or 3D Point.
(polygon linear-rings)Make a Polygon from a collection of LinearRings.
Make 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)Return the geometry object with SRID set. Mutates the object.
Return the geometry object with SRID set. Mutates 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 |