Questions tagged [neo4j-spatial]

Neo4j Spatial is a Java library for accessing and processing data in a Neo4j open-source database.

Neo4j Spatial is open-source and available under the GNU Affero licence. It can be download from GitHub.

131 questions
7
votes
0 answers

Multiple geometry properties in Neo4j node

First, here is my stack description :  Neo4j 2.3.0 on GrapheneDB + Neo4j Spatial plugin 0.15 Ninja Framework 5.2.1 java server on my PC Neo4j-OGM 1.1.3 for entity mapping Geotools 14.0 for geostuffs ApacheHttp for REST queries I have Unit…
Zofren
  • 1,190
  • 2
  • 11
  • 22
6
votes
2 answers

Spark/Neo4j throws error: RuntimeException: java.util.Collections$UnmodifiableRandomAccessList is not a valid external type for schema of string

The exact query: call spatial.bbox('geom', {lat:37.5,lon:43.4}, {lat:37.6,lon:43.5}) yield node return node.altitude as altitude, node.detect_type as detect_type, node.gtype as gtype, node.toDateFormatLong as toDateFormatLong, node.change_area as…
Codejoy
  • 3,722
  • 13
  • 59
  • 99
5
votes
0 answers

How to save a polygon in neo4j using Spring boot

I am unable to import SpatialRepository and GraphRepository in Java for Neo4j spatial plugin in my interface. I have to add polygon data using neo4j-spatial plugin to neo4j database.For this I am using wkt format. But nothing is importing due to…
Hema
  • 988
  • 1
  • 16
  • 38
5
votes
2 answers

What is the difference between these two Cypher queries?

I'm a bit stumped. In my database, I have a relationship like this: (u:User)-[r1:LISTENS_TO]->(a:Artist)<-[r2:LISTENS_TO]-(u2:User) I want to perform a query where for a given user, I find the common artists between that user and every other…
Adam Miskiewicz
  • 621
  • 6
  • 6
4
votes
1 answer

unable find geometries in neo4j spatial

I'm using neo4j spatial 0.15 and neo4j 2.3.3. I have imported a shapefile and saw that geometries now exists on my database. Now, I would like to find all the geometries using bounding box. SpatialDatabaseService spatialService = new…
vvavepacket
  • 1,882
  • 4
  • 25
  • 38
4
votes
2 answers

mvn clean install errors with "Negative seek offset"

mvn clean install causes build error here is the error what I am getting.. ... 24 more {[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]…
sree
  • 93
  • 2
  • 13
4
votes
2 answers

How to check if a node is already indexed in the neo4j-spatial index?

I'm running the latest neo4j v2, with the spatial plugin installed. I have managed to index almost all of the nodes I need indexed in the geo index. One of the problems that I'm struggling with is how can I easily check if a node is already been…
pixeltom
  • 1,799
  • 1
  • 15
  • 19
3
votes
2 answers

Creating geohash relationships in neo4j

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 ?
A.HADDAD
  • 1,809
  • 4
  • 26
  • 51
3
votes
0 answers

org.neo4j.kernel.GraphDatabaseQueryService No dependency satisfies interface

I am just writing a simple program where I am uploading my GTFS files to Neo4j Spatial. I believe it's some configuration error or some problem with Neo4j-spatial libraries, which is why I am not uploading my code which is quite basic as specified…
joe
  • 143
  • 10
3
votes
1 answer

How can I efficiently filter results of multiple procedure calls in Neo4j

I have a GraphAware time tree and spatial r tree set up to reference a large set of nodes in my graph. I am trying to search these records by time and space. Individually I can gather results from these queries in about 5…
spanishgum
  • 1,030
  • 1
  • 14
  • 29
3
votes
1 answer

Error in creating spatial Index using Spring Data neo4j

I'm working on Neo4j Spring Data project and wants to perform some spatial related operation on nodes. Entity Class @NodeEntity public class User { @GraphId Long id; private String fname; private String lname; private String uname; private String…
niraj darji
  • 339
  • 3
  • 12
3
votes
1 answer

Poor Spatial Layer Insertion Performance

So I tried loading some postcode and address data into neo4j. I pute a unique constraint there are effectively three labels. POSTCODE, ADDRESS, and REGION. REGION and POSTCODE have unique constraints on their single property. The query we use for…
phil_20686
  • 4,000
  • 21
  • 38
3
votes
2 answers

Neo4j Spatial Index Deletion

How can I delete a spatial index and all it's data? I have nodes I added to this index, but now I have added it to another spatial index. I no longer need the old index.
Jey Balachandran
  • 3,585
  • 5
  • 27
  • 36
3
votes
3 answers

Neo4J huge performance degradation after records added to spatial layer

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…
catacavaco
  • 55
  • 1
  • 1
  • 10
3
votes
1 answer

neo4j spatial contain search

i'm trying to develop a web service able to give me back the name of the administrative area that contains a given gps position. I have already developed a java application able to insert some polygons (administrative areas of my country) in neo4j…
1
2 3
8 9