Why not ask your question on the new OpenStreetMap Community Forum?

The format of OSM is great for me! But i need have a planet no data. After would do importing the database specific. it's possible?

How to do?

My OSM source is ruby on rails and my server start with data. I followed this tutorial: http://wiki.openstreetmap.org/wiki/Rails#Installing_Rails

asked 26 Aug '13, 22:23

Leonardo%20Neves's gravatar image

Leonardo Neves
accept rate: 0%

edited 29 Aug '13, 11:44

MagicFab's gravatar image


This question came up on IRC a little while ago. I can't find it in my logs, or who should get the credit, but the answer was to do everything as normal except use an empty-but-valid osm-xml file during the data import. The file should be something like:

 < ?xml version="1.0" encoding="UTF-8"?>
 < osm version="0.6" generator="CGImap 0.0.2">
 < bounds minlat="54.0889580" minlon="12.2487570" maxlat="54.0913900" maxlon="12.2524800"/>
 < /osm>
permanent link

answered 27 Aug '13, 10:29

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
accept rate: 19%

Vincent, the empty osm not work =/ The data carry on being downloadeds. Thanks for answer!

What i seek is build a local map only with local OSM file. No internet connection.

thanks all for helping! I gonna carry on, if i have success post here.

(27 Aug '13, 20:03) Leonardo Neves

This sounds like an uncommon request and since it is development related, the knowledgeable people are found in the dev mailing list.

I would expect that you should skip the Populating the Database section. The following comment would suggest adding data should be done through change sets.

Later updates to the database (sometimes referred to as the apidb) will need to use a change format (.osc).

If you have success, I suggest you write docs on how to use an empty database.

permanent link

answered 27 Aug '13, 02:53

he_the_great's gravatar image

accept rate: 14%

I'm not 100% sure that I understand the question, but isn't it just a case of running "osmosis" (in the Populating the Database section) with an empty or nearly-empty-but-valid ** XML file instead of the planet one?

Perhaps you could explain in a little more detail what you're trying to do and what problems you're still seeing?

** I don't know, but suspect that running osmosis might do some schema setup in addition to the data loading, and giving it "something" to load might be required.

(27 Aug '13, 22:56) SomeoneElse ♦
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 26 Aug '13, 22:23

question was seen: 3,390 times

last updated: 29 Aug '13, 11:44

powered by OSQA