I have downloaded the planet.osm as XML and am looking to break this down into smaller maps so that my computer may process them. I think that I will be able to handle at least 1 degree by 1 degree (i.e. W160 to W159 & N89 to N90 and so forth), but it is very tedious to do this in osmosis with command line. Can anyone think of a method through which I could automate the process? Thank you, |
There are several special-use programs that will split the planet into many small bits at the same time. One of them is http://svn.openstreetmap.org/applications/utils/osm-extract/osmcut/ (reads XML only, makes equal-sized squares, no support for relations); another is http://www.mkgmap.org.uk/page/tile-splitter (reads PBF as well, makes variable-sizes squares based on how much data is in them). answered 10 Jul '12, 19:08 Frederik Ramm ♦ |
Not a direct answer to your question, but just in case you're not aware - there are a number of places where regularly updated planet extracts are available. Depending on what you want to do with the data, it might be easier using one or more of those than trying to process the whole planet. answered 10 Jul '12, 23:14 SomeoneElse ♦ |