Extracting data from a raster file with the borders of polygon (vector in shapefile)
조회 수: 15 (최근 30일)
이전 댓글 표시
Hi everyone,
I am working with geotiff files and I want to extract the value of part of it restricted by a polygon in a shapefile. In ARC GIS there is a command called "extract by mask" and it is possible to extract part of a raster file using a polygon or another smaller raster which is smaller than the original file. Let me know how I can do it.
Cheers Abbas
댓글 수: 0
채택된 답변
Chad Greene
2014년 9월 21일
This may not be exactly what you're looking for, but you could interpolate values given by lat/lon or map x/y using geotiffinterp. You may be able to adapt the regridding example in that link to suit your needs.
댓글 수: 0
추가 답변 (1개)
Suman Dhamala
2021년 6월 28일
You can use clip raster by polygon function.
https://in.mathworks.com/matlabcentral/fileexchange/63855-clip-raster-by-polygon
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Map Display에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!