Examples of LatLon


Examples of gov.nasa.worldwind.geom.LatLon

         return null;

      double radius = this.wwd.getModel().getGlobe().getRadius();
      double distanceFromStart = 0;
      int segmentIndex = 0;
      LatLon pos1 = this.positions.get(segmentIndex);
      for (int i = 1; i < this.positions.size(); i++)
      {
         LatLon pos2 = this.positions.get(i);
         double segmentLength = LatLon.greatCircleDistance(pos1, pos2).radians * radius;

         // Check whether the position is inside the segment
         double length1 = LatLon.greatCircleDistance(pos1, pos).radians * radius;
         double length2 = LatLon.greatCircleDistance(pos2, pos).radians * radius;
 
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

   protected double computePathLength()
   {
      double pathLengthRadians = 0;

      LatLon pos1 = null;
      for (LatLon pos2 : this.positions)
      {
         if (pos1 != null)
            pathLengthRadians += LatLon.greatCircleDistance(pos1, pos2).radians;
         pos1 = pos2;
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

        params.setValue(AVKey.FORMAT_SUFFIX, ".gif");
        params.setValue(AVKey.TRANSPARENCY_COLORS, 0);
       
        params.setValue(AVKey.NUM_LEVELS, 20);
        params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
        params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(.2d), Angle.fromDegrees(.2d)));
        params.setValue(AVKey.SECTOR, Sector.fromDegrees(41.32526397666552, 51.20139642647427, -5.625179091996616, 11.1443951255116));
        params.setValue(AVKey.TILE_URL_BUILDER, urlBuilder);
        //params.setValue(AVKey.EXPIRY_TIME, new GregorianCalendar(2007, 7, 6).getTimeInMillis());

        return new LevelSet(params);
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

   protected void dragSelected(SelectEvent event)
   {
      ControlPoint point = (ControlPoint) event.getTopObject();

      LatLon lastPosition = point.getPosition();
      if (point.getValue(GfrMeasureTool.CONTROL_TYPE_LOCATION_INDEX) != null)
         lastPosition = measureTool.getPositions().get((Integer) point.getValue(GfrMeasureTool.CONTROL_TYPE_LOCATION_INDEX));

      // Delegate dragging computations to a dragger.
      this.dragger.selected(event);
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

                                pla = nk.getTextContent() ;
                }

                if ( lat.equals("") == false && lon.equals("") == false && pla.equals("") == false )
                {
                        LatLon latlon = LatLon.fromDegrees(Double.parseDouble(lat), Double.parseDouble(lon));
                        PointOfInterest loc = new BasicPointOfInterest(latlon);
                        loc.setValue(AVKey.DISPLAY_NAME, pla );
                        lstPois.add(loc);
                                }
            }
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

          String strSevere = "altPos.size() != 2, altPos.size()=" + altPos.size();
          GfrRndSurfaceSegmentWiseYesAbs._LOGGER_.severe(strSevere);
         throw new Exception(strSevere);
      }

      LatLon posBeg = altPos.get(0);
      LatLon posEnd = altPos.get(1);

      LatLon latLonMid = LatLon.interpolateGreatCircle(0.5, posBeg, posEnd);

      return new Position(latLonMid, 0);

   }
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

      }

      if (altPos.size() != 2)
         throw new Exception("Unsupported segment size : " + altPos.size());

      LatLon posBeg = altPos.get(0);
      LatLon posEnd = altPos.get(1);


      return GfrUtilDmsOperation.s_getDistanceFromRad(
              posBeg.getLatitude().getRadians(),
              posBeg.getLongitude().getRadians(),
              posEnd.getLatitude().getRadians(),
              posEnd.getLongitude().getRadians());

   }
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

            return;
        }

        Position pos = globe.computePositionFromPoint(vec);
        Position previousPos = globe.computePositionFromPoint(previousVec);
        LatLon change = pos.subtract(previousPos);

        java.util.List<LatLon> boundary = new ArrayList<LatLon>();
        for (LatLon ll : ((ExtrudedPolygon) super._pol_).getOuterBoundary())
        {
            boundary.add(ll);
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

            String strIdExisting = GfrWrpBasSynObjNameTloEclPlc.getInstance().getId(strNameCandidate);
           
            if (strIdExisting!=null && strIdExisting.length()>0)
            {
                Position posExisting = GfrWrpBasSynObjNameTloEclPlc.getInstance().getGeometry(strIdExisting);
                LatLon llnExisting = (LatLon) posExisting;
               
                /*
                 * if same latLon, and same name,
                 * then just return
                 */
               
                LatLon llnPoi = poi.getLatlon();
               
                if (llnExisting.equals(llnPoi))
                    return;
               
               // else not the same latLon, but same name, will be modified in model's method
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

   {
      ArrayList<LatLon> alt = new ArrayList<LatLon>();

      while (itr.hasNext())
      {
         LatLon lln = itr.next();
         alt.add(lln);
      }

      return (Object) alt;
   }
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.