spatial.removeLayer

Procedure

Removes the given layer

Signature

spatial.removeLayer(name :: STRING)

Input parameters

Name Type Default Description

name

STRING

null

The name of the layer

Examples

Add and Remove a layer

CALL spatial.addWKTLayer('geom','wkt')
Table 1. Result
node
(:SpatialLayer {
    geomencoder: "org.neo4j.gis.spatial.WKTGeometryEncoder",
    geomencoder_config: "wkt",
    index_class: "org.neo4j.gis.spatial.index.LayerRTreeIndex",
    layer: "geom",
    layer_class: "org.neo4j.gis.spatial.EditableLayerImpl"
})
CALL spatial.layers()
Table 2. Result
name signature

geom

EditableLayer(name='geom', encoder=WKTGeometryEncoder(geom='wkt', bbox='bbox'))

CALL spatial.removeLayer('geom')
Result

No results

CALL spatial.layers()
Result

No results