Fix utilities
This commit is contained in:
parent
cc64308cd4
commit
fd67a53e83
2 changed files with 11 additions and 2 deletions
|
@ -348,4 +348,6 @@ public class OsmMapUtils {
|
|||
|
||||
return Math.abs(area) / 2;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -139,7 +139,14 @@ public class Way extends Entity {
|
|||
}
|
||||
return OsmMapUtils.getWeightCenterForNodes(nodes);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void reverseNodes() {
|
||||
if(nodes != null) {
|
||||
Collections.reverse(nodes);
|
||||
}
|
||||
if(nodeIds != null) {
|
||||
nodeIds.reverse();;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue