| | 1065 | === Christmas Island === |
| | 1066 | Admin Boundaries: |
| | 1067 | * [http://eden.sahanafoundation.org/downloads/CX_Lx.7z CX_Lx.7z] |
| | 1068 | |
| | 1069 | These have come originally from [http://gadm.org GADM]. |
| | 1070 | |
| | 1071 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| | 1072 | {{{ |
| | 1073 | cd /home/web2py |
| | 1074 | p7zip -d CX_Lx.7z |
| | 1075 | python web2py.py -S eden -M |
| | 1076 | |
| | 1077 | auth.override = True |
| | 1078 | resource = s3db.resource("gis_location") |
| | 1079 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| | 1080 | import_file = "CX_L0.csv" |
| | 1081 | File = open(import_file, "r") |
| | 1082 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 1083 | db.commit() |
| | 1084 | gis.update_location_tree() |
| | 1085 | db.commit() |
| | 1086 | }}} |
| | 1087 | |
| | 1088 | === Micronesia === |
| | 1089 | Admin Boundaries: |
| | 1090 | * [http://eden.sahanafoundation.org/downloads/FM_Lx.7z FM_Lx.7z] |
| | 1091 | |
| | 1092 | These have come originally from [http://gadm.org GADM]. |
| | 1093 | |
| | 1094 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| | 1095 | {{{ |
| | 1096 | cd /home/web2py |
| | 1097 | p7zip -d FM_Lx.7z |
| | 1098 | python web2py.py -S eden -M |
| | 1099 | |
| | 1100 | auth.override = True |
| | 1101 | resource = s3db.resource("gis_location") |
| | 1102 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| | 1103 | import_file = "FM_L0.csv" |
| | 1104 | File = open(import_file, "r") |
| | 1105 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 1106 | db.commit() |
| | 1107 | gis.update_location_tree() |
| | 1108 | db.commit() |
| | 1109 | }}} |
| | 1110 | |