Class 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleMethodsExample

        public SimpleMethodsExample()