Changes between Version 158 and Version 159 of GIS/Data


Ignore:
Timestamp:
12/14/18 10:31:13 (2 years ago)
Author:
Fran Boon
Comment:

+CA

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v158 v159  
    414414db.commit()
    415415}}}
     416=== Canada ===
     417Admin Boundaries:
     418* [http://eden.sahanafoundation.org/downloads/CA_Lx.7z CA_Lx.7z]
     419
     420Source for Polygons is [http://gadm.org GADM] with translations from Wikipedia.
     421
     422Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     423{{{
     424cd /home/web2py
     425p7zip -d CA_Lx.7z
     426python web2py.py -S eden -M
     427
     428auth.override = True
     429languages = s3.l10n_languages
     430languages["fr"] = "French"
     431languages["ath"] = "Athabaskan"
     432languages["ikt"] = "Inuinnaqtun"
     433languages["iu"] = "Inuktitut"
     434languages["moe"] = "Innu-aimun"
     435stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     436resource = s3db.resource("gis_location")
     437filename = "CA_L0.csv"
     438File = open(filename, "r")
     439resource.import_xml(File, format="csv", stylesheet=stylesheet)
     440db.commit()
     441filename = "CA_L1.csv"
     442File = open(filename, "r")
     443resource.import_xml(File, format="csv", stylesheet=stylesheet)
     444db.commit()
     445filename = "CA_L2.csv"
     446File = open(filename, "r")
     447resource.import_xml(File, format="csv", stylesheet=stylesheet)
     448db.commit()
     449filename = "CA_L3.csv"
     450File = open(filename, "r")
     451resource.import_xml(File, format="csv", stylesheet=stylesheet)
     452db.commit()
     453gis.update_location_tree()
     454db.commit()
     455}}}
     456
    416457=== Chile ===
    417458Admin Boundaries: