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
1
vote
0 answers

Neo4j Spatial server error 500 when adding nodes to layer

I am using the Spatial plugin for Neo4j 2.2.2 and have managed to create a spatial index by following the guide http://neo4j-contrib.github.io/spatial/#spatial-layers. :POST …
Amz
  • 39
  • 2
1
vote
1 answer

spring data neo4j spatial working with polygons

Good day, I want to work with building geometries on a larger scale. For that purpose, I am importing geometry data from various sources (also shp-files) to an embedded neo4j database working with spring-data-neo4j. So far so good. Where I am…
lama
  • 362
  • 1
  • 2
  • 9
1
vote
0 answers

Nearest neighbour queries. Postgis vs neo4j spatial

Im building an application which will be making queries like 'give me the nearest 10 points to this location ordered by proximity' what database is more performant in making these types of queries? Much appreciated if you have some performance…
gawicks
  • 1,894
  • 15
  • 22
1
vote
0 answers

Neo4j concurrent querying issues

I'm running load tests in my production environment and I've found out there's some kind of concurrency issues. I'm running a query that takes (in average) 900ms to return my results. What I've seen is: if I run queries with concurrent users using…
Amin Abu-Taleb
  • 4,423
  • 6
  • 33
  • 50
1
vote
1 answer

WithinDistance in spatial indexing neo4j not give appropriate Result

We are using Spring Data Neo4j 3.2.0 ,and Neo4j-spatial 0.13-neo4j-2.1.6 in a Grails Project 2.4.3 In UserDomain @Indexed(indexType = IndexType.POINT, indexName = "junctionLocations") Point wkt In UserRepository @Transactional …
abhaygarg12493
  • 1,565
  • 2
  • 20
  • 40
1
vote
1 answer

Neo4j Spatial Converting wkt values to something else

My application uses point queries to find stores based on a user's current location. public class Store extends AbstractNode { @Indexed(indexType = IndexType.POINT, indexName = "ErrandLocation") private String wkt; public void…
F.O.O
  • 4,730
  • 4
  • 24
  • 34
1
vote
0 answers

SDN doesn't appear to delete nodes from a spatial index

Can someone please help me understand how spatial indexes are supposed to work in Spring-Data-Neo4j? I've created a simple index: @NodeEntity class Junction { @GraphId Long id; @Indexed(indexType = IndexType.POINT, indexName = "Location")…
Dr Joe
  • 718
  • 5
  • 19
1
vote
1 answer

How do I create a spacial index in neo4j using only cypher?

I want to play with neo4j and spacial indexes. I can't find any documentation that demonstrates how to do this through cypher, only through the REST API. Is it possibly to create spacial indexes through Cypher, say in the neo4j web console?
Dr Joe
  • 718
  • 5
  • 19
1
vote
1 answer

Neo4j / Cypher / Traversing nodes having a specific label

I'm using Neo4j Spatial plugin. Let's suppose this basic query: START c = node:carslocation('withinDistance:[2.3725963,48.892067, 34.0]') RETURN c It returns all the cars within 34 km. What if I want to only retrieve race cars (using Labels).…
Mik378
  • 21,881
  • 15
  • 82
  • 180
1
vote
2 answers

Neo4j Spatial return only one node

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…
Darios
  • 13
  • 4
1
vote
1 answer

Batch insertion of shapefiles in Neo4J

currently im working with Neo4j + Neo4j Spatial and i would like to ask you if there is a way to import shapefiles into the database in batches, the same way they do with OSM files, the reason for this is because im dealing with a huge dataset…
catacavaco
  • 55
  • 1
  • 1
  • 10
1
vote
2 answers

Add NodeEntity directly into Neo4j-Spatial layer?

I have a class NodeA, annotated with @NodeEntity. It has many fields, including: @Indexed public Double lat; @Indexed public Double lon; Note that NodeA is already capable of storing enough location information via lat and lon fields. I want to…
Coding Elements
  • 1,000
  • 10
  • 14
1
vote
1 answer

What is the SBT dependency for Neo4j-Spatial that I can use in Play! Framework

How to add dependency for neo4j-spatial in Play! Framework build.scala ? I as using the following resolver in Build.scala to import Neo4j: libraryDependencies += "com.github.tuxBurner" %% "play-neo4jplugin" % "1.3.5" resolvers += "Neo4j" at…
Coding Elements
  • 1,000
  • 10
  • 14
1
vote
2 answers

Neo4j Spatial causes lifecycle exception

So I am trying to get my head around Neo4j Spatial. I wrote the following code: public static void main(String[] args) { GraphDatabaseService graphDb = new GraphDatabaseFactory().newEmbeddedDatabase("var/geo"); SpatialDatabaseService…
phil_20686
  • 4,000
  • 21
  • 38
1
vote
1 answer

Neo4j-spatial importing OSM missmatching vertices found

This is my method to import osmdata: private void importOSM(String osm){ OSMImporter importer = new OSMImporter(osm); importer.setCharset(Charset.forName("UTF-8")); try{ importer.importFile(graphDb,osm,false,5000,true); …
user3042984
  • 61
  • 1
  • 8
1 2 3
8 9