[Imports] Adding pcodes to villages in Liberia, Sierra Leone and Guinea

Andrew Buck andrew.r.buck at gmail.com
Thu Sep 25 19:39:22 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, so just one additional detail... it sounds like there is no major
objection to doing this so once the specific tag to use is decided on
for sure and documented we are ready to go, but the person who I
thought could write the script to merge them has fallen through.

I would therefore need someone to write up the script to do this, I
can try looking into it myself but have no experience coding such a
thing so if there is anyone who can do this that would be a lot
faster, better, and safer.

Basically, the script just needs to take the CSV file, read through it
and make a request to download all of the objects listed from the OSM
api, then check each object to make sure the version number is still
the same as it is in the CSV file, and if so make a .osc entry to bump
the version number of the object and add the pcode tag.

For objects where the version does not match up, you can either just
spit out the csv line appended to an 'output.csv' file which contains
all the objects that need to be manually looked at since they have
changed since the original export took place (I don't expect there to
be that many of these but we should handle them properly).

If someone could help out with this it would be much appreciated.  I
think it would take me longer to learn how to write this up myself,
than it would for someone with the proper knowhow to write it
themselves.  If you are interested, let me know and I can mail you a
copy of the csv file, I think it is bigger than the mailing list would
like for an attachment.

- -AndrewBuck
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJUJG9iAAoJEK7RwIfxHSXbvwEQAKXf78e7hmz7NRbsymMi5Ilr
193X8B1n58QNbDX8/gcVWFfwUNxhJB0ARdP6Ze+4yRktUigB7QkS7v24DzSIGbnj
BEsC3u5qgS4AI7UlfxZ2B1SC7NfG94VlRrjr00D+IB2KVPvdkfN5z+u8ii2fIa6S
EC/mJVsVphGaAGvH5nQK5gk5MrzZgR6eXKSvtZ8sXiRI/Iv3anejL6LQYXNSv1pf
d46wFrrW1GEYGWB3gbRknPE9jNf95biy/utNmmxkdrT4DOz+J4xcPjbSDYym08La
lPU9/bMukA0fBk7fu6dONJ4Yk0jn9iseQrERt3+r6IfdqK6AKJDyM5WMPJxhn33q
8UBCSwfOeN5UhsFHfpw5aAzMNrX4TrRdEXACBqdiwG/310QGHWyzOyCQ+5W9z3RA
XSEcGQ8E0vtniAf0y1Qt3TV304tTJJhmy8uZsRZugSES84W4jDZReJjJv+dOBfez
xLnb+G3WWSDz37+R62W7UczJk1RdKa5BW4++Q9UKPdXOu5GeM4QtzS8B+H26NLgb
rsJ3yWQZZ0Tk7iYi72Yy6IIZwWM0a55ni4rBgKBy7cyW512DkBqYMgQKcJ2qXSSm
sckaQRMIKvBGjrOlAVUHDkn/W524ExH50Yztdg2exyUJXF0bB/xp2wfByfHQUk9Z
ul3Oy5Z7cedM4xv/ywSf
=kP6r
-----END PGP SIGNATURE-----



More information about the Imports mailing list