Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diogok/topojson
Read and Write TopoJSON in Clojure.
https://github.com/diogok/topojson
clojure geojson geospatial topojson
Last synced: about 2 months ago
JSON representation
Read and Write TopoJSON in Clojure.
- Host: GitHub
- URL: https://github.com/diogok/topojson
- Owner: diogok
- Created: 2015-10-14T22:52:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-15T12:16:31.000Z (almost 7 years ago)
- Last Synced: 2024-10-03T22:16:31.995Z (3 months ago)
- Topics: clojure, geojson, geospatial, topojson
- Language: JavaScript
- Size: 4.64 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# topojson
Read and write [TopoJSON](https://github.com/mbostock/topojson/wiki) to and from [GeoJSON](http://geojson.org), in clojure.
## Usage
Include the dependency in your project:
[![Clojars Project](http://clojars.org/topojson/latest-version.svg)](http://clojars.org/topojson)
### Reading
This convert a TopoJSON structure to a GeoJSON data structure.
```clojure
(use ['topojson.reader :only ('topo2geo 'read-json)])(def topojson (read-json "example.topo.json"))
(def geojson (topo2geo topojson))
```### Writing
This converts a GeoJSON into a TopoJSON structure.
```clojure
(use ['topojson.reader :only ('read-json)])
(use ['topojson.writer :only ('geo2topo)])(def geojson (read-json "example.geo.json"))
(def topojson (geo2topo geojson))
```## License
MIT