Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

OSGeo4W and GDAL – gdal2tiles.py error

$
0
0

Wondering why gdal2tiles is throwing errors, I’ve added the gdaldata and gdalplugins environmental variables and my python is at Python27/ArcGIS10.3/, and am wondering if that is messing with the OSGeo4W python located in the C:OSGeo4Wbin folder, or do I need to direct my environment variables every time I want to use OSGeo4W vs. ArcGIS python versions? Or is it working and the error I’m seeing below has to do with something else totally seperate?

This is really confusing to me, thanks! –and the stackexchange tag should be “gdal2tiles.py” there is only “gdal2tile” available…I don’t have enough cred to add one

OSGEO4W home is C:OSGeo4W

                   -={ OSGeo4W Shell Commands }=-

       bmp2tiff             listgeo              raw2tiff
       cs2cs                nad2bin              rgb2ycbcr
       curl                 ncdump               rpcgen
       dllupdate            ncgen                rpcinfo
       fax2ps               nearblack            testepsg
       fax2tiff             nircmd               textreplace
       gdaladdo             nircmdc              thumbnail
       gdalbuildvrt         ogdi_import          tiff2bw
       gdaldem              ogdi_info            tiff2pdf
       gdalenhance          ogr2ogr              tiff2ps
       gdalinfo             ogrinfo              tiff2rgba
       gdallocationinfo     ogrlineref           tiffcmp
       gdalmanage           ogrtindex            tiffcp
       gdalserver           opj_compress         tiffcrop
       gdalsrsinfo          opj_decompress       tiffdither
       gdaltindex           opj_dump             tiffdump
       gdaltransform        osgeo4w-setup-work   tiffinfo
       gdalwarp             osgeo4w-setup        tiffmedian
       gdal_contour         pal2rgb              tiffset
       gdal_grid            portmap              tiffsplit
       gdal_rasterize       ppm2tiff             w9xpopen
       gdal_translate       proj                 xmlcatalog
       geod                 psql                 xmllint
       geotifcp             python               xxmklink
       gif2tiff             pythonw
       gltpd                ras2tiff


       epsg_tr           gdalmove          make-bat-for-py
       esri2wkt          gdal_auth         mkgraticule
       gcps2vec          gdal_calc         o-help
       gcps2wld          gdal_edit         o4w_env
       gdal2tiles        gdal_fillnodata   pct2rgb
       gdal2xyz          gdal_merge        rgb2pct
       gdalchksum        gdal_polygonize   setup-test
       gdalcompare       gdal_proximity    setup
       gdalident         gdal_retile
       gdalimport        gdal_sieve

GDAL 1.11.2, released 2015/02/10

C:UsersmaugustDesktop>gdal2tiles.py C:UsersmaugustDesktopexample_tifsPie
rce_2010_84.tif C:UsersmaugustDesktopexample_tifstilegdal
Traceback (most recent call last):
  File "C:OSGeo4Wbingdal2tiles.py", line 2278, in <module>
    gdal2tiles.process()
  File "C:OSGeo4Wbingdal2tiles.py", line 482, in process
    self.open_input()
  File "C:OSGeo4Wbingdal2tiles.py", line 856, in open_input
    self.out_ds.SetMetadataItem('NODATA_VALUES','%i %i %i' % (self.in_nodata[0],
self.in_nodata[1],self.in_nodata[2]))
IndexError: list index out of range

C:UsersmaugustDesktop>

Viewing all articles
Browse latest Browse all 397

Trending Articles