Changeset 35978 in osm for applications/editors/josm/plugins/turnlanes/src
- Timestamp:
- 2022-06-15T20:10:48+02:00 (3 years ago)
- Location:
- applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/gui/GuiContainer.java
r35812 r35978 18 18 19 19 import org.openstreetmap.josm.data.coor.EastNorth; 20 import org.openstreetmap.josm.data.coor.LatLon; 20 import org.openstreetmap.josm.data.coor.ILatLon; 21 21 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 22 22 import org.openstreetmap.josm.plugins.turnlanes.model.Junction; … … 53 53 final Point2D origin = avgOrigin(locs(mc.getPrimaryJunctions())); 54 54 55 final LatLon originCoor = ProjectionRegistry.getProjection().eastNorth2latlon(new EastNorth(origin.getX(), origin.getY())); 56 final LatLon relCoor = ProjectionRegistry.getProjection().eastNorth2latlon( 55 final ILatLon originCoor = ProjectionRegistry.getProjection().eastNorth2latlon(new EastNorth(origin.getX(), origin.getY())); 56 final ILatLon relCoor = ProjectionRegistry.getProjection().eastNorth2latlon( 57 57 new EastNorth(origin.getX() + 1, origin.getY() + 1)); 58 58 -
applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/model/Route.java
r34976 r35978 52 52 Node last = nodes.get(0); 53 53 for (Node n : nodes.subList(1, nodes.size())) { 54 length += last.g etCoor().greatCircleDistance(n.getCoor());54 length += last.greatCircleDistance(n); 55 55 last = n; 56 56 }
Note:
See TracChangeset
for help on using the changeset viewer.