getworldfilename uses

6 次查看(过去 30 天)
Chethan S
Chethan S 2011-5-3
In the MATLAB Mapping Toolbox there is getworldfilename function. According to help it derives the worldfile name from image filename. I was thinking of creating a worldfile based on this information as I work on georeferenced images. Therefore I do the following after reading an image:
>> WN = getworldfilename(fn)
WN =
mat_test2.tfw
>> R = worldfileread(WN)
??? Error using ==> worldfileread at 28
The input worldfilename 'mat_test2.tfw' is not a file.
Using single quotes for WN also results in the same error. I can of course create a world file easily using GIS Software. But I was wondering what purpose does getworldfilename serve? Is it just limited to get the name and nothing else?

采纳的回答

Oleg Komarov
Oleg Komarov 2011-5-3
Yes, it just creates the name.

更多回答(1 个)

Rob Comer
Rob Comer 2011-5-15
It looks like your goal is to create a new worldfile. You can use the Mapping Toolbox worldfilewrite function to do that.

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by