Main Content

worldfilewrite

Write world file from raster reference object

Syntax

worldfilewrite(R,worldfilename)

Description

worldfilewrite(R,worldfilename) calculates the world file entries corresponding to reference object R and writes them into the file worldfilename. Specify R as a GeographicCellsReference, GeographicPostingsReference, MapCellsReference, or MapPostingsReference object.

Examples

Write out the information from a reference 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

Version History

Introduced before R2006a

expand all