On Friday, May 16, 2014 9:13:29 PM UTC+2, zapo wrote: > > > hi, > in my console "http://localhost:7474/webadmin/#/console/http" , > i try to query with the spatial function " findGeometriesWithinDistance " > like this : > > POST > http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance{"layer" > : "network","pointX" :3.9706,"pointY" : 46.7907,"distanceInKm" :10} > > but i have this error msg return : > > - ==> 500 Server Error > - ==> { > - ==> "exception" : "NullPointerException", > - ==> "fullname" : "java.lang.NullPointerException", > - > ==> "stacktrace" : [ > "org.neo4j.collections.rtree.filter.AbstractSearchEnvelopeIntersection.needsToVisit(AbstractSearchEnvelopeIntersection.java:38)", > > "org.neo4j.collections.rtree.RTreeIndex$SearchEvaluator.checkPosition(RTreeIndex.java:267)", > > "org.neo4j.collections.rtree.RTreeIndex$SearchEvaluator.isStopNode(RTreeIndex.java:282)", > > "org.neo4j.kernel.impl.traversal.OldTraverserWrapper$Pruner.evaluate(OldTraverserWrapper.java:260)", > > "org.neo4j.graphdb.traversal.Evaluator$AsPathEvaluator.evaluate(Evaluator.java:69)", > > "org.neo4j.kernel.impl.traversal.MultiEvaluator.evaluate(MultiEvaluator.java:62)", > > "org.neo4j.kernel.impl.traversal.MonoDirectionalTraverserIterator.evaluate(MonoDirectionalTraverserIterator.java:59)", > > "org.neo4j.kernel.impl.traversal.TraversalBranchImpl.evaluate(TraversalBranchImpl.java:125)", > > "org.neo4j.kernel.impl.traversal.TraversalBranchImpl.initialize(TraversalBranchImpl.java:130)", > > "org.neo4j.kernel.impl.traversal.TraversalBranchImpl.next(TraversalBranchImpl.java:151)", > > "org.neo4j.kernel.impl.traversal.TraversalBranchWithState.next(TraversalBranchWithState.java:32)", > > "org.neo4j.kernel.impl.traversal.StartNodeTraversalBranch.next(StartNodeTraversalBranch.java:50)", > > "org.neo4j.graphdb.traversal.PreorderDepthFirstSelector.next(PreorderDepthFirstSelector.java:49)", > > "org.neo4j.kernel.impl.traversal.MonoDirectionalTraverserIterator.fetchNextOrNull(MonoDirectionalTraverserIterator.java:68)", > > "org.neo4j.kernel.impl.traversal.MonoDirectionalTraverserIterator.fetchNextOrNull(MonoDirectionalTraverserIterator.java:35)", > > "org.neo4j.helpers.collection.PrefetchingIterator.hasNext(PrefetchingIterator.java:55)", > > "org.neo4j.helpers.collection.PrefetchingIterator.next(PrefetchingIterator.java:73)", > > "org.neo4j.kernel.impl.traversal.OldTraverserWrapper$TraverserImpl.next(OldTraverserWrapper.java:86)", > > "org.neo4j.kernel.impl.traversal.OldTraverserWrapper$TraverserImpl.next(OldTraverserWrapper.java:47)", > "org.neo4j.gis.spatial.filter.SearchRecords.next(SearchRecords.java:53)", > "org.neo4j.gis.spatial.filter.SearchRecords.next(SearchRecords.java:29)", > "org.neo4j.gis.spatial.pipes.GeoPipeline$1.next(GeoPipeline.java:134)", > "org.neo4j.gis.spatial.pipes.GeoPipeline$1.next(GeoPipeline.java:126)", > "org.neo4j.gis.spatial.pipes.impl.LastElementIterator.next(LastElementIterator.java:19)", > > "org.neo4j.gis.spatial.pipes.impl.IdentityPipe.processNextStart(IdentityPipe.java:18)", > "org.neo4j.gis.spatial.pipes.impl.AbstractPipe.next(AbstractPipe.java:72)", > "org.neo4j.gis.spatial.pipes.AbstractGeoPipe.processNextStart(AbstractGeoPipe.java:49)", > > "org.neo4j.gis.spatial.pipes.AbstractGeoPipe.processNextStart(AbstractGeoPipe.java:31)", > "org.neo4j.gis.spatial.pipes.impl.AbstractPipe.next(AbstractPipe.java:72)", > "org.neo4j.gis.spatial.pipes.processing.Sort.processNextStart(Sort.java:81)", > "org.neo4j.gis.spatial.pipes.processing.Sort.processNextStart(Sort.java:35)", > "org.neo4j.gis.spatial.pipes.impl.AbstractPipe.next(AbstractPipe.java:72)", > "org.neo4j.gis.spatial.pipes.impl.Pipeline.next(Pipeline.java:113)", > "org.neo4j.gis.spatial.pipes.GeoPipeline.toNodeList(GeoPipeline.java:1015)", > "org.neo4j.gis.spatial.server.plugin.SpatialPlugin.findGeometriesWithinDistance(SpatialPlugin.java:221)", > "java.lang.reflect.Method.invoke(Method.java:606)", > "org.neo4j.server.plugins.PluginMethod.invoke(PluginMethod.java:61)", > "org.neo4j.server.plugins.PluginManager.invoke(PluginManager.java:159)", > "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:312)", > > "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:134)", > "java.lang.reflect.Method.invoke(Method.java:606)", > "org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:139)", > > "org.neo4j.server.rest.security.SecurityFilter.doFilter(SecurityFilter.java:112)", > "java.lang.Thread.run(Thread.java:745)" ] > - ==> } > > i dont understand, my layer called "network" has nodes, when i ask to > cypher "MATCH (a)-[:`LAYER`]->(b) RETURN a,b LIMIT 25" i have : > abnamespatial_rootlayernetworkctime1400273512851geomencoder > org.neo4j.gis.spatial.WKBGeometryEncoderlayer_class > org.neo4j.gis.spatial.EditableLayerImplgeomencoder_config > layercrsGEOGCS["Unknown", DATUM["D_WGS_1984", SPHEROID["WGS_1984", > 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0], UNIT["degree", > 0.017453292519943295], AXIS["Longitude", EAST], AXIS["Latitude", NORTH]] > gtype5layerpropsID, OSM_ID, NAME, REF, TYPE, ONEWAY, BRIDGE, TUNNEL, > pays, ID > > > the type of my imported shp file is simple line. Does the > findGeometriesWithinDistance function is only for nodes ? > > regards. > > > >
-- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
