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
2
votes
1 answer

A Strange Class Cast Exception in dumpToString

The following code generates the following odd exception: package com.bmt.contain.spatial.test; import org.neo4j.cypher.javacompat.ExecutionEngine; import org.neo4j.cypher.javacompat.ExecutionResult; import…
phil_20686
  • 4,000
  • 21
  • 38
2
votes
0 answers

How to store Nodes in GraphRepository as well as Neo4j-Spatial Index

I am using Neo4j-Spatial with Spring data in a Play!Framework application. I have a @NodeEntity of type User which I want to store in the database as well as a spatial index for location based queries. The examples that I have seen create a Node…
Coding Elements
  • 1,000
  • 10
  • 14
2
votes
2 answers

Neo4j spatial - failure when executing Cypher query

I'm running Neo4j 2.0.1. together with the spatial plugin for 2.0.1. together with the JDBC driver for 2.0.1. I created a simple point layer and an index for doing a spacial query. If I type in the following query in the browser, the respective…
productioncoder
  • 4,225
  • 2
  • 39
  • 65
2
votes
2 answers

How to represent geo spatial circular or Polygon area in spring data neo4j spatial?

I need to represent an circular or polygon area of a place in map. Any place is not a single lon lan piont in map. It is a polygon area. Currently what i have is single single indexed wkt field with single point lon lat representation. How to…
Suren Raju
  • 3,012
  • 6
  • 26
  • 48
2
votes
1 answer

Using Neo4J Spatial Cypher queries with other conditions

I am using Neo4J Spatial cypher queries to find users in a 25KM radius, and among them find those who have the same hometown as I do. I used the following query: START u=node(5),node=node:geom('withinDistance:[17.3,78.3,25.0]') MATCH…
Ninja
  • 5,082
  • 6
  • 37
  • 59
1
vote
0 answers

Using the distance method within Where clause for Neo4jClient

I get an "Sequence contains no matching element" error when I add a "distance" method to the where clause. After research, everything was saying that I had to install a plugin to add spatial support to Neo4j...however all of these articles and…
Leeland Clay
  • 112
  • 1
  • 11
1
vote
1 answer

neo4j adding spatial wgs84 point to node to calculate distance

i'm trying to add a lon lat point to a node. i was unable to find any doc regarding which java class should be used. Here is what i have: @NodeEntity public class Coordination { @Id @GeneratedValue private Long id; @Index …
USer22999299
  • 5,284
  • 9
  • 46
  • 78
1
vote
1 answer

Neo4j filtering after spatial call

We are developing a project in Neo4j with spatial plugin but we can't filter on label of nodes obtained after the call. The query we want to realize has to connect 2 nodes of type 'Street' that are within 0.1 of distance. The following code works…
Stefano
  • 13
  • 3
1
vote
1 answer

Is The Spatial Node added automatically to the Spatial Layer

I am new to neo4j. I have a csv in which two spatial informations are present : pickup and dropoff. i created a trip relationship between pickup node and dropoff node, then i added the pickup node to a geohash Spatial Layer. My questions is: is…
A.HADDAD
  • 1,809
  • 4
  • 26
  • 51
1
vote
2 answers

Adding 5834580 of node to Spatial Layer

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…
A.HADDAD
  • 1,809
  • 4
  • 26
  • 51
1
vote
1 answer

how to create geohash tree in neo4j

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

Plot R-tree in map

I 'am new to neo4j and newer to its spatial plugin. Recently i was able to create an R-tree of NYC Cabs locations(pickup and drop-off) and some relationships between them (trip relationship) as well the Time Location Relationships with time…
A.HADDAD
  • 1,809
  • 4
  • 26
  • 51
1
vote
1 answer

How to add list of nodes to a SpatialLayer

I'm new to Neo4j and cypher. I have many nodes, that i want to add to a spatial layer. This is what i tried with cypher : Creating Nodes from a csv file load csv with headers from "file:///green_tripdata_2015-02.csv" as…
A.HADDAD
  • 1,809
  • 4
  • 26
  • 51
1
vote
0 answers

geohashTrie for location Nodes

I found from here that shows the possibilty of geohashTrie in neo4j. My question is how to do that ? the cypher code ?
A.HADDAD
  • 1,809
  • 4
  • 26
  • 51
1
vote
1 answer

Getting the max record with different values using cypher

I have a graph with spatial data using the spatial plugin. This graph has "Threat Zones" (Polygons) which can be on top of the other so they also have a z-index property. Each "Threat Zone" is attached to 1 to N threat scenarios, sometimes multiple…
Doron Goldberg
  • 643
  • 1
  • 9
  • 23
1 2
3
8 9