The first step to managing geometries within neo4j-spatial is to define a layer. A layer contains information about the type of data it stores. To create a simple point layer named pointLayer, we can use the addPointLayer procedure:
CALL spatial.addPointLayer('pointLayer');
You will notice that this procedure adds a new node to the graph. This node is the one containing the information about the layer. To check the existing layers within a graph, you can call the following:
CALL spatial.layers();
The result of the previous statement is copied here:
╒════════════╤═════════════════════════════════════...