3

Am trying to recreate "gdal... -co worldfile=yes"

However whenever I do I get error: "Warning 6: driver GTiff does not support creation option worldfile"

Though I think it may be working anyway. Any ways to prevent error message, or workarounds?

2

"WORLDFILE=YES" is a jpeg creation option, not a tiff option.

The creation option you want is TFW=YES

gdal_translate -co "TFW=YES" infile outfile

See the geotiff documentation.

  • Should I add it to "-co worldfile=yes" string? Is the "infile outfile" needed also? – ensta Mar 16 '18 at 17:03
  • @ensta There is no -co "worldfile=yes" option. It is -co "TFW=yes". Of course you need to specify the input and output file names. – user2856 Mar 16 '18 at 23:54
  • Thanks Luke. Just FYI I have been using the worldfile command successfully so far, in fact the only successful method. It creates a .wld file, which I manually rename to tfw or jgw. Would be nice to have a string for warping and tfw all in one. But when I try to add extra commands into the dialogue (convert) it gives a "too many commands" error message. Anyway, thanks for this – ensta Mar 19 '18 at 10:06

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.