[gdal-dev] Re: python memory driver

2011-05-05 Thread Juliannerc
Thanks for the response. Are the code snippets below what you mean by the memory drivers? # # Create a memory raster to rasterize into. # target_dr = gdal.GetDriverByName ('MEM') target_ds = target_dr.Create ('', 1500,

[gdal-dev] Re: python memory driver

2011-05-05 Thread Juliannerc
I believe that I have the example working. When using the command 'print an_array', it wasn't showing the parts that contained non-zero data. Once I realized that, everything seems to work as expected. Thanks for the support. Julianne -- View this message in context: http://osgeo-org.1803224.

Re: [gdal-dev] Re: python memory driver

2011-05-05 Thread Chaitanya kumar CH
Julianne, You can use the Memory raster driver just like you would use any other format driver. Use the ReadRaster() function. Refer to http://www.gdal.org/gdal_tutorial.html On Thu, May 5, 2011 at 7:59 PM, Juliannerc wrote: > Thanks for the response. > > Are the code snippets below what you me