matlab在使用shaperead函数时报错!
错误信息为:
错误使用 openShapeFiles>readHeaderTypeCode (第 160 行)
Unsupported shape type PolygonZ (type code = 15).
出错 openShapeFiles (第 24 行)
headerTypeCode = readHeaderTypeCode(shpFileId,callingFcn);
出错 shaperead (第 210 行)
= openShapeFiles(filename,‘shaperead’);
解决方式:
- 复制要素 → 环境设置 → M值和Z值都改为“disable”!