spatial icon indicating copy to clipboard operation
spatial copied to clipboard

Comparable operation to ST_LINE_LOCATE_POINT and other

Open RobertBierbauer opened this issue 9 years ago • 4 comments

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.

RobertBierbauer avatar Sep 08 '15 14:09 RobertBierbauer

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 avatar May 19 '16 14:05 ehx-v1

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

ehx-v1 avatar May 19 '16 14:05 ehx-v1

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

ehx-v1 avatar May 19 '16 14:05 ehx-v1

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.

craigtaverner avatar May 19 '16 18:05 craigtaverner