Package es.emergya.geo.util

Examples of es.emergya.geo.util.UTM


            e.getY());
        String position = "";
        String format = LogicConstants.get("FORMATO_COORDENADAS_MAPA",
            "UTM");
        if (format.equals(LogicConstants.COORD_UTM)) {
          UTM u = new UTM(LogicConstants.getInt("ZONA_UTM"));
          EastNorth en = u.latlon2eastNorth(ll);
          position = String.format("x: %.1f y: %.1f", en.getX(), en
              .getY());
        } else {
          position = String.format("Lat: %.4f Lon: %.4f", ll.lat(),
              ll.lon());
View Full Code Here


          }

          String format = LogicConstants.get(
              "FORMATO_COORDENADAS_MAPA", "UTM");
          if (format.equals(LogicConstants.COORD_UTM)) {
            UTM u = new UTM(LogicConstants.getInt("ZONA_UTM"));
            LatLon ll = u.eastNorth2latlon(new EastNorth(x, y));
            view.zoomTo(Main.proj.latlon2eastNorth(ll), view
                .getScale());
          } else {
            // en el latlong la x y la y van al reves
            view.zoomTo(Main.proj
View Full Code Here

  public void setFrom(LatLon from) {
    if (from != null) {
      this.from = from;
      if (LogicConstants.get("FORMATO_COORDENADAS_MAPA", "UTM").equals(
          LogicConstants.COORD_UTM)) {
        UTM u = new UTM(LogicConstants.getInt("ZONA_UTM"));
        EastNorth enf = u.latlon2eastNorth(from);
        fy.setText(String.valueOf(enf.getX()));
        fx.setText(String.valueOf(enf.getY()));
      } else {
        fx.setText(String.valueOf(from.getX()));
        fy.setText(String.valueOf(from.getY()));
View Full Code Here

      this.to = to;
      if (LogicConstants.get("FORMATO_COORDENADAS_MAPA", "UTM").equals(
          LogicConstants.COORD_UTM)) {
        // mirar LogicConstants.transform(Point geom, final String
        // sourceSRID, final String targetSRID)
        UTM u = new UTM(LogicConstants.getInt("ZONA_UTM"));
        EastNorth ent = u.latlon2eastNorth(to);
        ty.setText(String.valueOf(ent.getX()));
        tx.setText(String.valueOf(ent.getY()));
      } else {
        tx.setText(String.valueOf(to.getX()));
        ty.setText(String.valueOf(to.getY()));
View Full Code Here

  private void printCoordinates(LatLon ll) {
    if (ll != null) {
      if (LogicConstants.get("FORMATO_COORDENADAS_MAPA", "UTM").equals(
          LogicConstants.COORD_UTM)) {
        UTM u = new UTM(LogicConstants.getInt("ZONA_UTM"));
        EastNorth en = u.latlon2eastNorth(ll);
        coordY.setText(String.valueOf(en.getX()));
        coordX.setText(String.valueOf(en.getY()));
      } else {
        coordX.setText(String.valueOf(ll.getX()));
        coordY.setText(String.valueOf(ll.getY()));
View Full Code Here

TOP

Related Classes of es.emergya.geo.util.UTM

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.