Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 939 Bytes

filters.kdistance.rst

File metadata and controls

40 lines (29 loc) · 939 Bytes

filters.kdistance

The K-Distance filter creates a new attribute KDistance that contains the euclidean distance to a point's k-th nearest neighbor.

Note

The K-distance filter is deprecated and has been replaced by :ref:`filters.nndistance`.

.. embed::

Example

[
    "input.las",
    {
        "type":"filters.kdistance",
        "k":8
    },
    {
        "type":"writers.bpf",
        "filename":"output.las",
        "output_dims":"X,Y,Z,KDistance"
    }
]

Options

k
The number of k nearest neighbors. [Default: 10]