geotools - Neo4j Spatial over REST through the JAVA API not working (for me) -


"itemprop =" text ">

I'm working on Neo4J on a Grails application which I also want to export as a GIS database.

Given the example for using neo4j in GeoServer / uDig, it seems that spatial integration is only through the embedded neo4j database.

Does anyone know if it is possible to establish these things, so that my Neo4J is available on REST, so that I can interface it from different places?

At first glance, it seems that it should be possible:

  // works with the embedded database / Diif Graph DB = new Grafdetabesficr (). NewEmbeddedDatabase ("/ tmp / foo.db"); // This rest database does not work with GrabDB = new restgraph database ("http: // localhost: 7474 / db / data"); Transaction tx graphDb.beginTx () SpatialDatabaseService spatialService = new SpatialDatabaseService (graphDb) SimplePointLayer layer = spatialService.createSimplePointLayer ( "points") =  

designed with an embedded database, spatial index OK goes . However, with the REST database, I get only a zero indicator:

  Due to NullPointerException: null - & gt; & Gt; 14 9. createCompiler - - in org.neo4j.cypher.ExecutionEngine - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 48 | & Lt; Init & gt; '' | 59 | Create Org.neo4j.cypher.javacompat.ExecutionEngineExchange Engine. 43 | & Lt; Init & gt; '' | 41 | GetReferenceNode in Org.neo4j.gis.spatial.utilities.ReferenceNodes | 78 | GetSpatialRoot in org.neo4j.gis.spatial.SpatialDatabaseService | 114 | Get '25' in 9 | This includes '' | | 303 | In creating '' | 287 | '' | | Create SimplePoint Layer in 267 | '' | | Create simplepoint layer in 37 | & Lt; Init & gt; In net.foo.db.neo4j.Neo4JService  

SpatialDatabaseService takes a GraphDatabaseService, so I'm confused as to why it does not work with the rest.

Is this a bug or a feature (or a misunderstanding on my part?)

I use to create index to a certain index API could have:

  graphDb.index () forNodes ( "points", [ "provider" :. "endemic", "Geometry_type": "point", "lat": "lat" , "Longitude": "lon"])  

So much work, but I can not make a new layer in that way.

The Rezert Database is a duplicate database that does not provide all capabilities. It can be worked in theory but may be too in the form of unnecessary requests for http at all possibly the embedded operation will be in the form of wire requests.

Install as a plug-in for your server and then log in via the rest of this plugin plugin.

See:


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -