Changeset 32359 in osm for applications/editors/josm/plugins
- Timestamp:
- 2016-06-22T01:50:28+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVImporter.java
r30768 r32359 89 89 90 90 // add layer to show way points 91 Main. main.addLayer(gpxLayer);91 Main.getLayerManager().addLayer(gpxLayer); 92 92 93 93 progressMonitor.setTicksCount(3); … … 111 111 Main.info("Data size: " + ml.data.size()); 112 112 113 Main. main.addLayer(ml);113 Main.getLayerManager().addLayer(ml); 114 114 if (ml.data.isEmpty()) { 115 115 Main.warn("File contains no markers."); -
applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVReader.java
r30768 r32359 514 514 public File getVoxFilePath(String fileDir, String voxFile) { 515 515 // The FAT16 file name is interpreted differently from case-sensitive 516 // file systems, so we 517 // have to test several variants 516 // file systems, so we have to test several variants 518 517 String[] fileNameVariants = new String[] { voxFile, 519 518 voxFile.toLowerCase(), voxFile.toUpperCase() }; … … 541 540 // Position errors (dop = dilution of position) 542 541 f = ColumbusCSVUtils.floatFromString(csvLine[11]); 543 if ( f != Float.NaN) {542 if (!Float.isNaN(f)) { 544 543 wpt.attr.put(ColumbusCSVReader.PDOP_TAG, f); 545 544 } else { … … 548 547 549 548 f = ColumbusCSVUtils.floatFromString(csvLine[12]); 550 if ( f != Float.NaN) {549 if (!Float.isNaN(f)) { 551 550 wpt.attr.put(ColumbusCSVReader.HDOP_TAG, f); 552 551 } else { … … 555 554 556 555 f = ColumbusCSVUtils.floatFromString(csvLine[13]); 557 if ( f != Float.NaN) {556 if (!Float.isNaN(f)) { 558 557 wpt.attr.put(ColumbusCSVReader.VDOP_TAG, f); 559 558 } else {
Note:
See TracChangeset
for help on using the changeset viewer.