Changeset 35976 in osm for applications/editors/josm/plugins/namemanager/src
- Timestamp:
- 2022-06-14T20:11:21+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/utils/NameManagerUtils.java
r34532 r35976 60 60 } 61 61 pairs: for (Pair<Node, Node> pair : way.getNodePairs(false)) { 62 double x1Pair = pair.a. getCoor().getX();63 double y1Pair = pair.a. getCoor().getY();64 double x2Pair = pair.b. getCoor().getX();65 double y2Pair = pair.b. getCoor().getY();62 double x1Pair = pair.a.lon(); 63 double y1Pair = pair.a.lat(); 64 double x2Pair = pair.b.lon(); 65 double y2Pair = pair.b.lat(); 66 66 double aPair = 0.0; 67 67 double bPair = 0.0; … … 77 77 int crossCount = 0; 78 78 areaLine: for (Pair<Node, Node> areaLine : areaBorderLines) { 79 double x1Line = areaLine.a. getCoor().getX();80 double y1Line = areaLine.a. getCoor().getY();81 double x2Line = areaLine.b. getCoor().getX();82 double y2Line = areaLine.b. getCoor().getY();79 double x1Line = areaLine.a.lon(); 80 double y1Line = areaLine.a.lat(); 81 double x2Line = areaLine.b.lon(); 82 double y2Line = areaLine.b.lat(); 83 83 boolean areaLinePerpendicular = false; 84 84 double aLine = 0.0; … … 178 178 } 179 179 if (raySource != null) { 180 double rsX = raySource. getCoor().getX();181 double rsY = raySource. getCoor().getY();180 double rsX = raySource.lon(); 181 double rsY = raySource.lat(); 182 182 if (areaLinePerpendicular) { 183 183 if (x1Line == x2Line) { … … 218 218 List<Node> nodes = way.getNodes(); 219 219 for (Node node : nodes) { 220 if (node. getCoor().getX() < x) {221 x = node. getCoor().getX();222 } 223 if (node. getCoor().getY() > y) {224 y = node. getCoor().getY();220 if (node.lon() < x) { 221 x = node.lon(); 222 } 223 if (node.lat() > y) { 224 y = node.lat(); 225 225 } 226 226 }
Note:
See TracChangeset
for help on using the changeset viewer.