Changeset 35035 in osm
- Timestamp:
- 2019-06-19T09:18:54+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfReader.java
r35033 r35035 74 74 75 75 if (header.hasBbox()) { 76 HeaderBBox bbox = header.getBbox();77 if (bbox != null) {78 double minlat = parseRawDegrees(bbox.getBottom());79 double minlon = parseRawDegrees(bbox.getLeft());80 double maxlat = parseRawDegrees(bbox.getTop());81 double maxlon = parseRawDegrees(bbox.getRight());82 Bounds b = new Bounds(minlat, minlon, maxlat, maxlon);83 if (!b.isCollapsed() && areCoordinatesValid(minlat, minlon, maxlat, maxlon)) {84 ds.addDataSource(new DataSource(b, header.getSource()));85 } else {86 Logging.error("Invalid Bounds: "+b);87 }88 }76 HeaderBBox bbox = header.getBbox(); 77 if (bbox != null) { 78 double minlat = parseRawDegrees(bbox.getBottom()); 79 double minlon = parseRawDegrees(bbox.getLeft()); 80 double maxlat = parseRawDegrees(bbox.getTop()); 81 double maxlon = parseRawDegrees(bbox.getRight()); 82 Bounds b = new Bounds(minlat, minlon, maxlat, maxlon); 83 if (!b.isCollapsed() && areCoordinatesValid(minlat, minlon, maxlat, maxlon)) { 84 ds.addDataSource(new DataSource(b, header.getSource())); 85 } else { 86 Logging.error("Invalid Bounds: "+b); 87 } 88 } 89 89 } 90 90 }
Note:
See TracChangeset
for help on using the changeset viewer.
