Re: [gdal-dev] gdal.FileFromMemBuffer

2015-02-23 Thread Frank Warmerdam
Patrick, After the FileFromMemBuffer() call, the content has been copied to an internal buffer. I think the C++ API has a way of avoiding the copy (if desired) but the python does not. The good thing is, no need to worry about the lifetime of the request result object. Best regards, Frank On

[gdal-dev] gdal.FileFromMemBuffer

2015-02-23 Thread Patrick Young
Hi all, I've been playing around a bit with the vsimem stuff in gdal using python, works great! Basically, I'm getting a json response from an ArcServer endpoint and I want to get out of the ESRI world as quick as I can. My question is, when I do something like this, r = requests.get(url,