diff --git a/bolt-native-types/src/main/java/org/neo4j/ogm/drivers/bolt/types/adapter/PointToBoltValueAdapter.java b/bolt-native-types/src/main/java/org/neo4j/ogm/drivers/bolt/types/adapter/PointToBoltValueAdapter.java index 2d3ca25f08..114adff4b0 100644 --- a/bolt-native-types/src/main/java/org/neo4j/ogm/drivers/bolt/types/adapter/PointToBoltValueAdapter.java +++ b/bolt-native-types/src/main/java/org/neo4j/ogm/drivers/bolt/types/adapter/PointToBoltValueAdapter.java @@ -45,7 +45,7 @@ public Point apply(AbstractPoint object) { } else if (object instanceof GeographicPoint3d) { GeographicPoint3d point = (GeographicPoint3d) object; value = Values.point(point.getSrid(), point.getLongitude(), point.getLatitude(), - point.getElevation()); + point.getHeight()); } else { throw new IllegalArgumentException("Unsupported point implementation: " + object.getClass()); } diff --git a/embedded-native-types/src/main/java/org/neo4j/ogm/drivers/embedded/types/adapter/PointToEmbeddedValueAdapter.java b/embedded-native-types/src/main/java/org/neo4j/ogm/drivers/embedded/types/adapter/PointToEmbeddedValueAdapter.java index 2e57514fba..1928f09125 100644 --- a/embedded-native-types/src/main/java/org/neo4j/ogm/drivers/embedded/types/adapter/PointToEmbeddedValueAdapter.java +++ b/embedded-native-types/src/main/java/org/neo4j/ogm/drivers/embedded/types/adapter/PointToEmbeddedValueAdapter.java @@ -44,7 +44,7 @@ public PointValue apply(AbstractPoint object) { } else if (object instanceof GeographicPoint3d) { GeographicPoint3d point = (GeographicPoint3d) object; return Values.pointValue(CoordinateReferenceSystem.WGS84_3D, point.getLongitude(), point.getLatitude(), - point.getElevation()); + point.getHeight()); } else { throw new IllegalArgumentException("Unsupported point implementation: " + object.getClass()); } diff --git a/embedded-native-types/src/test/java/org/neo4j/ogm/drivers/embedded/types/adapter/EmbeddedValueToPointAdapterTest.java b/embedded-native-types/src/test/java/org/neo4j/ogm/drivers/embedded/types/adapter/EmbeddedValueToPointAdapterTest.java index 82becb3580..6684077bfc 100644 --- a/embedded-native-types/src/test/java/org/neo4j/ogm/drivers/embedded/types/adapter/EmbeddedValueToPointAdapterTest.java +++ b/embedded-native-types/src/test/java/org/neo4j/ogm/drivers/embedded/types/adapter/EmbeddedValueToPointAdapterTest.java @@ -49,7 +49,7 @@ public void mappingShouldWork() { Assertions.assertThat(point.getSrid()).isEqualTo(4979); Assertions.assertThat(((GeographicPoint3d) point).getLatitude()).isEqualTo(20.0); Assertions.assertThat(((GeographicPoint3d) point).getLongitude()).isEqualTo(10.0); - Assertions.assertThat(((GeographicPoint3d) point).getElevation()).isEqualTo(30.0); + Assertions.assertThat(((GeographicPoint3d) point).getHeight()).isEqualTo(30.0); point = adapter.apply(Values.pointValue(CoordinateReferenceSystem.Cartesian_3D, 10.0, 20.0, 30)); Assertions.assertThat(point).isInstanceOf(CartesianPoint3d.class);