-
Notifications
You must be signed in to change notification settings - Fork 3
Integration rpg #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
romain-jault
wants to merge
14
commits into
meldig:master
Choose a base branch
from
romain-jault:integration_rpg
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Integration rpg #110
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d35f595
Create import_fichier.bat
romain-jault 536a90e
Create traitement_rpg.sql
romain-jault e26858b
Update traitement_rpg.sql
romain-jault c67aa0e
Update traitement_rpg.sql
romain-jault e18f3b7
Update import_fichier.bat
romain-jault c5668b8
Update traitement_rpg.sql
romain-jault 65c9e3b
Update import_fichier.bat
romain-jault d0d1fc5
Update traitement_rpg.sql
romain-jault 8351c7d
Update import_fichier.bat
romain-jault d3f3434
Update traitement_rpg.sql
romain-jault 5d1250c
Update traitement_rpg.sql
romain-jault e0d459f
Update traitement_rpg.sql
romain-jault 7fd947b
Update traitement_rpg.sql
romain-jault 80a6f5e
Update traitement_rpg.sql
romain-jault File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
:: Fichier bat d'insertion des données du RPG sur le schéma CUDL | ||
|
||
:: 1. Déclaration et valorisation des variables | ||
SET /p chemin_traitement="Veuillez saisir le chemin d'accès du fichier de traitement des données du RPG traitement_rpg.sql : " | ||
SET /p USER="Veuillez saisir l'utilisateur Oracle : " | ||
SET /p MDP="Veuillez saisir le MDP : " | ||
SET /p INSTANCE="Veuillez saisir l'instance Oracle :" | ||
|
||
:: 2. Deplacement de la commande dans le dossier de QGIS. | ||
CD C:/Program Files/QGIS 3.10/bin | ||
|
||
:: 3. Mise à jour de l'encodage en UTF-8. | ||
SET NLS_LANG=AMERICAN_AMERICA.AL32UTF8 | ||
|
||
:: 4. Mise à jour de la variable PROJ_LIB pour indiquer le bon chemin vers le fichier proj.db | ||
setx PROJ_LIB "C:\Program Files\QGIS 3.10\share\proj" | ||
|
||
:: 5. Import des donnees. | ||
:: 5.1. rpg2019_mel.shp | ||
ogr2ogr.exe -f OCI OCI:%USER%/%MDP%@%INSTANCE% \\volt\infogeo\Donnees\Externe\DRAAF\RPG_2019\RPG\rpg2019_mel.shp -nlt multipolygon -nln RPG_2019_MEL -lco SRID=2154 -dim 2 | ||
|
||
:: 5.2. parcelles_instruites_2019_mel | ||
ogr2ogr.exe -f OCI OCI:%USER%/%MDP%@%INSTANCE% \\volt\infogeo\Donnees\Externe\DRAAF\RPG_2019\RPG\parcelles_instruites_2019_mel.xlsx -nln RPG_PARC_INSTRUITES_2019_MEL | ||
|
||
:: 5.3. pacage_formejuridique_mel | ||
ogr2ogr.exe -f OCI OCI:%USER%/%MDP%@%INSTANCE% \\volt\infogeo\Donnees\Externe\DRAAF\RPG_2019\RPG\pacage_formejuridique_mel.csv -nln RPG_FORMEJURIDIQUE_2019_MEL | ||
|
||
:: 5.4. ilots2019_description | ||
ogr2ogr.exe -f OCI OCI:%USER%/%MDP%@%INSTANCE% \\volt\infogeo\Donnees\Externe\DRAAF\RPG_2019\RPG\ilots2019_description.xlsx -nln RPG_ILOTS_DESCRIPTION_2019_MEL | ||
|
||
:: 5.5. aides_2ndpilier | ||
ogr2ogr.exe -f OCI OCI:%USER%/%MDP%@%INSTANCE% \\volt\infogeo\Donnees\Externe\DRAAF\RPG_2019\RPG\aides_2ndpilier.xlsx -nln RPG_AIDES_2ND_PILIER_2019_MEL | ||
|
||
:: 5.6. aides_1erpilier | ||
ogr2ogr.exe -f OCI OCI:%USER%/%MDP%@%INSTANCE% \\volt\infogeo\Donnees\Externe\DRAAF\RPG_2019\RPG\aides_1erpilier.xlsx -nln RPG_AIDES_1ER_PILIER_2019_MEL | ||
|
||
:: 6. Lancement de SQL plus | ||
CD C:/ora12c/R1/BIN | ||
|
||
:: 7. Lancement des traitements sous sqlplus (clé primaire, indexes...) | ||
sqlplus.exe %USER%/%MDP%@%INSTANCE% @%chemin_traitement%\traitement_rpg.sql |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ajoute ici les variables USER, MDP, instance et chemin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Juste pour être sûr, MDP ce n'est pas pour y stocket le mot de passe en dur et en clair dans le code ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nous c'est pour demander ces paramètres à l'utilisateur lors du lancement du script.