131 | | File = open(import_file, "r") |
132 | | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
133 | | db.commit() |
134 | | gis.update_location_tree() |
135 | | db.commit() |
136 | | }}} |
137 | | |
138 | | === Georgia === |
139 | | Admin Boundaries: |
140 | | * [http://eden.sahanafoundation.org/downloads/GE_Lx.7z GE_Lx.7z] |
141 | | |
142 | | These have come originally from [http://gadm.org GADM] with Georgian & Russian names added from Wikipedia. |
143 | | |
144 | | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
145 | | {{{ |
146 | | cd /home/web2py |
147 | | p7zip -d GE_Lx.7z |
148 | | python web2py.py -S eden -M |
149 | | |
150 | | auth.override = True |
151 | | settings.L10n.languages["ka"] = "Georgian" |
152 | | settings.L10n.languages["ru"] = "Russian" |
153 | | resource = s3db.resource("gis_location") |
154 | | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
155 | | import_file = "GE_L0.csv" |
| 610 | === Bosnia and Herzegovina === |
| 611 | Admin Boundaries: |
| 612 | * [http://eden.sahanafoundation.org/downloads/BA_Lx.7z BA_Lx.7z] |
| 613 | |
| 614 | These have come originally from [http://gadm.org GADM] with Bosnian, Croatian & Serbian names added from Wikipedia. |
| 615 | |
| 616 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 617 | {{{ |
| 618 | cd /home/web2py |
| 619 | p7zip -d BA_Lx.7z |
| 620 | python web2py.py -S eden -M |
| 621 | |
| 622 | auth.override = True |
| 623 | settings.L10n.languages["bs"] = "Bosnian" |
| 624 | settings.L10n.languages["hr"] = "Croatian" |
| 625 | settings.L10n.languages["rs"] = "Serbian" |
| 626 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 627 | resource = s3db.resource("gis_location") |
| 628 | filename = "BA_L0.csv" |
| 629 | File = open(filename, "r") |
| 630 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 631 | db.commit() |
| 632 | filename = "BA_L1.csv" |
| 633 | File = open(filename, "r") |
| 634 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 635 | db.commit() |
| 636 | filename = "BA_L2.csv" |
| 637 | File = open(filename, "r") |
| 638 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 639 | db.commit() |
| 640 | filename = "BA_L3.csv" |
| 641 | File = open(filename, "r") |
| 642 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 643 | db.commit() |
| 644 | gis.update_location_tree() |
| 645 | db.commit() |
| 646 | }}} |
| 647 | |
| 648 | === Georgia === |
| 649 | Admin Boundaries: |
| 650 | * [http://eden.sahanafoundation.org/downloads/GE_Lx.7z GE_Lx.7z] |
| 651 | |
| 652 | These have come originally from [http://gadm.org GADM] with Georgian & Russian names added from Wikipedia. |
| 653 | |
| 654 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 655 | {{{ |
| 656 | cd /home/web2py |
| 657 | p7zip -d GE_Lx.7z |
| 658 | python web2py.py -S eden -M |
| 659 | |
| 660 | auth.override = True |
| 661 | settings.L10n.languages["ka"] = "Georgian" |
| 662 | settings.L10n.languages["ru"] = "Russian" |
| 663 | resource = s3db.resource("gis_location") |
| 664 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 665 | import_file = "GE_L0.csv" |
| 666 | File = open(import_file, "r") |
| 667 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 668 | db.commit() |
| 669 | gis.update_location_tree() |
| 670 | db.commit() |
| 671 | }}} |
| 672 | |