Changeset 11627 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2017-02-26T00:59:32+01:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r11435 r11627 198 198 } 199 199 DataSource src = new DataSource(bounds, origin); 200 ds. dataSources.add(src);200 ds.addDataSource(src); 201 201 } else { 202 202 throwException(tr("Missing mandatory attributes on element ''bounds''. " + -
trunk/src/org/openstreetmap/josm/io/OsmWriter.java
r10619 r11627 174 174 175 175 public void writeDataSources(DataSet ds) { 176 for (DataSource s : ds. dataSources) {176 for (DataSource s : ds.getDataSources()) { 177 177 out.println(" <bounds minlat='" 178 178 + s.bounds.getMin().latToString(CoordinateFormat.DECIMAL_DEGREES) -
trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java
r11560 r11627 169 169 170 170 // add bounds if necessary (note that Overpass API does not return bounds in the response XML) 171 if (ds != null && ds. dataSources.isEmpty() && overpassQuery.contains("{{bbox}}")) {171 if (ds != null && ds.getDataSources().isEmpty() && overpassQuery.contains("{{bbox}}")) { 172 172 if (crosses180th) { 173 173 Bounds bounds = new Bounds(lat1, lon1, lat2, 180.0); 174 174 DataSource src = new DataSource(bounds, getBaseUrl()); 175 ds. dataSources.add(src);175 ds.addDataSource(src); 176 176 177 177 bounds = new Bounds(lat1, -180.0, lat2, lon2); 178 178 src = new DataSource(bounds, getBaseUrl()); 179 ds. dataSources.add(src);179 ds.addDataSource(src); 180 180 } else { 181 181 Bounds bounds = new Bounds(lat1, lon1, lat2, lon2); 182 182 DataSource src = new DataSource(bounds, getBaseUrl()); 183 ds. dataSources.add(src);183 ds.addDataSource(src); 184 184 } 185 185 }
Note:
See TracChangeset
for help on using the changeset viewer.