Ignore:
Timestamp:
2013-09-21T13:19:50+02:00 (13 years ago)
Author:
Don-vip
Message:

fix #9091 - rework osm/gpx download tasks - take into account recent changes from OSM server:

  • new hashtag scheme
  • GPX traces now returned as Bzip2-compressed files
File:
1 edited

Legend:

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

    r6089 r6244  
    3434    private boolean doAuthenticate = false;
    3535    protected boolean gpxParsedProperly;
     36   
     37    protected enum Compression {
     38        NONE,
     39        BZIP2,
     40        GZIP
     41    }
    3642
    3743    /**
     
    162168    }
    163169
     170    /**
     171     * Download OSM files from somewhere
     172     * @param progressMonitor The progress monitor
     173     * @return The corresponding dataset
     174     * @throws OsmTransferException if any error occurs
     175     */
    164176    public abstract DataSet parseOsm(final ProgressMonitor progressMonitor) throws OsmTransferException;
    165177
     178    /**
     179     * Download OSM Change files from somewhere
     180     * @param progressMonitor The progress monitor
     181     * @return The corresponding dataset
     182     * @throws OsmTransferException if any error occurs
     183     */
    166184    public DataSet parseOsmChange(final ProgressMonitor progressMonitor) throws OsmTransferException {
    167185        return null;
    168186    }
    169187
     188    /**
     189     * Download BZip2-compressed OSM Change files from somewhere
     190     * @param progressMonitor The progress monitor
     191     * @return The corresponding dataset
     192     * @throws OsmTransferException if any error occurs
     193     */
    170194    public DataSet parseOsmChangeBzip2(final ProgressMonitor progressMonitor) throws OsmTransferException {
    171195        return null;
    172196    }
    173197
     198    /**
     199     * Download GZip-compressed OSM Change files from somewhere
     200     * @param progressMonitor The progress monitor
     201     * @return The corresponding dataset
     202     * @throws OsmTransferException if any error occurs
     203     */
    174204    public DataSet parseOsmChangeGzip(final ProgressMonitor progressMonitor) throws OsmTransferException {
    175205        return null;
    176206    }
    177207
     208    /**
     209     * Retrieve raw gps waypoints from the server API.
     210     * @param progressMonitor The progress monitor
     211     * @return The corresponding GPX tracks
     212     * @throws OsmTransferException if any error occurs
     213     */
    178214    public GpxData parseRawGps(final ProgressMonitor progressMonitor) throws OsmTransferException {
    179215        return null;
    180216    }
    181217
     218    /**
     219     * Retrieve BZip2-compressed GPX files from somewhere.
     220     * @param progressMonitor The progress monitor
     221     * @return The corresponding GPX tracks
     222     * @throws OsmTransferException if any error occurs
     223     * @since 6244
     224     */
     225    public GpxData parseRawGpsBzip2(final ProgressMonitor progressMonitor) throws OsmTransferException {
     226        return null;
     227    }
     228
     229    /**
     230     * Download BZip2-compressed OSM files from somewhere
     231     * @param progressMonitor The progress monitor
     232     * @return The corresponding dataset
     233     * @throws OsmTransferException if any error occurs
     234     */
    182235    public DataSet parseOsmBzip2(final ProgressMonitor progressMonitor) throws OsmTransferException {
    183236        return null;
    184237    }
    185238
     239    /**
     240     * Download GZip-compressed OSM files from somewhere
     241     * @param progressMonitor The progress monitor
     242     * @return The corresponding dataset
     243     * @throws OsmTransferException if any error occurs
     244     */
    186245    public DataSet parseOsmGzip(final ProgressMonitor progressMonitor) throws OsmTransferException {
    187246        return null;
Note: See TracChangeset for help on using the changeset viewer.