No BSD License  

Highlights from
MEX_SHAPE

image thumbnail
from MEX_SHAPE by John Evans
Reads in common ESRI shapefile formats.

Case Study: Windows XP

Case Study: Windows XP

Start by retrieving the sourcecode for shapelib from http://dl.maptools.org/dl/shapelib. Copy the following files into the mexshape directory

shpopen.c
dbfopen.c
shapefil.h

Then from within matlab, cd into the mexshape directory and issue the following command

	>> mex -output mexshape -v mex_shape.c shpopen.c dbfopen.c

If MATLAB presents you with a choice of compilers, you may safely choose Lcc. It may give you some warnings, but it should compile just fine.

Contact us at files@mathworks.com