[Gdal-dev] MEM -- In Memory Raster Datasets

Frank Warmerdam fwarmerdam at gmail.com
Tue Mar 8 11:32:22 EST 2005


On Tue, 08 Mar 2005 11:57:35 +0100, Reiner Beck <r.beck at m4com.de> wrote:
> Hello List,
> 
> playing around with the In Memory Raster datasets I found a few issues:
> 
> - The example in the documentation reads "MEM::DATAPOINTER...", it
> should be "MEM:::DATAPOINTER...". One additional colon.

Reiner, 

Fixed.

> - DATATYPE keyword: The documentation states "Name of the data type, as
> returned by GDALGetDataTypeName() (eg. Byte, Int16)". This does not
> work. In "frmts/mem/memdataset.cpp" the integer value of the enumeration
> "GDALDataType" is used (i.e. "1" for Byte).

I have fixed it so the name *or* the numeric values work. 

> - The constructor "MEMDataset::Open(...)" seems to leak the papszOptions
> as returned by "CSLTokenizeStringComplex()". It is not free'd in case of
> success with "CSLDestroy( papszOptions )".

Fixed. 

I have also written a minimist mem.py test script for the mem driver.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the Gdal-dev mailing list