I'm using neo4j spatial index, this is my pom.xml
I keep getting an error "GeometryNode Not indexed with RTree". Is it the problem about the mismatch version of my library? I haven't got any clue how to fix this error.Code:<dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j-cypher-dsl</artifactId> <version>1.6</version> </dependency> <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j-spatial</artifactId> <version>0.6</version> </dependency> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-neo4j</artifactId> <version>2.0.1.RELEASE</version> </dependency>
This is how I declare my node entity.
What's wrong? Thanks so much for your helpCode:@Indexed(indexType = IndexType.POINT, indexName = "landmarkLayer") String wkt; public void setLocation(float lon, float lat) { this.wkt = String.format("POINT( %.2f %.2f )", lon, lat); }


Reply With Quote
