From e034b04b065ca635553672d2b35c6b36578fd673 Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Tue, 12 Apr 2016 06:10:08 -0400 Subject: [PATCH] LUCENE-7189: improve geo debugging technology --- .../org/apache/lucene/geo/EarthDebugger.java | 43 ++++++---- .../lucene/index/PointsStackTracker.java | 79 +++++++++++++++++++ 2 files changed, 108 insertions(+), 14 deletions(-) create mode 100644 lucene/test-framework/src/java/org/apache/lucene/index/PointsStackTracker.java diff --git a/lucene/test-framework/src/java/org/apache/lucene/geo/EarthDebugger.java b/lucene/test-framework/src/java/org/apache/lucene/geo/EarthDebugger.java index 6c06c94a084..56dde88cd58 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/geo/EarthDebugger.java +++ b/lucene/test-framework/src/java/org/apache/lucene/geo/EarthDebugger.java @@ -17,8 +17,6 @@ package org.apache.lucene.geo; * limitations under the License. */ -import org.apache.lucene.geo.Polygon; -import org.apache.lucene.geo.Rectangle; import org.apache.lucene.util.SloppyMath; /** Draws shapes on the earth surface and renders using the very cool http://www.webglearth.org. @@ -40,6 +38,16 @@ public class EarthDebugger { b.append(" var earth = new WE.map('earth_div');\n"); } + public EarthDebugger(double centerLat, double centerLon, double altitudeMeters) { + b.append("\n"); + b.append("\n"); + b.append(" \n"); + b.append(" \n"); + b.append("