Changes between Version 86 and Version 87 of GIS/Data


Ignore:
Timestamp:
11/03/14 16:41:55 (7 years ago)
Author:
Fran Boon
Comment:

+HN

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v86 v87  
    172172
    173173== Americas ==
     174
     175=== Honduras ===
     176Admin Boundaries:
     177* [http://eden.sahanafoundation.org/downloads/HN_Lx.7z HN_Lx.7z]
     178
     179L0 and L1 have come originally from [http://cod.humanitarianresponse.info COD] with L2 from [http://gadm.org GADM]
     180
     181Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     182{{{
     183cd /home/web2py
     184p7zip -d HN_Lx.7z
     185python web2py.py -S eden -M
     186
     187auth.override = True
     188stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     189resource = s3db.resource("gis_location")
     190filename = "HN_L0.csv"
     191File = open(filename, "r")
     192resource.import_xml(File, format="csv", stylesheet=stylesheet)
     193db.commit()
     194filename = "HN_L1.csv"
     195File = open(filename, "r")
     196resource.import_xml(File, format="csv", stylesheet=stylesheet)
     197db.commit()
     198filename = "HN_L2.csv"
     199File = open(filename, "r")
     200resource.import_xml(File, format="csv", stylesheet=stylesheet)
     201db.commit()
     202gis.update_location_tree()
     203db.commit()
     204}}}
    174205
    175206=== United States ===