Geometry Commands
Geometry Commands is a command line application for processing geometry. It is inspired by the wonderful Java Topology Suite (JTS) library and the Unix Philosophy.
It contains one command line application (geom) with numerous subcommands (buffer, centroid, envelope) that generally read WKT geometry from standard input and then write WKT geometry to standard output. This enables several geometry commands to be chained together using pipes.:
echo "POINT (1 1)" | geom buffer -d 10 | geom envelope
Geometry Commands is open source under the MIT license. I hope you find it useful. The code is available at github. If you find any bugs or would like any enhancements please use the GitHub issue tracker.
Command Documentation
- Install
- Usage
- Commands
- list
- version
- help
- angle
- arc
- arcpoly
- area
- asciiart
- boundary
- buffer
- centroid
- closelinestring
- combine
- contains
- concaveHull
- concaveHullOfPolygons
- convexHull
- coordinates
- count
- countpoints
- coveredby
- covers
- crosses
- delaunay
- densify
- difference
- dimension
- disjoint
- distance
- distanceline
- draw
- drawbase64
- dump
- ellipse
- endpoint
- envelope
- equals
- fix
- fromwkb
- get
- grid
- hausdorffdistance
- hilbertcurve
- interiorpoint
- interpolatepoint
- intersection
- intersects
- isccw
- isclosed
- isempty
- isrectangle
- isring
- issimple
- isvalid
- iswithindistance
- kochsnowflake
- largestemptycircle
- linedissolve
- linemerge
- locatepoint
- maximuminscribedcircle
- mincircle
- minclearance
- mindiameter
- minrect
- mortoncurve
- narrow
- nearestpoints
- node
- normalize
- octagonalenvelope
- offsetCurve
- overlaps
- pipe
- placepoint
- pointatangle
- pointsalong
- polygonize
- project
- random
- randomwalk
- rectangle
- reduceprecision
- reflect
- relate
- reverse
- rotate
- scale
- shear
- sierpinskicarpet
- similarity
- simplify
- sinestar
- slice
- snap
- split
- spoke
- squircle
- startpoint
- subline
- supercircle
- symdifference
- text
- touches
- towkb
- translate
- type
- union
- variablebuffer
- voronoi
- within