필터 지우기
필터 지우기

Shapefile read errors please help!

조회 수: 15 (최근 30일)
Kenneth Morley
Kenneth Morley 2013년 12월 12일
댓글: Ikmal Rosli 2021년 11월 24일
All:
I am a very beginner programer and I am running into some problems attempting to use the shaperead function. Every time I try and read a shapefile I get this error:
Error using openShapeFiles>checkSHP (line 67)
Unable to open both al092911_lin.shp and al092911_lin.SHP.
Error in openShapeFiles (line 18)
[basename, ext] = checkSHP(basename,shapeExtensionProvided);
Error in shaperead (line 206)
[shpFileId, shxFileId, dbfFileId, headerTypeCode] ...
Error in shape (line 1)
shaperead('al092911_lin.shp')
I have tried multiple shape files and still get the same thing. Any advice?
  댓글 수: 8
Ikmal Rosli
Ikmal Rosli 2021년 11월 24일
@KSSV MATLAB 2021a, I am not sure if the problem arose from the file itself, or the machine I am using. I have tried using shapeinfo and shaperead on multiple .shp files and gotten the same results as the OP.
Ikmal Rosli
Ikmal Rosli 2021년 11월 24일
@KSSV never mind got it. I just had to add the files into the MATLAB path.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by