Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/digital-go-jp/mojxml2geojson
法務省登記所備付地図データ(地図XML)をGeoJSONに変換するコンバータ
https://github.com/digital-go-jp/mojxml2geojson
Last synced: 13 days ago
JSON representation
法務省登記所備付地図データ(地図XML)をGeoJSONに変換するコンバータ
- Host: GitHub
- URL: https://github.com/digital-go-jp/mojxml2geojson
- Owner: digital-go-jp
- License: mit
- Created: 2023-01-23T02:31:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-28T05:10:44.000Z (about 1 year ago)
- Last Synced: 2024-08-01T16:35:40.965Z (3 months ago)
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 212
- Watchers: 8
- Forks: 66
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mojxml2geojson
- Data converter for the National Land Register data (mojxml).
- [What is the National Land Register data?](https://data-gov.note.jp/n/n367f1e368d22#a12a292e-4301-4cf1-979f-74f3bef09999)- The conversion specifications are as follows.
- Extracts and outputs only the brush polygon data and attributes necessary to maintain the Address Base Registry from the Map XML data. Reference points, boundary points, and boundary lines are not output.
- For public coordinate information data, convert coordinate values to longitude and latitude (JGD2011). Add representative point coordinates as attributes.
- Data in arbitrary coordinate information are not converted to coordinate values.## Requirement
- GDAL
- https://gdal.org/download.html
- python 3.*
- pip 22.*## Installing
### setup.py
```bash
pip install .
```### From GitHub
```bash
pip install git+https://github.com/digital-go-jp/mojxml2geojson.git
```## Usage
```bash
mojxml2geojson ./moj.xml
```### Usage with Docker
```
docker build -t mojxml2geojson .
```Create a `data` directory and put in the files to be converted.
```
docker run --rm -v $(pwd)/data:/data mojxml2geojson /data/moj.xml
```### PyTest
```bash
python -m pytest -vv -p no:cacheprovide
```