I would like to create a tile server in order to bulk download map tiles for personal use. I have followed the switch2osm guide and I managed to setup an OSM tile server with a small regional DB that works nicely. However, I would also like to get contour lines on my tiles. I have already read the information about SRTM, the contour lines and hill shading in the wiki, but it looks like an overly complicated process. After looking around, I found that bbbike.org allows to extract regions of the map, and one of the options allows the extraction of SRTM data: http://extract.bbbike.org/ Here actually, they even have the entire planet SRTM pbf file available for download. Can someone please explain how these data could be properly imported in the postgres database? Also, is there any further configuration that needs to be done in Mapnik or any other component? asked 29 Mar '15, 23:49 cyberang3l |
I managed to import the data and configure them to appear on my map. Steps I followed:
# Contour lines node,way contour text linear way contour_ext text linear way ele text linear
answered 31 Mar '15, 02:04 cyberang3l Does anyone know how to insert XML code properly in an answer?
(31 Mar '15, 02:05)
cyberang3l
Also, how can I continue the list numbering after a code block? In the preview is was shown correctly, but now that I see the answer posted, after each code block the ordered lists start counting from 1 again.
(31 Mar '15, 02:08)
cyberang3l
1
Alternatively you could present your solution in a blog entry via your OSM user account.
(31 Mar '15, 14:41)
scai ♦
@scai: … where there is also Markdown, isn't it? @cyberang3l: the "preview" does work partly. Use http://daringfireball.net/projects/markdown/dingus instead for previewing "complex" stuff. And http://daringfireball.net/projects/markdown/syntax should explain the formatting … however, I did not get the XML block to work, too.
(31 Mar '15, 15:04)
aseerel4c26 ♦
2
For anyone interested, I collected a few different map styles and I made a script for easy installation in one go. One of the map styles is the OSM Bright map that includes contour lines. I didn't use the XML code above, but I incorporated the change in the CartoCSS. You can check it out here: https://github.com/cyberang3l/osm-maps
(04 Apr '15, 00:56)
cyberang3l
showing 5 of 6
show 1 more comments
|