Supported in: Batch
Selects the k closest points from the neighbors dataset for each valid input geometry from the base dataset. Internally converts the input datasets to the given coordinate reference system, and back to WGS84. The entire neighbors dataset must be able to fit into driver and executor memory. A 3 gb executor should be able to handle up to 1 million points in the neighbors dataset.
Transform categories: Geospatial, Join
Argument values:
geometryCol, geometryCol)Inputs: ri.foundry.main.dataset.left
| geometryCol | lhsCol |
|---|---|
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 |
ri.foundry.main.dataset.right
| geometryCol | col |
|---|---|
| { latitude: 33.440609443703586, longitude: -112.14843750000001, } | rhsVal1 |
| { latitude: 33.44082430962016, longitude: -112.14560508728029, } | rhsVal2 |
| { latitude: 33.440895931474124, longitude: -112.11796760559083, } | rhsVal3 |
Output:
| geometryCol | lhsCol | rhs_geometryCol | rhs_col |
|---|---|---|---|
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 | { latitude: 33.440609443703586, longitude: -112.14843750000001, } | rhsVal1 |
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 | { latitude: 33.44082430962016, longitude: -112.14560508728029, } | rhsVal2 |
Argument values:
geometryColLhs, geometryColRhs)Inputs: ri.foundry.main.dataset.left
| geometryColLhs | lhs-1 |
|---|
ri.foundry.main.dataset.right
| geometryColRhs | rhs-1 |
|---|
Output:
| geometryColLhs | lhs-1 | geometryColRhs | rhs-1 |
|---|
Argument values:
geometryCol, geometryCol)Inputs: ri.foundry.main.dataset.left
| geometryCol | lhsCol |
|---|---|
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 |
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 43.0 |
ri.foundry.main.dataset.right
| geometryCol | col |
|---|---|
| { latitude: 33.440609443703586, longitude: -112.14843750000001, } | rhsVal1 |
| { latitude: 33.44082430962016, longitude: -112.14560508728029, } | rhsVal2 |
| { latitude: 33.440895931474124, longitude: -112.11796760559083, } | rhsVal3 |
Output:
| geometryCol | lhsCol | rhs_geometryCol | rhs_col |
|---|---|---|---|
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 | { latitude: 33.440609443703586, longitude: -112.14843750000001, } | rhsVal1 |
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 43.0 | { latitude: 33.440609443703586, longitude: -112.14843750000001, } | rhsVal1 |
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 | { latitude: 33.44082430962016, longitude: -112.14560508728029, } | rhsVal2 |
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 43.0 | { latitude: 33.44082430962016, longitude: -112.14560508728029, } | rhsVal2 |
Argument values:
geometryCol, geometryCol)Inputs: ri.foundry.main.dataset.left
| geometryCol | lhsCol |
|---|---|
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 |
ri.foundry.main.dataset.right
| geometryCol | col |
|---|---|
| { latitude: 33.440609443703586, longitude: -112.14843750000001, } | rhsVal1 |
| { latitude: 33.440609443703586, longitude: -112.14843750000001, } | rhsVal1 |
| { latitude: 33.44082430962016, longitude: -112.14560508728029, } | rhsVal2 |
| { latitude: 33.44082430962016, longitude: -112.14560508728029, } | rhsVal2 |
| { latitude: 33.440895931474124, longitude: -112.11796760559083, } | rhsVal3 |
Output:
| geometryCol | lhsCol | rhs_geometryCol | rhs_col |
|---|---|---|---|
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 | { latitude: 33.440609443703586, longitude: -112.14843750000001, } | rhsVal1 |
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 | { latitude: 33.440609443703586, longitude: -112.14843750000001, } | rhsVal1 |
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 | { latitude: 33.44082430962016, longitude: -112.14560508728029, } | rhsVal2 |
Argument values:
geometryColLhs, geometryColRhs)Inputs: ri.foundry.main.dataset.left
| geometryColLhs | lhs-1 |
|---|
ri.foundry.main.dataset.right
| geometryColRhs | rhs-1 |
|---|---|
| { latitude: 33.44082430962016, longitude: -112.14560508728029, } | null |
| { latitude: 33.440895931474124, longitude: -112.11796760559083, } | rhsVal2 |
| null | rhsVal3 |
Output:
| geometryColLhs | lhs-1 | geometryColRhs | rhs-1 |
|---|
Argument values:
geometryColLhs, geometryColRhs)Inputs: ri.foundry.main.dataset.left
| geometryColLhs | lhs-1 |
|---|---|
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 |
| {"coordinates": [-112.14560508728029,33.44082430962016], "type":"Point"} | 43.0 |
ri.foundry.main.dataset.right
| geometryColRhs | rhs-1 |
|---|
Output:
| geometryColLhs | lhs-1 | geometryColRhs | rhs-1 |
|---|---|---|---|
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 | null | null |
| {"coordinates": [-112.14560508728029,33.44082430962016], "type":"Point"} | 43.0 | null | null |
Argument values:
geometryCol, geometryCol)Inputs: ri.foundry.main.dataset.left
| geometryCol | lhsCol |
|---|---|
| {"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,10.0],[10.0,10.0],[10.0,0.0],[0.0,0.0]]]} | 42.0 |
ri.foundry.main.dataset.right
| geometryCol | col1 | arrayCol | toDrop |
|---|---|---|---|
| { latitude: 33.440609443703586, longitude: -112.14843750000001, } | rhsVal1 | [ 0.0, 1.1 ] | 1.0 |
| { latitude: 33.44082430962016, longitude: -112.14560508728029, } | rhsVal2 | [ 0.0, 1.1 ] | 1.0 |
| { latitude: 33.440895931474124, longitude: -112.11796760559083, } | rhsVal3 | [ 0.0, 1.1 ] | 1.0 |
Output:
| geometryCol | lhsCol | rhs_geometryCol | rhs_col1 | rhs_arrayCol |
|---|---|---|---|---|
| {"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,10.0],[10.0,10.0],[10.0,0.0],[0.0,0.0]]]} | 42.0 | { latitude: 33.440609443703586, longitude: -112.14843750000001, } | rhsVal1 | [ 0.0, 1.1 ] |
| {"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,10.0],[10.0,10.0],[10.0,0.0],[0.0,0.0]]]} | 42.0 | { latitude: 33.44082430962016, longitude: -112.14560508728029, } | rhsVal2 | [ 0.0, 1.1 ] |
| {"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,10.0],[10.0,10.0],[10.0,0.0],[0.0,0.0]]]} | 42.0 | { latitude: 33.440895931474124, longitude: -112.11796760559083, } | rhsVal3 | [ 0.0, 1.1 ] |
Argument values:
geometryColLhs, geometryColRhs)Inputs: ri.foundry.main.dataset.left
| geometryColLhs | lhs-1 |
|---|---|
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 |
| null | 43.0 |
ri.foundry.main.dataset.right
| geometryColRhs | rhs-1 |
|---|---|
| { latitude: 33.44082430962016, longitude: -112.14560508728029, } | null |
| { latitude: 33.440895931474124, longitude: -112.11796760559083, } | rhsVal2 |
| null | rhsVal3 |
Output:
| geometryColLhs | lhs-1 | geometryColRhs | rhs-1 |
|---|---|---|---|
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 | { latitude: 33.44082430962016, longitude: -112.14560508728029, } | null |
| null | 43.0 | null | null |
Argument values:
geometryColLhs, geometryColRhs)Inputs: ri.foundry.main.dataset.left
| geometryColLhs | lhs-1 |
|---|---|
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 |
| {"coordinates": [-112.14560508728029,33.44082430962016], "type":"Point"} | 43.0 |
ri.foundry.main.dataset.right
| geometryColRhs | rhs-1 |
|---|---|
| { latitude: 33.44082430962016, longitude: -112.14560508728029, } | null |
| { latitude: 33.440895931474124, longitude: -112.11796760559083, } | rhsVal2 |
| null | rhsVal3 |
Output:
| geometryColLhs | lhs-1 |
|---|---|
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 |
| {"coordinates": [-112.14560508728029,33.44082430962016], "type":"Point"} | 43.0 |
Argument values:
geometryColLhs, geometryColRhs)Inputs: ri.foundry.main.dataset.left
| geometryColLhs | lhs-1 |
|---|---|
| {"coordinates": [-112.14843750000001,33.440609443703586], "type":"Point"} | 42.0 |
| {"coordinates": [-112.14560508728029,33.44082430962016], "type":"Point"} | 43.0 |
ri.foundry.main.dataset.right
| geometryColRhs | rhs-1 |
|---|---|
| { latitude: 33.44082430962016, longitude: -112.14560508728029, } | null |
| { latitude: 33.440895931474124, longitude: -112.11796760559083, } | rhsVal2 |
| null | rhsVal3 |
Output:
| geometryColRhs | rhs-1 |
|---|---|
| { latitude: 33.44082430962016, longitude: -112.14560508728029, } | null |
| { latitude: 33.44082430962016, longitude: -112.14560508728029, } | null |
Argument values:
geometryCol, geometryCol)Inputs: ri.foundry.main.dataset.left
| geometryCol | lhsCol |
|---|---|
| {"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,10.0],[10.0,10.0],[10.0,0.0],[0.0,0.0]]]} | 42.0 |
| {"coordinates": [55.0, 5.0], "type":"Point"} | 43.0 |
| {"coordinates": [[40.0, 0.0], [0.0, 40.0]], "type":"LineString"} | 44.0 |
| {"coordinates": [[[20.0, 10.0], [27.0, 10.0], [27.0, 17.0], [20.0, 17.0], [20.0, 10.0]]], "type": "Polygon"} | 45.0 |
| {"coordinates": [[[21.0, 21.0], [27.0, 21.0], [27.0, 27.0], [21.0, 27.0], [21.0, 21.0]]], "type": "Polygon"} | 46.0 |
| {"coordinates": [[[[2.0, 2.0], [7.0, 2.0], [7.0, 7.0], [2.0, 7.0], [2.0, 2.0]]], [[[12.0, 12.0], [17.0, 12.0], [17.0, 17.0], [12.0, 17.0], [12.0, 12.0]]]], "type":"MultiPolygon"} | 47.0 |
| {"coordinates": [[[[170.0, 170.0], [190.0, 170.0], [190.0, 190.0], [170.0, 190.0], [170.0, 170.0]]], [[[12.0, 12.0], [17.0, 12.0], [17.0, 17.0], [12.0, 17.0], [12.0, 12.0]]]], "type":"MultiPolygon"} | 48.0 |
ri.foundry.main.dataset.right
| geometryCol | col1 | arrayCol | toDrop |
|---|---|---|---|
| { latitude: 5.0, longitude: 5.0, } | rhsVal1 | [ 0.0, 1.1 ] | 1.0 |
| { latitude: 100.0, longitude: 100.0, } | rhsVal2 | [ 0.0, 1.1 ] | 1.0 |
Output:
| geometryCol | lhsCol | rhs_geometryCol | rhs_col1 | rhs_arrayCol |
|---|---|---|---|---|
| {"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,10.0],[10.0,10.0],[10.0,0.0],[0.0,0.0]]]} | 42.0 | { latitude: 5.0, longitude: 5.0, } | rhsVal1 | [ 0.0, 1.1 ] |
| {"coordinates": [55.0, 5.0], "type":"Point"} | 43.0 | { latitude: 5.0, longitude: 5.0, } | rhsVal1 | [ 0.0, 1.1 ] |
| {"coordinates": [[40.0, 0.0], [0.0, 40.0]], "type":"LineString"} | 44.0 | { latitude: 5.0, longitude: 5.0, } | rhsVal1 | [ 0.0, 1.1 ] |
| {"coordinates": [[[20.0, 10.0], [27.0, 10.0], [27.0, 17.0], [20.0, 17.0], [20.0, 10.0]]], "type": "Polygon"} | 45.0 | { latitude: 5.0, longitude: 5.0, } | rhsVal1 | [ 0.0, 1.1 ] |
| {"coordinates": [[[21.0, 21.0], [27.0, 21.0], [27.0, 27.0], [21.0, 27.0], [21.0, 21.0]]], "type": "Polygon"} | 46.0 | { latitude: 5.0, longitude: 5.0, } | rhsVal1 | [ 0.0, 1.1 ] |
| {"coordinates": [[[[2.0, 2.0], [7.0, 2.0], [7.0, 7.0], [2.0, 7.0], [2.0, 2.0]]], [[[12.0, 12.0], [17.0, 12.0], [17.0, 17.0], [12.0, 17.0], [12.0, 12.0]]]], "type":"MultiPolygon"} | 47.0 | { latitude: 5.0, longitude: 5.0, } | rhsVal1 | [ 0.0, 1.1 ] |
| {"coordinates": [[[[170.0, 170.0], [190.0, 170.0], [190.0, 190.0], [170.0, 190.0], [170.0, 170.0]]], [[[12.0, 12.0], [17.0, 12.0], [17.0, 17.0], [12.0, 17.0], [12.0, 12.0]]]], "type":"MultiPolygon"} | 48.0 | { latitude: 5.0, longitude: 5.0, } | rhsVal1 | [ 0.0, 1.1 ] |