필터 지우기
필터 지우기

How to extract latlon from the .TIFF file?

조회 수: 2 (최근 30일)
UTKARSH VERMA
UTKARSH VERMA 2019년 4월 17일
I have a LULC map as in .TIF/TIFF format, using its defined class in different colors I want to extract points (from another file which is shapefile) which lie over it.
I have used these two method/code but got error in each case:
1)
info = geotiffinfo('IGP_LULC.tif');
[x,y] = pix2map(info.RefMatrix, 1, 1);
[lat,lon] = projinv(info, x,y)
error in using projinv
2)
height = info.Height; % Integer indicating the height of the image in pixels
width = info.Width; % Integer indicating the width of the image in pixels
[rows,cols] = meshgrid(1:height,1:width);
% Getting the latitude and longitude of the points
[x,y] = pix2map(info.RefMatrix, rows, cols);
[lat,lon] = projinv(info, y,x);
error of memory

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by