No BSD License  

Highlights from
MEX_SHAPE

4.85714

4.9 | 7 ratings Rate this file 13 Downloads (last 30 days) File Size: 806.96 KB File ID: #5951
image thumbnail

MEX_SHAPE

by John Evans

 

29 Sep 2004 (Updated 13 Jul 2006)

Reads in common ESRI shapefile formats.

| Watch this File

File Information
Description

This mex-file reads SHPT_POINT, SHPT_MULTIPOINT, SHPT_ARC, and SHPT_POLYGON shapefiles into structures.

MATLAB release MATLAB 7.0.4 (R14SP2)
Other requirements Requires shapelib (http://shapelib.maptools.org).
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
04 Jan 2006 Amer Butt  
14 Feb 2006 ivica Janekovic

SUPER STUFF!!!
All compliments for done jobe!!

27 Aug 2006 Richard Signell

Worked perfectly.

29 Mar 2007 Tim Myers

Great code and documentation. This is exactly what I was looking for. Works great.

24 Sep 2007 Seshadri Rajagopal

Great and handy tool. I just saved a bunch of money and time by switching to mexshape :-)) Thank you Mr. Evans

08 Mar 2010 Anthony Kendall

The code worked great, I compiled it on a 64-bit machine with the latest version of shapelib, and everything works well. Some of the help is a bit outdated, but I really can't complain.

10 Jan 2012 Pavan

Works without a problem. Great job.

Please login to add a comment or rating.
Updates
29 Oct 2004

Improved documentation, addition of linux mex file. Addition of example shapefile.

17 Dec 2004

Forgot to include mexopts.sh file.

27 Dec 2004

Added Mac OS X, WinXP, and Digital Unix mex files.

12 Jan 2005

Minor wording change to the README file. Previous upload did not include all necessary files.

12 Jan 2005

Minor change to wording of README. Last submission did not include all files.

09 Aug 2005

Modified to handle multiregion polygons. This is done by inserting NaNs into the vertex lists where a separate polygon begins.

16 Jan 2006

Cleaned up issues revealed by -Wall compile option. Now handling multipart polygons within a single shape by using NaNs.

26 Apr 2006

Additional windows dll, code cleanup.

05 May 2006

Took into account suggestions by mlint.

Wasn't handling special case where a point shapefile had just one point in an entity.

13 Jul 2006

Additional support for SHPT_MULTIPOINT. Less cluttered output. Documentation now generated via DocBook.

Tag Activity for this File
Tag Applied By Date/Time
data import John Evans 22 Oct 2008 07:32:11
data export John Evans 22 Oct 2008 07:32:11
shapefile John Evans 22 Oct 2008 07:32:11
point John Evans 22 Oct 2008 07:32:11
polyline John Evans 22 Oct 2008 07:32:11
polygon John Evans 22 Oct 2008 07:32:11
read John Evans 22 Oct 2008 07:32:11
import John Evans 22 Oct 2008 07:32:11

Contact us at files@mathworks.com