Changeset 78 in josm for src/org/openstreetmap/josm/io/OsmServerReader.java
- Timestamp:
- 2006-04-01T13:01:41+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/io/OsmServerReader.java
r75 r78 11 11 import org.jdom.JDOMException; 12 12 import org.openstreetmap.josm.Main; 13 import org.openstreetmap.josm.data.coor.LatLon;14 13 import org.openstreetmap.josm.data.osm.DataSet; 14 import org.openstreetmap.josm.gui.layer.RawGpsDataLayer.GpsPoint; 15 15 import org.xml.sax.SAXException; 16 16 … … 47 47 * ways. 48 48 */ 49 public Collection<Collection< LatLon>> parseRawGps() throws IOException, JDOMException {49 public Collection<Collection<GpsPoint>> parseRawGps() throws IOException, JDOMException { 50 50 String url = Main.pref.get("osm-server.url")+"/0.3/trackpoints?bbox="+lon1+","+lat1+","+lon2+","+lat2+"&page="; 51 Collection<Collection< LatLon>> data = new LinkedList<Collection<LatLon>>();52 Collection< LatLon> list = new LinkedList<LatLon>();51 Collection<Collection<GpsPoint>> data = new LinkedList<Collection<GpsPoint>>(); 52 Collection<GpsPoint> list = new LinkedList<GpsPoint>(); 53 53 54 54 for (int i = 0;;++i) { … … 57 57 break; 58 58 RawGpsReader gpsReader = new RawGpsReader(r); 59 Collection<Collection< LatLon>> allWays = gpsReader.parse();59 Collection<Collection<GpsPoint>> allWays = gpsReader.parse(); 60 60 boolean foundSomething = false; 61 for (Collection< LatLon> t : allWays) {61 for (Collection<GpsPoint> t : allWays) { 62 62 if (!t.isEmpty()) { 63 63 foundSomething = true;
Note:
See TracChangeset
for help on using the changeset viewer.