| 2450 | === Poland === |
| 2451 | Admin Boundaries: |
| 2452 | * [http://eden.sahanafoundation.org/downloads/PL_Lx.7z PL_Lx.7z] |
| 2453 | |
| 2454 | These have come originally from [http://gadm.org GADM]. |
| 2455 | |
| 2456 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 2457 | {{{ |
| 2458 | cd /home/web2py |
| 2459 | p7zip -d PL_Lx.7z |
| 2460 | python web2py.py -S eden -M |
| 2461 | |
| 2462 | auth.override = True |
| 2463 | languages = s3.l10n_languages |
| 2464 | languages["pl"] = "Polish" |
| 2465 | resource = s3db.resource("gis_location") |
| 2466 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 2467 | import_file = "PL_L0.csv" |
| 2468 | File = open(import_file, "r") |
| 2469 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 2470 | db.commit() |
| 2471 | import_file = "PL_L1.csv" |
| 2472 | File = open(import_file, "r") |
| 2473 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 2474 | db.commit() |
| 2475 | import_file = "PL_L2.csv" |
| 2476 | File = open(import_file, "r") |
| 2477 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 2478 | db.commit() |
| 2479 | import_file = "PL_L3.csv" |
| 2480 | File = open(import_file, "r") |
| 2481 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 2482 | db.commit() |
| 2483 | gis.update_location_tree() |
| 2484 | db.commit() |
| 2485 | }}} |
| 2486 | |