<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"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Kristian Thy <thy@42.dk><br>To: dev@openstreetmap.org<br>Sent: Monday, 1 January, 2007 1:18:52 AM<br>Subject: Re: [OSM-dev] DBF files (shapefile) and OSM tags<br><br><div>On Sat, Dec 30, Nick Whitelegg wrote:<br>>>> The columns in a shapefile's attributes have a fixed width, and that<br>>>> width is reserved for each shape. So the space usage will be<br>>>> approximately equal between using a single, concatenated column and<br>>>> multiple columns.<br>>>> <br>>>> What did you intend to gain by concatenating the columns?<br>>> <br>>> What I
 was wondering about in particular was how to make the shapefile DBF file<br>>> fit in with OSM's data format (where there is technically a limitless number of<br>>> valid tags). Having one attribute column per OSM tag would presumably mean that<br>>> any shapefile generating application would only be able to use a particular<br>>> subset of tags.<br><br>>Couldn't you just add all used tags as columns?<br><br>Yes, that would probably work quite well - thanks.<br><br>> As far as I can tell,<br>>OGR allows adding fields on the fly (and if you're not using OGR, why?).<br><br>The need to parse the osm data in the first place means that I need to write custom code anyhow - so the most painless way of generating shapefiles seems to be to write a custom app using shapelib. <br><br>Nick<br><a target="_blank" href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev"></a></div></div><br></div></div><br>Send instant messages to your online
 friends http://uk.messenger.yahoo.com </body></html>