I already have a method to generate greyscale bitmap heightmaps from Google Earth using a long and involved manual process (see here).

Is there a scriptable way of producing a heightmap to a set scale from freely available data, given a set of coordinates?


You can get all the UK height data (Landform Panorama) for free at 1:50,000 (50m) scale from Ordnance Survey Open Data. This will be much better than generating the height data from Google Earth. To get the whole of the UK, you can request the data on disk rather than use their download service (which is intended for small units of data). You can also download a load of other data for the UK for free from here.

EDIT: I should have said - two versions are available. You can get the Landform Panorama data as both contours and gridded point heights. The latter is very suitable for the easy creation of a raster DTM using (for instance) Gdal_Grid either as a stand-alone utility or as a sub-process from within your script (which could be useful for batch processes possibly in conjunction with gdal_merge or gdal_dem depending on what you need to do with the height map afterwards.


It should be pretty easy to do that in Maperitive, probably by writing a short Python script. See my latest blog post as an example of a scriptable relief generation: http://braincrunch.tumblr.com/post/26190799580/maperitive-alpenglow-effect-using-a-custom-shader

There's already a built-in method for generating hypsometric tinting maps, which are in essence heightmaps. If you give me the specifics (input, output), I can prepare a sample script and post it to this answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.