The Java Topology Suite (JTS)

 

The Java Topology Suite (JTS) provides a wealth of geometric functions for 2D geometry, that's useful for computational geometry and application domains such as geographical information systems. A summary of its features can be found here.

One of JTS's tools is TestBuilder for visualizing geometries, but I found it more useful to implement a simple GeomsViewer.java, which is called from my examples. All of the "Screenshot" links included with the examples go to images generated by GeomsViewer.

Note: GeoViewer uses a JPanel as a canvas, so the y-axis runs down the window. This means that a shape with its points ordered clockwise appears to be drawn in a counter-clockwise direction. See Triangles.java for an example of this drawback.

My Examples

Other Downloads and Links


Dr. Andrew Davison
E-mail: ad@coe.psu.ac.th
Back to the third-party libraries page