| 50 | === Armenia === |
| 51 | Admin Boundaries: |
| 52 | * [http://eden.sahanafoundation.org/downloads/AM_Lx.7z AM_Lx.7z] |
| 53 | |
| 54 | These have come originally from [http://gadm.org GADM] with Armenian & Russian names added from Wikipedia. |
| 55 | |
| 56 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 57 | {{{ |
| 58 | cd /home/web2py |
| 59 | p7zip -d AM_Lx.7z |
| 60 | python web2py.py -S eden -M |
| 61 | |
| 62 | auth.override = True |
| 63 | settings.L10n.languages["hy"] = "Armenian" |
| 64 | settings.L10n.languages["ru"] = "Russian" |
| 65 | resource = s3db.resource("gis_location") |
| 66 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 67 | import_file = "AM_L0.csv" |
| 68 | File = open(import_file, "r") |
| 69 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 70 | db.commit() |
| 71 | gis.update_location_tree() |
| 72 | db.commit() |
| 73 | }}} |
| 74 | |
| 75 | === Azerbaijan === |
| 76 | Admin Boundaries: |
| 77 | * [http://eden.sahanafoundation.org/downloads/AZ_Lx.7z AZ_Lx.7z] |
| 78 | |
| 79 | These have come originally from [http://gadm.org GADM] with Azerbaijani & Russian names added from Wikipedia. |
| 80 | |
| 81 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 82 | {{{ |
| 83 | cd /home/web2py |
| 84 | p7zip -d AZ_Lx.7z |
| 85 | python web2py.py -S eden -M |
| 86 | |
| 87 | auth.override = True |
| 88 | settings.L10n.languages["az"] = "Azerbaijani" |
| 89 | settings.L10n.languages["ru"] = "Russian" |
| 90 | resource = s3db.resource("gis_location") |
| 91 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 92 | import_file = "AZ_L0.csv" |
| 93 | File = open(import_file, "r") |
| 94 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 95 | db.commit() |
| 96 | gis.update_location_tree() |
| 97 | db.commit() |
| 98 | }}} |
| 99 | |
| 137 | === Georgia === |
| 138 | Admin Boundaries: |
| 139 | * [http://eden.sahanafoundation.org/downloads/GE_Lx.7z GE_Lx.7z] |
| 140 | |
| 141 | These have come originally from [http://gadm.org GADM] with Georgian & Russian names added from Wikipedia. |
| 142 | |
| 143 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 144 | {{{ |
| 145 | cd /home/web2py |
| 146 | p7zip -d GE_Lx.7z |
| 147 | python web2py.py -S eden -M |
| 148 | |
| 149 | auth.override = True |
| 150 | settings.L10n.languages["ka"] = "Georgian" |
| 151 | settings.L10n.languages["ru"] = "Russian" |
| 152 | resource = s3db.resource("gis_location") |
| 153 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 154 | import_file = "GE_L0.csv" |
| 155 | File = open(import_file, "r") |
| 156 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 157 | db.commit() |
| 158 | gis.update_location_tree() |
| 159 | db.commit() |
| 160 | }}} |
| 161 | |
| 447 | === Tajikistan === |
| 448 | Admin Boundaries: |
| 449 | * [http://eden.sahanafoundation.org/downloads/TJ_Lx.7z TJ_Lx.7z] |
| 450 | |
| 451 | These have come originally from [http://gadm.org GADM] with Tajik & Russian names added from Wikipedia. |
| 452 | |
| 453 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 454 | {{{ |
| 455 | cd /home/web2py |
| 456 | p7zip -d TJ_Lx.7z |
| 457 | python web2py.py -S eden -M |
| 458 | |
| 459 | auth.override = True |
| 460 | settings.L10n.languages["tg"] = "Tajik" |
| 461 | settings.L10n.languages["ru"] = "Russian" |
| 462 | resource = s3db.resource("gis_location") |
| 463 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 464 | import_file = "TJ_L0.csv" |
| 465 | File = open(import_file, "r") |
| 466 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 467 | db.commit() |
| 468 | gis.update_location_tree() |
| 469 | db.commit() |
| 470 | }}} |
| 471 | |
| 496 | File = open(import_file, "r") |
| 497 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 498 | db.commit() |
| 499 | gis.update_location_tree() |
| 500 | db.commit() |
| 501 | }}} |
| 502 | |
| 503 | === Turkmenistan === |
| 504 | Admin Boundaries: |
| 505 | * [http://eden.sahanafoundation.org/downloads/TM_Lx.7z TM_Lx.7z] |
| 506 | |
| 507 | These have come originally from [http://gadm.org GADM] with Turkmen & Russian names added from Wikipedia. |
| 508 | |
| 509 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 510 | {{{ |
| 511 | cd /home/web2py |
| 512 | p7zip -d TM_Lx.7z |
| 513 | python web2py.py -S eden -M |
| 514 | |
| 515 | auth.override = True |
| 516 | settings.L10n.languages["tk"] = "Turkmen" |
| 517 | settings.L10n.languages["ru"] = "Russian" |
| 518 | resource = s3db.resource("gis_location") |
| 519 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 520 | import_file = "TM_L0.csv" |
| 521 | File = open(import_file, "r") |
| 522 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 523 | db.commit() |
| 524 | gis.update_location_tree() |
| 525 | db.commit() |
| 526 | }}} |
| 527 | |
| 528 | === Uzbekistan === |
| 529 | Admin Boundaries: |
| 530 | * [http://eden.sahanafoundation.org/downloads/UZ_Lx.7z UZ_Lx.7z] |
| 531 | |
| 532 | These have come originally from [http://gadm.org GADM] with Uzbek & Russian names added from Wikipedia. |
| 533 | |
| 534 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 535 | {{{ |
| 536 | cd /home/web2py |
| 537 | p7zip -d UZ_Lx.7z |
| 538 | python web2py.py -S eden -M |
| 539 | |
| 540 | auth.override = True |
| 541 | settings.L10n.languages["uz"] = "Uzbek" |
| 542 | settings.L10n.languages["ru"] = "Russian" |
| 543 | resource = s3db.resource("gis_location") |
| 544 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 545 | import_file = "UZ_L0.csv" |