[Xapian-discuss] Can xapian do geo search/calculations?

Olly Betts olly at survex.com
Mon Aug 4 09:45:49 BST 2008


On Mon, Aug 04, 2008 at 01:16:04AM -0700, Joe Noon wrote:
> I would be interested in exploring xapian further, but I'm not sure if
> I can get this functionality or not.  Ive been told it may be possible
> with a a value range processor? Is this something anyone else has
> already explored? Or know if it would even be possible?

You could filter with two value ranges to get results restricted to a
rectangle in the coordinate system (which is in general not quite a
rectangle on the ground).

To actually get a circle, you'd want to use a MatchDecider subclass
to select points based on coordinates stored in one or two document
values.  It would probably be useful to ship a standard solution, so if
you implement something please consider sending a patch, even if it
needs a bit of work for general use.

There's also some code Richard has been working on in the geospatial
branch in SVN, but he's better placed to talk about that:

http://trac.xapian.org/browser/branches/geospatial

Cheers,
    Olly



More information about the Xapian-discuss mailing list