[Talk-it] cambio licenza - mappa colorata

Fabio Alessandro Locati fabiolocati at gmail.com
Tue Nov 16 15:17:52 GMT 2010


Adesso funziona, grazie mille :)
Però le statistiche mi sembrano sbagliate... a me danno un 10% in più
di dati di utenti che non hanno ancora accettato... sei sicuro di
avere gli if int(uid) > ... giusti? Io con il codice che c'è nel repo
git, mi da questi valori: http://repo.grimp.eu/osm/ita_status ;)

PS: ita-initial.sh e ita-initial-new.sh ritornano esattamente lo
stesso risultato ;)

On Tue, Nov 16, 2010 at 3:59 PM, Francesco Vezzoli <vezzo85 at gmail.com> wrote:
> 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
> Talk-it at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk-it
>



-- 
Fabio Alessandro Locati

Home: Segrate, Milan, Italy (GMT +1)
Phone: +39-328-3799681
MSN/Jabber/E-Mail: fabiolocati at gmail.com

PGP Fingerprint: 5525 8555 213C 19EB 25F2  A047 2AD2 BE67 0F01 CA61

Involved in: KDE, OpenStreetMap, Ubuntu, Wikimedia



More information about the Talk-it mailing list