Ignore:
Timestamp:
2008-08-11T22:04:37+02:00 (16 years ago)
Author:
framm
Message:
  • add support for <bounds> tag in .osm files using four attributes minlat,maxlat,minlon,maxlon. old <bound> still supported for a transition period. fixes #1112.
File:
1 edited

Legend:

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

    r627 r769  
    9898                Main.pleaseWaitDlg.currentAction.setText(tr("Downloading OSM data..."));
    9999                final DataSet data = OsmReader.parseDataSet(in, null, Main.pleaseWaitDlg);
     100            /*
     101             * We're not doing this here anymore as the API now properly sets a bounds element
     102             * which will get parsed.
    100103                String origin = Main.pref.get("osm-server.url")+"/"+Main.pref.get("osm-server.version", "0.5");
    101104                Bounds bounds = new Bounds(new LatLon(lat1, lon1), new LatLon(lat2, lon2));
    102105                        DataSource src = new DataSource(bounds, origin);
    103106                data.dataSources.add(src);
     107             */
    104108                in.close();
    105109                activeConnection = null;
Note: See TracChangeset for help on using the changeset viewer.