cljts.geom documentation

area

(area this)
return the area of geometry object, 0 for D0 and D1 objects

boundary

(boundary this)
return the boundary of geometry object, which is also a geometry object

c

(c x y)(c x y z)
create a coordinate object.

centroid

(centroid this)
return the centroid point

coordinates

(coordinates this)
return a vector contains all coordinates of the object

dimension

(dimension this)
return the dimension value of the object

empty?

(empty? this)
test if the geometry is an empty one

envelope

(envelope this)
return the boundary box(bbox) of the object

interior-point

(interior-point this)
return the interior point

length

(length this)
return the length of the object, 0 for D0 objects

line-string

(line-string coordinates & {:or {srid__297__auto__ 0, precision-model__296__auto__ :floating}, :keys [precision-model__296__auto__ srid__297__auto__]})
create a jts linestring

linear-ring

(linear-ring cs & {:or {srid__297__auto__ 0, precision-model__296__auto__ :floating}, :keys [precision-model__296__auto__ srid__297__auto__]})
create a jts linear ring, which is useful to create polygons

multi-point

(multi-point ps & {:or {srid__297__auto__ 0, precision-model__296__auto__ :floating}, :keys [precision-model__296__auto__ srid__297__auto__]})
create a multi-point with some points

multi-polygon

(multi-polygon ps & {:or {srid__297__auto__ 0, precision-model__296__auto__ :floating}, :keys [precision-model__296__auto__ srid__297__auto__]})
create a multi-polygon with some polygons

n-geometries

(n-geometries this)
return the number of geometries in the object

n-points

(n-points this)
return the number of points in the objects

point

(point coordinate & {:or {srid__297__auto__ 0, precision-model__296__auto__ :floating}, :keys [precision-model__296__auto__ srid__297__auto__]})
create a jts point object

polygon

(polygon ring rings & {:or {srid__297__auto__ 0, precision-model__296__auto__ :floating}, :keys [precision-model__296__auto__ srid__297__auto__]})
create a jts polygon

simple?

(simple? this)
test if the geometry is a simple one. You can find the definition to simple at: http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/geom/Geometry.html#isSimple()

srid

(srid this)
return the srid