File tree Expand file tree Collapse file tree 3 files changed +22049
-1
lines changed
Expand file tree Collapse file tree 3 files changed +22049
-1
lines changed Original file line number Diff line number Diff line change 11# MojMapGML2GeoJSON.js
2- 法務省登記所備付地図データのGeoJSONコンバータJavaScriptライブラリ
2+ [ 法務省登記所備付地図データ] ( https://www.moj.go.jp/MINJI/minji05_00494.html ) のGeoJSONコンバータJavaScriptライブラリ
3+
4+
5+ ## 使い方
6+
7+ ESModuleのライブラリになっています。
8+
9+ ``` javascript
10+ import { MojMapGML2GeoJSON } from " ./MojMapGML2GeoJSON.js" ;
11+ var geojs = MojMapGML2GeoJSON .convert (xmlDOM);
12+ JSON .stringify (geojs);
13+ ```
14+
15+ zipファイルを直接ダウンロードして使う
16+ ``` javascript
17+ import { MojMapGML2GeoJSON } from " ./MojMapGML2GeoJSON.js" ;
18+ import { ZipDataDownloader } from " ./ZipDataDownloader.js" ;
19+
20+ var uzd = await ZipDataDownloader .download (zipFilePath);
21+ var r = uzd[0 ].content ;
22+ var xmlDOM = new DOMParser ().parseFromString (r, " text/xml" );
23+ var geojs = MojMapGML2GeoJSON .convert (xmlDOM);
24+ ```
25+
26+ ## ライセンス
27+ GPL v3
28+
29+ ## 出典
30+
31+ テスト用サンプルデータとして、以下のデータがtestdataに格納されています(2023年1月26日にダウンロード)[ (当該ページのURL)] ( https://www.moj.go.jp/MINJI/minji05_00494.html )
32+ * 「登記所備付地図データ中央区佃/勝どき」(法務省) : 13102-0100-28.zip
33+ * 「登記所備付地図データ千代田区大手町1丁目」(法務省) : 13101-0100-28.xml
You can’t perform that action at this time.
0 commit comments