NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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 ♦
82.5k927201273
accept rate: 23%

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 ♦
36.9k71370866
accept rate: 16%

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:

×252

question asked: 10 Jul '12, 18:47

question was seen: 3,054 times

last updated: 11 Jul '12, 14:48

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum