필터 지우기
필터 지우기

Importing open street map data through readgeotable fails

조회 수: 9 (최근 30일)
Andrea Giordano
Andrea Giordano 2023년 11월 29일
편집: Dyuman Joshi 2023년 11월 29일
Dear community,
Exporting a file directly from open street map (in my code called <map.osm>) and then importing it using the readgeotable function returns me an error. Could you please tell me why?
Thanks!:)
My code and error message follow:
clear all
filename = 'map.osm';
lake = readgeotable(filename, Layer = "water");
Error using readgeotable
Unable to read 'map.osm'. Format may not be supported, file may be corrupt, or a supporting file may have been
specified.
Error in my_lake (line 6)
lake = readgeotable(filename, Layer = "water");

채택된 답변

Dyuman Joshi
Dyuman Joshi 2023년 11월 29일
편집: Dyuman Joshi 2023년 11월 29일
The functionality of reading .OSM files via readgeotable was introduced in R2023b. Reference - https://in.mathworks.com/help/map/ref/readgeotable.html#mw_1c7133d7-c4a9-4b57-b5ad-997551a889e3
As you are working with R2023a, you are not able to use/access it.
You will have to update your MATLAB version to R2023b to access that functionality.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by