Class JGeometry.ChainConverter

  • Enclosing class:
    JGeometry

    protected static class JGeometry.ChainConverter
    extends java.lang.Object
    Helper class used in creating an Oracle geometry from chains.

    "Converts" a chain in two steps.

    In the first step, it transforms a chain, changing arcs from the buffer format of (start, center, end) to the Oracle format (start, point on arc, end), and unnecessary points are null'ed out. Accumulates a running total of elements and vertices that will be required for the Oracle format geometry --- all the cnains of a geometry should be converted to accumulate the size of the arrays needed for the final result.

    In the second step, a call to writeOrdinates writes out the ordinates into an array.

    Each chain must have size() >= 2 or conversion fails. Since the result is supposed to be a (multi)polygon, caller should not pass in chains smaller than 3 points.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ChainConverter()  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • ChainConverter

        protected ChainConverter()