Fix formatting

This commit is contained in:
Victor Shcherb 2016-04-26 22:07:57 +02:00
parent 566c609f78
commit ec1b3a5ee2

View file

@ -536,7 +536,7 @@ public class BinaryInspector {
b.setLength(0); b.setLength(0);
b.append("Road "); b.append("Road ");
b.append(obj.id); b.append(obj.id);
b.append(" osmid ").append(obj.id >> (SHIFT_ID + 1)); b.append(" osmid ").append(obj.id >> (SHIFT_ID + 2));
for (int i = 0; i < obj.getTypes().length; i++) { for (int i = 0; i < obj.getTypes().length; i++) {
RouteTypeRule rr = obj.region.quickGetEncodingRule(obj.getTypes()[i]); RouteTypeRule rr = obj.region.quickGetEncodingRule(obj.getTypes()[i]);
b.append(" ").append(rr.getTag()).append("='").append(rr.getValue()).append("'"); b.append(" ").append(rr.getTag()).append("='").append(rr.getValue()).append("'");
@ -555,6 +555,7 @@ public class BinaryInspector {
String[] names = obj.getPointNames(i); String[] names = obj.getPointNames(i);
int[] nametypes = obj.getPointNameTypes(i); int[] nametypes = obj.getPointNameTypes(i);
int[] types = obj.getPointTypes(i); int[] types = obj.getPointTypes(i);
if (types != null || names != null) {
b.append(" [ " + (i + 1) + ". "); b.append(" [ " + (i + 1) + ". ");
if (names != null) { if (names != null) {
for (int k = 0; k < names.length; k++) { for (int k = 0; k < names.length; k++) {
@ -568,11 +569,12 @@ public class BinaryInspector {
b.append(rr.getTag()).append("='").append(rr.getValue()).append("' "); b.append(rr.getTag()).append("='").append(rr.getValue()).append("' ");
} }
} }
if(vInfo.vmapCoordinates && (types != null || names != null)) { if (vInfo.vmapCoordinates) {
float x = (float) MapUtils.get31LongitudeX(obj.getPoint31XTile(i)); float x = (float) MapUtils.get31LongitudeX(obj.getPoint31XTile(i));
float y = (float) MapUtils.get31LatitudeY(obj.getPoint31YTile(i)); float y = (float) MapUtils.get31LatitudeY(obj.getPoint31YTile(i));
b.append(y).append(" / ").append(x).append(" "); b.append(y).append(" / ").append(x).append(" ");
} }
}
b.append("]"); b.append("]");
} }
} }
@ -948,7 +950,7 @@ public class BinaryInspector {
} }
b.append(" id ").append(obj.getId()); b.append(" id ").append(obj.getId());
b.append(" osmid ").append((obj.getId() >> (SHIFT_ID + 1))); b.append(" osmid ").append((obj.getId() >> (SHIFT_ID + 2)));
if (vmapCoordinates) { if (vmapCoordinates) {
b.append(" lat/lon : "); b.append(" lat/lon : ");
for (int i = 0; i < obj.getPointsLength(); i++) { for (int i = 0; i < obj.getPointsLength(); i++) {