Custom scripts for OpenStreetmap
Here is an overview of the custom shell / Perl / Python scripts I have used to
do my own processing of OpenStreetmap data. While they are usable for their
purpose, to get the most out of them, you should view them as examples to
understand and modify.
Downloading OpenStreetmap data
The following rendering scripts require a live PostgreSQL / PostGIS database
with OpenStreetmap data.
Rendering standard OpenStreetmap tiles
These also require renderd from the mod_tile package to be running.
- render_list-rect.pl calls
render_list repeatedly to render tiles at multiple zoom levels but
restricted to a rectangular region.
- The small C program missing_tiles.c lists
which tiles at a zoom level an in a region have not yet been rendered. It is
a hack based on render_list.c (the render_list main program). To
build it, copy it to the src subdirectory of the mod_tile sources,
build render_list and then run this
Dealing with metatiles
(These don't need the PostgreSQL / PostGIS database but process rendered
Rendering larger map regions
More info on my GPS surveying workflow...
- wintec2000-extract.pl converts binary
data from the Wintec 2000 GPS logger into a white space separated ASCII table.
- smoothtrack.pl smooths a track represented as
- txt2osm.pl converts ASCII table data into
OpenStreetmap XML for import into JOSM.
- txt2kml.pl converts ASCII table data into KML.
Licensed under the Creative Commons Attribution-Share Alike 4.0 Germany License
TOS / Impressum