8 Commits

Author SHA1 Message Date
edb78d5fb4 Upgraded to actix-web 4, rust 1.80 2024-08-11 15:20:34 +02:00
41a02a1d5c Specify toolchain version and update libraries
This prevents compilation issues with newer standard libraries.
2024-08-09 11:56:01 +02:00
8eb533afc8 Adding documentation
* Adding script to generate and upload documentation.
 * Updated some dependencies.
2020-04-02 10:20:58 +02:00
781b7d1c10 Remove the ironsea_store modules itself. 2020-03-18 17:34:38 +01:00
baa92f860e Removing dependency on ironsea_store 2020-03-17 17:05:34 +01:00
9012beffc2 Revert "Adding converter to SolR json format"
This reverts commit 2925c0879e.
2020-03-16 13:55:57 +01:00
2925c0879e Adding converter to SolR json format 2020-03-16 13:54:29 +01:00
ecb83d90e9 Fix broken reference to mercator_parser 2020-03-16 13:50:23 +01:00
15 changed files with 1331 additions and 1575 deletions

12
.gitmodules vendored
View File

@@ -7,18 +7,6 @@
[submodule "ironsea_index_sfc_dbc"]
path = 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"]
path = mercator_data_generator
url = ../mercator_data_generator

2798
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,7 +10,7 @@ members = [
# Generic Interfaces
"ironsea_index",
"ironsea_store",
#"ironsea_store",
# Specific implementations
"ironsea_index_hashmap",
@@ -21,7 +21,7 @@ members = [
]
[profile.release]
lto = true
#lto = true
#debug = true
[patch.crates-io]
@@ -29,7 +29,7 @@ mercator_db = { path = "mercator_db" }
mercator_parser = { path = "mercator_parser" }
ironsea_index = { path = "ironsea_index" }
ironsea_store = { path = "ironsea_store" }
#ironsea_store = { path = "ironsea_store" }
ironsea_index_hashmap = { path = "ironsea_index_hashmap" }
ironsea_index_sfc_dbc = { path = "ironsea_index_sfc_dbc" }

View File

@@ -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.
```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.
@@ -49,31 +49,47 @@ This enables the index implementations to be agnostic from the underlying data s
done
```
* Index the data:
* Index the data (assuming the datasets generated above):
```sh
cargo run --release -- 1k 10k 100k
mv *.index ../mercator_service
```
* Run the Spatial Index, while providing the path to the datasets.
```sh
cd mercator_service
RUST_LOG="warn,actix_web=info,mercator_service=trace" \
MERCATOR_DATA="../mercator_indexer/" \
MERCATOR_ALLOWED_ORIGINS="http://localhost:3200" \
cargo run --release
cargo run --release
```
## 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
cargo doc --open
```
* Mercator Service
**[[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

Submodule ironsea_store deleted from 71372c374c

2
rust-toolchain.toml Normal file
View File

@@ -0,0 +1,2 @@
[toolchain]
channel = "1.80.0"

33
upload_docs.sh Executable file
View 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