Package gov.nasa.worldwind.geom

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


        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

   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

                                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

          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

      }

      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

            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

            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

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

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

      return (Object) alt;
   }
View Full Code Here

        if (this.labelLocationIndex == -1)
            return null;

        int i = 0;
        LatLon location = null;
        for (LatLon ll : this.getLocations())
        {
            if (i++ == this.labelLocationIndex)
                location = ll;
        }
View Full Code Here

TOP

Related Classes of gov.nasa.worldwind.geom.LatLon

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.