[gdal-dev] Python Bindings - ReadArray direct to ctypes array?

Jay L. jzl5325 at psu.edu
Fri Jul 27 20:40:57 PDT 2012


I am working on a python script using the multiprocessing module with
shared memory ctype arrays.

Currently the workflow is to open the dataset and grab the first band, as
usual. I then read in the array, create an empty ctype array, and use
memmove to move the numpy array to my ctypes array.

Is it possible, via python, to read the array direct to a ctypes array and
bypass reading the array as an ndarray?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120727/c2f19da7/attachment.html>

More information about the gdal-dev mailing list