Ignore:
Timestamp:
2009-07-03T12:34:14+02:00 (16 years ago)
Author:
stoecker
Message:

adapted plugins to JOSm 1722, UtilsPlugin still has a problem

Location:
applications/editors/josm/plugins/Create_grid_of_ways
Files:
2 edited

Legend:

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

    r14370 r16290  
    2626                <attribute name="Plugin-Description" value="Create a grid of ways."/>
    2727                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/Create_grid_of_ways"/>
    28                 <attribute name="Plugin-Mainversion" value="1208"/>
     28                <attribute name="Plugin-Mainversion" value="1722"/>
    2929                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3030            </manifest>
  • applications/editors/josm/plugins/Create_grid_of_ways/src/CreateGridOfWaysPlugin/CreateGridOfWaysAction.java

    r14370 r16290  
    7575        double latDif,lonDif;
    7676        for (Node n1 : nodesWay1) {
    77             latDif = n1.coor.lat()-nodeCommon.coor.lat();
    78             lonDif = n1.coor.lon()-nodeCommon.coor.lon();
     77            latDif = n1.getCoor().lat()-nodeCommon.getCoor().lat();
     78            lonDif = n1.getCoor().lon()-nodeCommon.getCoor().lon();
    7979            c2=0;
    8080            for (Node n2 : nodesWay2) {
     
    8989                    continue;
    9090                }
    91                 Node nodeOfGrid = new Node(new LatLon(n2.coor.lat()+latDif,n2.coor.lon()+lonDif));
     91                Node nodeOfGrid = new Node(new LatLon(n2.getCoor().lat()+latDif,n2.getCoor().lon()+lonDif));
    9292                cmds.add(new AddCommand(nodeOfGrid));
    9393                w1[c1].nodes.add(nodeOfGrid);
Note: See TracChangeset for help on using the changeset viewer.