Changeset 11397 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2016-12-14T15:50:53+01:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/BoundingBoxDownloader.java
r11100 r11397 94 94 // API 0.6 does not support requests crossing the 180th meridian, so make two requests 95 95 GpxData result = downloadRawGps(new Bounds(lat1, lon1, lat2, 180.0), progressMonitor); 96 result.mergeFrom(downloadRawGps(new Bounds(lat1, -180.0, lat2, lon2), progressMonitor)); 96 if (result != null) 97 result.mergeFrom(downloadRawGps(new Bounds(lat1, -180.0, lat2, lon2), progressMonitor)); 97 98 return result; 98 99 } else { -
trunk/src/org/openstreetmap/josm/io/GpxReader.java
r10378 r11397 399 399 } else if (currentState != State.LINK) { 400 400 Map<String, Object> attr = getAttr(); 401 if ( !attr.containsKey(META_LINKS)) {401 if (attr != null && !attr.containsKey(META_LINKS)) { 402 402 attr.put(META_LINKS, new LinkedList<GpxLink>()); 403 403 } 404 ((Collection<GpxLink>) attr.get(META_LINKS)).add(currentLink); 404 if (attr != null) 405 ((Collection<GpxLink>) attr.get(META_LINKS)).add(currentLink); 405 406 } 406 407 break;
Note:
See TracChangeset
for help on using the changeset viewer.