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,

asked 10 Jul '12, 18:47

somedude's gravatar image

somedude
51226
accept rate: 0%

edited 11 Jul '12, 14:48

srbrook's gravatar image

srbrook
99351225


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).

permanent link

answered 10 Jul '12, 19:08

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
78.1k886911207
accept rate: 24%

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.

permanent link

answered 10 Jul '12, 23:14

SomeoneElse's gravatar image

SomeoneElse ♦
34.6k69359829
accept rate: 15%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×242

question asked: 10 Jul '12, 18:47

question was seen: 2,410 times

last updated: 11 Jul '12, 14:48

powered by OSQA