Changeset 1722 in josm for trunk/src/org/openstreetmap/josm/io/GpxWriter.java
- Timestamp:
- 2009-07-03T12:33:32+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GpxWriter.java
r1677 r1722 121 121 if (attr.containsKey(GpxData.META_KEYWORDS)) simpleTag("keywords", (String)attr.get(GpxData.META_KEYWORDS)); 122 122 123 data.recalculateBounds(); 124 Bounds bounds = data.bounds; 125 String b = "minlat=\"" + bounds.min.lat() + "\" minlon=\"" + bounds.min.lon() + 126 "\" maxlat=\"" + bounds.max.lat() + "\" maxlon=\"" + bounds.max.lon() + "\"" ; 127 inline("bounds", b); 123 Bounds bounds = data.recalculateBounds(); 124 if(bounds != null) 125 { 126 String b = "minlat=\"" + bounds.min.lat() + "\" minlon=\"" + bounds.min.lon() + 127 "\" maxlat=\"" + bounds.max.lat() + "\" maxlon=\"" + bounds.max.lon() + "\"" ; 128 inline("bounds", b); 129 } 128 130 129 131 closeln("metadata");
Note:
See TracChangeset
for help on using the changeset viewer.