From 61d2ad1eb3a7036a4850ff28cfa4c5bc6c68cf6c Mon Sep 17 00:00:00 2001 From: Grant Ingersoll Date: Wed, 31 Mar 2010 20:02:29 +0000 Subject: [PATCH] added some comments git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@929704 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/spatial/tier/CartesianPolyFilterBuilder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lucene/contrib/spatial/src/java/org/apache/lucene/spatial/tier/CartesianPolyFilterBuilder.java b/lucene/contrib/spatial/src/java/org/apache/lucene/spatial/tier/CartesianPolyFilterBuilder.java index f58dccc8e89..a12c049798a 100644 --- a/lucene/contrib/spatial/src/java/org/apache/lucene/spatial/tier/CartesianPolyFilterBuilder.java +++ b/lucene/contrib/spatial/src/java/org/apache/lucene/spatial/tier/CartesianPolyFilterBuilder.java @@ -72,6 +72,9 @@ public class CartesianPolyFilterBuilder { double longY = ur.getLng(); double longX = ll.getLng(); double longX2 = 0.0; + //These two if checks setup us up to deal with issues around the prime meridian and the 180th meridian + //In these two cases, we need to get tiles (tiers) from the lower left up to the meridian and then + //from the meridan to the upper right //Are we crossing the 180 deg. longitude, if so, we need to do some special things if (ur.getLng() < 0.0 && ll.getLng() > 0.0) { longX2 = ll.getLng();