spatial.addNode
Procedure
Adds the given node to the layer, returns the geometry-node
Input parameters
| Name | Type | Default | Description |
|---|---|---|---|
layerName |
STRING |
null |
The name of the layer |
node |
NODE |
null |
the node to be added to the index |
Examples
Create a native point layer
CALL spatial.addNativePointLayerXY('geom','x','y')
| node |
|---|
|
create a node and add it to the index
CREATE (n:Node {id: 42, x: 5.0, y: 4.0}) WITH n CALL spatial.addNode('geom',n) YIELD node RETURN node
Find node within distance
CALL spatial.withinDistance('geom',point({latitude:4.1,longitude:5.1}),100)
| distance | node |
|---|---|
|
|