-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Description
I'm having trouble removing a node from a WKTLayer when the same node is added to two different layers.
CALL spatial.addWKTLayer('Layer1', "area");
CALL spatial.addWKTLayer('Layer2', "area");
CREATE (site:Site {site_id: 'test', area: 'POLYGON((-63.183000 -17.784000, -63.181000 -17.784000, -63.181000 -17.782500, -63.183000 -17.782500, -63.183000 -17.784000))'})
WITH site
CALL spatial.addNode('Layer1', site) YIELD node
RETURN *
MATCH (site:Site {site_id: 'test'})
CALL spatial.addNode('Layer2', site) YIELD node
RETURN *
MATCH (site:Site {site_id: 'test'})
CALL spatial.removeNode('Layer1', site) YIELD nodeId // Layer1 or Layer2
RETURN *
When I try to remove the node from Layer1
, I get the following error:
Failed to invoke procedure `spatial.removeNode`: Caused by: org.neo4j.graphdb.NotFoundException: More than one relationship[RTREE_REFERENCE, INCOMING] found for Node[6800]
Is this a bug, or am I doing something wrong?
Version
Neo4j docker image: neo4j:5.25.1
Plugin version: neo4j-spatial-5.20.0-server-plugin.jar
Metadata
Metadata
Assignees
Labels
No labels