| 153 | === Kazakhstan === |
| 154 | Admin Boundaries: |
| 155 | * [http://eden.sahanafoundation.org/downloads/KZ_Lx.7z KZ_Lx.7z] |
| 156 | |
| 157 | These have come originally from [http://gadm.org GADM] with Kazakh & Russian names added from Wikipedia. |
| 158 | |
| 159 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 160 | {{{ |
| 161 | cd /home/web2py |
| 162 | p7zip -d KG_Lx.7z |
| 163 | python web2py.py -S eden -M |
| 164 | |
| 165 | auth.override = True |
| 166 | settings.L10n.languages["kk"] = "Kazakh" |
| 167 | settings.L10n.languages["ru"] = "Russian" |
| 168 | resource = s3db.resource("gis_location") |
| 169 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 170 | import_file = "KZ_L0.csv" |
| 171 | File = open(import_file, "r") |
| 172 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 173 | db.commit() |
| 174 | gis.update_location_tree() |
| 175 | db.commit() |
| 176 | }}} |
| 177 | |