Re: [Neo4j] Spatial slice

2014-09-11 Thread Craig Taverner
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

Re: [Neo4j] Spatial slice

2014-09-11 Thread Alireza Rezaei Mahdiraji
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

Re: [Neo4j] Spatial slice

2014-09-11 Thread Craig Taverner
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

[Neo4j] Spatial slice

2014-09-10 Thread Alireza Rezaei Mahdiraji
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