Changes between Version 123 and Version 124 of GIS/Data


Ignore:
Timestamp:
10/23/17 22:02:28 (5 years ago)
Author:
Fran Boon
Comment:

+CL

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v123 v124  
    340340}}}
    341341
     342
     343=== Chile ===
     344Admin Boundaries:
     345* [http://eden.sahanafoundation.org/downloads/CL_Lx.7z CL_Lx.7z]
     346
     347Source for Polygons is [http://gadm.org GADM] via [https://data.humdata.org/dataset/chile-administrative-level-0-country-1-region-region HDX].
     348
     349Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     350{{{
     351cd /home/web2py
     352p7zip -d CL_Lx.7z
     353python web2py.py -S eden -M
     354
     355auth.override = True
     356stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     357resource = s3db.resource("gis_location")
     358filename = "CL_L0.csv"
     359File = open(filename, "r")
     360resource.import_xml(File, format="csv", stylesheet=stylesheet)
     361db.commit()
     362filename = "CL_L1.csv"
     363File = open(filename, "r")
     364resource.import_xml(File, format="csv", stylesheet=stylesheet)
     365db.commit()
     366filename = "CL_L2.csv"
     367File = open(filename, "r")
     368resource.import_xml(File, format="csv", stylesheet=stylesheet)
     369db.commit()
     370filename = "CL_L3.csv"
     371File = open(filename, "r")
     372resource.import_xml(File, format="csv", stylesheet=stylesheet)
     373db.commit()
     374gis.update_location_tree()
     375db.commit()
     376}}}
    342377=== Honduras ===
    343378Admin Boundaries: