Changes between Version 132 and Version 133 of GIS/Data


Ignore:
Timestamp:
10/24/17 16:12:38 (5 years ago)
Author:
Fran Boon
Comment:

+HT

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v132 v133  
    565565db.commit()
    566566}}}
     567=== Haiti ===
     568Admin Boundaries:
     569* [http://eden.sahanafoundation.org/downloads/HT_Lx.7z HT_Lx.7z]
     570
     571Source is Centre National de l'Information Géo-Spatiale (CNIGS) via [https://data.humdata.org/dataset/hti-polbndl-adm1-cnigs-zip HDX]
     572
     573Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     574{{{
     575cd /home/web2py
     576p7zip -d HT_Lx.7z
     577python web2py.py -S eden -M
     578
     579auth.override = True
     580stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     581resource = s3db.resource("gis_location")
     582filename = "HT_L0.csv"
     583File = open(filename, "r")
     584resource.import_xml(File, format="csv", stylesheet=stylesheet)
     585db.commit()
     586filename = "HT_L1.csv"
     587File = open(filename, "r")
     588resource.import_xml(File, format="csv", stylesheet=stylesheet)
     589db.commit()
     590filename = "HT_L2.csv"
     591File = open(filename, "r")
     592resource.import_xml(File, format="csv", stylesheet=stylesheet)
     593db.commit()
     594filename = "HT_L3.csv"
     595File = open(filename, "r")
     596resource.import_xml(File, format="csv", stylesheet=stylesheet)
     597db.commit()
     598gis.update_location_tree()
     599db.commit()
     600}}}
     601
    567602=== Honduras ===
    568603Admin Boundaries: