diff --git a/src/c3nav/mapdata/utils/cache/indexed.py b/src/c3nav/mapdata/utils/cache/indexed.py index 2d782e45..62db1997 100644 --- a/src/c3nav/mapdata/utils/cache/indexed.py +++ b/src/c3nav/mapdata/utils/cache/indexed.py @@ -10,8 +10,8 @@ class GeometryIndexed: # binary format (everything little-endian): # 1 byte (uint8): variant id # 1 byte (uint8): resolution - # 2 bytes (uint16): origin x - # 2 bytes (uint16): origin y + # 2 bytes (int16): origin x + # 2 bytes (int16): origin y # 2 bytes (uint16): origin width # 2 bytes (uint16): origin height # (optional meta data, depending on subclass) @@ -42,7 +42,7 @@ class GeometryIndexed: @classmethod def read(cls, f): - variant_id, resolution, x, y, width, height = struct.unpack('