The current API allows, for example, to look for the intersection of your Geometries and a LineString. So if you create a LineString running along the x=5 line, you could pass it into the Intersects function and get the results you want. This will only work if your LineString y values cover the full range of your data. The RTree index keeps a record of the full extend of the data in the method getBoundingBox(). So you could call layer.getIndex().getBoundingBox, and then create a LineString geometry from that and the x=5 requirement. And then pass this into the Intersects function.
On Thu, Sep 11, 2014 at 2:39 PM, Alireza Rezaei Mahdiraji < alireza...@gmail.com> wrote: > > Hi Craig, > > Consider the same toy example I sent you before, now imagine the query is > x=0.5, this line will spatially cross two edges (line strings) and two > triangles (polygons), so > we should get back four nodes from the query. > > Thanks, > Alireza > > On Thursday, September 11, 2014 2:35:05 PM UTC+2, Craig Taverner wrote: >> >> Could you perhaps explain the use case a bit more? I'm not sure what the >> phrase 'all nodes which are spatially crossed by line x=5' means? Do your >> nodes represent polygons? And you want to know which polygons intersect the >> line x=5? For example, which countries cross the tropic of capricorn? >> >> On Wed, Sep 10, 2014 at 2:15 PM, Alireza Rezaei Mahdiraji < >> alire...@gmail.com> wrote: >> >>> >>> Hi, >>> >>> Given an envelope we can do subsetting queries. What if we have a slice >>> query, e.g., x=c >>> where c is a constant like x=5. The query suppose to return all nodes >>> which are spatially >>> crossed by line x=5. How could we implement his in neo4j spatial? >>> >>> Thanks, >>> Alireza >>> >>> -- >>> 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 neo4j+un...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > 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 neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.