logo separator

[mkgmap-dev] patch Interface Locatable and Kd-tree

From Gerd Petermann gpetermann_muenchen at hotmail.com on Thu Mar 26 19:03:24 GMT 2015

Hi Steve,

I plan to use a KD tree in the house number  code. 
I noticed that the existing Kd-tree implementation in
MapPointKdTtree is only usable with MapPoint instances,
although it only uses the getLocation() method .

I think this should be replaced using general interface
Locatable() with method getLocation()
and and general Kd-Tree implementaion for classes that implement 
the Locatable interface. 
The attached patch shows what I mean.

What do you think about it?
Do you see better names or packages for this?

Gerd

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150326/5a1f93df/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kd-tree-v1.patch
Type: application/octet-stream
Size: 9573 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150326/5a1f93df/attachment.obj>


More information about the mkgmap-dev mailing list