lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <>
Subject [jira] [Commented] (LUCENE-6196) Include geo3d package, along with Lucene integration to make it useful
Date Sun, 12 Apr 2015 21:03:12 GMT


Martin Desruisseaux commented on LUCENE-6196:

I had a quick look at the new classes. I would like to mention one possibility in case it
may be of interest. I saw various classes related to a latitude/longitude bounding box. If
a dependency toward the GeoAPI interfaces is considered acceptable (GeoAPI is a translation
of some international standards into Java interfaces, and is [published by the Open Geospatial
Consortium|]), then those classes could implement
the [Envelope interface|].
The {{getCoordinateReferenceSystem()}} method could return {{null}} for now, but this would
keep the door open for connecting the Geo3D bounding box to a map reprojection engine in a
future version if desired. For example if a future Geo3D version returns a non-null value,
then the Apache SIS [reprojection method|]
could work directly with those Geo3D classes. If a GeoAPI dependency is considered not desirable
at this time, just checking that there is no incompatibility between the Geo3D classes and
{{Envelope}} API may help to keep the door open.

By the way, the Geo3D documentation said that it works with latitude/longitude in radians,
but I saw no mention of which geographic system (there is many, with differences up to 3 kilometres
between them - ignoring those who do not use Greenwich as their prime meridian). This is the
kind of information which is normally provided by {{Envelope.getCoordinateReferenceSystem()}},
but otherwise just a note in the documentation may help. I presume that Geo3D implies the
WGS84 system?

> Include geo3d package, along with Lucene integration to make it useful
> ----------------------------------------------------------------------
>                 Key: LUCENE-6196
>                 URL:
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: modules/spatial
>            Reporter: Karl Wright
>            Assignee: David Smiley
>         Attachments: LUCENE-6196_Geo3d.patch,,,
> I would like to explore contributing a geo3d package to Lucene.  This can be used in
conjunction with Lucene search, both for generating geohashes (via spatial4j) for complex
geographic shapes, as well as limiting results resulting from those queries to those results
within the exact shape in highly performant ways.
> The package uses 3d planar geometry to do its magic, which basically limits computation
necessary to determine membership (once a shape has been initialized, of course) to only multiplications
and additions, which makes it feasible to construct a performant BoostSource-based filter
for geographic shapes.  The math is somewhat more involved when generating geohashes, but
is still more than fast enough to do a good job.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message