Changeset 29989 in osm for applications/editors/josm/plugins/canvec_helper/src
- Timestamp:
- 2013-10-02T10:56:55+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanVecTile.java
r29854 r29989 178 178 } 179 179 public String getDownloadUrl() { 180 return String.format("http://ftp2.cits.rncan.gc.ca/ osm/pub/%1$03d/%2$s/%1$03d%2$s%3$02d.zip",corda,cordb,cordc);180 return String.format("http://ftp2.cits.rncan.gc.ca/OSM/pub/%1$03d/%2$s/%1$03d%2$s%3$02d.zip",corda,cordb,cordc); 181 181 } 182 182 private ZipFile open_zip() throws IOException { … … 199 199 while (entries.hasMoreElements()) { 200 200 ZipEntry entry = entries.nextElement(); 201 if (entry.getName().equals("Metadata.txt")) continue; 201 202 sub_tile_ids.add(entry.getName()); 202 203 zip_scanned = true; … … 220 221 Main.worker.submit(temp.getPostLayerTask()); 221 222 Main.main.addLayer(temp.getLayer()); 223 temp.getLayer().data.setUploadDiscouraged(false); 222 224 } 223 225 } -
applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanvecLayer.java
r29854 r29989 51 51 long start = System.currentTimeMillis(); 52 52 Pattern p = Pattern.compile("(\\d\\d\\d)([A-Z]\\d\\d).*"); 53 MirroredInputStream index = new MirroredInputStream("http://ftp2.cits.rncan.gc.ca/ osm/pub/ZippedOsm.txt");53 MirroredInputStream index = new MirroredInputStream("http://ftp2.cits.rncan.gc.ca/OSM/pub/ZippedOsm.txt"); 54 54 BufferedReader br = new BufferedReader(new InputStreamReader(index)); 55 55 String line; … … 69 69 } 70 70 last_cell = cell; 71 } else System.out.print("bad line '" + line + "'\n"); 71 } else if (line.contains("Metadata.txt")) { 72 } else { 73 System.out.print("bad line '" + line + "'\n"); 74 } 72 75 } 73 76 br.close(); … … 79 82 } catch (IOException e) { 80 83 System.out.println("exception getting index"); 84 e.printStackTrace(); 81 85 } 82 86 }
Note:
See TracChangeset
for help on using the changeset viewer.