[gdal-dev] regarding GDALDriver::Create

Frank Warmerdam warmerdam at pobox.com
Wed Aug 19 10:17:27 EDT 2009

Srikanth wrote:
> Hi ,
> Thanks for the mail Frank.
> The problem is rightly pointed. In my case the dataset (poDataset) is 
> not getting created at times (parameters being the same) . I have 
> checked thoroughly everything related to this, but did not find any 
> either solution or problem.
> I would appreciate if you can assist me solving this issue.


After a failed Create() operation you can call CPLGetLastErrorMsg() and display
the resulting string.  It should give some idea of what is going wrong.

In a normal console application you should also see this message emitted in
the console (stderr) automatically.

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