I'm using neo4j spatial 0.15 and neo4j 2.3.3. I have imported a shapefile and saw that geometries now exists on my database.
Now, I would like to find all the geometries using bounding box.
SpatialDatabaseService spatialService = new SpatialDatabaseService(database);
Layer layer = spatialService.getLayer("layer_roads");
SpatialIndexReader spatialIndex = layer.getIndex();
LayerIndexReader rtreeIndex = layer.getIndex();
Envelope bbox = rtreeIndex.getBoundingBox();
SearchIntersect searchQuery = new SearchIntersect(layer, layer.getGeometryFactory().toGeometry(Utilities.fromNeo4jToJts(bbox)));
SearchRecords results = rtreeIndex.search(searchQuery);
When I go through the results variable, I saw that there are no geometries return. Why is it's not appearing, even though I see that geometries are existing on my database.