From f6304eca0ae41fac9a31bd64fdbeab2db3c6e572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Mon, 20 Nov 2017 14:57:19 +0100 Subject: [PATCH] improve MapHistory docs --- src/c3nav/mapdata/utils/cache/maphistory.py | 3 ++- src/c3nav/mapdata/utils/cache/maprestriction.py | 0 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 src/c3nav/mapdata/utils/cache/maprestriction.py diff --git a/src/c3nav/mapdata/utils/cache/maphistory.py b/src/c3nav/mapdata/utils/cache/maphistory.py index 72f3cd18..41335a3b 100644 --- a/src/c3nav/mapdata/utils/cache/maphistory.py +++ b/src/c3nav/mapdata/utils/cache/maphistory.py @@ -12,9 +12,10 @@ from c3nav.mapdata.utils.cache import GeometryIndexed class MapHistory(GeometryIndexed): # metadata format: # 2 bytes (uint16): number of updates - # n uptates times: + # n updates times: # 4 bytes (uint32): update id # 4 bytes (uint32): timestamp + # each uint16 cell contains the index of the newest update dtype = np.uint16 variant_id = 1 diff --git a/src/c3nav/mapdata/utils/cache/maprestriction.py b/src/c3nav/mapdata/utils/cache/maprestriction.py new file mode 100644 index 00000000..e69de29b