Changeset 31157 in osm for applications/editors/josm/plugins/seachart
- Timestamp:
- 2015-05-28T21:10:44+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/seachart
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/jicons/src/jicons/Jicons.java
r31044 r31157 130 130 s = 0; 131 131 file = format = ""; 132 map = new S57map( );132 map = new S57map(true); 133 133 map.addNode(0, 0, 0); 134 134 for (String token : ln.split("[ ]+")) { -
applications/editors/josm/plugins/seachart/js57toosm/src/js57toosm/Js57toosm.java
r31063 r31157 48 48 tin.close(); 49 49 50 map = new S57map( );50 map = new S57map(true); 51 51 MapBounds bounds = S57dec.decodeFile(in, map); 52 52 -
applications/editors/josm/plugins/seachart/src/render/Renderer.java
r31044 r31157 43 43 sScale = symbolScale[zoom] * factor; 44 44 if (map != null) { 45 Point2D tl = context.getPoint(map.new Snode(map.bounds.maxlat, map.bounds.minlon)); 46 Point2D br = context.getPoint(map.new Snode(map.bounds.minlat, map.bounds.maxlon)); 47 g2.clip(new Rectangle2D.Double(tl.getX(), tl.getY(), (br.getX() - tl.getX()), (br.getY() - tl.getY()))); 45 48 g2.setBackground(Symbols.Bwater); 46 49 g2.clearRect(rect.x, rect.y, rect.width, rect.height); -
applications/editors/josm/plugins/seachart/src/s57/S57map.java
r31063 r31157 224 224 } 225 225 226 class OSMtag {227 String key;228 String val;229 OSMtag(String k, String v) {230 key = k;231 val = v;232 }233 }234 235 226 public NodeTab nodes; 236 227 public EdgeTab edges; … … 246 237 private Edge edge; 247 238 private KeyVal<?> osm = S57osm.OSMtag("", ""); 248 249 public S57map() { 239 boolean sea; 240 241 public S57map(boolean s) { 242 sea = s; 250 243 nodes = new NodeTab(); // All nodes in map 251 244 edges = new EdgeTab(); // All edges in map … … 477 470 } 478 471 } 479 } else {472 } else if (!sea) { 480 473 KeyVal<?> kv = S57osm.OSMtag(key, val); 481 474 if (kv.obj != Obj.UNKOBJ) { -
applications/editors/josm/plugins/seachart/src/seachart/SeachartAction.java
r31014 r31157 111 111 112 112 protected void createChartLayer() { 113 // System.out.println("hello");114 113 rendering = new ChartImage(new ImageryInfo("SeaChart")); 115 114 rendering.setBackgroundLayer(true); … … 145 144 146 145 void makeChart() { 147 map = new S57map( );146 map = new S57map(false); 148 147 if (data != null) { 149 148 double minlat = 90;
Note:
See TracChangeset
for help on using the changeset viewer.