Changeset 18413 in osm for applications/editors/josm/plugins/cadastre-fr
- Timestamp:
- 2009-11-02T08:46:24+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/build.xml
r18404 r18413 26 26 <attribute name="Plugin-Description" value="A special handler for the French land registry WMS server."/> 27 27 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/FR:JOSM/Fr:Plugin/Cadastre"/> 28 <attribute name="Plugin-Mainversion" value="23 27"/>28 <attribute name="Plugin-Mainversion" value="2381"/> 29 29 <attribute name="Plugin-Stage" value="60"/> 30 30 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGBuilding.java
r17528 r18413 110 110 Node nodeToAdd = new Node(Main.proj.eastNorth2latlon(eastNorth)); 111 111 // check if new node is not already created by another new path 112 Node nearestNewNode = checkNearestNode(nodeToAdd, svgDataSet. nodes);112 Node nearestNewNode = checkNearestNode(nodeToAdd, svgDataSet.getNodes()); 113 113 if (nearestNewNode == nodeToAdd) 114 114 svgDataSet.addPrimitive(nearestNewNode); … … 128 128 129 129 // simplify ways and check if we can reuse existing OSM nodes 130 for (Way wayToAdd : svgDataSet. ways)130 for (Way wayToAdd : svgDataSet.getWays()) 131 131 new SimplifyWay().simplifyWay(wayToAdd, svgDataSet, 0.5); 132 132 // check if the new way or its nodes is already in OSM layer 133 for (Node n : svgDataSet. nodes) {134 Node nearestNewNode = checkNearestNode(n, Main.main.getCurrentDataSet(). nodes);133 for (Node n : svgDataSet.getNodes()) { 134 Node nearestNewNode = checkNearestNode(n, Main.main.getCurrentDataSet().getNodes()); 135 135 if (nearestNewNode != n) { 136 136 // replace the SVG node by the OSM node 137 for (Way w : svgDataSet. ways) {137 for (Way w : svgDataSet.getWays()) { 138 138 int replaced = 0; 139 139 for (Node node : w.getNodes()) … … 151 151 152 152 Collection<Command> cmds = new LinkedList<Command>(); 153 for (Node node : svgDataSet. nodes)153 for (Node node : svgDataSet.getNodes()) 154 154 if (!node.isDeleted()) 155 155 cmds.add(new AddCommand(node)); 156 for (Way way : svgDataSet. ways)156 for (Way way : svgDataSet.getWays()) 157 157 if (!way.isDeleted()) 158 158 cmds.add(new AddCommand(way));
Note:
See TracChangeset
for help on using the changeset viewer.