Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-07-06 Thread Craig Taverner
Hi Boris, I can see the new update method here: https://github.com/neo4j/neo4j-spatial/blob/master/src/main/java/org/neo4j/gis/spatial/server/plugin/SpatialPlugin.java#L138 And the commit for it is here: https://github.com/neo4j/neo4j-spatial/commit/22eaf91957a6265ef1e6923b5da572b75383b83e Hope

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-07-06 Thread Boris Kizelshteyn
Ah ha ... the reason I couldn't find it is because there is a typo ... udpateGeometryFromWKT the p and d are switched :) However, I rebuilt it but do not see this in the REST extensions after moving everything from /target/dependency to plugins. Any thoughts? Thanks! On Wed, Jul 6, 2011 at 4:31

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-07-05 Thread Boris Kizelshteyn
Hi Craig, This is awesome! Where is the update method? I can't find the code on github. Thanks! On Sat, Jul 2, 2011 at 6:00 PM, Craig Taverner cr...@amanzi.com wrote: As I understand it, Andreas is working on the much more complex problem of updating OSM geometries. That is more complex

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-07-02 Thread Craig Taverner
Hi Boris, Ah! You are using the REST API. That changes a lot, since Neo4j Spatial is only recently exposed in REST and we do not expose most of the capabilities I have discussed in this thread, or indeed in my other answer today. I did recently add some REST methods that might work for you,

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-07-02 Thread Boris Kizelshteyn
Wow that's great! I'll try it out asap. This leads to my next question: how do I update the geometry in a layer, rather than add new? What I am thinking of doing is having a multipoint geometery associated with each of my user nodes which will represent their location history. My plan is to add

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-07-02 Thread Peter Neubauer
Actually, Andreas Wilhelm is working right now on updating geometries. Sent from my phone. On Jul 2, 2011 5:00 PM, Boris Kizelshteyn bo...@popcha.com wrote: Wow that's great! I'll try it out asap. This leads to my next question: how do I update the geometry in a layer, rather than add new? What

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-07-02 Thread Craig Taverner
As I understand it, Andreas is working on the much more complex problem of updating OSM geometries. That is more complex because it involves restructuring the connected graph. The case Boris has is much simpler, just modifying the WKT or WKB in the editable layer. In the Java API this is simply

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-07-01 Thread Boris Kizelshteyn
Hi Craig, Thanks so much for this reply. It is very insightful. Is it possible for me to implement the LineString geometries and lookups using REST? Many thanks! On Wed, Jun 8, 2011 at 4:58 PM, Craig Taverner cr...@amanzi.com wrote: OK. I understand much better what you want now. Your

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-06-08 Thread Craig Taverner
OK. I understand much better what you want now. Your person nodes are not geographic objects, they are persons that can be at many positions and indeed move around. However, the 'path' that they take is a geographic object and can be placed on the map and analysed geographically. So the question

[Neo4j] neo4j spatial bounding box vs. lat/lon

2011-06-07 Thread Boris Kizelshteyn
Greetings! Perhaps someone using neo4j-spatial can answer this seemingly simple question. Nodes classified into layers have both lat/lon properties and bounding boxes, the bounding box seems to be required to establish the relationship between node and layer, however the node is not found if the

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-06-07 Thread Craig Taverner
Hi, The bounding boxes are used by the RTree index, which is a typical way to index spatial data. For Point data, the lat/long and the bounding box are the same thing, but for other shapes (streets/LineString and Polygons), the bounding box is quite different to the actual geometry (which is not

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-06-07 Thread Boris Kizelshteyn
Thanks! So it seems you are saying that the bounding box represents a single point and is the same as the lat/lat lon? What if I make the bounding box bigger? What I am trying to do is geo queries against a bounding box made of a set of points, rather than individual points. So the query is, find

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-06-07 Thread Craig Taverner
I think you need to differentiate the bounding boxes of the data in the layer (stored in the database), and the bounding box of the search query. The search query is not stored in the database, and will not be seen as a node or nodes in the database. So if you want to search for data within some

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-06-07 Thread Boris Kizelshteyn
Thanks for the detailed response! Here is what I'm trying to do and I'm still not sure how to accomplish it: 1. I have a node which is a person 2. I have geo data as that person moves around the world 3. I use the geodata to create a bounding box of where that person has been today 4. I want