Also, when we built the library we deliberately wanted to allow you to store the spatial data in whatever way suited you. This was to match the fact that many people were already modeling their own spatial data in their own ways, and we did not want to force them to change their models. So we provide an interface called the GeometryEncoder that maps from your data model to the JTS Geometry model (and back) that is use by the spatial libraries. Then we provided a few pre-build GeometryEncoder classes that you can use if you don't want to write your own (which is normal). Some examples are:
- SimplePoint - encodes Point(x y) geometries as two double properties on a node - WKT - encodes any Geometry as WKT String format on a single property of a node - OSM - encodes geometries as expanded graph structures with many nodes and relationships making up the complete OSM connected graph The code for these encoders is available in github, as well as many test cases showing how to use the code. All of the above is applicable to the Java API for use in embedded Neo4j. If you are using the Neo4j Server, we only provide a very limited subset of features, and if you want to access the full Java API you need to write a server side extension, or extend ours. On Tue, Sep 9, 2014 at 8:11 AM, Michael Hunger < [email protected]> wrote: > It stores the geospatial data as an two-dimensional r-tree in the graph. > > Here you can find some presentations and resources. > http://www.neo4j.org/develop/spatial > > Cheers, Michael > > On Mon, Sep 8, 2014 at 10:40 AM, m s mobarakeh <[email protected]> > wrote: > >> Hi >> sorry for my English. >> i am working on spatial databases and i am new in neo4j spatial. >> i have a question? >> how neo4j spatial actually modeled and stores spatial data on a graph? >> is there any document to show it or it is secret for competetive purpose? >> Thanks >> majid >> >> -- >> 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 [email protected]. >> 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 [email protected]. > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
