Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| edb78d5fb4 | |||
| 41a02a1d5c | |||
| 8eb533afc8 | |||
| 781b7d1c10 | |||
| baa92f860e | |||
| 9012beffc2 | |||
| 2925c0879e | |||
| ecb83d90e9 |
12
.gitmodules
vendored
12
.gitmodules
vendored
@@ -7,18 +7,6 @@
|
|||||||
[submodule "ironsea_index_sfc_dbc"]
|
[submodule "ironsea_index_sfc_dbc"]
|
||||||
path = ironsea_index_sfc_dbc
|
path = ironsea_index_sfc_dbc
|
||||||
url = ../ironsea_index_sfc_dbc
|
url = ../ironsea_index_sfc_dbc
|
||||||
[submodule "ironsea_store"]
|
|
||||||
path = ironsea_store
|
|
||||||
url = ../ironsea_store
|
|
||||||
[submodule "ironsea_store_buffered_file"]
|
|
||||||
path = ironsea_store_buffered_file
|
|
||||||
url = ../ironsea_store_buffered_file
|
|
||||||
[submodule "ironsea_store_mapped_file"]
|
|
||||||
path = ironsea_store_mapped_file
|
|
||||||
url = ../ironsea_store_mapped_file
|
|
||||||
[submodule "ironsea_store_file"]
|
|
||||||
path = ironsea_store_file
|
|
||||||
url = ../ironsea_store_file
|
|
||||||
[submodule "mercator_data_generator"]
|
[submodule "mercator_data_generator"]
|
||||||
path = mercator_data_generator
|
path = mercator_data_generator
|
||||||
url = ../mercator_data_generator
|
url = ../mercator_data_generator
|
||||||
|
|||||||
2798
Cargo.lock
generated
2798
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,7 @@ members = [
|
|||||||
|
|
||||||
# Generic Interfaces
|
# Generic Interfaces
|
||||||
"ironsea_index",
|
"ironsea_index",
|
||||||
"ironsea_store",
|
#"ironsea_store",
|
||||||
|
|
||||||
# Specific implementations
|
# Specific implementations
|
||||||
"ironsea_index_hashmap",
|
"ironsea_index_hashmap",
|
||||||
@@ -21,7 +21,7 @@ members = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
#lto = true
|
||||||
#debug = true
|
#debug = true
|
||||||
|
|
||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
@@ -29,7 +29,7 @@ mercator_db = { path = "mercator_db" }
|
|||||||
mercator_parser = { path = "mercator_parser" }
|
mercator_parser = { path = "mercator_parser" }
|
||||||
|
|
||||||
ironsea_index = { path = "ironsea_index" }
|
ironsea_index = { path = "ironsea_index" }
|
||||||
ironsea_store = { path = "ironsea_store" }
|
#ironsea_store = { path = "ironsea_store" }
|
||||||
|
|
||||||
ironsea_index_hashmap = { path = "ironsea_index_hashmap" }
|
ironsea_index_hashmap = { path = "ironsea_index_hashmap" }
|
||||||
ironsea_index_sfc_dbc = { path = "ironsea_index_sfc_dbc" }
|
ironsea_index_sfc_dbc = { path = "ironsea_index_sfc_dbc" }
|
||||||
|
|||||||
38
README.md
38
README.md
@@ -27,7 +27,7 @@ This enables the index implementations to be agnostic from the underlying data s
|
|||||||
* Clone the workspace, which will take care of bringing all the repositories needed.
|
* Clone the workspace, which will take care of bringing all the repositories needed.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone --recurse <repository URI>
|
git clone --recurse https://github.com/epfl-dias/mercator
|
||||||
```
|
```
|
||||||
|
|
||||||
The following steps assume the working directory is the root of the mercator repository.
|
The following steps assume the working directory is the root of the mercator repository.
|
||||||
@@ -49,31 +49,47 @@ This enables the index implementations to be agnostic from the underlying data s
|
|||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
* Index the data:
|
* Index the data (assuming the datasets generated above):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cargo run --release -- 1k 10k 100k
|
cargo run --release -- 1k 10k 100k
|
||||||
|
mv *.index ../mercator_service
|
||||||
```
|
```
|
||||||
|
|
||||||
* Run the Spatial Index, while providing the path to the datasets.
|
* Run the Spatial Index, while providing the path to the datasets.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd mercator_service
|
cd mercator_service
|
||||||
RUST_LOG="warn,actix_web=info,mercator_service=trace" \
|
cargo run --release
|
||||||
MERCATOR_DATA="../mercator_indexer/" \
|
|
||||||
MERCATOR_ALLOWED_ORIGINS="http://localhost:3200" \
|
|
||||||
cargo run --release
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
For more information, please refer to the [documentation](https://epfl-dias.github.io/mercator/).
|
For more information, please refer to each sub projects, as well as the on-line help for the tools & utilities.
|
||||||
|
|
||||||
If you want to build the documentation and access it locally, you can use:
|
### Tools
|
||||||
|
|
||||||
```sh
|
* Mercator Service
|
||||||
cargo doc --open
|
**[[src](https://github.com/epfl-dias/mercator_service), [doc](https://epfl-dias.github.io/mercator_service/)]**
|
||||||
```
|
* Mercator Indexer
|
||||||
|
**[[src](https://github.com/epfl-dias/mercator_indexer)]**
|
||||||
|
|
||||||
|
### Utilities
|
||||||
|
|
||||||
|
* Mercator Data Generator
|
||||||
|
**[[src](https://github.com/epfl-dias/mercator_data_generator/)]**
|
||||||
|
|
||||||
|
### Libraries
|
||||||
|
|
||||||
|
* IronSea Index
|
||||||
|
**[[src](https://github.com/epfl-dias/ironsea_index/), [doc](https://epfl-dias.github.io/ironsea_index/)]**
|
||||||
|
* IronSea Index HashMap
|
||||||
|
**[[src](https://github.com/epfl-dias/ironsea_index_hashmap/), [doc](https://epfl-dias.github.io/ironsea_index_hashmap/)]**
|
||||||
|
* IronSea Index SFC-DBC
|
||||||
|
**[[src](https://github.com/epfl-dias/ironsea_index_sfc_dbc/), [doc](https://epfl-dias.github.io/ironsea_index_sfc_dbc/)]**
|
||||||
|
* Mercator DB
|
||||||
|
**[[src](https://github.com/epfl-dias/mercator_db/), [doc](https://epfl-dias.github.io/mercator_db/)]**
|
||||||
|
* Mercator Parser **[[src](https://github.com/epfl-dias/mercator_parser/), [doc](https://epfl-dias.github.io/mercator_parser/), [query language](https://epfl-dias.github.io/mercator_parser/book/)]**
|
||||||
|
|
||||||
## Acknowledgements
|
## Acknowledgements
|
||||||
|
|
||||||
|
|||||||
Submodule ironsea_index updated: 9b96fef55f...1e232f50f5
Submodule ironsea_index_hashmap updated: 41f8aa368b...27a15a5d07
Submodule ironsea_index_sfc_dbc updated: 1dfe8d203e...363e94aa28
Submodule ironsea_store deleted from 71372c374c
Submodule mercator_data_generator updated: 1fc3ed605e...e93289f750
Submodule mercator_db updated: a10ffdac7d...c104a22407
Submodule mercator_indexer updated: add0c1dbca...efd0d53852
Submodule mercator_parser updated: 8eebbd010b...521f40e36e
Submodule mercator_service updated: 5dc9f13a78...fd2b4e098b
2
rust-toolchain.toml
Normal file
2
rust-toolchain.toml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[toolchain]
|
||||||
|
channel = "1.80.0"
|
||||||
33
upload_docs.sh
Executable file
33
upload_docs.sh
Executable file
@@ -0,0 +1,33 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
: ${TRAVIS_REPO_SLUG="epfl-dias/${PROJECT}"}
|
||||||
|
|
||||||
|
if [ -z ${GH_TOKEN+yes} ]; then
|
||||||
|
echo "GH_TOKEN unset, exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z ${PROJECT+yes} ]; then
|
||||||
|
echo "PROJECT unset, exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Generate the documentation
|
||||||
|
cargo doc --release --target-dir=target
|
||||||
|
|
||||||
|
cat > target/doc/index.html <<EOT
|
||||||
|
<meta http-equiv=refresh content=0;url=${PROJECT}/index.html>
|
||||||
|
EOT
|
||||||
|
|
||||||
|
# If a book folder exists, and mdbook is available, build it.
|
||||||
|
if /usr/bin/which -s mdbook && test -d book; then
|
||||||
|
mdbook build --dest-dir ../target/doc/book book
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Upload it to GitHub.
|
||||||
|
MSG=$(git log -1 --pretty=format:'doc: %ci: %h - %s')
|
||||||
|
[ -e ../ghp-import/ghp_import.py ] || git clone https://github.com/davisp/ghp-import.git ../ghp-import
|
||||||
|
../ghp-import/ghp_import.py -n -p -f \
|
||||||
|
-m "${MSG}" \
|
||||||
|
-r "https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git" \
|
||||||
|
target/doc
|
||||||
Reference in New Issue
Block a user