Opened 9 years ago

Closed 9 years ago

#6106 closed defect (duplicate)

Error when using spatial reference EPSG:3440 in gdal2tiles.py

Reported by: alqurri Owned by: warmerdam
Priority: high Milestone:
Component: default Version: 1.11.1
Severity: normal Keywords: GDAL 1.11.1, released 2014/09/24
Cc:

Description

I was using gdal2tiles.py with spatial reference WSG84 and it was working fine. However, when I changed to spatial reference EPSG:3440. I got the the following error:


ERROR 5: Illegal values for buffer size ERROR 5: Illegal values for buffer size Traceback (most recent call last):

File "C:\Development\mygdal\bin\gdal\python\scripts\gdal2tiles.py", line 2278,

in <module>

gdal2tiles.process()

File "C:\Development\mygdal\bin\gdal\python\scripts\gdal2tiles.py", line 488,

in process

self.generate_base_tiles()

File "C:\Development\mygdal\bin\gdal\python\scripts\gdal2tiles.py", line 1288,

in generate_base_tiles

dsquery.WriteRaster(wx, wy, wxsize, wysize, data, band_list=list(range(1,sel

f.dataBandsCount+1)))

File "C:\Development\mygdal\bin\gdal\python\osgeo\gdal.py", line 798, in Write

Raster

buf_pixel_space, buf_line_space, buf_band_space )

TypeError: not a string


First, I run the command:

gdal_translate -of VRT -a_srs EPSG:3440 -gcp 0 0 58.068451479718924 23.65512391903488 -gcp 21816 0 58.126966134442846 23.65512391903488 -gcp 21816 14871 58.126966134442846 23.6185834507829 myinputimage.png myoutput.vrt Than, I run the command:

python gdal2tiles.py myoutput.vrt When I got the above error.

Is there is way to fix this error or use similar spatial reference which doesn't have this error. Notice, this error happen only when using spatial reference other than WSG84.

I guess the issue could be that spatial reference EPSG:3440 is not inculded, but the question remain, is there away to add it to gdal reference database.

Change History (1)

comment:1 by Even Rouault, 9 years ago

Resolution: duplicate
Status: newclosed

Looks like a duplicate of #6106

Note: See TracTickets for help on using tickets.