-
Hello,
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
It's very doable (and I've done it) but it's a multistep process and you'll need some other tools. First get your elevation data - usually SRTM tiles. Use gdal_contour (from the GDAL suite) to make contour shapefiles out of that. Then write a very brief Lua script - it doesn't need to do much, just set the Run tilemaker with this Lua script, a .json pointing to the shapefiles, and the bounding box you want. One thing to watch - shapefiles have a maximum size of 2GB, so if the area you're generating is larger than that, you'll need to split it up into regions and then merge the results. You can use tilemaker's |
Beta Was this translation helpful? Give feedback.
-
Sorry, it's Your style appears to read the |
Beta Was this translation helpful? Give feedback.
-
A .pbf isn't necessary but, if you omit one, you'll need to provide the bounding box on the command line. To minimise the size, there's a few options you can look at (see CONFIGURATION.md):
tilemaker doesn't offer a way to do this - it's something I'd like to do in the future but don't hold your breath. :) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
It's very doable (and I've done it) but it's a multistep process and you'll need some other tools.
First get your elevation data - usually SRTM tiles.
Use gdal_contour (from the GDAL suite) to make contour shapefiles out of that.
Then write a very brief Lua script - it doesn't need to do much, just set the
rank
attribute accordingly inshape_function
. (I don't know what your Mapbox style expects here, sorry.)Run tilemaker with this Lua script, a .json pointing to the shapefiles, and the bounding box you want.
One thing to watch - shapefiles have a maximum size of 2GB, so if the area you're generating is larger than that, you'll need to split it up into regions and then merge the results.…