SRTM2OSMsegmenter

From OpenStreetMap Wiki
Jump to: navigation, search

Contents

Warning

So far, SRTM2OSMsegmenter is very much an alpha release. It seems to be running stable, but be sure you read and understand the limitations. No warranties of course.

What does it do

OSM contours created with SRTM2OSM may contain very, very long ways. These long ways will quite certainly lead to artefacts when working with that data - i.e. when cutting with osmconvert/osmosis or splitting with mkgmap splitter. SRTM2OSMsegmenter will split these long ways into shorter ones. The last node of a new way will always be the first node of the next new way.

Background

See here: Howto render Garmin contour layers with no artefacts.

Download

.exe and C source code, MinGW is best for compiling. Latest version is 0.3.

Running

SRTM2OSMsegmenter -i=input.osm -o=output.osm -s=250 -v -w=1

History

Vers. 0.3

Vers. 0.2

Limitations

If you have any questions or problems, don't hesitate to contact me.

Personal tools
Namespaces
Variants
Actions
site
Toolbox