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?

nmtoken
  • 13,355
  • 5
  • 38
  • 87
ensta
  • 127
  • 1
  • 7

1 Answers1

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.

user2856
  • 65,736
  • 6
  • 115
  • 196
  • Should I add it to "-co worldfile=yes" string? Is the "infile outfile" needed also? – ensta Mar 16 '18 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 Mar 19 '18 at 10:06