Class ConstructionExample


  • public class ConstructionExample
    extends java.lang.Object
    Examples of constructing Geometries programmatically.

    The Best Practice moral here is: Use the GeometryFactory to construct Geometries whenever possible. This has several advantages:

    1. Simplifies your code
    2. allows you to take advantage of convenience methods provided by GeometryFactory
    3. Insulates your code from changes in the signature of JTS constructors
    Version:
    1.7
    • Method Summary

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

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

      • ConstructionExample

        public ConstructionExample()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception