Changeset 17544 in osm for applications
- Timestamp:
- 2009-09-09T00:13:46+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/routing
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routing/build.xml
r17382 r17544 44 44 <attribute name="Plugin-Description" value="Provides routing capabilities."/> 45 45 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Routing"/> 46 <attribute name="Plugin-Mainversion" value="20 12"/>46 <attribute name="Plugin-Mainversion" value="2082"/> 47 47 <attribute name="Plugin-Stage" value="50"/> 48 48 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> -
applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/RoutingGraph.java
r17382 r17544 131 131 // iterate all ways and segments for all nodes: 132 132 for (Way way : data.ways) { 133 if (way != null && !way. deleted&& this.isvalidWay(way)) {133 if (way != null && !way.isDeleted() && this.isvalidWay(way)) { 134 134 Node from = null; 135 135 for (Node to : way.getNodes()) { 136 136 // Ignore the node if deleted 137 if (!to. deleted) {137 if (!to.isDeleted()) { 138 138 graph.addVertex(to); 139 139 if (from != null) { … … 168 168 double weight = getWeight(way, length); 169 169 setWeight(edge, length); 170 logger.debug("edge for way " + way. id171 + "(from node " + from. id+ " to node "172 + to. id+ ") has weight: " + weight);170 logger.debug("edge for way " + way.getId() 171 + "(from node " + from.getId() + " to node " 172 + to.getId() + ") has weight: " + weight); 173 173 //((GraphDelegator<Node,OsmEdge>) graph).setEdgeWeight(edge, weight); 174 174 ((DirectedWeightedMultigraph<Node,OsmEdge>)graph).setEdgeWeight(edge, weight); … … 279 279 280 280 for (Node node : nodes) { 281 logger.debug(node. id);281 logger.debug(node.getId()); 282 282 } 283 283 logger.debug("-----------------------------------"); -
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java
r17382 r17544 134 134 double minDist = 0; 135 135 for (Way w : dataLayer.data.ways) { 136 if (w. deleted|| w.incomplete || w.get("highway")==null) continue;136 if (w.isDeleted() || w.incomplete || w.get("highway")==null) continue; 137 137 for (Node n : w.getNodes()) { 138 if (n. deleted|| n.incomplete) continue;138 if (n.isDeleted() || n.incomplete) continue; 139 139 140 140 Point P = Main.map.mapView.getPoint(n); -
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingDialog.java
r16290 r17544 125 125 */ 126 126 public void addNode(Node n) { 127 model.addElement(n. id+" ["+n.getCoor().toDisplayString()+"]");127 model.addElement(n.getId()+" ["+n.getCoor().toDisplayString()+"]"); 128 128 } 129 129 … … 134 134 */ 135 135 public void insertNode(int index, Node n) { 136 model.insertElementAt(n. id+" ["+n.getCoor().toDisplayString()+"]", index);136 model.insertElementAt(n.getId()+" ["+n.getCoor().toDisplayString()+"]", index); 137 137 } 138 138
Note:
See TracChangeset
for help on using the changeset viewer.