1

I'm attempting to produce tiles for a tif with the following call to gdal2tiles.py:

gdal2tiles.py --profile=raster C:\Users\kcwil\media\bmng_qsc\0\frontside.tif

and I'm getting the following error:

File "<stdin>", line 1
gdal2tiles.py --profile=raster C:\Users\kcwil\media\bmng_qsc\0\frontside.tif
                               ^

"C:\Users\kcwil\media\bmng_qsc\0\frontside.tif" is a valid file produced by gdalwarp. As I understand it, gdal2tiles takes its parameters in the form : [options] input_file [output_dir] and what I am doing appears to be similar to examples I've seen.

What am I doing wrong?

0
1

You're attempting to run gdal2tiles.py from a python prompt. Run it from a command line prompt.

How you do that depends on your operating system and how you installed GDAL. If using windows, you may (depending on how you installed GDAL) need to prepend the command with the correct python interpreter and the full path to gdal2tiles.py,

1
  • Thank you! Now I'm just missing some modules.
    – kcwill2
    Apr 13 '20 at 6:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.