[gdal-dev] gdal_translate crash
Markus Neteler
neteler at i...
Thu Feb 7 16:00:34 EST 2002
Frank,
thanks a lot for the quick fix & improvement.
Tomorrow, back in office, I'll try it.
Best regards
Markus
On Thu, Feb 07, 2002 at 03:28:25PM -0500, Frank Warmerdam wrote:
> 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
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
--
Markus Neteler
ITC-irst, Istituto per la Ricerca Scientifica e Tecnologica
Project on Predictive Models for the Environment
Via Sommarive, 18 - 38050 Povo (Trento), Italia
tel +39 0461 314 -520 (fax -591) http://mpa.itc.it
More information about the Gdal-dev
mailing list