neo4j-spatial

Adding 5834580 of node to Spatial Layer

瘦欲@ 提交于 2019-12-24 07:21:12
问题 I am trying to create an R-TREE of 5834580 of nodes. I found in this question a similair problem and i tried it's solution, so this is my code : call apoc.periodic.commit("MATCH (pl:pickup_location) WITH collect(pl) AS pickup CALL spatial.addNodes('nyc',pickup) YIELD count RETURN count",{limit:1000}) however, since yesterday the computer didn't finish loading the result. today, i tried the second answer with iterate : CALL apoc.periodic.iterate( "MATCH (pl:pickup_location) RETURN pl", "CALL

Adding 5834580 of node to Spatial Layer

牧云@^-^@ 提交于 2019-12-24 07:21:07
问题 I am trying to create an R-TREE of 5834580 of nodes. I found in this question a similair problem and i tried it's solution, so this is my code : call apoc.periodic.commit("MATCH (pl:pickup_location) WITH collect(pl) AS pickup CALL spatial.addNodes('nyc',pickup) YIELD count RETURN count",{limit:1000}) however, since yesterday the computer didn't finish loading the result. today, i tried the second answer with iterate : CALL apoc.periodic.iterate( "MATCH (pl:pickup_location) RETURN pl", "CALL

Neo4j Spatial 3.0.2: No index provider 'spatial' found

六月ゝ 毕业季﹏ 提交于 2019-12-24 03:25:51
问题 I am trying to create a spatial database with neo4j 3.0.2 and neo4j-spatial for 3.0.2. I have installed the plugin and I have checked that the plugin is running with cURL curl -v http://neo4j:neo4j@localhost:7474/db/data/ which outputs following: { "extensions" : { "SpatialPlugin" : { "addSimplePointLayer" : "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer", "addNodesToLayer" : "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodesToLayer",

Neo4J huge performance degradation after records added to spatial layer

怎甘沉沦 提交于 2019-12-21 19:56:53
问题 So I have around 70 million spatial records that i want to add to the spatial layer (I've tested with a small set and everything is smoothly, queries returning the same results as postgis and the layer operation seems fine) But when i try to add all the spatial records to the database, the performance degrades rapidly to the point that it gets really slow at around 5 million (around 2h running time) records and hangs at ~7.7 million (8 hours lapsed). Since the spatial index is an Rtree that

How to import data into neo4j (neo4j-community-2.0.0) in windows 7?

China☆狼群 提交于 2019-12-13 05:59:02
问题 I got the below link to do this but the problem is that it's for linux users !!! http://blog.neo4j.org/2013/03/importing-data-into-neo4j-spreadsheet.html Please help me to get this done on windows ? Thanks in advance. I am new to neo4j and got only a little hands on experience on java. I added neo4jtools to my neo4j server from the below link https://github.com/jexp/neo4j-shell-tools then I follow this command to import few data to a graph database neo4jshell -path C:\Program Files\neo4j

Neo4j spark connector loadDataFrame gives error

江枫思渺然 提交于 2019-12-11 16:39:31
问题 EDIT: Tried to do what was suggested in the comments with .toDF got this error: ^ neo: org.neo4j.spark.Neo4j = org.neo4j.spark.Neo4j@5dfb65d5 warning: there was one deprecation warning; re-run with -deprecation for details sqlContext: org.apache.spark.sql.SQLContext = org.apache.spark.sql.SQLContext@333e01c6 import sqlContext.implicits._ rdd: org.apache.spark.rdd.RDD[org.apache.spark.sql.Row] = Neo4jRDD partitions Partitions(1,9223372036854775807,9223372036854775807,None) call spatial

Neo4j Spatial return only one node

醉酒当歌 提交于 2019-12-11 05:05:45
问题 I created a spatial index in neo4j but when searching for nearby places I only get one result. My query is: START n=node:geom('withinDistance:[63.36, 10.35, 50.0]') RETURN n And I have 3 nodes in the spatial index with this coords: Node 1 lat,lon: 63.3654, 10.3578 Node 2 lat,lon: 63.3654, 10.3577 Node 3 lat,lon: 63.3654, 10.3578 (same node 1) Theoretically the three nodes are in the same area. Any idea? UPDATE I performed these steps to use spatial (all executed from neo4j browser -> rest api

how to create geohash tree in neo4j

≯℡__Kan透↙ 提交于 2019-12-11 04:35:01
问题 Based on a problem here an expert have answered with this code: CALL spatial.addPointLayerGeohash('my_geohash_layer_name') CREATE (n:Node {latitude:60.1,longitude:15.2}) WITH n CALL spatial.addNode('my_geohash_layer_name',n) YIELD node RETURN node to create a geohash tree that organise spatial nodes. so i tried that with two spatial nodes but unlike R-tree the spatial nodes aren't linked to the layer with any connection !? is this code true ? or what is wrong ? 回答1: If you want an in-graph

Can't query properties with colon

与世无争的帅哥 提交于 2019-12-10 22:13:33
问题 I am new to neo4j, so my question may sound stupid to you but anyway. I have OSM data set imported to neo4j graph db. So curretnly I am trying to query different stuff from db, like: MATCH (a) WHERE has(a.addr:street) RETURN a.addr:street and it fails with an sysntax error: Type mismatch: expected Node but was Boolean, Number, String or Collection<Any> (line 1, column 23) "MATCH (a) WHERE has(a.addr:street) RETURN a.addr:street" ^ Which is strange, as the nodes has a lot of properties with

Creating geohash relationships in neo4j

喜欢而已 提交于 2019-12-10 21:52:56
问题 I've csv files that contains latitude/longitude fields, what i want is to convert this latitude/longitude into a geohash and then make a relationship between different location nodes based on their geohash values. how to do that ? 回答1: Neo4j has a spatial plugin, that creates a R-Tree for your geo-data. So instead of creating a geohash, you can directly use this plugin. Moreover, the last version of Neo4j has introduced some new types for properties, and one of them is the point . Take a look