8

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?

1

1 Answer 1

7

"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.

2
  • Should I add it to "-co worldfile=yes" string? Is the "infile outfile" needed also?
    – ensta
    Commented Mar 16, 2018 at 17:03
  • 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
    Commented Mar 19, 2018 at 10:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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