getworldfilename
Derive world file name from image file name
Syntax
worldfilename = getworldfilename(imagefilename)
Description
worldfilename = getworldfilename(imagefilename)
returns the name of the corresponding world file derived from the name of an
image file.
The world file and the image file have the same base name. If imagefilename
follows the “.3” convention, then you create the world file
extension by removing the middle letter and appending the letter
'w'
.
If imagefilename
has an extension that does not follow the
“.3” convention, then a 'w'
is appended to
the full image name to construct the world file name.
If imagefilename
has no extension, then '.wld'
is
appended to construct a world file name.
Examples
Given the following image file names, worldfilename
would return these
world file names:
Image File Name | World File Name |
---|---|
|
|
|
|
|
|
Version History
Introduced before R2006a