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
777 stars 191 forks source link

Add Shortcut for `spatial.intersects` procedure #412

Closed Andy2003 closed 1 month ago

Andy2003 commented 1 month ago

Implemented a shortcut for the spatial.intersects procedure to improve performance.

The update bypasses the full geometry intersection check when the requested polygon is a rectangle (without hole) and the target geometry is entirely contained within the search window. This optimization reduces unnecessary computations, enhancing the efficiency of spatial intersection operations.

Test-Coverage:

No new test was added, since the relevant code was already covered by existing tests