How can I import shape file (Yield data points) and display the map?

조회 수: 14 (최근 30일)
Golden Jiang
Golden Jiang 2015년 11월 26일
편집: Surafel 2023년 1월 28일
How can I import shape file (Yield data points) and display the map? My Matlab here does not recognise this file type. Do I have to install the mapping toolbox first?

채택된 답변

Mohammad Abouali
Mohammad Abouali 2015년 11월 27일
Yes, you need Mapping Toolbox installed.
Then you can use shaperead() to read a shapefile. and then use geoshow() to visualize it.
If you just want to show it, and no further processing, you can directly use geoshow().
  댓글 수: 1
Surafel
Surafel 2023년 1월 28일
편집: Surafel 2023년 1월 28일
Hi Mohammed I can read shapefile with this command and see the map.
S = shaperead('CityABCD.shp');
mapshow(S)
Question is how do I add this to a basemap please? also what if I want to have multipe shapefiles?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by