forked from drolbr/Overpass-API
-
Notifications
You must be signed in to change notification settings - Fork 0
License
tyrasd/Overpass-API
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- C++ 89.4%
- Shell 5.9%
- C 4.4%
- Other 0.3%