Skip to content
Merged
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 .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# QGis generated files
*.copc.laz

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,3 @@ DONOR_CLASS_LIST : Défaut [2, 22]. La liste des classes des points du fichier d
RECIPIENT_CLASS_LIST : Défaut [2, 3, 9, 17]. La liste des classes des points du fichier receveur qui, s'ils sont absents dans une cellule, justifirons de prendre les points du fichier donneur de la même cellule
TILE_SIZE : Défaut 1000. Taille du côté de l'emprise carrée représentée par les fichiers lidar d'entrée
PATCH_SIZE : Défaut 1. taille en mètre du côté d'une cellule (doit être un diviseur de TILE_SIZE, soit pour 1000 : 0.25, 0.5, 2, 4, 5, 10, 25...)

Le script de sélection/découpe de fichier lidar peut être lancé via :
```
python lidar_selecter.py filepath.DONOR_DIRECTORY=[répertoire_fichiers_donneurs] filepath.RECIPIENT_DIRECTORY=[répertoire_fichiers_receveurs] filepath.SHP_NAME=[nom_shapefile] filepath.SHP_DIRECTORY=[répertoire_shapefile] filepath.CSV_NAME=[nom_fichier_csv] filepath.CSV_DIRECTORY=[répertoire_fichier_csv] filepath.OUTPUT_DIRECTORY=[chemin_de_sortie]
```

filepath.DONOR_DIRECTORY: Le répertoire contenant les fichiers lidar donneurs
filepath.RECIPIENT_DIRECTORY: Le répertoire contenant les fichiers lidar receveurs
filepath.SHP_NAME: Le nom du shapefile contenant l'emprise du chantier qui délimite les fichiers lidar qui nous intéressent
filepath.SHP_DIRECTORY: Le répertoire du fichier shapefile
filepath.CSV_NAME: Le nom du fichier csv qui lie les différents fichiers donneurs et receveurs
filepath.CSV_DIRECTORY: Le répertoire du fichier csv
filepath.OUTPUT_DIRECTORY: le répertoire recevant les fichiers lidar découpés
27 changes: 12 additions & 15 deletions configs/configs_patchwork.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
work_dir: ${hydra:runtime.cwd}

# disable ouput directory from being created
hydra:
output_subdir: null
run:
hydra:
output_subdir: null
run:
dir: .

# disable main.log from being created
Expand All @@ -19,37 +19,34 @@ defaults:
- _self_

filepath:
SHP_NAME: null # name of the shapefile for lidar selecter, to determine the lidar file to select
SHP_NAME: null # name of the shapefile used to match tiles to patch
SHP_DIRECTORY: null # path to the directory containing the shapefile
DONOR_DIRECTORY: null # directory containing all potential donor lidar files, for lidar selecter
RECIPIENT_DIRECTORY: null # directory containing all potential donor lidar files, for lidar selecter
OUTPUT_DIRECTORY: null # directory containing all potential donor lidar files, for lidar selecter

OUTPUT_DIR: null # directory of the file with added points, from patchwork.
OUTPUT_NAME: null # name of the file with added points, from patchwork.

INPUT_INDICES_MAP_DIR: null
INPUT_INDICES_MAP_NAME: null

OUTPUT_INDICES_MAP_DIR: null # path to the directory for the indices map reflecting the changes to the recipient, from patchwork
OUTPUT_INDICES_MAP_NAME: null # name of the indices map reflecting the changes to the recipient, from patchwork

# INPUT_DIRECTORY: null # directory for input (shapefile)
CSV_NAME: null # name of the csv file that log the lidar files to process with patchwork
CSV_DIRECTORY: null # path to the directory that will contain the csv

DONOR_NAME: null # name of the donor file for patchwork
RECIPIENT_DIRECTORY: null # directory containing the recipient file for patchwork
RECIPIENT_NAME: null # name of the recipient file for patchwork


# The input shapefile should contain a "nuage_mixa" attrubute for each geometry
# "nuage_mixa" contains the path to the folder containing the files related to a specific donor source.
# Laz/las files from this source are usually contained in a subdirectory of "nuage_mixa"
# path to this subdirectory can be configured using "DONOR_SUBDIRECTORY"
DONOR_SUBDIRECTORY: "data"

CRS: 2154

DONOR_CLASS_LIST: [2, 22]
RECIPIENT_CLASS_LIST: [2, 6, 9, 17]

RECIPIENT_SUFFIX: "_recipient"
TILE_SIZE: 1000
SHP_X_Y_TO_METER_FACTOR: 1000 # multiplication factor to convert shapefile x, y attributes values to meters
PATCH_SIZE: 1 # size of a patch of the grid. Must be a divisor of TILE_SIZE, so for 1000: 0.25, 0.5, 2, 4, 5, 10, 25...
NEW_COLUMN: null # If not null, contains the name of the new column
NEW_COLUMN_SIZE: 8 # must be 8, 16, 32 or 64
Expand Down
18 changes: 0 additions & 18 deletions exemples/lidar_selecter_example.sh

This file was deleted.

7 changes: 1 addition & 6 deletions patchwork/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@
CLASSIFICATION_STR = "classification"
PATCH_X_STR = "patch_x"
PATCH_Y_STR = "patch_y"
DONOR_SUBDIRECTORY_NAME = "donor"
RECIPIENT_SUBDIRECTORY_NAME = "recipient"

COORDINATES_KEY = "coordinates"
DONOR_FILE_KEY = "donor_file"
RECIPIENT_FILE_KEY = "recipient_file"
RECIPIENT_SUFFIX = "_recipient"
153 changes: 0 additions & 153 deletions patchwork/lidar_selecter.py

This file was deleted.

Loading
Loading