Changes between Version 161 and Version 162 of GIS/Data


Ignore:
Timestamp:
08/19/19 18:01:54 (2 years ago)
Author:
Fran Boon
Comment:

+YE

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v161 v162  
    27072707}}}
    27082708
     2709=== Yemen ===
     2710Admin Boundaries:
     2711* [http://eden.sahanafoundation.org/downloads/YE_Lx.7z YE_Lx.7z]
     2712
     2713These have come originally from [https://data.humdata.org HDX].
     2714
     2715Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     2716{{{
     2717cd /home/web2py
     2718p7zip -d YE_Lx.7z
     2719python web2py.py -S eden -M
     2720
     2721auth.override = True
     2722languages = s3.l10n_languages
     2723languages["ar"] = "Arabic"
     2724resource = s3db.resource("gis_location")
     2725stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     2726import_file = "YE_L0.csv"
     2727File = open(import_file, "r")
     2728resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2729db.commit()
     2730import_file = "YE_L1.csv"
     2731File = open(import_file, "r")
     2732resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2733db.commit()
     2734import_file = "YE_L2.csv"
     2735File = open(import_file, "r")
     2736resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2737db.commit()
     2738gis.update_location_tree()
     2739db.commit()
     2740}}}
    27092741== Oceania ==
    27102742=== Christmas Island ===