[gdal-dev] SAGA: problem to convert grid from ETRS 89 / ETRS-LAEA to WGS84 CRS

2011-01-06 Thread Clément Tisseuil
Dear all, I try to convert a SAGA grid (SAGA), from a ETRS 89 / ETRS-LAEA to WGS84 CRS , but I get the following error message: gdalwarp -s_srs +proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=321 +ellps=GRS80 +units=m +no_defs -t_srs +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs -r near

Re: [gdal-dev] SAGA: problem to convert grid from ETRS 89 / ETRS-LAEA to WGS84 CRS

2011-01-06 Thread Volker Wichmann
This seems to me like an integer overflow - looking at the GDAL 1.7.2 sources I see, that the WriteHeader() method of sagadataset.cpp is using GInt16 nXSize, GInt16 nYSize Most likely this should be changed to int nXSize, int nYSize Best regards, Volker Am 06.01.2011 10:48, schrieb

Re: [gdal-dev] SAGA: problem to convert grid from ETRS 89 / ETRS-LAEA to WGS84 CRS

2011-01-06 Thread Even Rouault
Le jeudi 06 janvier 2011 13:27:01, Volker Wichmann a écrit : This seems to me like an integer overflow - looking at the GDAL 1.7.2 sources I see, that the WriteHeader() method of sagadataset.cpp is using GInt16 nXSize, GInt16 nYSize Most likely this should be changed to int nXSize, int