forked from mmd-osm/Overpass-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added installation instructions. Thoughts about transactionality.
- Loading branch information
Roland Olbricht
committed
Mar 2, 2011
1 parent
79ee2e1
commit 72589ae
Showing
4 changed files
with
361 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,109 @@ | ||
einmalig: | ||
mysl -u root -p | ||
> grant all on osm.* to 'osm'@'localhost' identified by 'osm'; | ||
> exit | ||
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 | ||
|
||
mkdir build | ||
pushd src | ||
autoscan | ||
aclocal | ||
autoheader | ||
automake --add-missing | ||
autoconf | ||
popd | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters