| 1021 | === Belgium === |
| 1022 | Admin Boundaries: |
| 1023 | * [http://eden.sahanafoundation.org/downloads/BE_Lx.7z BE_Lx.7z] |
| 1024 | |
| 1025 | These have come originally from [http://gadm.org GADM]. |
| 1026 | |
| 1027 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 1028 | {{{ |
| 1029 | cd /home/web2py |
| 1030 | p7zip -d BE_Lx.7z |
| 1031 | python web2py.py -S eden -M |
| 1032 | |
| 1033 | auth.override = True |
| 1034 | languages = s3.l10n_languages |
| 1035 | languages["fr"] = "French" |
| 1036 | languages["nl"] = "Dutch" |
| 1037 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 1038 | resource = s3db.resource("gis_location") |
| 1039 | filename = "BE_L0.csv" |
| 1040 | File = open(filename, "r") |
| 1041 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 1042 | db.commit() |
| 1043 | filename = "BE_L1.csv" |
| 1044 | File = open(filename, "r") |
| 1045 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 1046 | db.commit() |
| 1047 | filename = "BE_L2.csv" |
| 1048 | File = open(filename, "r") |
| 1049 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 1050 | db.commit() |
| 1051 | filename = "BE_L3.csv" |
| 1052 | File = open(filename, "r") |
| 1053 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 1054 | db.commit() |
| 1055 | filename = "BE_L4.csv" |
| 1056 | File = open(filename, "r") |
| 1057 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 1058 | db.commit() |
| 1059 | gis.update_location_tree() |
| 1060 | db.commit() |
| 1061 | }}} |
| 1062 | |