Re: [Neo4j] Using Webadmin Console to Execute Spatial Cypher Query

2011-11-16 Thread Peter Neubauer
Thanks for the contribution,
will handle it ASAP!

Cheers,

/peter neubauer

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.


On Tue, Nov 15, 2011 at 8:19 PM, bm3780 bm3...@gmail.com wrote:

 In the short term, I've gotten around this issue by extending the
 SpatialPlugin to add a method for searching within a distance of a point in
 a layer.  Can I get this merged into the baseline?  I have created
 https://github.com/neo4j/spatial/issues/27 an issue  on Github.

 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Using-Webadmin-Console-to-Execute-Spatial-Cypher-Query-tp3500531p3510679.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Using Webadmin Console to Execute Spatial Cypher Query

2011-11-15 Thread bm3780
In the short term, I've gotten around this issue by extending the
SpatialPlugin to add a method for searching within a distance of a point in
a layer.  Can I get this merged into the baseline?  I have created 
https://github.com/neo4j/spatial/issues/27 an issue  on Github.

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Using-Webadmin-Console-to-Execute-Spatial-Cypher-Query-tp3500531p3510679.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Using Webadmin Console to Execute Spatial Cypher Query

2011-11-14 Thread bm3780
I've tried Gremlin but am not finding the syntax very friendly.  Is this
'withinDistance' spatial index query possible with Gremlin?

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Using-Webadmin-Console-to-Execute-Spatial-Cypher-Query-tp3500531p3506994.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Using Webadmin Console to Execute Spatial Cypher Query

2011-11-14 Thread Peter Neubauer
Mmh,
this is a design issue of passing index-specific queries and
parameters into an index. Mattias or anyone else, do you have any
thoughts on how to expose that better? If you have some ideas, maybe
you can raise an issue for a feature and suggest some approaches?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Mon, Nov 14, 2011 at 3:36 PM, bm3780 bm3...@gmail.com wrote:
 I've tried Gremlin but am not finding the syntax very friendly.  Is this
 'withinDistance' spatial index query possible with Gremlin?

 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Using-Webadmin-Console-to-Execute-Spatial-Cypher-Query-tp3500531p3506994.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Using Webadmin Console to Execute Spatial Cypher Query

2011-11-11 Thread b m
I got the spatial index provider working, but now I'm having trouble
getting a spatial cypher query to execute from within the webadmin console.
 I want to perform a 'withinDistance' query and am having trouble getting
the syntax correct.  No luck with the following:

start n=node:layer1(withinDistance='point: [10, 41], distanceInKm:100')
return n
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Using Webadmin Console to Execute Spatial Cypher Query

2011-11-11 Thread Peter Neubauer
Hi there,
this is a very good question. You basically can't do it right now,
since this query is expecting a map of parameters

MapString, Object params = new HashMapString, Object();
params.put( LayerNodeIndex.POINT_PARAMETER,
new Double[] { 37.87, 41.13 } );
params.put( LayerNodeIndex.DISTANCE_IN_KM_PARAMETER, 2.0 );
IndexHitsNode hits = index.query(
LayerNodeIndex.WITHIN_DISTANCE_QUERY, params );


, and I am not sure how to provide this through Cypher. I guess we
have to come up with a good syntax for complex parameters for index
providers.

Any hints on a generic approach to index queries (I think we had this
up before)?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Fri, Nov 11, 2011 at 7:22 PM, b m bm3...@gmail.com wrote:
 I got the spatial index provider working, but now I'm having trouble
 getting a spatial cypher query to execute from within the webadmin console.
  I want to perform a 'withinDistance' query and am having trouble getting
 the syntax correct.  No luck with the following:

    start n=node:layer1(withinDistance='point: [10, 41], distanceInKm:100')
 return n
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user