[FIXED ]command line CSF filter only ONE export allowed
Posted: Sat Jan 07, 2023 10:19 pm
Hi.
When in commandline running CSF filtering, if syntax outputs both ground and non ground, it will only output one file because it will get overwritten due to naming:
"-CSF -SCENES RELIEF -PROC_SLOPE -CLOTH_RESOLUTION 0.2 -CLASS_THRESHOLD 0.7 -EXPORT_GROUND -EXPORT_OFFGROUND"
"[CSF]
Set scene to relief
Slope processing turned on
Custom cloth resulution set: 0.2
Custom class threshold set: 0.7
Ground will be exported
Off-ground will be exported
[CSF] 99.97% of points classified as ground points
[SAVING]
Extra field 'Illuminance (PCV)' renamed 'Illuminance__(PCV)' to comply to LAS specifications
[I/O] File './08OE2648_PCV_FILTERED_[0_3.las' saved successfully
[SAVING]
Extra field 'Illuminance (PCV)' renamed 'Illuminance__(PCV)' to comply to LAS specifications
[I/O] File './08OE2648_PCV_FILTERED_[0_3.las' saved successfully
Processed finished in 220.88 s."
You can see that despite both are output, due to both having same naming get overwritten by last, the offground, in this case.
So please add -GROUN -OFFGROUND caption in the output file to avoid this, now I can avoid this duplicating the .bat one for the ground other for the offground.
Also, the output file is at same folder as the .bat, where in other commands like PCV the output folder is where the origin file is. You could standarize output dir with like a global variable. But this is not a big issue.
When in commandline running CSF filtering, if syntax outputs both ground and non ground, it will only output one file because it will get overwritten due to naming:
"-CSF -SCENES RELIEF -PROC_SLOPE -CLOTH_RESOLUTION 0.2 -CLASS_THRESHOLD 0.7 -EXPORT_GROUND -EXPORT_OFFGROUND"
"[CSF]
Set scene to relief
Slope processing turned on
Custom cloth resulution set: 0.2
Custom class threshold set: 0.7
Ground will be exported
Off-ground will be exported
[CSF] 99.97% of points classified as ground points
[SAVING]
Extra field 'Illuminance (PCV)' renamed 'Illuminance__(PCV)' to comply to LAS specifications
[I/O] File './08OE2648_PCV_FILTERED_[0_3.las' saved successfully
[SAVING]
Extra field 'Illuminance (PCV)' renamed 'Illuminance__(PCV)' to comply to LAS specifications
[I/O] File './08OE2648_PCV_FILTERED_[0_3.las' saved successfully
Processed finished in 220.88 s."
You can see that despite both are output, due to both having same naming get overwritten by last, the offground, in this case.
So please add -GROUN -OFFGROUND caption in the output file to avoid this, now I can avoid this duplicating the .bat one for the ground other for the offground.
Also, the output file is at same folder as the .bat, where in other commands like PCV the output folder is where the origin file is. You could standarize output dir with like a global variable. But this is not a big issue.