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 Mon, Feb 23, 2015 at 12:12 PM, Patrick Young
patrick.mckendree.yo...@gmail.com wrote:
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, params=payload, timeout=timeout)
gdal.FileFromMemBuffer('/vsimem/temp', r.content)
does the buffer get copied to the created virtual file? I know I need to
clean up with a gdal.Unlink(('/vsimem/temp'), but does something bad happen
when Python frees the r request?
Thanks a ton!
-Patrick
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
--
---+--
I set the clouds in motion - turn up | Frank Warmerdam,
warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Software Developer
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev