Hi Saikat,

There are a few places you can look for code samples. One of the best places
is the set of test cases included in neo4j spatial. You can find them at
https://github.com/neo4j/neo4j-spatial/tree/master/src/test/java/org/neo4j/gis/spatial.
In particular, since you are interested mostly in point data, take a look at
TestSimplePointLayer.java<https://github.com/neo4j/neo4j-spatial/blob/master/src/test/java/org/neo4j/gis/spatial/TestSimplePointLayer.java>and
LayersTest.java<https://github.com/neo4j/neo4j-spatial/blob/master/src/test/java/org/neo4j/gis/spatial/LayersTest.java>
.

What you will find in those classes is Java code for adding points to the
database, similar, but more extensive than the code in the blog.

Regarding your specific case, if you are working with a normal google map or
bing map, and want to port the points into a local database, you would need
to export them, and write a simple importer. If you have written a mashup
between google or bing maps and your own neo4j-based web application, you
should be able to use some client side coding to automate this, accessing
the map, and posting the points directly into your own server (where of
course you would have some code adding the points to the database). Does
this answer your question?

Regards, Craig

On Thu, Mar 17, 2011 at 12:32 AM, Saikat Kanjilal <sxk1...@hotmail.com>wrote:

> Hi Folks,
> I was reading through the docs on neo4j spatial and was wondering about a
> few things:
>
> 1) If I have a google or bing map and I manually plot some points can I use
> neo4j spatial to automate the loading of those points into my neo4j db?
>
> 2) Are there code samples for neo4j-spatial or implementations I can look
> at for a deeper look at the API's etc?
>
> Best Regards
>
> Sent from my iPhone
> _______________________________________________
> 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

Reply via email to