Skip to content

dorianzgraggen/klanglandschaft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Klanglandschaft

An interactive web application that explores the connection between sound and cartography.

image

⚠️ Klanglandschaft is a prototype or a proof of concept created during a course at the Digital Ideation programme at Lucerne University of Applied Sciences. You will experience bugs.

Map data © swisstopo

Contributing

The app is split into two components:

  • frontend: The actual web app. Built using Vue.js (UI), Three.js (3D stuff) and Rete.js (Node Editor).
  • datagen: Functions for creating the tiles used in the 3D landscape view.

Frontend

Requirements: Node.js 18^ and npm

  1. npm install
  2. npm run dev (or npm run dev -- --host if you want to test it on a device in your local network)

Data Generation

⚠️ Only fully works on Linux atm. There is a bug where the tiles for wind levels are mapped incorrectly on Windows.

If you only want to work on the frontend, you can ignore this folder. By default, the frontend fetches the tiles from a server on the internet.

Requirements: Node.js 18^, npm, gdal (make sure you can run the commands gdal_translate, gdal_rasterize and ogr2ogr)

  1. npm install
  2. npm start

This will download a lot of data from the Federal Office of Topography. You need about 75GB of available disk space.

It then creates multiple tile maps for every square kilometer. You can serve these tiles locally by running npm run serve. To make the frontend fetch the tiles locally, run the dev server using npm run dev:local

License

Copyright (C) 2023 rnaisa, Dorian Zgraggen

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.