Changeset 30995 in osm for applications/editors/josm
- Timestamp:
- 2015-02-15T20:51:45+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/seachart/SeachartAction.java
r30894 r30995 11 11 12 12 import java.awt.event.*; 13 13 14 import javax.swing.*; 14 15 … … 20 21 import org.openstreetmap.josm.gui.MapView.LayerChangeListener; 21 22 import org.openstreetmap.josm.gui.layer.*; 23 import org.openstreetmap.josm.data.coor.LatLon; 22 24 import org.openstreetmap.josm.data.imagery.ImageryInfo; 23 25 import org.openstreetmap.josm.data.osm.*; … … 145 147 if (data != null) { 146 148 for (Node node : data.getNodes()) { 147 map.addNode(node.getUniqueId(), node.getCoor().lat(), node.getCoor().lon()); 148 for (Entry<String, String> entry : node.getKeys().entrySet()) { 149 map.addTag(entry.getKey(), entry.getValue()); 149 LatLon coor = node.getCoor(); 150 if (coor != null) { 151 map.addNode(node.getUniqueId(), node.getCoor().lat(), node.getCoor().lon()); 152 for (Entry<String, String> entry : node.getKeys().entrySet()) { 153 map.addTag(entry.getKey(), entry.getValue()); 154 } 155 map.tagsDone(node.getUniqueId()); 150 156 } 151 map.tagsDone(node.getUniqueId());152 157 } 153 158 for (Way way : data.getWays()) {
Note:
See TracChangeset
for help on using the changeset viewer.