Re: issue with opening/closing datasets
Sean Gillies
Hi Amine, I think you have made in error in pasting code into the GitHub issue. The code you've given will fail at dataset = memfile.open because you haven't assigned memfile yet. The message you see printed comes straight from the GDAL library. You haven't configured any GDAL error or log message handler and so the messages go directly to your terminal. Message handlers are configured if you run your code within a `with rasterio.Env()` block. import rasterio with rasterio.Env(): # your code here Also if you do with memfile.open(...) as dataset: you won't see this message.
On Fri, Mar 22, 2019 at 9:25 AM Amine Aboufirass <amine.aboufirass@...> wrote:
-- Sean Gillies
|
|