Class SimpleMethodsExample

java.lang.Object
org.locationtech.jtsexample.geom.SimpleMethodsExample

public class SimpleMethodsExample extends Object
An example showing a simple use of JTS methods for:
  • WKT reading
  • intersection
  • relate
  • WKT output

The expected output from this program is:

----------------------------------------------------------
A = POLYGON ((40 100, 40 20, 120 20, 120 100, 40 100))
B = LINESTRING (20 80, 80 60, 100 140)
A intersection B = LINESTRING (40 73.33333333333334, 80 60, 90 100)
A relate C = 1F20F1102
----------------------------------------------------------
Version:
1.7
  • Constructor Details

    • SimpleMethodsExample

      public SimpleMethodsExample()
  • Method Details