Changeset 31789 in osm for applications/editors/josm/plugins/mapillary/src
- Timestamp:
- 2015-12-02T17:06:43+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryUtils.java
r31787 r31789 44 44 45 45 private static double MIN_ZOOM_SQUARE_SIDE = 0.002; 46 47 private static int noTagsPics = 0;48 46 49 47 /** … … 328 326 */ 329 327 public static MapillaryImportedImage readNoTags(File file, LatLon pos) { 330 double HORIZONTAL_DISTANCE = 0.0001;331 double horDev;332 333 if (noTagsPics % 2 == 0)334 horDev = HORIZONTAL_DISTANCE * noTagsPics / 2;335 else336 horDev = -HORIZONTAL_DISTANCE * ((noTagsPics + 1) / 2);337 noTagsPics++;338 339 328 ImageMetadata metadata = null; 340 329 try { … … 351 340 ExifTagConstants.EXIF_TAG_DATE_TIME_ORIGINAL); 352 341 if (datetimeOriginal == null) 353 return new MapillaryImportedImage(pos.lat(), pos.lon() + horDev, 0,342 return new MapillaryImportedImage(pos.lat(), pos.lon(), 0, 354 343 file); 355 344 else { 356 345 try { 357 return new MapillaryImportedImage(pos.lat(), pos.lon() + horDev, 0,346 return new MapillaryImportedImage(pos.lat(), pos.lon(), 0, 358 347 file, datetimeOriginal.getStringValue()); 359 348 } catch (ImageReadException e) { … … 362 351 } 363 352 } 364 return new MapillaryImportedImage(pos.lat(), pos.lon() + horDev, 0, file);353 return new MapillaryImportedImage(pos.lat(), pos.lon(), 0, file); 365 354 } 366 355
Note:
See TracChangeset
for help on using the changeset viewer.