Liking cljdoc? Tell your friends :D

geo.jts

Wrapper for the locationtech JTS spatial library. Constructors for points, coordinate sequences, rings, polygons, multipolygons, and so on.

Wrapper for the locationtech JTS spatial library. Constructors for points,
coordinate sequences, rings, polygons, multipolygons, and so on.
raw docstring

centroidclj

(centroid g)

Get the centroid of a JTS object.

Get the centroid of a JTS object.
sourceraw docstring

coordclj

(coord point)
source

coord-arrayclj

(coord-array coordinates)
source

coordinateclj

(coordinate x y)
(coordinate x y z)
(coordinate x y z m)

Creates a Coordinate.

Creates a Coordinate.
sourceraw docstring

coordinate-sequenceclj

(coordinate-sequence coordinates)

Given a list of Coordinates, generates a CoordinateSequence.

Given a list of Coordinates, generates a CoordinateSequence.
sourceraw docstring

coordinatesclj

(coordinates geom)

Get a sequence of Coordinates from a Geometry

Get a sequence of Coordinates from a Geometry
sourceraw docstring

coordsclj

(coords linestring)
source

default-sridclj

source

envelopeclj

(envelope c1 c2)

Create a JTS envelope from two coordinates.

Create a JTS envelope from two coordinates.
sourceraw docstring

geom-arrayclj

(geom-array geoms)
source

geometriesclj

(geometries c)

Given a GeometryCollection, generate a sequence of Geometries

Given a GeometryCollection, generate a sequence of Geometries
sourceraw docstring

geometry-collectionclj

(geometry-collection geometries)

Given a list of Geometries, generates a GeometryCollection.

Given a list of Geometries, generates a GeometryCollection.
sourceraw docstring

get-envelope-internalclj

(get-envelope-internal g)

Get a JTS envelope from a geometry.

Get a JTS envelope from a geometry.
sourceraw docstring

get-factoryclj

(get-factory geom)

Gets a GeometryFactory for a given geometry.

Gets a GeometryFactory for a given geometry.
sourceraw docstring

get-sridclj

(get-srid geom)

Gets an integer SRID for a given geometry.

Gets an integer SRID for a given geometry.
sourceraw docstring

gfclj

(gf srid)

Creates a GeometryFactory for a given SRID.

Creates a GeometryFactory for a given SRID.
sourceraw docstring

gf-wgs84clj

source

intersectionclj

(intersection g1 g2)

Get the intersection of two geometries.

Get the intersection of two geometries.
sourceraw docstring

line-segmentclj

(line-segment c1 c2)

Given two Coordinates, creates a LineSegment.

Given two Coordinates, creates a LineSegment.
sourceraw docstring

linear-ringclj

(linear-ring coordinates)
(linear-ring coordinates srid)

Given a list of Coordinates, creates a LinearRing. Allows an optional SRID argument at end.

Given a list of Coordinates, creates a LinearRing. Allows an optional SRID argument at end.
sourceraw docstring

linear-ring-arrayclj

(linear-ring-array rings)
source

linear-ring-wktclj

(linear-ring-wkt coordinates)
(linear-ring-wkt coordinates srid)

Makes a LinearRing from a WKT-style data structure: a flat sequence of coordinate pairs, e.g. [0 0, 1 0, 0 2, 0 0]. Allows an optional SRID argument at end.

Makes a LinearRing from a WKT-style data structure: a flat sequence of
coordinate pairs, e.g. [0 0, 1 0, 0 2, 0 0]. Allows an optional SRID argument at end.
sourceraw docstring

linestringclj

(linestring coordinates)
(linestring coordinates srid)

Given a list of Coordinates, creates a LineString. Allows an optional SRID argument at end.

Given a list of Coordinates, creates a LineString. Allows an optional SRID argument at end.
sourceraw docstring

linestring-arrayclj

(linestring-array linestrings)
source

linestring-wktclj

(linestring-wkt coordinates)
(linestring-wkt coordinates srid)

Makes a LineString from a WKT-style data structure: a flat sequence of coordinate pairs, e.g. [0 0, 1 0, 0 2, 0 0]. Allows an optional SRID argument at end.

Makes a LineString from a WKT-style data structure: a flat sequence of
coordinate pairs, e.g. [0 0, 1 0, 0 2, 0 0]. Allows an optional SRID argument at end.
sourceraw docstring

multi-linestringclj

(multi-linestring linestrings)

Given a list of LineStrings, generates a MultiLineString.

Given a list of LineStrings, generates a MultiLineString.
sourceraw docstring

multi-linestring-wktclj

(multi-linestring-wkt wkt)
(multi-linestring-wkt wkt srid)

Creates a MultiLineString from a WKT-style data structure, e.g. [[0 0, 1 0, 0 2, 0 0] [0 -1 1 2]]. Allows an optional SRID argument at end.

Creates a MultiLineString from a WKT-style data structure, e.g. [[0 0, 1 0, 0 2, 0 0] [0 -1 1 2]].
Allows an optional SRID argument at end.
sourceraw docstring

multi-pointclj

(multi-point points)

Given a list of points, generates a MultiPoint.

Given a list of points, generates a MultiPoint.
sourceraw docstring

multi-polygonclj

(multi-polygon polygons)

Given a list of polygons, generates a MultiPolygon.

Given a list of polygons, generates a MultiPolygon.
sourceraw docstring

multi-polygon-wktclj

(multi-polygon-wkt wkt)
(multi-polygon-wkt wkt srid)

Creates a MultiPolygon from a WKT-style data structure, e.g. [[[0 0 1 0 2 2 0 0]] [5 5 10 10 6 2]]. Allows an optional SRID argument at end.

Creates a MultiPolygon from a WKT-style data structure, e.g. [[[0 0 1 0 2 2
0 0]] [5 5 10 10 6 2]]. Allows an optional SRID argument at end.
sourceraw docstring

pmclj

source

pointclj

(point coordinate)
(point lat long)
(point x y srid)

Creates a Point from a Coordinate, a lat/long, or an x,y pair with an SRID.

Creates a Point from a Coordinate, a lat/long, or an x,y pair with an SRID.
sourceraw docstring

point-arrayclj

(point-array points)
source

point-nclj

(point-n linestring idx)

Get the point for a linestring at the specified index.

Get the point for a linestring at the specified index.
sourceraw docstring

polygonclj

(polygon shell)
(polygon shell holes)

Given a LinearRing shell, and a list of LinearRing holes, generates a polygon.

Given a LinearRing shell, and a list of LinearRing holes, generates a
polygon.
sourceraw docstring

polygon-arrayclj

(polygon-array polygons)
source

polygon-wktclj

(polygon-wkt rings)
(polygon-wkt rings srid)

Generates a polygon from a WKT-style data structure: a sequence of [outer-ring hole1 hole2 ...], where outer-ring and each hole is a flat list of coordinate pairs, e.g.

[[0 0 10 0 10 10 0 0] [1 1 9 1 9 9 1 1]].

Allows an optional SRID argument at end.

Generates a polygon from a WKT-style data structure: a sequence of
[outer-ring hole1 hole2 ...], where outer-ring and each hole is a flat list
of coordinate pairs, e.g.

[[0 0 10 0 10 10 0 0]
 [1 1  9 1  9  9 1 1]].

 Allows an optional SRID argument at end.
sourceraw docstring

polygonsclj

(polygons m)

Given a MultiPolygon, generate a sequence of Polygons

Given a MultiPolygon, generate a sequence of Polygons
sourceraw docstring

same-coords?clj

(same-coords? c1 c2)

Check if two Coordinates have the same number of dimensions and equal ordinates.

Check if two Coordinates have the same number of dimensions and equal ordinates.
sourceraw docstring

same-geom?clj

(same-geom? g1 g2)

Check if two geometries are topologically equal, with the same SRID. Two SRIDs of 0 are considered equal to each other.

Check if two geometries are topologically equal, with the same SRID.
Two SRIDs of 0 are considered equal to each other.
sourceraw docstring

same-srid?clj

(same-srid? g1 g2)

Check if two Geometries have the same SRID. If both geometries have SRIDs of 0, will also return true.

Check if two Geometries have the same SRID. If both geometries have SRIDs of 0, will also return true.
sourceraw docstring

segment-at-idxclj

(segment-at-idx linestring idx)

LineSegment from a LineString's point at index to index + 1.

LineSegment from a LineString's point at index to index + 1.
sourceraw docstring

set-sridclj

(set-srid geom crs)

Sets a geometry's SRID to a new value, and returns that geometry.

Sets a geometry's SRID to a new value, and returns that geometry.
sourceraw docstring

subdivideclj

(subdivide g)

Subdivide a Geometry into quadrants around its centroid.

Subdivide a Geometry into quadrants around its centroid.
sourceraw docstring

transform-geomclj

(transform-geom g t)
(transform-geom g c1 c2)

Transform a Geometry. When a single CoordinateTransform is passed, apply that transform to the Geometry. When the target CRS has an SRID, set the geometry's SRID to that. When a single Transformable target is passed, attempt to find the geometry's CRS to generate and apply a CoordinateTransform. When two CRSs are passed as arguments, generate a CoordinateTransform and apply accordingly.

Transform a Geometry.
When a single CoordinateTransform is passed, apply that transform to the Geometry. When the target CRS
has an SRID, set the geometry's SRID to that. When a single Transformable target is passed, attempt to
find the geometry's CRS to generate and apply a CoordinateTransform. When two CRSs are passed as
arguments, generate a CoordinateTransform and apply accordingly.
sourceraw docstring

wkt->coords-arrayclj

(wkt->coords-array flat-coord-list)
source

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

× close