How can I read a GeoJSON format file?

117 ビュー (過去 30 日間)
Maurel
Maurel 2017 年 10 月 10 日
編集済み: Cedric 2017 年 10 月 10 日
Hello! I need to extract energy data for my research and the file format is GeoJSON ( here is a link ).
My issue:
I can't find any matlab function that can help me read such file format. Can someone please help me? Thanks, Maurel

回答 (1 件)

Cedric
Cedric 2017 年 10 月 10 日
編集済み: Cedric 2017 年 10 月 10 日
See this example:
Note that there are plenty of libs for parsing JSON files if you have them on disk already, e.g. this one. After add it to the path:
>> data=loadjson('4.5_month.geojson.json')
data =
struct with fields:
type: 'FeatureCollection'
metadata: [1×1 struct]
features: {1×389 cell}
bbox: [-179.9476 -61.7431 4.3800 179.4478 79.5651 614.2600]

カテゴリ

Help Center および File ExchangeJSON Format についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by