spatial.addNativePointLayerHilbert
Procedure
Adds a new native point layer with hilbert curve based index, returns the layer root node
Signature
spatial.addNativePointLayerHilbert(name :: STRING, indexConfig =  :: STRING) :: (node :: NODE)
Input parameters
| Name | Type | Default | Description | 
|---|---|---|---|
name  | 
STRING  | 
null  | 
The name of the layer  | 
indexConfig  | 
STRING  | 
""  | 
The configuration of the newly created index  | 
Examples
Create a layer to index a node
CALL spatial.addNativePointLayerHilbert('my-native-hilbert-layer')
| node | 
|---|
 | 
Create a node to index
CREATE (n:Node {id: 42, latitude:60.1,longitude:15.2}) SET n.location=point(n) RETURN n
Index node
MATCH (n:Node) WITH n CALL spatial.addNode('my-native-hilbert-layer',n) YIELD node RETURN node
| node | 
|---|
 | 
Find node within distance
CALL spatial.withinDistance('my-native-hilbert-layer',{lon:15.0,lat:60.0},100)
| distance | node | 
|---|---|
 | 
 |