Clear Filters
Clear Filters

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

3 views (last 30 days)
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

Answers (0)

Community Treasure Hunt

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

Start Hunting!