Fix utilities

This commit is contained in:
vshcherb 2013-08-29 00:36:26 +02:00
parent cc64308cd4
commit fd67a53e83
2 changed files with 11 additions and 2 deletions

View file

@ -348,4 +348,6 @@ public class OsmMapUtils {
return Math.abs(area) / 2;
}
}

View file

@ -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();;
}
}
}