| 760 | === Ukraine === |
| 761 | Admin Boundaries: |
| 762 | * [http://eden.sahanafoundation.org/downloads/UA_Lx.7z UA_Lx.7z] |
| 763 | |
| 764 | These have come originally from [http://gadm.org GADM] with Ukrainian names added from Wikipedia. |
| 765 | |
| 766 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 767 | {{{ |
| 768 | cd /home/web2py |
| 769 | p7zip -d UA_Lx.7z |
| 770 | python web2py.py -S eden -M |
| 771 | |
| 772 | auth.override = True |
| 773 | languages = s3.l10n_languages |
| 774 | languages["uk"] = "Ukrainian" |
| 775 | resource = s3db.resource("gis_location") |
| 776 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 777 | import_file = "UA_L0.csv" |
| 778 | File = open(import_file, "r") |
| 779 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 780 | db.commit() |
| 781 | import_file = "UA_L1.csv" |
| 782 | File = open(import_file, "r") |
| 783 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 784 | db.commit() |
| 785 | import_file = "UA_L2.csv" |
| 786 | File = open(import_file, "r") |
| 787 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 788 | db.commit() |
| 789 | gis.update_location_tree() |
| 790 | db.commit() |
| 791 | }}} |
| 792 | |