ESRI's shapefile to Matlab
Asked Answered
B

2

5

I am looking for a function to read/write points, lines and polygons from ESRI's shapefile format (as used in Arcview) for use in Matlab

Bluebonnet answered 6/10, 2010 at 13:40 Comment(0)
B
7

From the Matlab mapping toolbox, use the shaperead function

For example download the NOAA Interstate Highway shape file here, extract and then read data into Matlab using the function, S = shaperead('in101503.shp');

Bluebonnet answered 6/10, 2010 at 13:51 Comment(0)
F
7

If you do not have the Matlab mapping toobox, the very useful m_map package now has an m_shaperead() function which does a good job of reading shapefiles.

X = m_shaperead('filename'); % for filename.(dbf,shp,...)
Friary answered 16/1, 2012 at 1:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.