Closed alevangel closed 2 months ago
Why in the method _xyzInRange of the TileSource class the offstet is calculated in this way? offsetx = x * self.tileWidth * scale
_xyzInRange
offsetx = x * self.tileWidth * scale
I was expecting to see a sum, rather than a multiplication. offsetx = (x + self.tileWidth) * scale
offsetx = (x + self.tileWidth) * scale
Reference here: https://github.com/girder/large_image/blob/2ac58341d5c59d163ed4ddfce0b424ac97950da3/large_image/tilesource/base.py#L1452C1-L1453C1
Just realized that x and y in getTile are not in pixels, but the col/row numebrs (so int)
Why in the method
_xyzInRange
of the TileSource class the offstet is calculated in this way?offsetx = x * self.tileWidth * scale
I was expecting to see a sum, rather than a multiplication.
offsetx = (x + self.tileWidth) * scale
Reference here: https://github.com/girder/large_image/blob/2ac58341d5c59d163ed4ddfce0b424ac97950da3/large_image/tilesource/base.py#L1452C1-L1453C1