Voici la documentation : https://geoplateforme.pages.gpf-tech.ign.fr/documentation

Skip to content
Extraits de code Groupes Projets

initialisation de l'agent

Fusionnées Benoit Ducarouge a demandé de fusionner init/clean-code-base vers main
9 fichiers
+ 296
210
Comparer les modifications
  • Côte à côte
  • En ligne
Fichiers
9
+ 3
27
@@ -14,7 +14,7 @@
Exemple pour Oslandia avec l'utilisateur `geojulien` :
```sh
git clone --config 'credential.helper=store' https://geojulien@gitlab.gpf-tech.ign.fr/geoplateforme/agents-publication/gpf-pub-agent-vector-tmsr.git
git clone --config 'credential.helper=store' https://geojulien@gitlab.gpf-tech.ign.fr/geoplateforme/remonter-le-temps/gpf-pub-agent-vector-tms.git
```
### Derrière le proxy
@@ -24,7 +24,7 @@ L'Usine Logicielle étant en accès restreint derrière un filtre IP, les person
Exemple avec un proxy de type socks :
```sh
git clone --config http.proxy='socks5://127.0.0.1:8645' --config 'credential.helper=store' https://geojulien@gitlab.gpf-tech.ign.fr/geoplateforme/agents-publication/gpf-pub-agent-vector-tmsr
git clone --config http.proxy='socks5://127.0.0.1:8645' --config 'credential.helper=store' https://geojulien@gitlab.gpf-tech.ign.fr/geoplateforme/remonter-le-temps/gpf-pub-agent-vector-tms
```
----
@@ -33,26 +33,6 @@ git clone --config http.proxy='socks5://127.0.0.1:8645' --config 'credential.hel
> Exemple sur une distribution Linux de type Ubuntu LTS.
Définir la version à utiliser :
```sh
export GDAL_VERSION=3.*
# ou plus strictement : export GDAL_VERSION=3.4.1
```
Installer GDAL :
```sh
sudo apt install gdal-bin=$GDAL_VERSION libgdal-dev=$GDAL_VERSION
```
Ajouter les chemins utiles pour builder en variables d'environnement :
```sh
export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
```
### Environnement virtuel
Installer dans un environnement virtuel :
@@ -63,12 +43,10 @@ python3 -m venv .venv
source .venv/bin/activate
# mise à jour de pip dans l'environnement virtuel
python -m pip install -U pip setuptools wheel
# installation de GDAL
python3 -m pip install gdal=="`gdal-config --version`.*"
# installation des dépendances de base
python -m pip install -r requirements.txt
# installation du projet en mode développement avec la version de GDAL du système
python -m pip install -e .[gdal]
python -m pip install -e
```
### Système
@@ -77,7 +55,6 @@ Pour une installation au niveau du système :
```sh
python3 -m pip install -U setuptools wheel
python3 -m pip install gdal=="`gdal-config --version`.*"
python3 -m pip install -U -r requirements.txt
python3 -m pip install -e .
```
@@ -93,7 +70,6 @@ python -m pip install -U "PySocks<2"
Puis installer tour à tour les dépendances issues de <pypi.org> puis celles du registre de l'Usine Logicielle :
```sh
python -m pip install gdal=="`gdal-config --version`.*"
python -m pip install -U -r requirements/base-pypi.txt
python -m pip install -U -r requirements/base-gpf.txt --proxy socks5://localhost:8645 --extra-index-url https://gitlab.gpf-tech.ign.fr/api/v4/groups/55/-/packages/pypi/simple --retries 1
python -m pip install -e .
Chargement en cours