spatial.addWKTs
Procedure
Adds the given WKT string list to the layer, returns the created geometry nodes
Input parameters
| Name | Type | Default | Description | 
|---|---|---|---|
layerName  | 
STRING  | 
null  | 
The name of the layer  | 
geometry  | 
LIST<STRING>  | 
null  | 
A list of WKTs to add to the index  | 
Examples
Add multiple WKT geometries to a layer
CALL spatial.addLayer('geom','geohash','lon:lat')
CALL spatial.addWKTs('geom',[ "POINT (15.2 60.1)", "POINT (25.2 30.1)" ])
| node | 
|---|
 | 
 | 
CALL spatial.closest('geom',{lon:15.0, lat:60.0}, 1.0)
| node | 
|---|
 |