https://github.com/shanghuiyang/geojson2poly
convert geojson to poly
https://github.com/shanghuiyang/geojson2poly
geojson open-street-map osm osmosis poly-format
Last synced: about 2 months ago
JSON representation
convert geojson to poly
- Host: GitHub
- URL: https://github.com/shanghuiyang/geojson2poly
- Owner: shanghuiyang
- License: mit
- Created: 2019-01-10T02:22:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-31T04:56:32.000Z (over 3 years ago)
- Last Synced: 2024-06-20T17:54:18.159Z (10 months ago)
- Topics: geojson, open-street-map, osm, osmosis, poly-format
- Language: Go
- Size: 19.5 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# geojson2poly
[](https://github.com/shanghuiyang/geojson2poly/actions/workflows/ci.yml)
[](https://github.com/shanghuiyang/geojson2poly/blob/master/LICENSE)Converts [geojson](http://geojson.org/) Polygon/MultiPolygon to openstreetmap(osm) [poly](https://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format) format file.
## Usage
```
usage: geojson2poly --input=GEOJSON --output=POLY []Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
-i, --input=GEOJSON a .geojson file as input
-o, --output=POLY a .poly file as output
```example,
```shell
$ geojson2poly -i test.geojson -o test.poly
```## Install
**Build from sourcecodes**
```shell
$ go get -u github.com/shanghuiyang/geojson2poly
# from project directory
$ go build .
$ cp cp geojson2poly /usr/local/bin
# test
$ geojson2poly -h
```
**Download from the per-compiled binary**
Download from [Release](https://github.com/shanghuiyang/geojson2poly/releases)