Hi Idan,
thanks for your suggestions.
The filename *IS* the default setting.
So if you enter just "-split" you get files like
[inputfilename]_[no_of_shape].laz
Only if you give the argument -split *PLUS* an attribute index or name you get the name of this attribute as filename.
So the
-filename_as_prefix
-filename_as_suffix
arguments are refinements for the specific split option "- split [n]".
They should be called "-filename_as_prefix_of_attribute_name" which is admittedly a bit long.
To avoid surprises we add some additional hints about the naming, if someone combines "-split" with "-filename_as...".
To add the filename by default if -split [n] is given would break the downwards-compatibility rule, which is one of our major rules:
A running script should never change behavior by a new version (unless it was a error before and now the error is fixed).
The "
filename_as_suffix" argument was our 2nd use case of lasclip: It is very handy, to have the files sorted by attributes, and have the filename just as distinguishing key/feature of identical shape attributes.
Best regards,
Jochen @rapidlasso