Changes between Version 150 and Version 151 of GIS/Data


Ignore:
Timestamp:
10/27/17 12:53:59 (5 years ago)
Author:
Fran Boon
Comment:

+CK, KI, SB, TO, TV, VU

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v150 v151  
    25062506}}}
    25072507
     2508=== Cook Islands ===
     2509Admin Boundaries:
     2510* [http://eden.sahanafoundation.org/downloads/CK_Lx.7z CK_Lx.7z]
     2511
     2512Source is [http://gadm.org GADM] with L1s (names only) added from Wikipedia.
     2513
     2514Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     2515{{{
     2516cd /home/web2py
     2517p7zip -d CK_Lx.7z
     2518python web2py.py -S eden -M
     2519
     2520auth.override = True
     2521stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     2522resource = s3db.resource("gis_location")
     2523filename = "CK_L0.csv"
     2524File = open(filename, "r")
     2525resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2526db.commit()
     2527filename = "CK_L1.csv"
     2528File = open(filename, "r")
     2529resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2530db.commit()
     2531gis.update_location_tree()
     2532db.commit()
     2533}}}
     2534
    25082535=== Fiji ===
    25092536Admin Boundaries:
     
    25352562import_file = "FJ_L3.csv"
    25362563File = open(import_file, "r")
     2564resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2565db.commit()
     2566gis.update_location_tree()
     2567db.commit()
     2568}}}
     2569
     2570=== Kiribati ===
     2571Admin Boundaries:
     2572* [http://eden.sahanafoundation.org/downloads/KI_Lx.7z KI_Lx.7z]
     2573
     2574Source is [http://gadm.org GADM] with L1s (names only) added from Wikipedia.
     2575
     2576Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     2577{{{
     2578cd /home/web2py
     2579p7zip -d KI_Lx.7z
     2580python web2py.py -S eden -M
     2581
     2582auth.override = True
     2583stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     2584resource = s3db.resource("gis_location")
     2585filename = "KI_L0.csv"
     2586File = open(filename, "r")
     2587resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2588db.commit()
     2589filename = "KI_L1.csv"
     2590File = open(filename, "r")
    25372591resource.import_xml(File, format="csv", stylesheet=stylesheet)
    25382592db.commit()
     
    26302684db.commit()
    26312685filename = "PG_L4.csv"
     2686File = open(filename, "r")
     2687resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2688db.commit()
     2689gis.update_location_tree()
     2690db.commit()
     2691}}}
     2692
     2693=== Solomon Islands ===
     2694Admin Boundaries:
     2695* [http://eden.sahanafoundation.org/downloads/SB_Lx.7z SB_Lx.7z]
     2696
     2697Source is [http://gadm.org GADM].
     2698
     2699Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     2700{{{
     2701cd /home/web2py
     2702p7zip -d SB_Lx.7z
     2703python web2py.py -S eden -M
     2704
     2705auth.override = True
     2706stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     2707resource = s3db.resource("gis_location")
     2708filename = "SB_L0.csv"
     2709File = open(filename, "r")
     2710resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2711db.commit()
     2712filename = "SB_L1.csv"
     2713File = open(filename, "r")
     2714resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2715db.commit()
     2716filename = "SB_L2.csv"
     2717File = open(filename, "r")
     2718resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2719db.commit()
     2720gis.update_location_tree()
     2721db.commit()
     2722}}}
     2723
     2724=== Tonga ===
     2725Admin Boundaries:
     2726* [http://eden.sahanafoundation.org/downloads/TO_Lx.7z TO_Lx.7z]
     2727
     2728Source is [http://gadm.org GADM] with L2s (names only) added from Wikipedia.
     2729
     2730Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     2731{{{
     2732cd /home/web2py
     2733p7zip -d TO_Lx.7z
     2734python web2py.py -S eden -M
     2735
     2736auth.override = True
     2737stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     2738resource = s3db.resource("gis_location")
     2739filename = "TO_L0.csv"
     2740File = open(filename, "r")
     2741resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2742db.commit()
     2743filename = "TO_L1.csv"
     2744File = open(filename, "r")
     2745resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2746db.commit()
     2747filename = "TO_L2.csv"
     2748File = open(filename, "r")
     2749resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2750db.commit()
     2751gis.update_location_tree()
     2752db.commit()
     2753}}}
     2754
     2755=== Tuvalu ===
     2756Admin Boundaries:
     2757* [http://eden.sahanafoundation.org/downloads/TV_Lx.7z TV_Lx.7z]
     2758
     2759Source is [http://gadm.org GADM].
     2760
     2761Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     2762{{{
     2763cd /home/web2py
     2764p7zip -d TV_Lx.7z
     2765python web2py.py -S eden -M
     2766
     2767auth.override = True
     2768stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     2769resource = s3db.resource("gis_location")
     2770filename = "TV_L0.csv"
     2771File = open(filename, "r")
     2772resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2773db.commit()
     2774filename = "TV_L1.csv"
     2775File = open(filename, "r")
     2776resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2777db.commit()
     2778gis.update_location_tree()
     2779db.commit()
     2780}}}
     2781
     2782=== Vanuatu ===
     2783Admin Boundaries:
     2784* [http://eden.sahanafoundation.org/downloads/VU_Lx.7z VU_Lx.7z]
     2785
     2786Source is [http://gadm.org GADM].
     2787
     2788Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     2789{{{
     2790cd /home/web2py
     2791p7zip -d VU_Lx.7z
     2792python web2py.py -S eden -M
     2793
     2794auth.override = True
     2795stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     2796resource = s3db.resource("gis_location")
     2797filename = "VU_L0.csv"
     2798File = open(filename, "r")
     2799resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2800db.commit()
     2801filename = "VU_L1.csv"
     2802File = open(filename, "r")
     2803resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2804db.commit()
     2805filename = "VU_L2.csv"
    26322806File = open(filename, "r")
    26332807resource.import_xml(File, format="csv", stylesheet=stylesheet)