Changeset 31196 in osm for applications
- Timestamp:
- 2015-06-03T13:19:13+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/mapillary
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/build.xml
r31192 r31196 16 16 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 17 17 <property name="plugin.main.version" value="7777"/> 18 <property name="plugin.version" value="0.8"/> 18 <property name="plugin.version" value="0.8.1"/> 19 19 20 20 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryExportAction.java
r31177 r31196 5 5 import java.awt.Dimension; 6 6 import java.awt.event.ActionEvent; 7 import java.util.ArrayList; 7 8 import java.util.List; 8 9 … … 46 47 export(MapillaryData.getInstance().getImages()); 47 48 } else if (dialog.group.isSelected(dialog.sequence.getModel())) { 48 export(MapillaryData.getInstance().getSelectedImage() 49 .getSequence().getImages()); 49 ArrayList<MapillaryImage> images = new ArrayList<>(); 50 for (MapillaryImage image : MapillaryData.getInstance().getMultiSelectedImages()) 51 if (!images.contains(image)) 52 images.addAll(image.getSequence().getImages()); 53 export(images); 50 54 } else if (dialog.group.isSelected(dialog.selected.getModel())) { 51 55 export(MapillaryData.getInstance().getMultiSelectedImages()); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryPlugin.java
r31194 r31196 44 44 public MapillaryPlugin(PluginInformation info) { 45 45 super(info); 46 synchronized (this) {47 Main.logLevel = 1;48 }49 46 downloadAction = new MapillaryDownloadAction(); 50 47 exportAction = new MapillaryExportAction(); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillarySequence.java
r31194 r31196 13 13 public class MapillarySequence { 14 14 private final List<MapillaryImage> images; 15 private String timestamp;16 15 private final String key; 16 private final int created_at; 17 17 18 public MapillarySequence(String key) { 18 public MapillarySequence(String key, int created_at) { 19 19 this.images = new ArrayList<>(); 20 20 this.key = key; 21 this.created_at = created_at; 21 22 } 22 23 … … 31 32 } 32 33 33 public void setTimestamp(String timestamp) { 34 this.timestamp = timestamp; 35 } 36 37 public String getTimestamp() { 38 return this.timestamp; 34 35 public int getCreatedAt() { 36 return created_at; 39 37 } 40 38 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/downloads/MapillarySequenceDownloadThread.java
r31194 r31196 69 69 .getJsonNumber(j).doubleValue())); 70 70 } catch (IndexOutOfBoundsException e) { 71 Main. error(e);71 Main.warn("Mapillary bug at " + url); 72 72 isSequenceWrong = true; 73 73 } catch (Exception e) { … … 77 77 if (isSequenceWrong) 78 78 break; 79 MapillarySequence sequence = new MapillarySequence(jsonobj.getString("key")); 79 MapillarySequence sequence = new MapillarySequence(jsonobj.getString("key"), jsonobj.getJsonNumber("captured_at").intValue()); 80 80 for (MapillaryImage mimage : MapillaryData.getInstance().getImages()) 81 81 if (mimage.getSequence().getKey() == sequence.getKey())
Note:
See TracChangeset
for help on using the changeset viewer.