- Read the shape file using shaperead. This has single/ multiple regions.
- Pick one closed region fromt he shape file
- Take the grid and shapefile region, use inpolygon to get the points lying outside and inside the closed region .
- With the help of indices get what you want.
How to use a shapefile to extract regions outside the shapefile?
조회 수: 1 (최근 30일)
이전 댓글 표시
Can anyone help me in extracting only the regions outside a shapefile? I have gone through many documentation and answers in matlab central but did not find a solution to this.
댓글 수: 0
답변 (1개)
KSSV
2020년 1월 10일
댓글 수: 2
KSSV
2020년 1월 20일
Raka Mukherjee comented:
Thank you for your answer but I wanted to use one particular world shapefile to extract the outside part of the shapefile for any image, so the closed region cannot be constant. Is that possible?
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!