This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to create a development environment with an empty planet map?

3

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: https://wiki.openstreetmap.org/wiki/Rails#Installing_Rails

asked 26 Aug '13, 22:23

Leonardo%20Neves's gravatar image

Leonardo Neves
46112
accept rate: 0%

edited 29 Aug '13, 11:44

MagicFab's gravatar image

MagicFab
935101622


2 Answers:

3

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>

answered 27 Aug '13, 10:29

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
17.3k18152249
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

1

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.

answered 27 Aug '13, 02:53

he_the_great's gravatar image

he_the_great
1.2k61423
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 ♦

Source code available on GitHub .