DynaMind-ToolBox
0.10.6
  • Overview
  • Install and Run
  • A Quick Introduction to the DynaMind GUI
  • DynaMind
  • DynaMind Python API
  • DynaMind GUI
  • Standard Modules
    • Data Import and Export
    • Linking
      • Spatial Linking
      • Link with Identifier
      • Link Nearest Neighbour
        • Parameter
        • Data-stream
        • Module Name
        • Sample Code for Python Simulation
      • Link Adjacent Faces
    • Data Handling
    • Geometry Processing
    • Workflow Control
  • City Modules
  • CityDrain3
  • DynaMind Commandline
DynaMind-ToolBox
  • Docs »
  • Standard Modules »
  • Link Nearest Neighbour
  • View page source

Link Nearest Neighbour¶

Joins the closest link view component to a leading view component.

Parameter¶

Name Type Description
leadingViewName STRING source nodes
linkViewName STRING linked nodes
max_distance DOUBLE max search radius (default 100m)

Data-stream¶

View Attribute Type Access Description
leadingViewName   NODE read  
  linkViewName_id INT write link id to the closest link view component
         
linkViewName   NODE read  

Module Name¶

GDALJoinNearestNeighbour

Sample Code for Python Simulation¶

#Join inlets to nodes with a search radius of 100m
node_join = sim.add_module('GDALJoinNearestNeighbour',
                           {'leadingViewName': 'inlet',
                            'linkViewName': 'node'
                            'max_distance': 100},
                           inlets)
Next Previous

© Copyright 2014-2016, Christian Urich, Michael Mair.

Built with Sphinx using a theme provided by Read the Docs.