Piccolo errore mio, avevo lavorato su un dump locale e non sull'italy,
in quanto non avevo una connessione decente. Il parser aveva un errore
negli apici usati all'interno dell'italy.osm, questo dovrebbe
funzionare:
--------------------------------------------
#!/usr/bin/env python
# -*- coding: utf-8 -*-
f = open("italy.osm", "r")
users = {}
for line in f:
start = line.find('uid="')
if start != -1:
end = line.find('"',start+5)
uid = line[start+5:end]
start = line.find('user="')
end = line.find('"',start+6)
users[uid] = line[start+6:end]
print line[start+6:end] + " " + uid
--------------------------------------------
Questo รจ lo status risultante con il dump di oggi e l'elenco di utenti
appena scaricato:
Users who have agreed: 4143
Users who have edited in Italy : 5349
Users who have agreed at registration in Italy : 894
Users in Italy who have explicitly agreed: 791 (14.79%)
Users in Italy who have agreed: 1685 (31.50%)
Objects whose owner agreed: 22560797 (91.98%)
Objects whose owner DID NOT agree: 1953893 (7.97%)
scusa ancora per l'errore.
_______________________________________________
Talk-it mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk-it