Spatial types
Spring Data Neo4j 支持下列空间类型
Supported conversions
-
Spring Data 通用
Point(must 成为数据库中 WGS 84-2D/SRID 4326 点) -
GeographicPoint2d(WGS84 2D/SRID 4326) -
GeographicPoint3d(WGS84 3D/SRID 4979) -
CartesianPoint2d(Cartesian 2D/SRID 7203) -
CartesianPoint3d(Cartesian 3D/SRID 9157)
Derived finder keywords
如果你正在使用本机 Neo4j Java 驱动程序 org.neo4j.driver.types.Point 类型,可以在派生查找器方法中使用以下关键字和参数类型。
在某个区域内查询:
-
findBy[…]Within(org.springframework.data.geo.Circle circle) -
findBy[…]Within(org.springframework.data.geo.Box box) -
findBy[…]Within(org.springframework.data.neo4j.repository.query.BoundingBox boundingBox)
|
您还可以使用 |
在某个点附近查询:
-
findBy[…​]Near(org.neo4j.driver.types.Point point)- 以与给定点的升序距离对结果进行排序 -
findBy[…]Near(Point point, org.springframework.data.geo.Distance max) -
findBy[…]Near(Point point, org.springframework.data.domain.Range<Distance> between) -
findBy[…]Near(Range<Distance> between, Point p)