Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5652C200BFA for ; Thu, 12 Jan 2017 22:30:14 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 55107160B40; Thu, 12 Jan 2017 21:30:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9EF4D160B29 for ; Thu, 12 Jan 2017 22:30:13 +0100 (CET) Received: (qmail 81001 invoked by uid 500); 12 Jan 2017 21:30:12 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 80970 invoked by uid 99); 12 Jan 2017 21:30:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2017 21:30:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6D1DE1A04B2 for ; Thu, 12 Jan 2017 21:30:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=fucit-org.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id sUgxjWfXf3Bs for ; Thu, 12 Jan 2017 21:30:09 +0000 (UTC) Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id F14C35F4AE for ; Thu, 12 Jan 2017 21:30:08 +0000 (UTC) Received: by mail-pf0-f178.google.com with SMTP id 189so18948150pfu.3 for ; Thu, 12 Jan 2017 13:30:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fucit-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:in-reply-to:message-id:references:user-agent :mime-version; bh=vmVsVQaUNZe4BnipiRtvcbWSzfMQcqe5XZnHXIthv5o=; b=Qg81pLgelFdd75I2gaNNWIoyR9NbHrZkUgO0qTyHvOvwiiudaxEWKtsSNPzst1beVe hwa4xXeFtBUXtl0ZpGSQEakVhljaFpzhIicYabPDm45PBlzD3FlU60gYgfpjokEQifqY S/bIPdvTKSPuBi3riT41zkSRQep89xPEUkadgfvcGRIUK72ErIzJMU8sVQFwaDLRaAgx 2BiBQefnFqT8IC/SJyhz3oBPRwE41ZsHKnhscQTdVSPhVNBriNzjFIXQM4fNMUg72Pge RVAvzVaJlSRVm36akStf+dEJ0qC/KHR21WCvRvMePXRcXDCDpz/645ayrcdWDOl9EytL We2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=vmVsVQaUNZe4BnipiRtvcbWSzfMQcqe5XZnHXIthv5o=; b=D5lrXra41t6ebyUqsP0AtpJnzEZ3Lzy9AYKKLK34dTl4hkykVmQuYvnSh8oS5zApE5 XETZYEoPy4PvyZiiEZuQSmt3ofldDN+8CUO5MeR01K5qKn9RYsh+0mXMSjAcCTtAdNuP Zrt2LnSu+xUo1lL5VZQdhNrSrI1NNMJLnZj8Z/CmKDn2dQqjuJ6+P6jbCMcOZXhH33s2 L2M0RqslQ6qQX1HN8vRmM5wMWrEM86dazfxgaNuemiEEERaNDTt1NcxmImLiVRGyZTA9 AprvBD7e5eZWOeKBx3VxLFY3SaRSY7YydqNP+LSfelMSAea2cZF6cp0b6JdnaZbfBVAG H7Zg== X-Gm-Message-State: AIkVDXKwfjMHVmCtrxJIOrcs8CmtMSTHdulJiIHo4oVF5Q3BPzu8yYZvdEseBqAjVKbPgQ== X-Received: by 10.99.248.17 with SMTP id n17mr19507685pgh.17.1484256605823; Thu, 12 Jan 2017 13:30:05 -0800 (PST) Received: from tray (c-73-24-177-166.hsd1.az.comcast.net. [73.24.177.166]) by smtp.gmail.com with ESMTPSA id g70sm19808667pfb.50.2017.01.12.13.30.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 13:30:04 -0800 (PST) Date: Thu, 12 Jan 2017 14:30:03 -0700 (MST) From: Chris Hostetter To: Lucene Users Mailing List Subject: Re: Where did earthDiameter go? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII archived-at: Thu, 12 Jan 2017 21:30:14 -0000 I don't konw the rhyme/reason but it looks like it was removed (w/o any deprecation first i guess) as part of LUCENE-7123 in commit: ce3114233bdc45e71a315cb6ece64475d2d6b1d4 in that commit, existing callers in the lucene code base were changed to use "2 * GeoProjectionUtils.SEMIMAJOR_AXIS" (once the jira outage is over you might find more info in the comments of that issue) : Date: Thu, 12 Jan 2017 12:00:31 +1100 : From: Trejkaz : Reply-To: java-user@lucene.apache.org : To: Lucene Users Mailing List : Subject: Where did earthDiameter go? : : Hi. : : I don't know why, but we have some kind of esoteric logic in our own : code to simplify a circle on the Earth to a bounding box, clearly : something to do with computing geo queries. : : double lonMin = -180.0, lonMax = 180.0; : if (!closeToPole(latMin, latMax)) { : double D = SloppyMath.earthDiameter(lat); : double d = D * Math.sin((90.0 - lat) * Math.PI / 180.0); // : diameter of a disk formed by parallel at latitude = lat : double kmPerLonDeg = Math.PI * d / 360.0; : double distanceInLonDeg = distanceKm / kmPerLonDeg; : lonMin = lon - distanceInLonDeg; : lonMax = lon + distanceInLonDeg; : } : : This SloppyMath.earthDiameter(latitude) method appears to be gone in : v6.3.0 but I don't see any mention of a replacement in the changelog. : Is there a replacement? Do I just slot in a constant and hope that : nobody notices? I mean, if the maths are supposed to be "sloppy"... :D : : TX : : --------------------------------------------------------------------- : To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org : For additional commands, e-mail: java-user-help@lucene.apache.org : : -Hoss http://www.lucidworks.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org