Assign and map values to a shapefile data structure

3 ビュー (過去 30 日間)
Ryan Greenaway-McGrevy
Ryan Greenaway-McGrevy 2017 年 3 月 5 日
コメント済み: Christoph Ullrich 2018 年 4 月 15 日
I have loaded in a shapefile and I want to:
(a) assign a numerical value to each polygon. These values are contained in a separate csv file. Both the csv file and the shapefile contain the same identifiers for the polygons. So this should be easy. (b) Map the numerical values. I do not care what the color scheme is, as long as larger values are distinguishable from smaller values in the color scheme.
I expect this is all straightforward, but I have been searching for the past hour but have come up with nothing. This seemed to be closest to what I am trying to do: https://www.mathworks.com/examples/mapping/mw/map-ex88555438-create-choropleth-map-of-population-density
Thanks in advance.
  3 件のコメント
Ryan Greenaway-McGrevy
Ryan Greenaway-McGrevy 2017 年 3 月 10 日
Thanks for the response. I would attach it, but these shp files are much bigger than 5MB. I have been looking for a smaller-sized file, but I am coming up with nothing.
Is it possible to take a sub-space of a shapefile in matlab? Perhaps by using 'boundingbox'? Then I could write it using shapewrite.
Christoph Ullrich
Christoph Ullrich 2018 年 4 月 15 日
Hi, did you find a solution? I have exactly the same problem.
Thanks.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMap Display についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by