Examples of LatLon


Examples of gov.nasa.worldwind.geom.LatLon

      if (strsIdTloAll == null || strsIdTloAll.length < 1)
         return bln;


      LatLon llnMin = alt.get(0);
      LatLon llnMax = alt.get(1);

      for (String strIdCur : strsIdTloAll)
      {
         if (GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strIdCur))
            continue;
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

      String[] strsIdTloAll = GfrWrpBasTopSynEclPnts.getInstance().getIdsTlo();

      if (strsIdTloAll == null || strsIdTloAll.length < 1)
         return bln;

      LatLon llnMin = alt.get(0);
      LatLon llnMax = alt.get(1);

      for (String strIdCur : strsIdTloAll)
      {
         Position posCur = GfrWrpBasSynObjNameTloEclPnt.getInstance().getGeometry(strIdCur);
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

      String[] strsIdTloAll = GfrWrpBasTopSynEclPnts.getInstance().getIdsTlo();

      if (strsIdTloAll == null || strsIdTloAll.length < 1)
         return bln;

      LatLon llnMin = alt.get(0);
      LatLon llnMax = alt.get(1);

      for (String strIdCur : strsIdTloAll)
      {
         Position posCur = GfrWrpBasSynObjNameTloEclPnt.getInstance().getGeometry(strIdCur);
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

      if (strsIdTloAll == null || strsIdTloAll.length < 1)
         return bln;


      LatLon llnMin = alt.get(0);
      LatLon llnMax = alt.get(1);

      for (String strIdCur : strsIdTloAll)
      {
         if (!GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strIdCur))
            continue;
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

      String[] strsIdTloAll = GfrWrpBasTopSynEclScts.getInstance().getIdsTlo();

      if (strsIdTloAll == null || strsIdTloAll.length < 1)
         return bln;

      LatLon llnMin = alt.get(0);
      LatLon llnMax = alt.get(1);

      for (String strIdCur : strsIdTloAll)
      {
         if (GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strIdCur))
            continue;
View Full Code Here

Examples of gov.nasa.worldwind.geom.LatLon

      String[] strsIdTloAll = GfrWrpBasTopSynEclScts.getInstance().getIdsTlo();

      if (strsIdTloAll == null || strsIdTloAll.length < 1)
         return bln;

      LatLon llnMin = alt.get(0);
      LatLon llnMax = alt.get(1);

      for (String strIdCur : strsIdTloAll)
      {
         List<Position> lstPosCur = GfrWrpBasSynObjNameTloEclSct.getInstance().getGeometry(strIdCur);
View Full Code Here

Examples of net.lalotech.model.LatLon

    public String viewmaptag() {
        System.out.println("call view-map-tag()");
        /**
         * Markers sample
         */       
        markers.add(new MarkerModel(new LatLon(19.8246, -99.6571), "", "marker 1"));
        markers.add(new MarkerModel(new LatLon(19.0324, -99.7435), "", "marker 2"));
        markers.add(new MarkerModel(new LatLon(19.2352, -99.6424), "", "marker 3"));
        /**
         * Markers with custom icons
         */
        markersicons.add(new MarkerModel(new LatLon(19.8246, -99.6571), "/img/marker1.png", "marker 1"));
        markersicons.add(new MarkerModel(new LatLon(19.0324, -99.7435), "/img/marker2.png", "marker 2"));
        markersicons.add(new MarkerModel(new LatLon(19.2352, -99.6424), "/img/marker3.png", "marker 3"));
        /***
         * Geocercas
         */
        geocercas.add(new Geocerca(new LatLon(19.1, -99.1), 2700));
        geocercas.add(new Geocerca(new LatLon(19, -99), 2500));
        geocercas.add(new Geocerca(new LatLon(19.2, -99.2), 1500));

        return SUCCESS;
    }
View Full Code Here

Examples of org.apache.sis.core.LatLon

                if (item.getGuid() != null)
                  filename = cleanStr(item.getGuid().getValue()) + ".txt";
                else
                  filename = cleanStr(item.getLink()) + ".txt";

                GeoRSSData data = new GeoRSSData(filename, new LatLon(
                    geoRSSModule.getPosition().getLatitude(), geoRSSModule
                        .getPosition().getLongitude()));
                if (this.tree.insert(data)) {
                  data.saveToFile(item, geoRSSModule, georssStoragePath);
                } else {
View Full Code Here

Examples of org.apache.sis.core.LatLon

      String urLat = request.getParameter("urLat");
      String urLon = request.getParameter("urLon");

      if (llLat != null && llLon != null && urLat != null && urLon != null) {
        try {
          LatLonRect bbox = new LatLonRect(new LatLon(
              Double.parseDouble(llLat), Double.parseDouble(llLon)),
              new LatLon(Double.parseDouble(urLat), Double.parseDouble(urLon)));

          beforeTime = System.currentTimeMillis();
          results = tree.queryByBoundingBox(bbox);
          afterTime = System.currentTimeMillis();
          // get the polygon that approximates the region
          Rectangle2D[] rects = bbox.getJavaRectangles();
          for (int i = 0; i < rects.length; i++) {
            String regionStr = (rects[i].getMinY() - 90) + ","
                + (rects[i].getMinX() - 180) + ",";
            regionStr += (rects[i].getMaxY() - 90) + ","
                + (rects[i].getMinX() - 180) + ",";
            regionStr += (rects[i].getMaxY() - 90) + ","
                + (rects[i].getMaxX() - 180) + ",";
            regionStr += (rects[i].getMinY() - 90) + ","
                + (rects[i].getMaxX() - 180) + ",";
            regionStr += (rects[i].getMinY() - 90) + ","
                + (rects[i].getMinX() - 180);
            regions.add(regionStr);
          }
        } catch (NumberFormatException ex) {
          System.out
              .println("[ERROR] Input parameters were not valid latitudes and longitudes");
        }

      }
    } else if (type != null && type.equals("pointradius")) {
      String radius = request.getParameter("radius");
      String lat = request.getParameter("lat");
      String lon = request.getParameter("lon");

      if (radius != null && lat != null && lon != null) {

        LatLon point = null;
        try {
          point = new LatLon(Double.parseDouble(lat), Double.parseDouble(lon));
        } catch (NumberFormatException ex) {
          System.out
              .println("{ERROR] Input parameters were not valid latitudes and longitudes");
        }

        double radiusKM = Double.parseDouble(radius);

        String regionStr = "";

        for (int i = 0; i < 360; i += 10) {
          LatLon pt = DistanceUtils.getPointOnGreatCircle(point.getLat(), point
              .getLon(), radiusKM, i);
          regionStr += pt.toString() + ",";
        }
        LatLon pt = DistanceUtils.getPointOnGreatCircle(point.getLat(), point
            .getLon(), radiusKM, 0);
        regionStr += pt.toString() + ",";
        regions.add(regionStr.substring(0, regionStr.length() - 1));

        beforeTime = System.currentTimeMillis();
        results = tree.queryByPointRadius(point, radiusKM);
        afterTime = System.currentTimeMillis();
View Full Code Here

Examples of org.apache.sis.core.LatLon

          for (int i = 4; i < tokens.length; i++) {
            String[] dataTokens = tokens[i].split(";");
            double lat = Double.parseDouble(dataTokens[0]);
            double lon = Double.parseDouble(dataTokens[1]);
            parent.getChild(quadrant).addData(
                new GeoRSSData(dataTokens[2], new LatLon(lat, lon)));
            tree.setSize(tree.getSize() + 1);
          }
          tree.setNodeSize(tree.getNodeSize() + 1);
        }
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.