Changeset 1670 in josm for trunk/src/org/openstreetmap/josm/io/OsmServerLocationReader.java
- Timestamp:
- 15.06.2009 20:22:46 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmServerLocationReader.java
r1523 r1670 22 22 * Method to download OSM files from somewhere 23 23 */ 24 public DataSet parseOsm() throws SAXException, IOException { 24 @Override 25 public DataSet parseOsm() throws OsmTransferException { 25 26 try { 26 27 Main.pleaseWaitDlg.progress.setValue(0); … … 32 33 Main.pleaseWaitDlg.currentAction.setText(tr("Downloading OSM data...")); 33 34 final DataSet data = OsmReader.parseDataSet(in, null, Main.pleaseWaitDlg); 34 // Bounds bounds = new Bounds(new LatLon(lat1, lon1), new LatLon(lat2, lon2));35 // DataSource src = new DataSource(bounds, origin);36 // data.dataSources.add(src);37 35 in.close(); 38 36 activeConnection = null; … … 41 39 if (cancel) 42 40 return null; 43 throw e;41 throw new OsmTransferException(e); 44 42 } catch (SAXException e) { 43 throw new OsmTransferException(e); 44 } catch(OsmTransferException e) { 45 45 throw e; 46 46 } catch (Exception e) { 47 47 if (cancel) 48 48 return null; 49 if (e instanceof RuntimeException) 50 throw (RuntimeException)e; 51 throw new RuntimeException(e); 49 throw new OsmTransferException(e); 52 50 } 53 51 }
Note: See TracChangeset
for help on using the changeset viewer.
