[OSM-dev] SRTM contours in Osmarender maps.

Robert Hart Robert.Hart at BuroHappold.com
Fri Feb 16 11:31:44 GMT 2007


I have added a simple contour creator to SVN (utils/srtm2osm/). There is
a README in svn, explaining how to use it. Basically given an SRTM file,
and an OSM file, it'll generate contours and merge them with the map,
producing a new OSM file that can be osmarendered.

Example map: http://www.bathterror.free-online.co.uk/bathmap.png

It really is a bit of a hack so let me give the caveats:

1) DO NOT UPLOAD CONTOURS TO THE OSM SERVER. I hope this is *really*
*really* obvious, but I know what people are like. Would it be possible
to define a "private" or "reserved" ID range that the servers will
refuse to accept for these kind of things?

2) NEEDS GNUPLOT. Please beware it uses gnuplot to do the real-work.
Gnuplot is non-GPL and therefore not always a standard part of Linux
distributions (I've argued with them about this in the past - apparently
switching to GPL will instantly cause gnuplot to start scewing up all
their important scientific calculations) (Gnuplot is in cygwin, so this
could work on windows)

3) NOT TESTED ANYWHERE EXCEPT BATH. In particular this isn't going to
work if you live somewhere that straddles two SRTM files.

4) OSMARENDER STYLES NEED UPDATING. Actually I accidentally committed a
change to osmarender4 to render something, but I'm not particularly
happy with it.




This message has been scanned for viruses by MailControl - www.mailcontrol.com




More information about the dev mailing list