Hi
I can add wkt or nodes using GraphdatabaseService and SpatialDatabaseService using Java.
But i cannot use Spatial queries for creating layers,Polygons .
@GetMapping("/getSpatial")
public Stream<NodeResult> getSpatial() throws ParseException {
db = new GraphDatabaseFactory().newEmbeddedDatabase(
new File("/home/user/database/geo.db"));
SpatialDatabaseService spatialDb = new SpatialDatabaseService(db);
spatialDb.createWKBLayer("Area"); // this will work fine
db.execute("CALL spatial.addWKTLayer('geom','wkt')"); // this will fail
return returns;
}
org.neo4j.internal.kernel.api.exceptions.ProcedureException: There is no procedure with the name `spatial.addWKTLayer` registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.
This is the error am getting.
And i have added apoc-3.1.0.3-all.jar in neo4j/plugins
ll -l of plugins directory
drwxr-xr-x 2 neo4j adm 4096 May 24 23:53 ./
drwxr-xr-x 7 neo4j adm 4096 May 23 15:26 ../
-rw-r--r-- 1 root root 1319762 May 24 23:53 apoc-3.1.0.3-all.jar
Where am i going wrong.
Please help.