[Xapian-tickets] [Xapian] #481: Merge geospatial branch

Xapian nobody at xapian.org
Mon Jun 7 22:14:56 BST 2010

#481: Merge geospatial branch
 Reporter:  richard      |       Owner:  richard  
     Type:  enhancement  |      Status:  assigned 
 Priority:  normal       |   Milestone:  1.2.1    
Component:  Library API  |     Version:  SVN trunk
 Severity:  normal       |    Keywords:           
Blockedby:               |    Platform:  All      
 Blocking:               |  

Comment(by richard):

 I've changed {{{LatLongCoords}}} to use a vector internally, and preserve
 the order of coordinates in it.  This makes it possible to use one to
 represent an boundary, instead of just a set of points, so future metrics
 could do nearest distance between boundary lines, instead of points.

 Of course, for a metric to do a calculation like that would require making
 the {{{double LatLongMetric::operator()(const LatLongCoords & a, const
 LatLongCoords &b) const;}}} method virtual, which would then conflict with
 the {{{operator()}}} which takes {{{LatLongCoord}}} arguments, so one of
 these would need to be renamed.

Ticket URL: <http://trac.xapian.org/ticket/481#comment:9>
Xapian <http://xapian.org/>

More information about the Xapian-tickets mailing list