Changeset 31716 in osm for applications
- Timestamp:
- 2015-10-27T09:09:48+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/seachart
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/josmtos57/src/josmtos57/Josmtos57.java
r31704 r31716 20 20 public class Josmtos57 { 21 21 22 // http://opendatacommons.org/licenses/odbl/1-0/ 23 24 /* 25 URL website = new URL("http://www.website.com/information.asp"); 26 try (InputStream in = website.openStream()) { Files.copy(in, target, StandardCopyOption.REPLACE_EXISTING); } 27 */ 28 22 29 static byte[] header = { 23 30 '0', '0', '2', '6', '2', '3', 'L', 'E', '1', ' ', '0', '9', '0', '0', '0', '7', '3', ' ', ' ', ' ', '6', '6', '0', '4', '0', '0', '0', '0', '0', '0', '0', '0', … … 94 101 crc.update(buf, 0, idx); 95 102 try { 96 File file = new File(args[2] + "/" +args[3]);103 File file = new File(args[2] + args[3]); 97 104 if (file.exists()) file.delete(); 98 105 out = new FileOutputStream(file, false); … … 105 112 106 113 try { 107 File file = new File(args[2] + " /CATALOG.031");114 File file = new File(args[2] + "CATALOG.031"); 108 115 if (file.exists()) file.delete(); 109 116 out = new FileOutputStream(file, false); -
applications/editors/josm/plugins/seachart/src/render/Rules.java
r31532 r31716 190 190 if (testObject(Obj.LKBSPT)) for (Feature f : objects) if (testFeature(f)) areas(); 191 191 if (testObject(Obj.LAKARE)) for (Feature f : objects) if (testFeature(f)) areas(); 192 if (testObject(Obj.RIVBNK)) for (Feature f : objects) if (testFeature(f)) areas();193 192 if (testObject(Obj.RIVERS)) for (Feature f : objects) if (testFeature(f)) waterways(); 194 193 if (testObject(Obj.CANALS)) for (Feature f : objects) if (testFeature(f)) waterways(); … … 286 285 break; 287 286 case LAKARE: 288 case RIVBNK:289 287 Renderer.lineVector(feature, new LineStyle(Symbols.Bwater, 10, Symbols.Bwater)); 290 288 break; -
applications/editors/josm/plugins/seachart/src/s57/S57osm.java
r31704 r31716 37 37 static { 38 38 OSMtags.put("natural=coastline", new KeyVal<>(Obj.COALNE, Att.UNKATT, null, null)); OSMtags.put("natural=water", new KeyVal<>(Obj.LAKARE, Att.UNKATT, null, null)); 39 OSMtags.put("waterway=river", new KeyVal<>(Obj.RIVERS, Att.UNKATT, null, null)); 39 OSMtags.put("waterway=river", new KeyVal<>(Obj.RIVERS, Att.UNKATT, null, null)); OSMtags.put("waterway=riverbank", new KeyVal<>(Obj.COALNE, Att.UNKATT, null, null)); 40 40 OSMtags.put("waterway=canal", new KeyVal<>(Obj.CANALS, Att.UNKATT, null, null)); OSMtags.put("waterway=dock", new KeyVal<>(Obj.HRBBSN, Att.UNKATT, null, null)); 41 41 OSMtags.put("waterway=lock", new KeyVal<>(Obj.HRBBSN, Att.UNKATT, null, null)); OSMtags.put("landuse=basin", new KeyVal<>(Obj.LAKARE, Att.UNKATT, null, null));
Note:
See TracChangeset
for help on using the changeset viewer.