空間型

Spring Data Neo4j は次の空間型をサポートします

サポートされている変換

  • Spring Data 共通の Point (データベース内の WGS 84-2D/SRID 4326 ポイントである必要があります )

  • GeographicPoint2d (WGS84 2D/SRID 4326)

  • GeographicPoint3d (WGS84 3D/SRID 4979)

  • CartesianPoint2d (デカルト 2D/SRID 7203)

  • CartesianPoint3d (デカルト 3D/SRID 9157)

派生ファインダーキーワード

ネイティブ 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)

org.springframework.data.geo.Polygon を使用することもできますが、BoundingBox#of を呼び出して 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)