| 364 | File = open(import_file, "r") |
| 365 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 366 | db.commit() |
| 367 | gis.update_location_tree() |
| 368 | db.commit() |
| 369 | }}} |
| 370 | |
| 371 | === Maldives === |
| 372 | Admin Boundaries: |
| 373 | * [http://eden.sahanafoundation.org/downloads/MV_Lx.7z MV_Lx.7z] |
| 374 | |
| 375 | These have come originally from [http://gadm.org GADM] |
| 376 | |
| 377 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 378 | {{{ |
| 379 | cd /home/web2py |
| 380 | p7zip -d MV_Lx.7z |
| 381 | python web2py.py -S eden -M |
| 382 | |
| 383 | auth.override = True |
| 384 | resource = s3db.resource("gis_location") |
| 385 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 386 | import_file = "MV_L0.csv" |