Re: Problem with AAIGrid overwrite
Amine Aboufirass <amine.aboufirass@...>
toggle quoted messageShow quoted text
I tried your example under an administrator command prompt and I got no problems. So I then tried running my own example under the same prompt and got the error again.
I have attached a zip file which contains my example. Would you care to take a look? I really can't pinpoint why this behavior occurs.
Thanks in advance for your help,
I'm unable to reproduce this with rasterio 1.1.0. The following script can be executed over and over again and the shade.asc file is overwritten with no error and no messages.
with rasterio.open("/Users/seang/code/rasterio/tests/data/shade.tif") as tif:
profile = tif.profile
profile["driver"] = "AAIGrid"
with rasterio.open("/tmp/shade.asc", "w", **profile) as asc:
It might actually be a permissions issue on your computer.
For one project I am reading and writing these test raster datasets as ASCII grids. I have found that overwriting these grids is impossible and I get the following error:
ERROR 1: Deleting test_data/out.asc failed:
This is quite annoying because for my testing I need to overwrite and delete files repeatedly. I have to keep deleting them again before I run my application each time and this is quite time consuming.
I have the impression this is related to the GDAL creation options but I am not sure. Could someone please enlighten me? Thanks.
Join firstname.lastname@example.org to automatically receive all group messages.