Ignore:
Timestamp:
2015-12-15T16:32:30+01:00 (9 years ago)
Author:
floscher
Message:

[mapillary] Move creation of Mapillary URLs in separate utility class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/io/download/MapillarySequenceDownloadThreadTest.java

    r31799 r31828  
    4343
    4444    ExecutorService ex = Executors.newSingleThreadExecutor();
    45     String queryString = String
    46         .format(
    47             Locale.UK,
    48             "?max_lat=%.8f&max_lon=%.8f&min_lat=%.8f&min_lon=%.8f&limit=10&client_id=%s",
    49             maxLatLon.lat(), maxLatLon.lon(), minLatLon.lat(), minLatLon.lon(),
    50             MapillaryPlugin.CLIENT_ID);
     45    Bounds bounds = new Bounds(minLatLon, maxLatLon);
    5146    MapillaryLayer.getInstance().getData().bounds.add(new Bounds(minLatLon,
    5247        maxLatLon));
     
    5853      System.out.println("Sending sequence-request " + page
    5954          + " to Mapillary-servers…");
    60       Thread downloadThread = new MapillarySequenceDownloadThread(ex,
    61           queryString + "&page=" + page);
     55      Thread downloadThread = new MapillarySequenceDownloadThread(ex, bounds, page);
    6256      downloadThread.start();
    6357      downloadThread.join();
     
    6660    }
    6761    assertTrue(MapillaryLayer.getInstance().getData().getImages().size() >= 1);
    68     System.out
    69         .println("One or more images were added to the MapillaryLayer within the given bounds.");
     62    System.out.println("One or more images were added to the MapillaryLayer within the given bounds.");
    7063  }
    7164
Note: See TracChangeset for help on using the changeset viewer.