change GeometryIndexed binary format to use signed shorts for coordinates
This commit is contained in:
parent
ac7e2c65fc
commit
7fdbec8b27
1 changed files with 1 additions and 1 deletions
2
src/c3nav/mapdata/utils/cache/indexed.py
vendored
2
src/c3nav/mapdata/utils/cache/indexed.py
vendored
|
@ -71,7 +71,7 @@ class GeometryIndexed:
|
|||
self.write(f)
|
||||
|
||||
def write(self, f):
|
||||
f.write(struct.pack('<BBHHHH', self.variant_id, self.resolution, self.x, self.y, *reversed(self.data.shape)))
|
||||
f.write(struct.pack('<BBhhHH', self.variant_id, self.resolution, self.x, self.y, *reversed(self.data.shape)))
|
||||
self._write_metadata(f)
|
||||
f.write(self.data.tobytes('C'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue