Skip to Main Content Skip to Search
Product Documentation

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 spatialref.MapRasterReference object, a spatialref.GeoRasterReference 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

See Also

getworldfilename | map2pix | pix2map | worldfileread

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS