[gdal-dev] Making OGR raise exceptions in Python

2020-01-21 Thread Matsamentet
Hi! I'm developing a Python script which uses both gdal and ogr. Since exceptions are not raised by default, I have added to my script *gdal.UseExceptions() ogr.UseExceptions()* *raster_ds = gdal.Open('c:/nonexistant.tif')* raises an exception as expected. *vector_ds = ogr.Open('c:/nonexistan

[gdal-dev] CreateCopy() does not copy overviews of dataset?

2019-05-16 Thread Matsamentet
Hi all! I'm trying to do the following using Python: Take a GeoTIFF file as input, and build an in-memory GeoPackage. Then build overviews on the GeoPackage, and finally writing it out to disk. Before the last step, I have confirmed that the dataset contains overviews by using GetOverviewCount(

[gdal-dev] Gdalwarp mosaic large GeoTIFF dataset into GeoPackage

2019-04-01 Thread Matsamentet
Hi! I'm trying to mosaic a large GeoTIFF dataset into a GeoPackage with Gdalwarp (no reprojection). There are 512 .tif files, each with a single grayscale band, and 1 meter resolution. I'm using -cutline to clip the dataset to a slightly smaller extent. Gdalwarp initially outputs the dimensions