[gdal-dev] gdal_translate crash

Frank Warmerdam warmerdam at p...
Thu Feb 7 15:28:25 EST 2002


Markus Neteler wrote:

> (gdb) bt
> #0 0x40310058 in __strcasecmp (s1=0x0, s2=0x40170b8f "unknown") at
> ../sysdeps/generic/strcasecmp.c:64
> #1 0x4008d495 in GTIFSetFromOGISDefn () at eval.c:41
> #2 0x40083f71 in GTiffDataset::WriteGeoTIFFInfo () at eval.c:41
> #3 0x40083321 in GTiffDataset::~GTiffDataset () at eval.c:41
> #4 0x400e2371 in GDALClose () at eval.c:41
> #5 0x8049964 in main () at eval.c:41
> #6 0x402a8306 in __libc_start_main (main=0x8048ecc <main>, argc=11,
> ubp_av=0xbfffda74, init=0x8048a98 <_init>, fini=0x80499c0 <_fini>,
> rtld_fini=0x4000d2dc <_dl_fini>, stack_end=0xbfffda6c) at
> ../sysdeps/generic/libc-start.c:129

I have checked in a fix for gdal/frmts/gtiff/gt_wkt_srs.cpp that should
fix this problem.

>>I could add a "-scale src_min src_max [dst_min dst_max]" option to gdal_translate
>>if you would like, for scaling purposes.

I have checked in an update gdal_translate.c with the -scale option. If the
destination min/max values are omitted 0 and 256 are assumed. If the
src min/max are omitted they will be computed from the source data (the
same as gdalinfo -mm would report as min/max).

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at p...
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