Skip to content

Apache Lucene open-source search software

LUCENE-7951: add back Geo3dShape.toString

David Smiley0673c57ecf42
diff --git a/lucene/spatial-extras/src/java/org/apache/lucene/spatial/spatial4j/Geo3dShape.java b/lucene/spatial-extras/src/java/org/apache/lucene/spatial/spatial4j/Geo3dShape.java
index bbe1f3a45d6..eedf7d6fc52 100644
--- a/lucene/spatial-extras/src/java/org/apache/lucene/spatial/spatial4j/Geo3dShape.java
+++ b/lucene/spatial-extras/src/java/org/apache/lucene/spatial/spatial4j/Geo3dShape.java
@@ -158,6 +158,11 @@ public class Geo3dShape<T extends GeoAreaShape> implements Shape {
return spatialcontext;
}
+ @Override
+ public String toString() {
+ return "Geo3D:" + shape.toString();
+ } // note: the shape usually prints its planet model
+
@Override
public boolean equals(Object o) {
if (!(o instanceof Geo3dShape<?>))