Skip to content
Commits on Source (4)
Changes
=======
1.0.28 (2019-09-09)
-------------------
- Coercion to ``int`` was forgotten in the block size guard introduced in
1.0.27 and code that passes string valued ``blockxsize`` and ``blockysize``
keyword arguments to ``rasterio.open()`` was broken (#1769). This has been
fixed in 1.0.28.
1.0.27 (2019-09-05)
-------------------
- Resolve #1744 by adding a `dtype` keyword argument to the WarpedVRT
- Resolve #1744 by adding a ``dtype`` keyword argument to the WarpedVRT
constructor. It allows a user to specify the working data type for the warp
operation and output.
- All cases of deprecated affine right multiplication have been changed to be
......
rasterio (1.0.28-1) unstable; urgency=medium
* Team upload.
* New upstream release.
-- Bas Couwenberg <sebastic@debian.org> Tue, 10 Sep 2019 06:10:59 +0200
rasterio (1.0.27-1) unstable; urgency=medium
* Team upload.
......
......@@ -42,7 +42,7 @@ import rasterio.path
__all__ = ['band', 'open', 'pad', 'Env']
__version__ = "1.0.27"
__version__ = "1.0.28"
__gdal_version__ = gdal_version()
# Rasterio attaches NullHandler to the 'rasterio' logger and its
......
......@@ -1082,7 +1082,7 @@ cdef class DatasetWriterBase(DatasetReaderBase):
if tiled:
blockxsize = kwargs.get("blockxsize", None)
blockysize = kwargs.get("blockysize", None)
if (blockxsize and blockxsize % 16) or (blockysize and blockysize % 16):
if (blockxsize and int(blockxsize) % 16) or (blockysize and int(blockysize) % 16):
raise RasterBlockError("The height and width of dataset blocks must be multiples of 16")
kwargs["tiled"] = "TRUE"
......