I have set up the rails port on ubuntu14.04, and then I build my local tile server under the instruction of "Manually building a tile server (14.04)". And I have changed the OSM map to my local tile server. The nominatim is still use the http://nominatim.openstreetmap.org/

I have dowmloaded the beijing_china.osm.pbf data file from the Metro Extracts, then i use osm2pgsql to import data into the tile server database,such as "osm2pgsql --slim -d gis -C 1600 --number-processes 3 /usr/local/share/maps/planet/beijing_china.osm.pbf", and i use osmosis to import data into the rails port database,such as "./osmosis-latest/bin/osmosis --read-pbf /home/osm/planet/beijing_china.osm.pbf --write-apidb host="localhost" database="openstreetmap" user="osm" password="buaanlp" validateSchemaVersion="no"". What confuse me is that the table structure in this two database is quite different, then how could it use the same data file to import data?

The table structure in the rails port database and in the tile server database can be showed as blow.

rails port database

alt text

tile server database

alt text

asked 24 Aug '16, 10:31

yuyy's gravatar image

yuyy
236222431
accept rate: 20%

Be the first one to answer this question!
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:

×219
×212

question asked: 24 Aug '16, 10:31

question was seen: 2,567 times

last updated: 24 Aug '16, 10:31

powered by OSQA