Package org.geoforge.lang.util.geography.point

Examples of org.geoforge.lang.util.geography.point.GfrPointUtm


      E = Math.round(E * prec) / prec;
      N = Math.round(N * prec) / prec;

      String strZoneLetter = GfrUtilConversionCylindricalUtm.s_getUtmZoneLetter(Math.toDegrees(phiRad));
      int zone = GfrUtilConversionCylindricalUtm.s_getUtmZoneNumber(lambdaDeg);
      return new GfrPointUtm(N, E, zone, strZoneLetter);
   }
View Full Code Here


         PrjCylUtm.s_getInstance()),
      };

      GfrPointUtm[] utmList =
      {
         new GfrPointUtm(885134.998233339, 775582.60399115, 32, "N"),
         new GfrPointUtm(1051288.26638927, 717270.056573956, 32, "N"),
         new GfrPointUtm(1217441.5345452, 658957.509156762, 32, "N"),
         new GfrPointUtm(1383594.80270113, 600644.961739567, 32, "N"),
         new GfrPointUtm(1715901.33901299, 484019.866905178, 32, "N"),
         new GfrPointUtm(1882054.60716892, 425707.319487984, 32, "N"),
         new GfrPointUtm(2048207.87532485, 367394.772070789, 32, "N"),
         new GfrPointUtm(2214361.14348078, 309082.224653595, 32, "N"),
         new GfrPointUtm(2380514.41163671, 250769.677236401, 32, "N"),
         new GfrPointUtm(2546667.67979265, 192457.129819206, 32, "N"),
      };




      for (int i = 0; i < tests.length; i++)
      {
         GfrPointAbs input = tests[i].getPointInput();
         GfrPrjAbs prj = tests[i].getProjection();

         GfrPointUtm found = GfrUtilConversionCylindricalUtm.s_getUtmCoordinateFromDms(
                 (GfrPointDms) input,
                 (PrjCylAbs) prj);
         tests[i].setPointFound(found);

         System.out.println(found.getZoneNumber() + found.getZoneLetter());


         GfrPointDms crossVal;
         try
         {
View Full Code Here

      for (int i = 0; i < tests.length; i++)
      {
         GfrPointDms input = (GfrPointDms) tests[i].getPointInput();
         GfrPrjAbs prj = tests[i].getProjection();

         GfrPointUtm found = GfrUtilConversionCylindricalUtm.s_getUtmCoordinateFromDms(
                 (GfrPointDms) input,
                 (PrjCylAbs) prj);
         tests[i].setPointFound(found);

         System.out.println("number :" +found.getZoneNumber() + ", letter :" +  found.getZoneLetter());


         GfrPointDms crossVal;
         try
         {
View Full Code Here

            tests[i].setCrossVal(crossVal);
         }

         if (input instanceof GfrPointDms && prj instanceof PrjCylAbs)//Dms -> cylindrical, Big precision
         {
            GfrPointUtm found = GfrUtilConversionCylindricalUtm.s_getUtmCoordinateFromDms(
                    (GfrPointDms) input,
                    (PrjCylAbs) prj);
            tests[i].setPointFound(found);

            System.out.println(found.getZoneNumber() + found.getZoneLetter());


            GfrPointDms crossVal = GfrUtilConversionCylindricalUtm.s_getDmsCoordinateFromUtm(found, (PrjCylAbs) prj);
            tests[i].setCrossVal(crossVal);
         }
View Full Code Here

      {
         strLetter = "K";
      }

      GfrPointDms dms = GfrUtilConversionCylindricalUtm.s_getDmsCoordinateFromUtm(
              new GfrPointUtm(
              douNorthing,
              douEasting,
              zone,
              strLetter),
              PrjCylUtm.s_getInstance());
View Full Code Here

TOP

Related Classes of org.geoforge.lang.util.geography.point.GfrPointUtm

Copyright © 2018 www.massapicom. 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.