| 11 | |
| 12 | == Africa == |
| 13 | |
| 14 | === Guinea === |
| 15 | Admin Boundaries: |
| 16 | * [http://eden.sahanafoundation.org/downloads/GN_Lx.7z GN_Lx.7z] |
| 17 | |
| 18 | These have come originally from [http://gadm.org GADM] with PCodes added from OCHA. Conarky spelt correctly as Conakry. |
| 19 | |
| 20 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 21 | {{{ |
| 22 | cd /home/web2py |
| 23 | p7zip -d GN_Lx.7z |
| 24 | python web2py.py -S eden -M |
| 25 | |
| 26 | auth.override = True |
| 27 | languages = s3.l10n_languages |
| 28 | languages["fr"] = "French" |
| 29 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 30 | resource = s3db.resource("gis_location") |
| 31 | filename = "GN_L0.csv" |
| 32 | File = open(filename, "r") |
| 33 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 34 | db.commit() |
| 35 | filename = "GN_L1.csv" |
| 36 | File = open(filename, "r") |
| 37 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 38 | db.commit() |
| 39 | filename = "GN_L2.csv" |
| 40 | File = open(filename, "r") |
| 41 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 42 | db.commit() |
| 43 | filename = "GN_L3.csv" |
| 44 | File = open(filename, "r") |
| 45 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 46 | db.commit() |
| 47 | gis.update_location_tree() |
| 48 | db.commit() |
| 49 | }}} |