Changeset 7233 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2014-06-09T17:47:33+02:00 (10 years ago)
Author:
akks
Message:

fix #10115: use fixed point notation for all coordinates in generated .osm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmWriter.java

    r7005 r7233  
    163163        for (DataSource s : ds.dataSources) {
    164164            out.println("  <bounds minlat='"
    165                     + s.bounds.getMinLat()+"' minlon='"
    166                     + s.bounds.getMinLon()+"' maxlat='"
    167                     + s.bounds.getMaxLat()+"' maxlon='"
    168                     + s.bounds.getMaxLon()
     165                    + s.bounds.getMin().latToString(CoordinateFormat.DECIMAL_DEGREES)
     166                    +"' minlon='"
     167                    + s.bounds.getMin().lonToString(CoordinateFormat.DECIMAL_DEGREES)
     168                    +"' maxlat='"
     169                    + s.bounds.getMax().latToString(CoordinateFormat.DECIMAL_DEGREES)
     170                    +"' maxlon='"
     171                    + s.bounds.getMax().lonToString(CoordinateFormat.DECIMAL_DEGREES)
    169172                    +"' origin='"+XmlWriter.encode(s.origin)+"' />");
    170173        }
     
    179182        } else {
    180183            if (n.getCoor() != null) {
    181                 out.print(" lat='"+n.getCoor().lat()+"' lon='"+n.getCoor().lon()+"'");
     184                out.print(" lat='" +n.getCoor().latToString(CoordinateFormat.DECIMAL_DEGREES)+
     185                          "' lon='"+n.getCoor().lonToString(CoordinateFormat.DECIMAL_DEGREES)+"'");
    182186            }
    183187            addTags(n, "node", true);
Note: See TracChangeset for help on using the changeset viewer.