Examples of UTM


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

Examples of es.emergya.geo.util.UTM

          }

          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

Examples of es.emergya.geo.util.UTM

  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

Examples of es.emergya.geo.util.UTM

      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

Examples of es.emergya.geo.util.UTM

  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

Examples of org.jscience.geography.coordinates.UTM

            // Simple Lat/Long to UTM conversion.
            CoordinatesConverter<LatLong, UTM> latLongToUTM = LatLong.CRS
                    .getConverterTo(UTM.CRS);
            LatLong latLong = LatLong.valueOf(34.34, 23.56, DEGREE_ANGLE);
            UTM utm = latLongToUTM.convert(latLong);
            System.out.println(utm);

            // Lat/Long to XYZ conversion (assume height of zero).
            CoordinatesConverter<LatLong, XYZ> latLongToXYZ = LatLong.CRS
                    .getConverterTo(XYZ.CRS);
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.