Class CSTransformer


  • public class CSTransformer
    extends java.lang.Object
    (non-Javadoc)
    • Constructor Summary

      Constructors 
      Constructor Description
      CSTransformer()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean transform​(double[] pointsIn, int dim, int[] sridFromTo, double[] pointsOut)
      Transforms a set of points from one Oracle Spatial SRID to another.
      static java.awt.geom.Rectangle2D transform​(java.awt.geom.Rectangle2D input, int[] sridFromTo)  
      static JGeometry transform​(JGeometry in, int[] sridFromTo)  
      • Methods inherited from class java.lang.Object

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

      • CSTransformer

        public CSTransformer()
    • Method Detail

      • transform

        public static boolean transform​(double[] pointsIn,
                                        int dim,
                                        int[] sridFromTo,
                                        double[] pointsOut)
        Transforms a set of points from one Oracle Spatial SRID to another.
        Parameters:
        pointsIn - the input points, in the format of [x0,y0, x1,y1...xk,yk]
        dim - the dimension of each point; only first 2 dimensions are transformed.
        sridFromTo - an int array containing two elements, first is the FROM srid, second is the TO srid.
        pointsOut - an optional array to store the transformed points; if null then the pointsIn array will be modified in place.
        Returns:
      • transform

        public static java.awt.geom.Rectangle2D transform​(java.awt.geom.Rectangle2D input,
                                                          int[] sridFromTo)