<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">I've made a start on a tool for converting OSM data to shapefiles. osm2shp is available in subversion under the utils directory.<br><br>It's only basic at the moment; it reads in a .osm file and generates a shapefile for tagged nodes, and another for ways. At the moment, ways are assumed to be polylines (polygons are not handled yet) and only certain OSM keys are added to the DBF file: for nodes, these are "amenity", "natural", "place" and "name", and for ways, they are "highway", "name" and "ref". The aim (following a suggestion on the dev list last night) is to create a file mapping POI types (basically, the same as the old "class" key in OSM) to OSM keys/values, then store the POI type in the .dbf. For example ("amenity=place_of_worship; denomination=anglican" could be mapped to "Anglican church"). The
JOSM mapstyle.xml would probably be used as the basis for this.<br><br>The main aim I have is to use shapefiles for Mapnik rendering, so my development efforts are focused in that direction, but any other aims people have please let me know (or hack on it yourself :-) )<br><br>Nick<br></div><br>Send instant messages to your online friends http://uk.messenger.yahoo.com </body></html>