From 5e400b0dbdf97d74df0373a4cbc359f07d29f27c Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Thu, 13 Oct 2022 15:15:13 +0800 Subject: [PATCH] python: string repr for entries --- python/pmtiles/tile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/pmtiles/tile.py b/python/pmtiles/tile.py index 2353b3b..bb6b5fc 100644 --- a/python/pmtiles/tile.py +++ b/python/pmtiles/tile.py @@ -12,6 +12,9 @@ class Entry: self.length = length self.run_length = run_length + def __str__(self): + return f"id={self.tile_id} offset={self.offset} length={self.length} runlength={self.run_length}" + def rotate(n, xy, rx, ry): if ry == 0: