Re: Why does Dataset.transform return the identity matrix if there is no geotransform?
toggle quoted messageShow quoted text
Yes, we're following GDAL, which returns an identity matrix instead of NULL. https://gdal.org/api/gdaldataset_cpp.html#_CPPv4N11GDALDataset15GetGeoTransformEPd.
GDAL's design decision has complicated things for rasterio. See the discussion in https://github.com/mapbox/rasterio/issues/524 for example.
On Mon, Oct 18, 2021 at 8:18 AM <interdimensional.cabbage@...> wrote:
I have been reading -> modifying -> writing some GeoTiffs and I got bit by Dataset.transform returning the identity transform. There's a big difference between there being no geotransform and there being the identity geotransform.