Bug report #6528
the export map use wrong extension name
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||invalid|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||15742|
Hi, exporting a map canvas as image georef in qgis-dev in tif format.
Has a wrong extension for world file.
filename.tif should have a world file named "filename.tfw".
Instead it is named "filename.tifw"
the 'i' should no be in the extension name.
#4 Updated by Giuseppe Sucameli about 9 years ago
- Status changed from Closed to Reopened
Alexander Bruy wrote:
According to ESRI specifications this is correct behavior.
I guess it's not the correct behavior. In
The world file must follow this naming convention. If the image file name has a 3-character extension (image1.tif), the world file has the same name followed by an extension containing the first and last letters of the image's extension and ending with a 'w' (image1.tfw). If the extension has more or less than 3 characters, including no extension at all, then the world file name is formed by simply appending a 'w' to the image file name.
Saving as "tif" image I get a "tifw" wordfile though the 'w' is appended to the original extension only when the file hasn't 3-character extension.
#6 Updated by Alexander Bruy about 9 years ago
And in ArcGIS Help
mytown.tif would be mytown.tifw, and the world file for redlands.jpg would be redlands.jpgw. Often the naming convention
world files use the same name as the image, with the letter w appended. For example, the world file for the image file
varies from this first description, using the first and third characters of the image file's suffix and a final letter
w as the world file suffix. Therefore, for mytown.tif, the world file would be mytown.tfw, or for redlands.jpg, its world
file would be redlands.jgw.
Same explanation I also see in my ArcGIS 3.2 help. So I still think that this is correct behavior.