[Gdal-dev] Problem with external tiff/geotiff.

Frédéric Trastour support at geoimage.fr
Thu Mar 18 04:41:07 EST 2004


Hello,

thanks a lot, this works fine now !

Frédéric.

----- Original Message ----- 
From: "Andrey Kiselev" <dron at ak4719.spb.edu>
To: <gdal-dev at remotesensing.org>
Sent: Wednesday, March 17, 2004 7:02 PM
Subject: Re: [Gdal-dev] Problem with external tiff/geotiff.


> On Wed, Mar 17, 2004 at 06:18:38PM +0100, Fr?d?ric Trastour wrote:
> > GDAL is configured to use external Tiff and GEOtiff libraries ( V3.6.0
> > and V1.2.1 ).
> >
> > Everything works fine execpting that  I have a crash in
> > gt_wkt_srs.cpp.
> >
> > the problem is the following :
> ...
> > pszSpheroidName is allocated with CPLStrdup ( based on VSIStrdup based
> > on strdup ) then liberated using  GTIFFreeMemory based on the libTIFF
> > allocator which use on windows, functions like GlobalAlloc,
> > GlobalFree... (in tif_win32.c).
>
> It looks like a bug. Please, try the following patch against the
> gt_wkt_srs.cpp:
>
> --- gt_wkt_srs.cpp.bak 2004-03-17 20:55:42.000000000 +0300
> +++ gt_wkt_srs.cpp 2004-03-17 20:58:25.000000000 +0300
> @@ -165,9 +165,9 @@
>   *
>   */
>
> -#include "cpl_port.h"
> -#include "cpl_csv.h"
> -#define CPL_SERV_H_INCLUDED
> +#include "cpl_serv.h"
> +#include "geo_tiffp.h"
> +#define _CPL_ERROR_H_INCLUDED_
>
>  #include "geo_normalize.h"
>  #include "geovalues.h"
>
>
> -- 
> Andrey V. Kiselev
> Home phone:  +7 812 5274898  ICQ# 26871517
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at remotesensing.org
> http://remotesensing.org/mailman/listinfo/gdal-dev





More information about the Gdal-dev mailing list