Hi All, 

If I create SpatialDatabaseRecord for spatial nodes how do I create 
relationships between them? 

patialDatabaseRecord p = 
runningLayer.add(runningLayer.getGeometryFactory().createPoint(coords1));
patialDatabaseRecord ls = 
runningLayer.add(runningLayer.getGeometryFactory().createLineString(coords2));
ls.getGeomNode().createRelationshipTo(p.getGeomNode(), 
RelationshipTypes.CONNECTED);

The problem with this apparoach is that getGeomNode() method create an 
object which does not carry the properties of 
the original object (I might be wrong on this). 

Is there any other way to link spatial nodes?


Thanks,
Best,
Alireza

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to