Ignore:
Timestamp:
2006-04-01T13:01:41+02:00 (18 years ago)
Author:
imi
Message:
  • added more context menu items to layer list
  • added GPX export (raw gps and osm)
File:
1 edited

Legend:

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

    r75 r78  
    1111import org.jdom.JDOMException;
    1212import org.openstreetmap.josm.Main;
    13 import org.openstreetmap.josm.data.coor.LatLon;
    1413import org.openstreetmap.josm.data.osm.DataSet;
     14import org.openstreetmap.josm.gui.layer.RawGpsDataLayer.GpsPoint;
    1515import org.xml.sax.SAXException;
    1616
     
    4747         *              ways.
    4848         */
    49         public Collection<Collection<LatLon>> parseRawGps() throws IOException, JDOMException {
     49        public Collection<Collection<GpsPoint>> parseRawGps() throws IOException, JDOMException {
    5050                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>();
    5353               
    5454                for (int i = 0;;++i) {
     
    5757                                break;
    5858                        RawGpsReader gpsReader = new RawGpsReader(r);
    59                         Collection<Collection<LatLon>> allWays = gpsReader.parse();
     59                        Collection<Collection<GpsPoint>> allWays = gpsReader.parse();
    6060                        boolean foundSomething = false;
    61                         for (Collection<LatLon> t : allWays) {
     61                        for (Collection<GpsPoint> t : allWays) {
    6262                                if (!t.isEmpty()) {
    6363                                        foundSomething = true;
Note: See TracChangeset for help on using the changeset viewer.