Changeset 362 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2007-10-11T21:35:15+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r343 r362 8 8 import java.io.InputStreamReader; 9 9 import java.text.ParseException; 10 import java.util.ArrayList; 10 11 import java.util.Arrays; 11 12 import java.util.Collection; 13 import java.util.Date; 12 14 import java.util.HashMap; 13 15 import java.util.HashSet; … … 150 152 current = new OsmPrimitiveData(); 151 153 readCommon(atts, current); 152 ways.put((OsmPrimitiveData)current, new LinkedList<Long>());154 ways.put((OsmPrimitiveData)current, new ArrayList<Long>()); 153 155 } else if (qName.equals("nd")) { 154 156 Collection<Long> list = ways.get(current); … … 224 226 String time = atts.getValue("timestamp"); 225 227 if (time != null && time.length() != 0) { 228 /* Do not parse the date here since it wastes a HUGE amount of time. 229 * Moved into OsmPrimitive. 226 230 try { 227 231 current.timestamp = DateParser.parse(time); … … 230 234 throw new SAXException(tr("Couldn't read time format \"{0}\".",time)); 231 235 } 236 */ 237 current.timestamp = time; 232 238 } 233 239 … … 290 296 adder.visit(w); 291 297 } 298 292 299 } 293 300 … … 393 400 throw new SAXException(e1); 394 401 } 395 if (pleaseWaitDlg != null) { 402 403 if (pleaseWaitDlg != null) { 396 404 pleaseWaitDlg.progress.setValue(0); 397 405 pleaseWaitDlg.currentAction.setText(tr("Preparing data...")); 398 406 } 407 399 408 for (Node n : osm.nodes.values()) 400 409 osm.adder.visit(n);
Note:
See TracChangeset
for help on using the changeset viewer.