| | 171 | == Middle East == |
| | 172 | === Jordan === |
| | 173 | Admin Boundaries: |
| | 174 | * [http://eden.sahanafoundation.org/downloads/JO_Lx.7z JO_Lx.7z] |
| | 175 | |
| | 176 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| | 177 | {{{ |
| | 178 | cd /home/web2py |
| | 179 | p7zip -d JO_Lx.7z |
| | 180 | python web2py.py -S eden -M |
| | 181 | |
| | 182 | auth.override = True |
| | 183 | settings.L10n.languages["ar"] = "Arabic" |
| | 184 | resource = s3db.resource("gis_location") |
| | 185 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| | 186 | import_file = "JO_L0.csv" |
| | 187 | File = open(import_file, "r") |
| | 188 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 189 | db.commit() |
| | 190 | import_file = "JO_L1.csv" |
| | 191 | File = open(import_file, "r") |
| | 192 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 193 | db.commit() |
| | 194 | import_file = "JO_L2.csv" |
| | 195 | File = open(import_file, "r") |
| | 196 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 197 | db.commit() |
| | 198 | import_file = "JO_L3.csv" |
| | 199 | File = open(import_file, "r") |
| | 200 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 201 | db.commit() |
| | 202 | import_file = "JO_Zaatari.csv" |
| | 203 | File = open(import_file, "r") |
| | 204 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 205 | db.commit() |
| | 206 | gis.update_location_tree() |
| | 207 | db.commit() |
| | 208 | }}} |
| | 209 | |
| | 210 | === Lebanon === |
| | 211 | Admin Boundaries: |
| | 212 | * [http://eden.sahanafoundation.org/downloads/LB_Lx.7z LB_Lx.7z] |
| | 213 | |
| | 214 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| | 215 | {{{ |
| | 216 | cd /home/web2py |
| | 217 | p7zip -d LB_Lx.7z |
| | 218 | python web2py.py -S eden -M |
| | 219 | |
| | 220 | auth.override = True |
| | 221 | settings.L10n.languages["ar"] = "Arabic" |
| | 222 | resource = s3db.resource("gis_location") |
| | 223 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| | 224 | import_file = "LB_L0.csv" |
| | 225 | File = open(import_file, "r") |
| | 226 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 227 | db.commit() |
| | 228 | import_file = "LB_L1.csv" |
| | 229 | File = open(import_file, "r") |
| | 230 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 231 | db.commit() |
| | 232 | import_file = "LB_L2.csv" |
| | 233 | File = open(import_file, "r") |
| | 234 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 235 | db.commit() |
| | 236 | import_file = "LB_L3.csv" |
| | 237 | File = open(import_file, "r") |
| | 238 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 239 | db.commit() |
| | 240 | import_file = "LB_Wadi_Khaled.csv" |
| | 241 | File = open(import_file, "r") |
| | 242 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 243 | db.commit() |
| | 244 | gis.update_location_tree() |
| | 245 | db.commit() |
| | 246 | }}} |
| | 247 | |
| | 248 | === Syria === |
| | 249 | Admin Boundaries: |
| | 250 | * [http://eden.sahanafoundation.org/downloads/SY_Lx.7z SY_Lx.7z] |
| | 251 | |
| | 252 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| | 253 | {{{ |
| | 254 | cd /home/web2py |
| | 255 | p7zip -d SY_Lx.7z |
| | 256 | python web2py.py -S eden -M |
| | 257 | |
| | 258 | auth.override = True |
| | 259 | settings.L10n.languages["ar"] = "Arabic" |
| | 260 | resource = s3db.resource("gis_location") |
| | 261 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| | 262 | import_file = "SY_L0.csv" |
| | 263 | File = open(import_file, "r") |
| | 264 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 265 | db.commit() |
| | 266 | import_file = "SY_L1.csv" |
| | 267 | File = open(import_file, "r") |
| | 268 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 269 | db.commit() |
| | 270 | import_file = "SY_L2.csv" |
| | 271 | File = open(import_file, "r") |
| | 272 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 273 | db.commit() |
| | 274 | import_file = "SY_L3.csv" |
| | 275 | File = open(import_file, "r") |
| | 276 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 277 | db.commit() |
| | 278 | gis.update_location_tree() |
| | 279 | db.commit() |
| | 280 | }}} |