Opened 24 years ago

Last modified 24 years ago

#2 closed defect (fixed)

pszDescription not filled with driver->Create(...) for GTiff.

Reported by: pierre.grout@… Owned by: warmerda@…
Priority: high Milestone:
Component: default Version: unspecified
Severity: minor Keywords:
Cc:

Description

Hello Frank,
I found a mistake in the GDAL.
When we use the GDALDriver Create method, the pszDescription (the filename) is
not set with the GTiff driver (I dont know if it's the same with the other
drivers).

It seems to be a lack in the method :
   - GTiffDataset::Create
in the file frmts\gtiff\geotiff.cpp
at the line 1253
Behind these lines :
/* ----------------------------------------------------------------
/* Create the new GTiffDataset object.
/*-----------------------------------------------------------------

There is no setting of the pszDescription of the Dataset.

Best regards,

Pierre
PS : maybe it's not a bug :| Maybe it's my program who's wrong :|

Change History (1)

comment:1 by warmerda@…, 24 years ago

I have modified the GDALDriver::Create() method to set the description to
the creation filename after the particular driver has created the dataset.
I also did something similar in the GDALDriver::CreateCopy() method.

I haven't actually tested.  I would appreciate your doing so if convenient.
Note: See TracTickets for help on using tickets.