5

我正在寻找一个函数来从 ESRI 的 shapefile 格式(在 Arcview 中使用)读取/写入点、线和多边形,以便在 Matlab 中使用

4

2 回答 2

7

从 Matlab 映射工具箱中,使用shaperead 函数

例如在这里下载 NOAA Interstate Highway shape 文件,提取数据然后使用函数将数据读入 Matlab,S = shaperead('in101503.shp');

于 2010-10-06T13:51:05.627 回答
7

如果您没有 Matlab 映射工具箱,非常有用的m_map 包现在有一个 m_shaperead() 函数,它可以很好地读取 shapefile。

X = m_shaperead('filename'); % for filename.(dbf,shp,...)
于 2012-01-16T01:28:53.787 回答