Rank: 2879 based on 46 downloads (last 30 days) and 2 files submitted
photo

John Evans

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by John Evans View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Sep 2006 Screenshot MEXGDAL Mex file interface for reading various raster image formats, optionally providing georeferencing. Author: John Evans data import, data export, gdal, raster, esri, utilities 24 1
  • 5.0
5.0 | 1 rating
13 Jul 2006 Screenshot MEX_SHAPE Reads in common ESRI shapefile formats. Author: John Evans data import, data export, shapefile, point, polyline, polygon 22 9
  • 4.88889
4.9 | 9 ratings
Comments and Ratings on John Evans' Files View all
Updated File Comment by Comments Rating
23 Sep 2014 MEX_SHAPE Reads in common ESRI shapefile formats. Author: John Evans Gerbert

Mr. Evans, thanks for the submission. In contrast to what has been said below does my mexfile not work on the 2012b version (with the exact same code, it does work on a 2006b account)

Error in mexshape (line 1)
function [s, t] = mex_shape ( shapefile )

Output argument "s" (and maybe others) not assigned during call to "C:\Program
Files\MATLAB\R2012b\mexshape\mexshape.m>mexshape".

Error in shape_get (line 66)
[shape_data] = mexshape ( shapefile );

What do I do wrong?

18 Feb 2013 MEX_SHAPE Reads in common ESRI shapefile formats. Author: John Evans Jonathan Epperl

Mr Evans, thank you very much for this extremely useful submission! Also many thanks to Povl Abrahamsen for the comment below. Just to recap, the compilation on my Win7 64bit R2012b machine:
mex -output mexshape -v mex_shape.c shpopen.c dbfopen.c safileio.c

18 Jan 2013 MEX_SHAPE Reads in common ESRI shapefile formats. Author: John Evans Povl Abrahamsen

Still works great in R2012B. With the latest version of Shapelib you also need to include safileio.c when compiling.

10 Jan 2012 MEX_SHAPE Reads in common ESRI shapefile formats. Author: John Evans Pavan

Works without a problem. Great job.

08 Mar 2010 MEX_SHAPE Reads in common ESRI shapefile formats. Author: John Evans 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.

Contact us