Пример #1
0
  /**
   * Return satellites for given direction
   *
   * @param t
   * @param direction
   * @return
   */
  public String getPhotomagesList(String direction, GGeoString geoString) {
    GImage centerImage = this.calc.fromGeoStringToGImage(geoString);

    GImage[] imageList =
        this.calc.getMapImages(centerImage, (int[][]) this.calc.shiftMap.get(direction));

    GGeoString[] photoList = new GGeoString[imageList.length];
    for (int i = 0; i < imageList.length; i++) {
      photoList[i] = this.calc.fromGImageToGeoString(imageList[i]);
    }
    return "{ zoom : "
        + geoString.getZoom()
        + ", imgList : "
        + this.calc.gGeoStringListToString(photoList)
        + "}";
  }
Пример #2
0
 /**
  * Get map images list for given satellite coordinate.
  *
  * @param t satellite coordinate
  * @param area
  * @return
  */
 public String getMapImagesListFromTxt(String t, int offx, int offy) {
   GGeoString geoString = new GGeoString(t, offx, offy);
   GImage gImage = this.calc.fromGeoStringToGImage(geoString);
   int zoom = this.calc.fromTxtZoomToCoordZoom(geoString.getZoom());
   return getMainMapImagesList(gImage.getImgX(), gImage.getImgY(), zoom);
 }