Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
C++ C Shell Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
build
cgi-bin
doc
html
osm-3s_testing
query_shortcuts
rules
src
utils
.cvsignore
.gitignore
CHANGELOG
COPYING
Makefile
README
konzept.txt
konzept_vereinfachte_db.txt
konzeptheft.txt
some_rules.xml

README

1 GB RAM, 40 GB + 40 GB harddisk space
sudo apt-get install g++ make expat libexpat1-dev
OSM file
Directories for executables, DB1, DB2, Minute-Downloads

[This is db functionality only, areas and utils aren't covered here.]

# einmalig:
# mysl -u root -p
# > grant all on osm.* to 'osm'@'localhost' identified by 'osm';
# > exit

---
#!/bin/bash

if [[ -z $1  ]]; then
{
  echo Usage: $0 Version
  exit 0
};
fi

git clone git://gitorious.org/~drol/osm3s/drol-osm3s

pushd drol-osm3s/
yes | rm -R .git

pushd src/
autoscan
aclocal
autoheader
automake --add-missing
autoconf
popd

popd

mv drol-osm3s "osm-3s_v$1"
tar cvf - "osm-3s_v$1/" | gzip >"../misc-www/osm-3s_v$1.tar.gz"
rm -R "osm-3s_v$1"
---

mv drol-osm3s "osm-3s_v$1"
tar cvf - osm-3s/ | gzip >"../misc-www/osm-3s_v$1.tar.gz"
yes | rm -R "osm-3s_v$1"

pushd build
../src/configure --prefix=YOUR_PATH
make install
popd

pushd bin
./update_database --db-dir=YOUR_DB_DIR
# may take up to 24 hours ...
popd

bin/osm3s_query --no-mime --db-dir=YOUR_DB_DIR
--quiet

<query type="node"><bbox-query n="51.0" s="50.9" w="6.9" e="7.0"/><has-kv k="amenity" v="pub"/></query><print/>

<query type="node">
  <bbox-query n="51.0" s="50.9" w="6.9" e="7.0"/>
  <has-kv k="amenity" v="pub"/>
</query>
<print/>

<query type="node">
  <bbox-query n="51.0" s="50.9" w="6.9" e="7.0"/>
  <has-kv k="amenity" v="place_of_worship"/>
</query>
<print/>

<query type="node">
  <bbox-query n="51.0" s="50.9" w="6.9" e="7.0"/>
  <has-kv k="amenity" v="place_of_worship"/>
  <has-kv k="name"/>
</query>
<print/>

<union>
  <bbox-query n="51.0" s="50.9" w="6.9" e="7.0"/>
  <recurse type="node-relation" into="__"/>
  <recurse type="node-way"/>
  <recurse type="way-relation"/>
</union>
<print/>

<osm-script timeout="1800">
<query type="node">
  <has-kv k="amenity" v="place_of_worship"/>
  <has-kv k="name"/>
</query>
<print/>
</osm-script>

http://78.46.81.38/

pushd bin
mkdir YOUR_DB_DIR/1/
./update_database --db-dir=YOUR_DB_DIR/1/
# may take up to 24 hours ...
mkdir YOUR_DB_DIR/2/
cp YOUR_DB_DIR/1/* 2/
popd

# FIRST_MINDIFF_ID from Wed, 2011-02-16: 679988
pushd bin
nohup ./fetch_osc.sh FIRST_MINDIFF_ID http://planet.openstreetmap.org/minute-replicate YOUR_REPLICATE_DIR/ &
nohup ./apply_osc_to_db.sh YOUR_DB_DIR/1/ YOUR_REPLICATE_DIR/ FIRST_MINDIFF_ID &
nohup ./apply_osc_to_db.sh YOUR_DB_DIR/2/ YOUR_REPLICATE_DIR/ FIRST_MINDIFF_ID &
nohup ./scheduler --db-dir=YOUR_DB_DIR/ &
popd

YOUR_DB_DIR/dispatcher.log
YOUR_DB_DIR/1/apply_osc_to_db.log
YOUR_REPLICATE_DIR/fetch_osc.log

bin/osm3s_query --no-mime

TODO
Hours
- What to install on other distros.
- Localize manual.
Days
- Do bbox-query for ways (Clear meaning of inside, look at bbox_query.cc and query.cc)
- Other output formats (look at print.cc): PBF, HTML
- Transactionality (easiest on block level, work out tests, look at backend/file_blocks.h)
Weeks
- Make Forecast possible
- Rule processing
- Speed optimization, in particular for foreach, bbox_query and make_area
- interactive search engine
- changesets, versions and maybe user-ids
Something went wrong with that request. Please try again.