- 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!