How can I plot a latitude / longitude point on a geotiff? (Without mapping toolbox.)

조회 수: 20 (최근 30일)
Jon
Jon 2017년 5월 17일
댓글: Jon 2017년 5월 18일
Hi. I have some geotiffs in geographic coordinates (WGS84) from various areas around the globe. I also have a list of points, defined by coordinates, that mark points of interest.
How can I plot the geotiff, then plot all the points within the geotiff domain in their correct position? Ultimately I need the x,y position of each point within the geotiff image.
To make matters more complicated, I don't have the Mapping Toolbox. I am using geoimread from the FEX to read the geotiff image and metadata.
Any ideas are appreciated. Thanks!

채택된 답변

KSSV
KSSV 2017년 5월 18일
[A,x,y,I]=geoimread('your tif file') ;
pcolor(x,y,A)
x,y, are latitude and longitude vectors, A is your raster data. I is a structure which gives you complete information of the tiff file.
  댓글 수: 1
Jon
Jon 2017년 5월 18일
Derp. I didn't notice that geoimread could return the latitude/longitude vectors as well. Thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by