I made a few changes to util.update.php and trac'd them here.

http://partiallyordered.info/trac/browser/gis/osm2pgsql

* Add parameters index-rank-min and index-rank-max
* Stop processing sectors at any time
* Parameterize db host, port, name, username, and password
* Allow user to index geometry of a bounding box
* Dropped special case when index-instances is 1.  Now it will spawn a thread, 
even for 1 instance.  It simplifies the code
* Same thing for steps of a sector.  n==1 is a degenerate case of n > 1
* Each call to a thread processes a "step" instead of a sector (allows 
multithreading for city indexing).

And from what i gather, i removed two extra and undeeded calls to index a 
sector (lines 608 and 613) when index-instances > 1.

Feel free to merge upstream.

Brian

-- 
Brian DeRocher
http://brian.derocher.org

_______________________________________________
Geocoding mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/geocoding

Reply via email to