Re: [Neo4j] Mapping domain graph to spatial layer

2011-10-16 Thread Peter Neubauer
Marcin, in the case of points, maybe the creation of the bbox property could be done automatically, I wil raise an issue around this. Otherwise, let us know how things are progressing for you, always good to get feedback! Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neuba

Re: [Neo4j] Mapping domain graph to spatial layer

2011-10-15 Thread Marcin Zpa
Hi Peter, thank you very much! for a very detailed description. Know i understand it very good. The chunk of information which i was missing is fact that the node being added has to have bbox property in order to be indexed by spatial layer. Know it is clear to me. Once again thanks a lot and of co

Re: [Neo4j] Mapping domain graph to spatial layer

2011-10-13 Thread Peter Neubauer
Marcin, look at https://github.com/neo4j/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/TestSimplePointLayer.java#L42 where data is added to the SimplePointLayer, specifying that the lat/lon should be encoded into "Longitude/Latitude" properties on the geometry node. For adding existing

Re: [Neo4j] Mapping domain graph to spatial layer

2011-10-11 Thread Marcin Zpa
Hi Peter, thanks a lot for your quick feedback. What do you mean with skipping encoding step? That means that i could directly index my domain coordinate node and do not create any additional "geo" nodes. Sorry if you find this question stupid or obvious but i cant follow your suggestion. For me im

Re: [Neo4j] Mapping domain graph to spatial layer

2011-10-10 Thread Peter Neubauer
Marcin, your approach is quite ok, but you can skip the encoding step and just give the lat/lon properties to the SimplePointEncoder which then will take these as the indexing sources, see the tests in https://github.com/neo4j/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/TestSimplePoint

[Neo4j] Mapping domain graph to spatial layer

2011-10-10 Thread Marcin Zpa
Hi guys, i think my question is pretty simple, but since i cannot find anything in network about it i decided to ask you. I'm using SDG with cross-store functionality. I have users which are persisted in the relational database. User has Address and Address is stored in Neo4j. Going further Address