This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Write world file from referencing object or matrix


worldfilewrite(R, worldfilename)


worldfilewrite(R, worldfilename) calculates the world file entries corresponding to referencing object or matrix R and writes them into the file worldfilename. The argument R can be a map raster reference object, a geographic raster reference object, or a 3-by-2 referencing matrix.


Write out the information from a referencing object for the image file concord_ortho_w.tif

info = imfinfo('concord_ortho_w.tif');
R = worldfileread('concord_ortho_w.tfw', ...
     'planar', [info.Height info.Width])
worldfilewrite(R, 'concord_ortho_w_test.tfw');
type concord_ortho_w_test.tfw

Introduced before R2006a

Was this topic helpful?