Re: [Neo4j] remote Neo4j in OSGi?

2015-08-08 Thread Michael Hunger
I would probably use github.com/neo4j/neo4j-ogm you might have to bundle/repackage it for OSGi though. Michael > Am 03.08.2015 um 19:03 schrieb Max Spring : > > Thanks Michael. > Would you also have a pointer for an OSGi / Neo4j object mapper? > What I find out there about Spring Data Neo4j OSG

Re: [Neo4j] How to install neo4j on Debian?

2015-08-08 Thread Michael Hunger
Jonathan, I saw several things in your setup 1. Neo4j 1.9.x is outdated by at least two years afaik it was meant to run with Java 7 max only 2. you have to upgrade your store from 1.9 -> 2.0 -> 2.1 -> 2.2 (best by starting a : bin/neo4j-shell with -config neo4j.properties -path path/to/db wh

Re: [Neo4j] Neo4j Spatial: Strange caset exception while using startNearestNeighborLatLonSearch

2015-08-08 Thread Michael Hunger
The error means that it tries to decode a location / geometry using a binary decoder but that fails as the property is set to double instead. Michael > Am 09.08.2015 um 00:02 schrieb Alireza Rezaei Mahdiraji > : > > > Let me ask you a design kind of question: the nodes in my graph could have

Re: [Neo4j] Neo4j Spatial: Strange caset exception while using startNearestNeighborLatLonSearch

2015-08-08 Thread Alireza Rezaei Mahdiraji
Let me ask you a design kind of question: the nodes in my graph could have various geometry: point, line, or polygon. I used the following layer definition (but I am not sure that is the best way to do it)" EditableLayer runningLayer = (EditableLayer) graphDBSpatial.getOrCreat

Re: [Neo4j] Neo4j Spatial: Strange caset exception while using startNearestNeighborLatLonSearch

2015-08-08 Thread Alireza Rezaei Mahdiraji
I used Coordinate coord = new Coordinate(0.0d, 0.0d); as a test location which is required by startNearestNeighborLatLonSear (see my first post). Is that enough? Alireza On Saturday, August 8, 2015 at 11:48:24 PM UTC+2, Michael Hunger wrote: > > It seems you created the layer with a WKB (wel

Re: [Neo4j] Neo4j Spatial: Strange caset exception while using startNearestNeighborLatLonSearch

2015-08-08 Thread Michael Hunger
It seems you created the layer with a WKB (well known binary) representation config but now your location properties are not decodable as WKB because they are double's ? Michael Perhaps you can share a test that reproduces the issue? > Am 08.08.2015 um 23:26 schrieb Alireza Rezaei Mahdiraji

Re: [Neo4j] Neo4j Spatial: Strange caset exception while using startNearestNeighborLatLonSearch

2015-08-08 Thread Alireza Rezaei Mahdiraji
Here are the stacks for the two cases (very similar): Exception in thread "main" java.lang.ClassCastException: java.lang.Double cannot be cast to [B at org.neo4j.gis.spatial.WKBGeometryEncoder.decodeGeometry(WKBGeometryEncoder.java:41) at org.neo4j.gis.spatial.filter.SearchIntersectWin

Re: [Neo4j] Incoherent error message instead of permission denied

2015-08-08 Thread Michael Hunger
Jimmy, please raise a GitHub issue for a better error message (if you haven't already). Michael > Am 05.08.2015 um 16:49 schrieb Jimmy Delas : > > Hi > > I wanted to backup my neo4j database but missed to change user permissions to > the imported db so it was owned by another user than neo4j.

Re: [Neo4j] 'Match' cypher queries not filtering by label ':' syntax after batch insertion

2015-08-08 Thread Michael Hunger
Try to upgrade first (2.2.3 or 2.2.4 which should be out next week). If the issue persists please ping us again. > Am 07.08.2015 um 10:41 schrieb dcarba...@alto-analytics.com: > > Hi Michael, > > Thanks for your answer, > > The thing is that we build a new embedded neo4j db in a folder, we ex

Re: [Neo4j] Neo4j Spatial: Strange caset exception while using startNearestNeighborLatLonSearch

2015-08-08 Thread Michael Hunger
Can you provide the full stacktrace. Michael > Am 07.08.2015 um 13:19 schrieb Alireza Rezaei Mahdiraji > : > > > Hi, > > I get the following cast exception while using > startNearestNeighborLatLonSearch method: > > Exception in thread "main" java.lang.ClassCastException: java.lang.Double

Re: [Neo4j] Neo4j + Spatial using Cypher

2015-08-08 Thread Michael Hunger
Only nodes are supported to have a location, not relationships. What exactly do you want to do? Michael > Am 07.08.2015 um 17:07 schrieb William Queen : > > Hello, I began studying Neo4j in order to make a routing service, I then > learned about Spatial plugin, but I am having a lot of difficu

[Neo4j] Neo4j + Spatial using Cypher

2015-08-08 Thread William Queen
Hello, I began studying Neo4j in order to make a routing service, I then learned about Spatial plugin, but I am having a lot of difficulty to find examples on how to add points with latitude and longitude and weight to relationships. I often find code using REST api, but I wanted to use Cypher.