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

Neo4J Spatial within distance returns only exact matches

Added data to the neo4j using the below script. The data gets added successfully but there is problem with the querying. The query works only if i give the exact lat and long of a node in the database. Any other coords results in an empty…
Haripriya
  • 47
  • 2
  • 9
0
votes
2 answers

How do support location based query using neo4j cypher query?

I tried to use spatial, found the official guide use legacy index in the doc, and the cypher query is not working. http://neo4j-contrib.github.io/spatial/#rest-api-create-a-spatial-index How can I use latest index method '/schema/index', instead of…
navins
  • 3,429
  • 2
  • 28
  • 29
0
votes
1 answer

@relatedToVia on an array

Trying to create @relatedToVia as mentioned below. @NodeEntity abstract public class Table{ @GraphId Long id1; @RelatedToVia(type="hasRowFields") protected RowField[] rowFields; Can we relate on an array data type? If not, what is the other way of…
madireddy
  • 107
  • 3
  • 13
0
votes
1 answer

Neo4j 2.2 spatial withindistance label issue

Just started playing around with Neo4j 2.2. Awesome work! Unfortunately I ran in some problem using spatial-0.14-neo4j-2.2.0-M02 :( In my application I have a query which fetches the nearest users: START n=node:geom('withinDistance:[42.0,1.0,…
Jenny Pettersson
  • 241
  • 4
  • 17
0
votes
1 answer

neo4j spatial-creating layer giving exception

using below versions for my app, but getting exception while creating spatial layer neo4j = neo4j-enterprise-2.1.7 spatial = neo4j-spatial-0.13-neo4j-2.1.2-server-plugin while adding layer with REST API, getting below exception: Creating new layer…
suryan
  • 226
  • 3
  • 10
0
votes
2 answers

SpatialRepository in Embedded Neo4j

Can someone answer this question. Is it possible to have the spatial repository in a spring boot app in embedded mode? @Bean public GraphDatabaseService graphDatabaseService() { return new…
F.O.O
  • 4,730
  • 4
  • 24
  • 34
0
votes
0 answers

toSpatialDatabaseRecordList produce a NullPointerException

We encountered a problem using java plugin for neo4j. Until today we had no problem to use the toSpatialDatabaseRecordList method on GeoPipeline. We have just made some bugs corrections and now we get a NullPointerException on the method call. Here…
nOo
  • 11
  • 1
0
votes
1 answer

SpatialRepository not autowiring

Does anyone know how to get SpatialRepository @Autowiring in a spring boot app? I have put the additional dependency in my classpath org.neo4j neo4j-spatial
F.O.O
  • 4,730
  • 4
  • 24
  • 34
0
votes
2 answers

Adding existing nodes to a spatial index (using spring data)

I've got an existing project for which I want to build a spatial index. I can created a spatial index for a pre-existing Neo4j database managed by spring-data-neo4j on the existing database by adding @Index to the domain class: @NodeEntity class…
Dr Joe
  • 718
  • 5
  • 19
0
votes
1 answer

Neo4j Spatial issue : findWithinDistance: ava.lang.IllegalArgumentException: Index with the same name but different config exists

We need to locate a set of objects thanks to the geolocation in a defined radius distance. We try to use Neo4 J spacial library using SpatialRepository class to implement the method “findWithinDistance” Bellow the used code for the implemntation…
nad
  • 1
0
votes
1 answer

Sorting and filtering nodes in Neo4j spatial query

Is it possible to filter nodes in Neo4j by geographical distance and by node properties, returning the nodes some order other then their distance (like a timestamp). I can do one or the other using either the standard lucene based indexing and the…
0
votes
1 answer

Lookup of nodes with Neo4j Spatial

Using the Neo4j Spatial core java api, I have been able to put together code which allows me to lookup nodes within a specific distance from a given point however, I would like to be able to include nodes based on their catchment radius. For…
0
votes
1 answer

Neo4j / Cypher Query using withinDistance returns 0 rows

I've just set the Neo4j Spatial plugin on my server and I'm using SDN 3.1.2 to create my wkt index: @Indexed(indexName = "CarsLocation", indexType = IndexType.POINT) var wkt: String The whole works great and I can make queries involving…
Mik378
  • 21,881
  • 15
  • 82
  • 180
0
votes
1 answer

Can I use a calculated query string in a spatial index query?

I have a set of nodes labeled 'Foo' with associated geographic information, and for each node in that set I want to find nodes from a second set that are geographically nearby. The nodes in the second set have been added to a spatial index named…
Jim Biard
  • 2,252
  • 11
  • 14
1 2 3
8
9