[Geocoding] indexSector()
Brian DeRocher
brian at derocher.org
Sat Oct 1 22:22:42 BST 2011
Hey there,
I'm looking at indexSector() in util.update.php and trying to understand this stepping concept. It appears to me what is intended is if there are numerous places in a sector you break the sector up into a grid, say 3x3, 4x4, or 5x5, etc. Then run the update on placex for each cell.
There are two things that are curious to me.
(1) Why divide by 10? $fNumSteps = ceil(sqrt($iNum) / 10); I feel this is why i see "Step 12 of 9".
(2) The upper bound on the for loops are $fLat + 1 and $fLon + 1. That seems rather arbitrary. Is each sector by definition 1 degree by 1 degree?
thanks for your help,
Brian
--
Brian DeRocher
http://brian.derocher.org
More information about the Geocoding
mailing list