Inspector

This commit is contained in:
Victor Shcherb 2015-03-09 23:16:22 +01:00
parent 6a5a61c8d6
commit bc6b9c2aea

View file

@ -680,15 +680,15 @@ public class BinaryInspector {
MapObjectStat st = req.stat; MapObjectStat st = req.stat;
int cnt = 0; int cnt = 0;
boolean names = st.lastObjectCoordinates == 0; boolean names = st.lastObjectCoordinates == 0;
if (!names) {
this.lastStringNamesSize += st.lastStringNamesSize; this.lastStringNamesSize += st.lastStringNamesSize;
this.lastObjectIdSize += st.lastObjectIdSize; this.lastObjectIdSize += st.lastObjectIdSize;
this.lastObjectHeaderInfo += st.lastObjectHeaderInfo; this.lastObjectHeaderInfo += st.lastObjectHeaderInfo;
this.lastObjectAdditionalTypes += st.lastObjectAdditionalTypes; this.lastObjectAdditionalTypes += st.lastObjectAdditionalTypes;
this.lastObjectTypes += st.lastObjectTypes; this.lastObjectTypes += st.lastObjectTypes;
this.lastObjectCoordinates += st.lastObjectCoordinates; this.lastObjectCoordinates += st.lastObjectCoordinates;
if (!names) {
cnt = obj.getPointsLength(); cnt = obj.getPointsLength();
this.lastObjectIdSize += st.lastObjectSize; this.lastObjectSize += st.lastObjectSize;
if (obj.getPolygonInnerCoordinates() != null) { if (obj.getPolygonInnerCoordinates() != null) {
for (int[] i : obj.getPolygonInnerCoordinates()) { for (int[] i : obj.getPolygonInnerCoordinates()) {
cnt += i.length; cnt += i.length;
@ -712,13 +712,13 @@ public class BinaryInspector {
long b = 0; long b = 0;
b += out("Header", st.lastBlockHeaderInfo); b += out("Header", st.lastBlockHeaderInfo);
b += out("String table", st.lastBlockStringTableSize); b += out("String table", st.lastBlockStringTableSize);
b += out("Map Objects", st.lastObjectSize); b += out("Map Objects", lastObjectSize);
out("TOTAL", b); out("TOTAL", b);
println("\nMAP OBJECTS INFO:"); println("\nMAP OBJECTS INFO:");
b = 0; b = 0;
b += out("Header", lastObjectHeaderInfo); b += out("Header", lastObjectHeaderInfo);
b += out("Coordinates", lastObjectCoordinates); b += out("Coordinates", lastObjectCoordinates);
b += out("Coordinates Count(pair)", lastObjectCoordinatesCount); out("Coordinates Count(pair)", lastObjectCoordinatesCount);
b += out("Types", lastObjectTypes); b += out("Types", lastObjectTypes);
b += out("Additonal Types", lastObjectAdditionalTypes); b += out("Additonal Types", lastObjectAdditionalTypes);
b += out("Ids", lastObjectIdSize); b += out("Ids", lastObjectIdSize);