Ticket #2737: osmarender-patch.txt

File osmarender-patch.txt, 1.0 KB (added by dmuecke, 3 years ago)
Line 
1Index: /Users/mueck/dev/workspace/osmarender.plugin/src/OsmarenderPlugin.java
2===================================================================
3--- /Users/mueck/dev/workspace/osmarender.plugin/src/OsmarenderPlugin.java      (revision 15916)
4+++ /Users/mueck/dev/workspace/osmarender.plugin/src/OsmarenderPlugin.java      (working copy)
5@@ -64,7 +64,10 @@
6             }
7             for (OsmPrimitive p : new HashSet<OsmPrimitive>(backRefsV.data)) {
8                 if (p instanceof Way) {
9-                    backRefsV.data.addAll(((Way) p).nodes);
10+                       for (Node n : ((Way) p).nodes) {
11+                               if (n.coor.isWithin(b))
12+                                       backRefsV.data.add(n);
13+                                       }
14                 }
15             }
16             for (OsmPrimitive p : backRefsV.data)
17@@ -78,6 +81,7 @@
18                 w.writeDataSources(fromDataSet);
19                 w.writeContent(fromDataSet);
20                 w.footer();
21+                w.close();
22 
23                 // get the exec line
24                 String exec = firefox;