Skip to content

BesutKode/uni-task-2-mamat-rahmat

Repository files navigation

Build Status

Damar Island Open Data

This project aim to collect Open Data about Damar Island and visualize them.

https://github.com/BesutKode/uni-task-2-mamat-rahmat

Collected Data and Script

There are some collected data, along with script to grab them from the sources and postprocess them sufficiently :

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

Visualization is created with html page which use Bootstrap and OpenLayers. The demo page is located here.

Development

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.

About

uni-task-2-mamat-rahmat created by GitHub Classroom

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published