spatial.addWKT
Procedure
Adds the given WKT string to the layer, returns the created geometry node
Input parameters
| Name | Type | Default | Description |
|---|---|---|---|
layerName |
STRING |
null |
The name of the layer |
geometry |
STRING |
null |
A WKT to add to the index |
Examples
Add a WKT geometry to a layer
CALL spatial.addWKTLayer('geom', 'wkt')
CALL spatial.addWKT('geom',"LINESTRING (15.2 60.1, 15.3 60.1)")
| node |
|---|
|
CALL spatial.closest('geom',{lon:15.2, lat:60.1}, 1.0)
| node |
|---|
|