Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5912 closed defect (fixed)

gdal_translate PostgreSQL segfault

Reported by: martinl Owned by: Even Rouault
Priority: high Milestone: 2.0.0
Component: Utilities Version: svn-trunk
Severity: normal Keywords: gdal_translate, PostgreSQL
Cc:

Description (last modified by martinl)

gdal_translate fails when importing GeoTIFF (1) to PostGIS:

gdal_translate -of PostgreSQL dmt.tif PG:dbname=pokusnik 
Input file size is 19615, 11119
0ERROR 6: PG:dbname=pokusnik: SetGeoTransform() not supported for this dataset.
ERROR 6: PG:dbname=pokusnik: Dataset does not support the SetProjection() method.
Segmentation fault
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff732a9a3 in GDALDriver::DefaultCreateCopy (this=0x63d550, pszFilename=0x646270 "PG:dbname=pokusnik", poSrcDS=0x648cb0, bStrict=0, papszOptions=0x0, 
    pfnProgress=0x7ffff73a0f00 <GDALTermProgress(double, char const*, void*)>, pProgressData=0x0) at gdaldriver.cpp:523
523                 poDstBand->SetColorTable( poCT );

(1) http://training.gismentors.eu/geodata/eu-dem/dmt.zip

Change History (7)

comment:1 by martinl, 9 years ago

Description: modified (diff)

comment:2 by Even Rouault, 9 years ago

Owner: changed from warmerdam to Even Rouault

Not sure why you mention GRASS, but anyway we should error out cleanly.

comment:3 by martinl, 9 years ago

Description: modified (diff)

in reply to:  2 comment:4 by martinl, 9 years ago

Replying to rouault:

Not sure why you mention GRASS, but anyway we should error out cleanly.

Sorry,

s/GRASS/PostGIS/g

;-)

comment:5 by Even Rouault, 9 years ago

Resolution: fixed
Status: newclosed

trunk r28844 "DefaultCreateCopy(): error out cleanly when copying from a raster-only to a vector-only driver, or the reverse (#5912, trunk only)"

in reply to:  5 comment:6 by martinl, 9 years ago

Replying to rouault:

trunk r28844 "DefaultCreateCopy(): error out cleanly when copying from a raster-only to a vector-only driver, or the reverse (#5912, trunk only)"

Thanks. Martin

comment:7 by Even Rouault, 9 years ago

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.