Ticket #1733 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

ILWIS .grf creation doesn't work sometimes.

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 1.5.0
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: ilwis
Cc: lichun

Description

Translation to ILWIS format on windows doesn't not seem to work properly as some files (such as .grf) are given crazy names. This appears to be because the filename from poOpenInfo is kept within the dataset without making a local allocation even though the filename in poOpenInfo is likely to be destroyed before the dataset is destroyed.

Change History

Changed 6 years ago by warmerdam

  • status changed from new to assigned

Fixed in trunk via r11833 by turning the pszFileName member of the dataset into a CPLString to keep a copy in. Renamed to osFileName to reflect it being an object instead of a "char *".

I see a number of other issues reported when exporting to ILWIS format under valgrind. I will fix these and then backport a unified update to 1.4 branch.

Changed 6 years ago by warmerdam

  • status changed from assigned to closed
  • resolution set to fixed

Fixed leak of fpRaw file handles for band data files. Fixed some valgrind reported issues with passing adfGeoTransform to Get/Set? Geotransform in trunk in r11834.

Backported the trunk version of the driver to 1.4 branch in r11835.

Note: See TracTickets for help on using tickets.