Why projinv() function shows this error? How to solve it?

2 Ansichten (letzte 30 Tage)
Tejas Turakhia
Tejas Turakhia am 17 Jul. 2017
Bearbeitet: Tejas Turakhia am 23 Jul. 2017
I want to add shapefile behind .tiff image and have came across this code: https://in.mathworks.com/matlabcentral/answers/8865-geotiffread-getting-latlon-info. I have run this code but it shows the following error (attached image). I don't understand why this error comes.... I have attached the .tif file as zip
)
clear
clc
[data, R] = geotiffread('trial_PM25_case6_.tif');
info = geotiffinfo('trial_PM25_case6_.tif');
[AY, AX]= size (data);
for i= 1:AY
for j=1:AX
[y(i),x(j)] = pix2map(info.RefMatrix, i, j);
[lat(i,j),lon(i,j)] = projinv(info, y(i),x(j));
end
end

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by