| 110 | === Kyrgyzstan === |
| 111 | Admin Boundaries: |
| 112 | * [http://eden.sahanafoundation.org/downloads/KG_Lx.7z KG_Lx.7z] |
| 113 | |
| 114 | These have come originally from [https://cod.humanitarianresponse.info COD] |
| 115 | |
| 116 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 117 | {{{ |
| 118 | cd /home/web2py |
| 119 | p7zip -d KG_Lx.7z |
| 120 | python web2py.py -S eden -M |
| 121 | |
| 122 | auth.override = True |
| 123 | settings.L10n.languages["ky"] = "Kyrgyz" |
| 124 | settings.L10n.languages["ru"] = "Russian" |
| 125 | resource = s3db.resource("gis_location") |
| 126 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 127 | import_file = "KG_L0.csv" |
| 128 | File = open(import_file, "r") |
| 129 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 130 | db.commit() |
| 131 | import_file = "KG_L1.csv" |
| 132 | File = open(import_file, "r") |
| 133 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 134 | db.commit() |
| 135 | import_file = "KG_L2.csv" |
| 136 | File = open(import_file, "r") |
| 137 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 138 | db.commit() |
| 139 | gis.update_location_tree() |
| 140 | db.commit() |
| 141 | }}} |