Changes between Version 152 and Version 153 of GIS/Data


Ignore:
Timestamp:
05/15/18 08:40:39 (7 years ago)
Author:
Fran Boon
Comment:

+BT

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v152 v153  
    997997db.commit()
    998998import_file = "BD_L3.csv"
     999File = open(import_file, "r")
     1000resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1001db.commit()
     1002gis.update_location_tree()
     1003db.commit()
     1004}}}
     1005
     1006=== Bhutan ===
     1007Admin Boundaries:
     1008* [http://eden.sahanafoundation.org/downloads/BT_Lx.7z BT_Lx.7z]
     1009
     1010These have come originally from [https://data.humdata.org/dataset/bhutan-administrative-boundaries-levels-0-2 HDX] with Dzongkha names and alternate names from Wikipedia.[[BR]]
     1011
     1012Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     1013{{{
     1014cd /home/web2py
     1015p7zip -d BT_Lx.7z
     1016python web2py.py -S eden -M
     1017
     1018auth.override = True
     1019languages = s3.l10n_languages
     1020languages["dz"] = "Dzongkha"
     1021resource = s3db.resource("gis_location")
     1022stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     1023import_file = "BT_L0.csv"
     1024File = open(import_file, "r")
     1025resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1026db.commit()
     1027import_file = "BT_L1.csv"
     1028File = open(import_file, "r")
     1029resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1030db.commit()
     1031import_file = "BT_L2.csv"
    9991032File = open(import_file, "r")
    10001033resource.import_xml(File, format="csv", stylesheet=stylesheet)