neo4j-spatial

Error in creating spatial Index using Spring Data neo4j

喜欢而已 提交于 2019-12-01 21:23:37
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 pwd; private Double latitude, longitude; @Indexed(indexType = IndexType.POINT, indexName = "geom") private String wkt; public void setLocation(Double lon, Double lat) { this.wkt = String.format("POINT( %.2f %.2f )", lon, lat); } @RelatedTo(type = "KNOWS", direction = Direction.OUTGOING) public Set<User> knows; //getter and setter methods Controller

Neo4j Spatial, relationship between indexes and layers

耗尽温柔 提交于 2019-12-01 11:08:22
I am confused about the relationship between Layers and Indexes in neo4j spatial. In particular I have the following three questions: (I can give code samples on request, but its a lot of code and not really germane to the issue). 1) Its perfectly possible to use neo4j spatial without ever explicitly creating any layers, if you add an index with a spatial index provider. However, does this mean that it is implicitly creating a layer, and that I can access that layer directly through the Java API? 2) Suppose I create a Layer. Is it possible to do Cypher Queries on this layer without explicitly

Neo4j Spatial, relationship between indexes and layers

喜欢而已 提交于 2019-12-01 09:04:39
问题 I am confused about the relationship between Layers and Indexes in neo4j spatial. In particular I have the following three questions: (I can give code samples on request, but its a lot of code and not really germane to the issue). 1) Its perfectly possible to use neo4j spatial without ever explicitly creating any layers, if you add an index with a spatial index provider. However, does this mean that it is implicitly creating a layer, and that I can access that layer directly through the Java

Neo4j spatial cypher query withinDistance doesn't return existing nodes

强颜欢笑 提交于 2019-12-01 08:06:00
I am using the spatial server plugin for Neo4j 2.0 and have followed the guide at http://neo4j.github.io/spatial/ to add a node with name Stockholm. :POST http://localhost:7475/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer { "layer" : "geom", "lat" : "lat", "lon" : "lon" } :POST http://localhost:7475/db/data/index/node/ { "name" : "geom", "config" : { "provider" : "spatial", "geometry_type" : "point", "lat" : "lat", "lon" : "lon" } } :POST http://localhost:7475/db/data/node { "lat" : 60.1, "lon" : 15.2, "name" : "Stockholm" } :POST http://localhost:7475/db/data/ext/SpatialPlugin

Neo4j spatial cypher query withinDistance doesn't return existing nodes

核能气质少年 提交于 2019-12-01 06:44:39
问题 I am using the spatial server plugin for Neo4j 2.0 and have followed the guide at http://neo4j.github.io/spatial/ to add a node with name Stockholm. :POST http://localhost:7475/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer { "layer" : "geom", "lat" : "lat", "lon" : "lon" } :POST http://localhost:7475/db/data/index/node/ { "name" : "geom", "config" : { "provider" : "spatial", "geometry_type" : "point", "lat" : "lat", "lon" : "lon" } } :POST http://localhost:7475/db/data/node { "lat" :

neo4j spatial contain search

依然范特西╮ 提交于 2019-11-28 10:34:36
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 using spatial plugin and Java API. Then, giving a gps position, i'm able to get the name of the polygon that contains it. Now i'm trying to do the same using REST API of Neo4j (instead of java api) but i'm not able to find any example. So my questions are: 1) Is possible to insert polygons in Neo4j using REST API (if i well understood is possible