[gdal-dev] using gdal_viewshed

Ben Avrahami avrahami.ben at gmail.com
Sun Nov 10 03:55:55 PST 2019


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" <input tiff>
<output tiff>

And I get the response:

    ERROR 5: C:\temp\files\out.tif, band 1: Access window out of range in
RasterIO().  Requested
    (0,-1) of size 67x1 on raster of 67x67.
    ERROR 1: RasterIO error when writing target raster

I get a similar error if I try to use the GDALViewshedGenerate C-API
function. The input us a valid WGS84-UTM tiff file, and the output is a
valid path, but the file does not actually exist until I run the command.
After I run the command, the output file is created but only filled
halfway. Any help at wall would be appreciated.

regards, Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20191110/98cea031/attachment.html>


More information about the gdal-dev mailing list