Am Thu, 30 Jun 2011 23:06:44 +0200 schrieb Sarah Hoffmann lonvia@denofr.de:
Hi,
On Sun, Jun 19, 2011 at 08:00:21PM +0200, Beni Buess wrote:
The Switzerland XAPI [1] Database is now 2 hours behind the planet.
Cool, how did you do it in the end? Do you reimport the complete file or do you update inside the DB?
like this:
osmosis --rri workingDirectory=. --simc --rp host="localhost" database="xapi" user="xapi" --dd --ac --bp file="switzerland.poly" - --rp host="localhost" database="xapi" user="xapi" --dd --dc --wpc host="localhost" database="xapi" user="xapi"
this is highly inefficient but working. it takes around 6 minutes to apply a diff. to explain it a bit: get the change file(s) - read the db - make a entity stream from dataset - apply the change - cut by polygon then read the db again - make entity stream - derive changeset - write changeset to db
Sarah, if you like, add a link to "XAPI Switzerland" to the taginfo.openstreetmap.ch key pages.
Done.
thanks. some data around the borders, like the two big lakes is missing in the current db.
Sarah _______________________________________________ talk-ch mailing list talk-ch@openstreetmap.ch http://lists.openstreetmap.ch/mailman/listinfo/talk-ch