Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kakoni/paavo_posti_leaflet
Example using stat.fi paavo data and leaflet
https://github.com/kakoni/paavo_posti_leaflet
Last synced: about 2 months ago
JSON representation
Example using stat.fi paavo data and leaflet
- Host: GitHub
- URL: https://github.com/kakoni/paavo_posti_leaflet
- Owner: kakoni
- License: mit
- Created: 2015-05-08T12:17:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-10T20:47:18.000Z (over 9 years ago)
- Last Synced: 2023-03-12T16:51:04.368Z (almost 2 years ago)
- Language: JavaScript
- Size: 26.2 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Paavo postinumerot and leaflet
Finnish postal number boundaries.
This example app uses stat.fi paavo-postalnumber data, http://www.stat.fi/tup/rajapintapalvelut/paavo.html.
Data has been converted into topojson form and can be found in data/posti.topo.jsonOh do notice, it does take time to initialize.
# Demo
1. http://rawgit.com/kakoni/paavo_posti_leaflet/master/index.html Demonstrates leaflet + l.proj + topojson
2. http://rawgit.com/kakoni/paavo_posti_leaflet/master/d3_test.html d3 + topojson
3. http://rawgit.com/kakoni/paavo_posti_leaflet/master/index_4326.html leaflet + l.omnivore + topojson(4326 formatted)
4. http://rawgit.com/kakoni/paavo_posti_leaflet/master/d3_leaflet.html leaflet + d3 + topojson# About data conversions
Paavo data was also converted into EPSG:4326 coordinate system using ogr2ogr.
```
ogr2ogr -f GeoJSON -lco ENCODING=UTF-8 -s_srs http://spatialreference.org/ref/epsg/3067/ -t_srs EPSG:4326 posti.geo_4326.json posti.geo.json
```Topojson was typically run with
```
topojson --id-property posti_alue -p nimi -o posti.topo.json -- posti.geo.json
```
except for simplication case ( `--simplify-proportion 0.1` was used )