README.md 876 Bytes
Newer Older
Martin Raifer's avatar
Martin Raifer committed
1
2
3
4
Creates an extract in form of a OSHDB H2-file from an Ignite OSHDB database source.

Entities can be filterd by bounding box or a semantic filter (tags, type).

Martin Raifer's avatar
Martin Raifer committed
5
6
7
8
## usage

build using `mvn package`, execute as:

9
10
11
12
13
14
15
16
17
18
19
20
```bash
# change the following variables to your settings
export REPNUM=12345
export DBSERVER=servername
export DBUSER=username
export DBPASSWORD=password
export DATABASE=keytables-global-$REPNUM
export INPUTPREFIX=global-$REPNUM
export IGNITECONF=/.../ohsome-ignite.xml
export OUTFILE=/.../output.oshdb

java -jar target/oshdb-extractor-0.1-SNAPSHOT-jar-with-dependencies.jar -i $IGNITECONF --input-prefix $INPUTPREFIX -k "org.postgresql.Driver|jdbc:postgresql://$DBSERVER:5432/$DATABASE|$DBUSER|$DBPASSWORD" -b minlon,minlat,maxlon,maxlat -o $OUTFILE --skip-large-relations
Martin Raifer's avatar
Martin Raifer committed
21
22
23
```

You can get a full list of supported arguments by running `--help` on the jar file.