com.vividsolutions.jtsexample.geom
Class SimpleMethodsExample
java.lang.Object
com.vividsolutions.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleMethodsExample
public SimpleMethodsExample()
main
public static void main(String[] args)
run
public void run()
throws ParseException
- Throws:
ParseException
Copyright © 2012. All Rights Reserved.