[gdal-dev] using gdal_viewshed

2019-11-10 Thread Ben Avrahami
Hello all, I've been trying trying to use the newest gdal_viewshed in gdal-dev release, and I've run into an error I can't quite understand. The input I've been using is: gdal_viewshed -md 1000 -ox "691868.511" -oy "3492031.487" And I get the response: ERROR 5: C:\temp\files\out.tif,

[gdal-dev] Trouble with GPKG and colors

2018-10-29 Thread Ben Avrahami
Hello, I'm trying to save a byte raster to a geopackage. I ran into a problem that the geopackage raster driver does not behave as expected when working with bytes and color tables. I have written a python script that explains the issue (attached): The script creates 4 rasters in similar ways but

[gdal-dev] Working with GeoPackage using python API

2018-09-05 Thread Ben Avrahami
Hello, I'm trying to use GDAL python API to work with geopackage files, and I ran into some trouble First off, when creating a geopackage raster, the created raster is always 4-bands. After running this code: import ogr, osr, gdal import numpy as np dst_path = 'out.gpkg' srs =