getworldfilename uses

6 visualizaciones (últimos 30 días)
Chethan S
Chethan S el 3 de Mayo de 2011
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?

Respuesta aceptada

Oleg Komarov
Oleg Komarov el 3 de Mayo de 2011
Yes, it just creates the name.

Más respuestas (1)

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

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by