Examples of GfrPointConical


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


      double x = x0 + r * Math.sin(theta);
      double y = y0 + r0 - r * Math.cos(theta);

      return new GfrPointConical(x, y);
   }
View Full Code Here

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

      System.out.println("theta :" + theta);
      System.out.println("x :" + x);
      System.out.println("y :" + y);

      //*/
      return new GfrPointConical(
              Double.parseDouble(x.toString()),
              Double.parseDouble(y.toString()));


   }
View Full Code Here

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

      TestConversion[] tests =
      {
         new TestConversion(
         "UTM_36T",
         new GfrPointDms(11.5, 8),
         new GfrPointConical(563967.423103, 6095248.70824),
         PrjCylUtm.s_getInstance()),
         new TestConversion(
         "UTM_36T",
         new GfrPointDms(6, 23),
         new GfrPointConical(563967.423103, 6095248.70824),
         PrjCylUtm.s_getInstance()),
      };

      GfrPointUtm[] utmList =
      {
View Full Code Here

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

      TestConversion[] tests =
      {
         new TestConversion(
            "test",
            new GfrPointDms(120, 81),
            new GfrPointConical(10, 10),
            PrjCylUtm.s_getInstance()),
      };


      for (int i = 0; i < tests.length; i++)
View Full Code Here

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

      TestConversion[] tests =
      {
         new TestConversion(
         "PrjConLambert93",
         new GfrPointDms(10, 40),
         new GfrPointConical(1300132.2440885678, 5903651.94441981),
         PrjConLambert93.s_getInstance()),
         new TestConversion(
         "3812_PrjConLambert2008",
         new GfrPointDms(10, 40),
         new GfrPointConical(1138158.9936737407, -522382.3696528121),
         PrjConLambert2008.s_getInstance()),
         new TestConversion(
         "SR39_PrjConLambertMexican",
         new GfrPointDms(-80.83594322203, 7.916019558907),
         new GfrPointConical(4897414.312483, -284576.20796),
         PrjConLambertMexico.s_getInstance()),
         new TestConversion(
         "SR39_PrjConLambert1972",
         new GfrPointDms(10, 40),
         new GfrPointConical(639153.261772, -1022369.266852),
         PrjConLambert1972.s_getInstance()),
         new TestConversion(
         "Lambert Carto II ext",
         new GfrPointDms(1.289542, 46.444770),
         new GfrPointConical(519558.64,2161058.15),
         PrjConLambertII_Carto.s_getInstance()),
         new TestConversion(
         "Lambert III",
         new GfrPointDms(1.4681805556, 42.5864644444),
         new GfrPointConical(528701.67,32224.69),
         PrjConLambertIII.s_getInstance()),
        
         new TestConversion(
         "Lambert III",
         new GfrPointDms(1.5214830555555,42.4552458333333),
         new GfrPointConical(532933.35, 17600.64),
         PrjConLambertIII.s_getInstance()),
       
      };



      StopWatch.start();
      /*/
      for(int i = 0; i < tests.length; i++)
      {
      GfrPointAbs input = tests[i].getPointInput();
      GfrPrjAbs prj = tests[i].getProjection();
     
     
      if(input instanceof GfrPointDms && prj instanceof PrjConAbs)//Dms -> conical, Big precision
      {
      GfrPointConical found = UtilConicalConvert.s_getConicalCoordinateFromDmsWithBigPrecision((GfrPointDms)input, (PrjConAbs)prj);
      tests[i].setPointFound(found);
     
     
      GfrPointDms crossVal = UtilConicalConvert.s_getDmsCoordinateFromConicalBigPrecision(found, (PrjConAbs)prj);
      tests[i].setCrossVal(crossVal);
      }
     
      /*/
      /*
     
     
      tests[i].show();
      }
     
      //*/
      for (int i = 0; i < tests.length; i++)
      {
         GfrPointAbs input = tests[i].getPointInput();
         GfrPrjAbs prj = tests[i].getProjection();


         if (input instanceof GfrPointDms && prj instanceof PrjConAbs)//Dms -> conical, Big precision
         {
            GfrPointConical found = GfrUtilConversionConical.s_getConicalCoordinateFromDms((GfrPointDms) input, (PrjConAbs) prj);
            tests[i].setPointFound(found);


            GfrPointDms crossVal = GfrUtilConversionConical.s_getDmsCoordinateFromConical(found, (PrjConAbs) prj);
            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

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

      if (this._pnlChoice_.getContent().equals(_STR_LAMBERT_II_EXT_))
         prj = PrjConLambertII_Carto.s_getInstance();


      GfrPointDms dms = GfrUtilConversionConical.s_getDmsCoordinateFromConical(
              new GfrPointConical(
              dblX,
              dblY),
              (PrjConAbs) prj);

      return new Point2D.Double(dms.getLongitude(), dms.getLatitude());
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.