diff options
author | slomo <steve.harrison@gmx.net> | 2011-04-17 21:33:42 +0200 |
---|---|---|
committer | slomo <steve.harrison@gmx.net> | 2011-04-17 21:33:42 +0200 |
commit | ffa69485eaaad5283162dd90b19fd284bc9f87ca (patch) | |
tree | cd89f170bf433c4cb77785fc46c5370f9195e24b /README | |
parent | bfbc478c5ec2e07d5047ae020361bedfa4e5f4c6 (diff) | |
parent | 9a62f0c465cb1250e5f1ec825aed12a0792291de (diff) | |
download | osm-xapi-ffa69485eaaad5283162dd90b19fd284bc9f87ca.tar.gz osm-xapi-ffa69485eaaad5283162dd90b19fd284bc9f87ca.tar.xz osm-xapi-ffa69485eaaad5283162dd90b19fd284bc9f87ca.zip |
Merge branch 'master' of github.com:slomo/osm-spline-xapi
Diffstat (limited to 'README')
-rw-r--r-- | README | 46 |
1 files changed, 11 insertions, 35 deletions
@@ -5,7 +5,7 @@ osm@spline Xapi Contact ============ http://osm.spline.de -mailing list: osm@lists.spline.de +mailing list: osm@lists.spline.de or xapi@lists.spline.de irc: irc://irc.freenode.net/#spline Aim @@ -40,10 +40,18 @@ your local directory. If you don't trust us read the bootstrap.sh. If you have node and npm installed you can just use "npm link src/nodejs/" to install all the dependencies. +Dependencies +============= + +For dependencies checkout the package.json file. One special case is the node-postgres +lib. Use a patched version: https://github.com/AlexanderS/node-postgres + +If you try the libxml branch make sure you have installed libxml for developers. + Database setup ============= -We use postgres 9.* with postgis 1.5. Postgres 9.0 is used becaus we need some +We use postgres 9.* with postgis 1.5. Postgres 9.0 is used because we need some functions on hstores and postgis 1.5 is used for fancy geometry things. To setup a database you first need a runing postgres 9.0 instance. I hope you know @@ -90,40 +98,8 @@ Import data from xml with: osmosis --read-xml file="planet.osm.bz2" --wp host="localhost" password="TopSecretPassword" user="insertUserNameHere" database="osm" -Before or after import you may want to create a index or two. Examples below: +Before or after import you may want to create a indexes. Examples below: CREATE INDEX idx_nodes_tags ON nodes USING GIN(tags); CREATE INDEX idx_nodes_tags ON nodes USING GIST(tags); CREATE INDEX idx_ways_tags ON ways USING GIN(tags); CREATE INDEX idx_ways_tags ON ways USING GIST(tags); - -database shema (out dated) -================ - -We keep data in a highly specioaliced shema, that allows us to prevent tables -growing to big. And supports our requests at maximum speed. - -| CREATE TABLE <tagname>:<tagvalue> ( -| {bigint id} -| {longitude float4}, -| {latitude float4}, -| {object varchar} -| ) PRIMARY KEY id; - -Implmentation -============= - -Teilprobleme: -.............. - -1. Database import - -mögliche Technologien: -* Osmosis- plugin -* selbst in python (Protobuf consumer, async pgsql schreiber) - - -2. Web API -.............. - -mögliche Technologien: -* node.js |