Hub
Pricing About
ComponentComponent

Nearest K Spatial Join

Center for Geographic Analysis at Harvard University profile image
Draft Latest edits on 
Feb 27, 2025 6:20 PM
Drag & drop
Like
Use or download
Nearest K Spatial Join Node

The Nearest K Spatial Join node is used to find the K nearest neighbors between two spatial datasets based on their geometric locations. The node takes two sets of geometries: origin and destination, and assigns each origin geometry its nearest K destination geometries.


Configuration Options:
Origin Geometry: Select the column that contains the geometries of the origin dataset.

Origin ID Column: Choose the unique identifier column for the origin geometries.

Destination Geometry: Select the column that contains the geometries of the destination dataset.

Destination ID Column: Choose the unique identifier column for the destination geometries.

Top K: Define the number of nearest destination geometries to be retrieved for each origin geometry.

Use Case:
This node is useful in spatial analysis applications such as:

Finding the nearest points of interest (e.g., nearest hospitals, stores, or bus stops).
Analyzing proximity relationships between different geographical datasets.
Assigning spatial dependencies in geospatial machine learning tasks.


Output:
The node outputs a table where each row represents a spatial relationship between an origin geometry and its closest K destination geometries, along with their corresponding identifiers.

Component details

Input ports
  1. Type: Table
    Origin
    Origin Geotable
  2. Type: Table
    Destination
    Destination Geotable
Output ports
  1. Type: Table
    Spatial join result
    Nearest k spatial join result

Used extensions & nodes

Created with KNIME Analytics Platform version 5.4.0
  • Go to item
    Geospatial Analytics Extension for KNIMETrusted extension

    SDL, Harvard, Cambridge US

    Version 1.3.1

    Center for Geographic Analysis at Harvard University profile image
    Center for Geographic Analysis at Harvard University
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.4.0

    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.4.0

    knime

This component does not have nodes, extensions, nested components and related workflows

Legal

By using or downloading the component, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits