To rasterize polygons without using GUI
古いコメントを表示
Hi, I am trying to rasterize a feature (POP2005) of a shapefile containing 246 countries.
I need to manually point the cursor to each of the 246 countries, which is a difficult task(considering some of the 246 countries are too small to be seen on a regular map.
I need help to rasterize the feature in polygons without using GUI ****I could not use the example in https://de.mathworks.com/help/map/vector-to-raster-data-conversion.html . as I found that it works for just one country and all the countries need to be processed separately.
The shapefile is attached
3 件のコメント
KSSV
2020 年 1 月 22 日
You need to run a loop for each closed region. What difficulty you have?
SChow
2020 年 1 月 22 日
Lan Wang Erlandsson
2021 年 2 月 18 日
編集済み: Lan Wang Erlandsson
2021 年 2 月 18 日
Chad Greene's response to this thread might be useful (use inpolygon instead of vec2mtx/encodem etc ):
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Data Import and Export についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!