Changes between Version 137 and Version 138 of GIS/Data


Ignore:
Timestamp:
10/24/17 17:16:00 (4 years ago)
Author:
Fran Boon
Comment:

+NI

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v137 v138  
    669669}}}
    670670
     671=== Nicaragua ===
     672Admin Boundaries:
     673* [http://eden.sahanafoundation.org/downloads/NI_Lx.7z NI_Lx.7z]
     674
     675Source is [http://gadm.org GADM] via [https://data.humdata.org/dataset/nicaragua-administrative-level-0 HDX]
     676
     677Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     678{{{
     679cd /home/web2py
     680p7zip -d NI_Lx.7z
     681python web2py.py -S eden -M
     682
     683auth.override = True
     684stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     685resource = s3db.resource("gis_location")
     686filename = "NI_L0.csv"
     687File = open(filename, "r")
     688resource.import_xml(File, format="csv", stylesheet=stylesheet)
     689db.commit()
     690filename = "NI_L1.csv"
     691File = open(filename, "r")
     692resource.import_xml(File, format="csv", stylesheet=stylesheet)
     693db.commit()
     694filename = "NI_L2.csv"
     695File = open(filename, "r")
     696resource.import_xml(File, format="csv", stylesheet=stylesheet)
     697db.commit()
     698gis.update_location_tree()
     699db.commit()
     700}}}
    671701=== Paraguay ===
    672702Admin Boundaries: