Changeset 11003 in josm for trunk/src/org/openstreetmap/josm/io/NameFinder.java
- Timestamp:
- 2016-09-15T21:39:13+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/NameFinder.java
r11002 r11003 14 14 import org.openstreetmap.josm.Main; 15 15 import org.openstreetmap.josm.data.Bounds; 16 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 17 import org.openstreetmap.josm.data.osm.PrimitiveId; 18 import org.openstreetmap.josm.data.osm.SimplePrimitiveId; 16 19 import org.openstreetmap.josm.tools.HttpClient; 17 20 import org.openstreetmap.josm.tools.OsmUrlToBounds; … … 67 70 public int zoom; 68 71 public Bounds bounds; 72 public PrimitiveId osmId; 69 73 70 74 public Bounds getDownloadArea() { … … 127 131 Double.parseDouble(bbox[0]), Double.parseDouble(bbox[2]), 128 132 Double.parseDouble(bbox[1]), Double.parseDouble(bbox[3])); 133 final String osmId = atts.getValue("osm_id"); 134 final String osmType = atts.getValue("osm_type"); 135 if (osmId != null && osmType != null) { 136 currentResult.osmId = new SimplePrimitiveId(Long.parseLong(osmId), OsmPrimitiveType.from(osmType)); 137 } 129 138 data.add(currentResult); 130 139 }
Note:
See TracChangeset
for help on using the changeset viewer.