worldfilewrite

Write world file from referencing object or matrix

Syntax

worldfilewrite(R, worldfilename)

Description

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.

Examples

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
Was this topic helpful?