spatial.cql
Procedure
Finds all geometry nodes in the given layer that matches the given CQL
Input parameters
Name | Type | Default | Description |
---|---|---|---|
layerName |
STRING |
null |
The name of the layer |
ecql |
STRING |
null |
The [ECQL](https://docs.geoserver.org/latest/en/user/filter/ecql_reference.html) to find / filter nodes of the layer |
Examples
Find geometries using CQL
CALL spatial.addWKTLayer('geom','wkt') YIELD node
node |
---|
|
Create and add nodes with different coordinates
CREATE (n1:Node {wkt: 'POINT(15.2 60.1)', name: 'point1'})
CREATE (n2:Node {wkt: 'POINT(25.2 30.1)', name: 'point2'})
WITH n1, n2
CALL spatial.addNode('geom', n1) YIELD node as added1
WITH n2, added1
CALL spatial.addNode('geom', n2) YIELD node as added2
RETURN added1, added2
CALL spatial.cql('geom', 'name = \'point1\'') YIELD node RETURN node.name as name
name |
---|
point1 |