From 0673c57ecf42a43cda9789cc9a649fd26e311770 Mon Sep 17 00:00:00 2001 From: David Smiley Date: Mon, 9 Oct 2017 22:24:06 -0400 Subject: [PATCH] LUCENE-7951: add back Geo3dShape.toString --- .../java/org/apache/lucene/spatial/spatial4j/Geo3dShape.java | 5 +++++ 1 file changed, 5 insertions(+) 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 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))