This project aim to collect Open Data about Damar Island and visualize them.
https://github.com/BesutKode/uni-task-2-mamat-rahmat
There are some collected data, along with script to grab them from the sources and postprocess them sufficiently :
- Damar Island coastline data taken from OpenStreetmap using Overpass API. The license of the data is Open Data Commons Open Database License (ODbL).
- Damar Island mountain data taken from OpenStreetmap using Overpass API. The license of the data is Open Data Commons Open Database License (ODbL).
- Damar Island critical land taken from Ministry of Forestry data repository. The license of the data is Creative Commons Attribution Lisence (cc-by) which is stated in data.go.id.
The Script is written in NodeJS with some dependencies :
- request
- osmtogeojson
- togeojson
- xmldom
Generally the script duty is to grab data from source and convert them to GeoJson format for easy visualization.
Visualization is created with html page which use Bootstrap and OpenLayers. The demo page is located here.
To reproduce the data grabing, make sure you had nodejs in your environtment. Install some dependencies with npm install
, and run the script with node script.js
.
To run web visualization, make sure that you had a webserver running for project root. You can use http-server node package as a simple web server is enough.
To add some data, you can add GeoJson data directly to project root (please make sure that the data is using Open Data Lisence), or add some code to the script to grab the data and postprocess them sufficiently. After that, add filename to urls
array at the top of ol-main.js
. Default style will be applied if GeoJson doesn't contain style in the feature properties.