Opened 13 years ago

Closed 13 years ago

Last modified 9 years ago

#3062 closed defect (fixed)

gdal_contour calls GDALGetProjectionRef on a raster band !

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone:
Component: Utilities Version: 1.4.0
Severity: normal Keywords:


gdal_contour calls GDALGetProjectionRef() on a raster band instead of the source dataset. By chance, for the GeoTIFF driver, this didn't cause any crash as it called a virtual method of the GTiffRasterBand class that returned NULL, but that could easily cause crashes on other drivers.

Change History (2)

comment:1 by Even Rouault, 13 years ago

Resolution: fixed
Status: newclosed

One side consequence was that the shapefile had no associated .prj file, as reported by 'colindurand' on this georezo thread (

Fixed in trunk (r17390), branches/1.6 (r17391) and branches/1.5 (r17392). Test added in r17393

comment:2 by Even Rouault, 9 years ago

Milestone: 1.5.5

Milestone 1.5.5 deleted

Note: See TracTickets for help on using tickets.