filters.label_duplicates
filters.label_duplicates assigns a Duplicate
Dimensions value
to 1
if all of the dimensions listed in the dimensions
option
for the points are equal.
Warning
The filter requires the data to be sorted before the labeling can work. It simply checks the dimensions and points in order, and if each dimension is equal from one point to the next, it is labeled a duplicate. The STABLE algorithm must be set or it will fail to properly label duplicates.
Example
[
"unsorted.las",
{
"type":"filters.sort",
"algorithm":"STABLE",
"dimension":"X"
},
{
"type":"filters.sort",
"algorithm":"STABLE",
"dimension":"Y"
},
{
"type":"filters.sort",
"algorithm":"STABLE",
"dimension":"Z"
},
{
"type":"filters.sort",
"algorithm":"STABLE",
"dimension":"GPStime"
},
{
"type":"filters.label_duplicates",
"dimensions":"X,Y,Z,GPStime"
},
"duplicates.txt"
]
Options
- dimensions
The Dimensions which must be equal for the point to be declared a duplicate. [Required]
- where
An expression that limits points passed to a filter. Points that don’t pass the expression skip the stage but are available to subsequent stages in a pipeline. [Default: no filtering]
- where_merge
A strategy for merging points skipped by a ‘where’ option when running in standard mode. If
true
, the skipped points are added to the first point view returned by the skipped filter. Iffalse
, skipped points are placed in their own point view. Ifauto
, skipped points are merged into the returned point view provided that only one point view is returned and it has the same point count as it did when the filter was run. [Default:auto
]