DenkMap is a location-based mobile app dedicated to monuments.
JavaScript CSS
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.sencha
_DESIGN
app
build
geoservice
resources
scripts
ssh_pub_keys
touch
ux
vagrant
.gitignore
.jshintrc
.travis.yml
Gruntfile.js
LICENSE
Procfile
README.md
Vagrantfile
app.js
app.json
bootstrap.js
bootstrap.json
bower.json
build.xml
index.html
index_iphone.html
package.json
packager.json
server.js

README.md

denkmap

DenkMap is a location-based mobile app dedicated to monuments. It's name is a play of words of the German term for monument (Denkmal) and map.

This project was started at the Zurich Hacknights organised by Open Data Zürich. You can find more information about this project on the make.opendata.ch Wiki.

Build

Denkmap is built using Travis CI:

Build Status

The app is deployed on Heroku: http://denkmap.herokuapp.com

Development

To run denkmap on your local machine, you need to install vagrant (>=1.5). Then all you have to do is run the following command:

vagrant up

This setups a virtual machine with all needed software and configuration. For easier access make sure to add the following line to your hosts file (usually /etc/hosts):

172.14.13.44 denkmap.lo

After those steps you can access your local version of denkmap using any browser with the url http://denkmap.lo.

Manual installation

Run the install script:

./scripts/install.sh
./scripts/import_db.sh

Make sure you have Sencha Cmd installed on your development machine.

Convert WFS to GeoJSON

  1. Download WFS Service as GML: http://maps.zh.ch/wfs/DenkmalschutzWFS?service=wfs&version=1.1.0&request=GetFeature&typeName=denkmalschutzobjekte
  2. Install ogr2ogr (apt-get install gdal-bin)
  3. Convert the GML to a GeoJSON: ogr2ogr -f geoJSON -s_srs EPSG:21781 -t_srs EPSG:4326 denkmal.geojson DenkmalschutzWFS.gml

Convert GeoJSON to MongoDB-importable JSON

  1. Remove surounding FeatureCollection
  2. Ensure that 1 object on 1 line
  3. Rename MultiPoint to Point and remove the extra array

Deployment to Heroku

Please ensure that there is a running MongoDB instance on Heroku. Currently the MongoLab add-on is used for this. To activate it run:

heroku addons:add mongolab

Credits

Zurich Hacknight Team ("Denkmalführer")

  • Pirmin Kalberer
  • Thomas Husmann
  • Stefan Oderbolz
  • Adi Herzog
  • Priska Haller
  • Andi Vonlaufen
  • Beat Estermann
  • Oliver Berchtold

Logo

Maps