neo4j-contrib / spatial

Neo4j Spatial is a library of utilities for Neo4j that faciliates the enabling of spatial operations on data. In particular you can add spatial indexes to already located data, and perform spatial operations on the data like searching for data within specified regions or within a specified distance of a point of interest. In addition classes are provided to expose the data to geotools and thereby to geotools enabled applications like geoserver and uDig.
http://neo4j-contrib.github.io/spatial
Other
781 stars 192 forks source link

Comparable operation to ST_LINE_LOCATE_POINT and other #194

Open RobertBierbauer opened 9 years ago

RobertBierbauer commented 9 years ago

I am currently trying to compare a PostGIS database with a Neo4J-spatial database. So i was wondering if there are operations similar to ST_LINE_LOCATE_POINT, ST_X, ST_Y, ST_INTERSECTS and so on. I wrote my own implementations for cypher to address my problem, but this way I have to apply my changes to the neo4j-spatial library everytime I want to get the latest version. Therefore this is only a temporary solution.

ehx-v1 commented 8 years ago

All I know is that INTERSECTS and similar queries are there, see the manual linked in the readme. No idea about LINE_LOCATE_POINT, X or Y though...

ehx-v1 commented 8 years ago

I made a screenshot of the related part in the manual: queries

ehx-v1 commented 8 years ago

You can also launch the JTS queries via Cypher, and access Cypher via REST, as shown in these screenshots: restcypher1 restcypher2

craigtaverner commented 8 years ago

Using the Java API there is support for some additional things which might be more like what you are asking for. See https://github.com/neo4j-contrib/spatial/blob/master/src/main/java/org/neo4j/gis/spatial/SpatialTopologyUtils.java

We could expose these through the spatial procedures we're working on for neo4j 3.0.