Changeset 32543 in osm
- Timestamp:
- 2016-07-03T12:23:25+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/buildings_tools
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/buildings_tools/.project
r32286 r32543 17 17 </arguments> 18 18 </buildCommand> 19 <buildCommand> 20 <name>net.sf.eclipsecs.core.CheckstyleBuilder</name> 21 <arguments> 22 </arguments> 23 </buildCommand> 19 24 </buildSpec> 20 25 <natures> 21 26 <nature>org.eclipse.jdt.core.javanature</nature> 27 <nature>net.sf.eclipsecs.core.CheckstyleNature</nature> 22 28 </natures> 23 29 </projectDescription> -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/Building.java
r32455 r32543 80 80 len = 0; 81 81 82 for (int i = 0; i < 4; i++) 82 for (int i = 0; i < 4; i++) { 83 83 en[i] = null; 84 } 84 85 } 85 86 … … 104 105 105 106 /** 107 * @param p 108 * The point to project 106 109 * @return Projection of the point to the heading vector in metres 107 * @param p The point to project108 110 */ 109 111 private double projection1(EastNorth p) { … … 113 115 114 116 /** 117 * @param p 118 * The point to project 115 119 * @return Projection of the point to the perpendicular of the heading 116 * vector in metres 117 * @param p The point to project 120 * vector in metres 118 121 */ 119 122 private double projection2(EastNorth p) { -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/DrawBuildingAction.java
r32455 r32543 301 301 if (w != null) { 302 302 if (!alt || ToolSettings.isUsingAddr()) 303 for (Entry<String, String> kv : ToolSettings.getTags().entrySet()) 303 for (Entry<String, String> kv : ToolSettings.getTags().entrySet()) { 304 304 w.put(kv.getKey(), kv.getValue()); 305 } 305 306 if (ToolSettings.isUsingAddr()) 306 307 showAddrDialog(w); -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/MergeAddrPointsAction.java
r32455 r32543 60 60 for (OsmPrimitive p : selection) { 61 61 if (p.getType() == OsmPrimitiveType.NODE) { 62 for (OsmPrimitive r : p.getReferrers()) 62 for (OsmPrimitive r : p.getReferrers()) { 63 63 if (r.getType() == OsmPrimitiveType.WAY) 64 64 continue scanSelection; // Don't use nodes if they're referenced by ways 65 for (String key : p.getKeys().keySet()) 65 } 66 for (String key : p.getKeys().keySet()) { 66 67 if (key.startsWith("addr:")) { 67 addrNodes.add((Node)p); // Found address node 68 addrNodes.add((Node) p); // Found address node 68 69 break; 69 70 } 71 } 70 72 } else if (p.getType() == OsmPrimitiveType.WAY && p.getKeys().containsKey("building")) 71 buildings.add((Way)p); 73 buildings.add((Way) p); 72 74 } 73 75 if (addrNodes.isEmpty()) { … … 132 134 } 133 135 if (multi != 0) 134 new Notification(trn("There is {0} building with multiple address nodes inside", "There are {0} buildings with multiple address nodes inside", multi, multi)) 136 new Notification(trn("There is {0} building with multiple address nodes inside", 137 "There are {0} buildings with multiple address nodes inside", multi, multi)) 135 138 .setIcon(JOptionPane.WARNING_MESSAGE).show(); 136 139 if (conflicts != 0) 137 new Notification(trn("There is {0} building with address conflicts", "There are {0} buildings with address conflicts", conflicts, conflicts)) 140 new Notification(trn("There is {0} building with address conflicts", 141 "There are {0} buildings with address conflicts", conflicts, conflicts)) 138 142 .setIcon(JOptionPane.WARNING_MESSAGE).show(); 139 143 if (cmds.isEmpty() && multi == 0 && conflicts == 0)
Note:
See TracChangeset
for help on using the changeset viewer.