Examples of transformPoint()


Examples of org.gdal.osr.CoordinateTransformation.TransformPoint()

      /* -------------------------------------------------------------------- */
            /* New in GDAL 1.10. Before was "new CoordinateTransformation(srs,dst)". */
      CoordinateTransformation ct = CoordinateTransformation.CreateCoordinateTransformation(src, dst);
      double[] p = new double[3];
      p[0] = 19; p[1] = 47; p[2] = 0;
      ct.TransformPoint(p);
      System.out.println("x:" + p[0] + " y:" + p[1] + " z:" + p[2]);
      ct.TransformPoint(p, 19.2, 47.5, 0);
      System.out.println("x:" + p[0] + " y:" + p[1] + " z:" + p[2]);
    }
    catch (Exception e)
View Full Code Here

Examples of org.gdal.osr.CoordinateTransformation.TransformPoint()

      CoordinateTransformation ct = CoordinateTransformation.CreateCoordinateTransformation(src, dst);
      double[] p = new double[3];
      p[0] = 19; p[1] = 47; p[2] = 0;
      ct.TransformPoint(p);
      System.out.println("x:" + p[0] + " y:" + p[1] + " z:" + p[2]);
      ct.TransformPoint(p, 19.2, 47.5, 0);
      System.out.println("x:" + p[0] + " y:" + p[1] + " z:" + p[2]);
    }
    catch (Exception e)
    {
      System.out.println("Error occurred: " + e.getMessage());
View Full Code Here

Examples of org.gdal.osr.CoordinateTransformation.TransformPoint()

    /* -------------------------------------------------------------------- */
    /*      Transform to latlong and report.                                */
    /* -------------------------------------------------------------------- */
    if (hTransform != null) {
      double[] transPoint = new double[3];
      hTransform.TransformPoint(transPoint, dfGeoX, dfGeoY, 0);
      System.out.print("(" + gdal.DecToDMS(transPoint[0], "Long", 2));
      System.out
          .print("," + gdal.DecToDMS(transPoint[1], "Lat", 2) + ")");
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.