https://github.com/nigelramsay/fountains
Ruby script for converting WCC fountain data into JSON format
https://github.com/nigelramsay/fountains
Last synced: 12 months ago
JSON representation
Ruby script for converting WCC fountain data into JSON format
- Host: GitHub
- URL: https://github.com/nigelramsay/fountains
- Owner: nigelramsay
- Created: 2020-02-02T02:42:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-02T02:42:27.000Z (over 6 years ago)
- Last Synced: 2025-01-17T12:36:00.338Z (over 1 year ago)
- Language: Ruby
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WCC Fountain data converter
Converts the WCC fountain data from this URL into a useful GeoJSON format:
URL: https://gis.wcc.govt.nz/arcgis/rest/services/Parks/Parks/MapServer/15/query?f=json&returnGeometry=true&spatialRel=esriSpatialRelIntersects&maxAllowableOffset=76&geometry={%22xmin%22%3A19450471.965504095%2C%22ymin%22%3A-5087648.602626465%2C%22xmax%22%3A19489607.723986052%2C%22ymax%22%3A-5048512.844144508%2C%22spatialReference%22%3A{%22wkid%22%3A102100}}&geometryType=esriGeometryEnvelope&inSR=102100&outFields=*&outSR=102100
## Instructions
1. If necessary, update the contents of `wcc_fountains.geojson` from the above URL
1. `docker-compose run app bundle exec ruby convert.rb`
1. `open fountains.geojson`