kothic / kothic-js

Kothic JS — a full-featured JavaScript map rendering engine using HTML5 Canvas
http://kothic.org
BSD 2-Clause "Simplified" License
452 stars 46 forks source link

Include elevation data in tiles #23

Open abfab opened 13 years ago

abfab commented 13 years ago

Purpose is to pre-process elevation data such as SRTM, and include it as vector data in tiles, in order to allow rendering of contour and / or hillshading.

Komzpa commented 13 years ago

a) Needs server-side modification. Load SRTM in PostGIS? Write own tools? b) Elevation data for hillshading is raster. Need an idea of good format to pack raster (delta coding? fourier transformations? binary?)

nickw1 commented 4 years ago

@abfab Sorry this is so many years after the issue but commenting in case others ask about this as I have a working server-side implementation. As described above, you can already include contours by importing contours into a database (e.g. PostGIS) and serving the contours as GeoJSON.

I do this on Freemap (https://www.free-map.org.uk). Source code for the GeoJSON server https://gitlab.com/nickw1/freemap-api, if the 'contour' GET parameter is set then it will generate contours as GeoJSON.