Package org.locationtech.jtsexample.geom
Class SimpleMethodsExample
- java.lang.Object
-
- org.locationtech.jtsexample.geom.SimpleMethodsExample
-
public class SimpleMethodsExample extends java.lang.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 Summary
Constructors Constructor Description SimpleMethodsExample()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
void
run()
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
run
public void run() throws ParseException
- Throws:
ParseException
-
-