You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2015/07/28 22:30:04 UTC
[jira] [Commented] (LUCENE-6647) Add GeoHash String Utilities to
core GeoUtils
[ https://issues.apache.org/jira/browse/LUCENE-6647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14644997#comment-14644997 ]
Michael McCandless commented on LUCENE-6647:
--------------------------------------------
Thanks [~nknize], the geohash utilities and tests look good.
But I hit this test failure:
{noformat}
[junit4] Suite: org.apache.lucene.search.TestGeoPointQuery
[junit4] 2> NOTE: reproduce with: ant test -Dtestcase=TestGeoPointQuery -Dtests.method=testWholeMap -Dtests.seed=4949D67148502A2 -Dtests.locale=it -Dtests.timezone=Australia/Canberra -Dtests.asserts=true -Dtests.file.encoding=UTF-8
[junit4] FAILURE 1.79s J3 | TestGeoPointQuery.testWholeMap <<<
[junit4] > Throwable #1: java.lang.AssertionError: testWholeMap failed expected:<15> but was:<16>
[junit4] > at __randomizedtesting.SeedInfo.seed([4949D67148502A2:825F170DAFB39C04]:0)
[junit4] > at org.apache.lucene.search.TestGeoPointQuery.testWholeMap(TestGeoPointQuery.java:181)
[junit4] > at java.lang.Thread.run(Thread.java:745)
[junit4] IGNOR/A 0.02s J3 | TestGeoPointQuery.testRandomBig
[junit4] > Assumption #1: 'nightly' test group is disabled (@Nightly())
[junit4] 2> NOTE: test params are: codec=Asserting(Lucene53): {id=BlockTreeOrds(blocksize=128), geoField=Lucene50(blocksize=128)}, docValues:{id=DocValuesFormat(name=Lucene50)}, sim=RandomSimilarityProvider(queryNorm=false,coord=crazy): {}, locale=it, timezone=Australia/Canberra
[junit4] 2> NOTE: Linux 3.13.0-46-generic amd64/Oracle Corporation 1.8.0_40 (64-bit)/cpus=8,threads=1,free=310567944,total=451936256
[junit4] 2> NOTE: All tests run in this JVM: [TestSlowFuzzyQuery, TestDocValuesNumbersQuery, TestJakartaRegexpCapabilities, TestDocValuesTermsQuery, TestGeoPointQuery]
[junit4] Completed [14/15] on J3 in 3.40s, 12 tests, 1 failure, 1 skipped <<< FAILURES!
{noformat}
> Add GeoHash String Utilities to core GeoUtils
> ---------------------------------------------
>
> Key: LUCENE-6647
> URL: https://issues.apache.org/jira/browse/LUCENE-6647
> Project: Lucene - Core
> Issue Type: New Feature
> Reporter: Nicholas Knize
> Attachments: LUCENE-6647.patch, LUCENE-6647.patch
>
>
> GeoPointField uses morton encoding to efficiently pack lat/lon values into a single long. GeoHashing effectively does the same thing but uses base 32 encoding to represent this long value as a "human readable" string. Many user applications already use the string representation of the hash. This issue simply adds the base32 string representation of the already computed morton code.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org