Changeset 31828 in osm for applications/editors/josm/plugins/mapillary/test
- Timestamp:
- 2015-12-15T16:32:30+01:00 (9 years ago)
- 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 43 43 44 44 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); 51 46 MapillaryLayer.getInstance().getData().bounds.add(new Bounds(minLatLon, 52 47 maxLatLon)); … … 58 53 System.out.println("Sending sequence-request " + page 59 54 + " to Mapillary-servers…"); 60 Thread downloadThread = new MapillarySequenceDownloadThread(ex, 61 queryString + "&page=" + page); 55 Thread downloadThread = new MapillarySequenceDownloadThread(ex, bounds, page); 62 56 downloadThread.start(); 63 57 downloadThread.join(); … … 66 60 } 67 61 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."); 70 63 } 71 64
Note:
See TracChangeset
for help on using the changeset viewer.