Ejemplo n.º 1
0
  /**
   * set lat and lon by using GK coordinates
   *
   * @param strEasting Easting component
   * @param strNorthing Northing component
   */
  public void set(String strEasting, String strNorthing) {
    GkPoint gk =
        new GkPoint(
            Common.parseDouble(strEasting), Common.parseDouble(strNorthing), GkPoint.GERMAN_GK);

    this.latDec = TransformCoordinates.germanGkToWgs84(gk).latDec;
    this.lonDec = TransformCoordinates.germanGkToWgs84(gk).lonDec;
    this.utmValid = false;
  }
Ejemplo n.º 2
0
  /** Get GK easting */
  public String getGKEasting(int decimalplaces) {
    double gkEasting = TransformCoordinates.wgs84ToGermanGk(this).getGkEasting(GkPoint.GERMAN_GK);

    ewe.sys.Double e = new ewe.sys.Double();
    e.set(gkEasting);
    e.decimalPlaces = decimalplaces;
    return e.toString().replace(',', '.');
  }
Ejemplo n.º 3
0
  /** Get GK northing */
  public String getGKNorthing(int decimalplaces) {
    double gkNorthing = TransformCoordinates.wgs84ToGermanGk(this).getNorthing();

    ewe.sys.Double n = new ewe.sys.Double();
    n.set(gkNorthing);
    n.decimalPlaces = decimalplaces;
    return n.toString().replace(',', '.');
  }
Ejemplo n.º 4
0
 public String getGermanGkCoordinates(
     int decimalplaces, String pref, String seperator, int region) {
   return TransformCoordinates.wgs84ToGermanGk(this)
       .toString(decimalplaces, pref, seperator, region);
 }
Ejemplo n.º 5
0
 public String getGermanGkCoordinates() {
   return TransformCoordinates.wgs84ToGermanGk(this).toString(0, "R:", " H:", GkPoint.GERMAN_GK);
 }