how do i open a shapefile in matlab when the shapefile is not stored in the matlab directory?

16 次查看(过去 30 天)
This is what I've tried till now and these are the errors I'm getting:
>> S = shaperead('F:\sujai\3\glims_download_09733\glims_points.shp');
Error using openShapeFiles>readHeaderTypeCode (line 146)
Unsupported shape type PointZ (type code = 11).
Error in openShapeFiles (line 24)
headerTypeCode = readHeaderTypeCode(shpFileId,callingFcn);
Error in shaperead (line 207)
[shpFileId, shxFileId, dbfFileId, headerTypeCode] ...

回答(1 个)

Walter Roberson
Walter Roberson 2016-9-5
m_map third party toolbox can read .shp files with type 11 (PointZ) data.
It has nothing to do with which directory you are in: that particular shp file format is not supported for shaperead() in the MATLAB version you are using.

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by