Changeset 17544 in osm for applications


Ignore:
Timestamp:
2009-09-09T00:13:46+02:00 (15 years ago)
Author:
guggis
Message:

Updating to JOSM r2082

Location:
applications/editors/josm/plugins/routing
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routing/build.xml

    r17382 r17544  
    4444                <attribute name="Plugin-Description" value="Provides routing capabilities."/>
    4545                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Routing"/>
    46                 <attribute name="Plugin-Mainversion" value="2012"/>
     46                <attribute name="Plugin-Mainversion" value="2082"/>
    4747                <attribute name="Plugin-Stage" value="50"/>
    4848                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/RoutingGraph.java

    r17382 r17544  
    131131        // iterate all ways and segments for all nodes:
    132132        for (Way way : data.ways) {
    133             if (way != null && !way.deleted && this.isvalidWay(way)) {
     133            if (way != null && !way.isDeleted() && this.isvalidWay(way)) {
    134134                Node from = null;
    135135                for (Node to : way.getNodes()) {
    136136                    // Ignore the node if deleted
    137                     if (!to.deleted) {
     137                    if (!to.isDeleted()) {
    138138                        graph.addVertex(to);
    139139                        if (from != null) {
     
    168168        double weight = getWeight(way, length);
    169169        setWeight(edge, length);
    170         logger.debug("edge for way " + way.id
    171                      + "(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);
    173173        //((GraphDelegator<Node,OsmEdge>) graph).setEdgeWeight(edge, weight);
    174174        ((DirectedWeightedMultigraph<Node,OsmEdge>)graph).setEdgeWeight(edge, weight);
     
    279279
    280280        for (Node node : nodes) {
    281             logger.debug(node.id);
     281            logger.debug(node.getId());
    282282        }
    283283        logger.debug("-----------------------------------");
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java

    r17382 r17544  
    134134        double minDist = 0;
    135135        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;
    137137            for (Node n : w.getNodes()) {
    138                 if (n.deleted || n.incomplete) continue;
     138                if (n.isDeleted() || n.incomplete) continue;
    139139
    140140                Point P = Main.map.mapView.getPoint(n);
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingDialog.java

    r16290 r17544  
    125125     */
    126126    public void addNode(Node n) {
    127         model.addElement(n.id+" ["+n.getCoor().toDisplayString()+"]");
     127        model.addElement(n.getId()+" ["+n.getCoor().toDisplayString()+"]");
    128128    }
    129129
     
    134134     */
    135135    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);
    137137    }
    138138
Note: See TracChangeset for help on using the changeset viewer.