Skip to content
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

Import - Amélioration des performances pour l'EDIGEO #427

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Import - Amélioration des performances pour l'EDIGEO
L'import des données EDIGEO via ogr2ogr n'utilisait plus l'option `PG_USE_COPY`

## 1.18.1 - 2023-09-27

* Corrections SQL
Expand Down
3 changes: 2 additions & 1 deletion cadastre/cadastre_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,8 @@ def importEdigeoThfToDatabase(self, filename):
'-lco', 'PG_USE_COPY=YES',
'-nlt', 'GEOMETRY',
'-gt', '50000',
'--config', 'OGR_EDIGEO_CREATE_LABEL_LAYERS', 'NO'
'--config', 'OGR_EDIGEO_CREATE_LABEL_LAYERS', 'NO',
'--config', 'PG_USE_COPY', 'YES',
]
# -c client_encoding=latin1

Expand Down