Changes between Version 117 and Version 118 of GIS/Data


Ignore:
Timestamp:
09/28/17 14:40:59 (5 years ago)
Author:
Fran Boon
Comment:

+LA, TH

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v117 v118  
    126126}}}
    127127
    128 
    129128=== Liberia ===
    130129Admin Boundaries:
     
    687686import_file = "KG_L2.csv"
    688687File = open(import_file, "r")
     688resource.import_xml(File, format="csv", stylesheet=stylesheet)
     689db.commit()
     690gis.update_location_tree()
     691db.commit()
     692}}}
     693
     694=== Lao People's Democratic Republic ===
     695Admin Boundaries:
     696* [http://eden.sahanafoundation.org/downloads/LA_Lx.7z LA_Lx.7z]
     697
     698These have come originally from [https://data.humdata.org/group/lao HDX].
     699
     700Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     701{{{
     702cd /home/web2py
     703p7zip -d LA_Lx.7z
     704python web2py.py -S eden -M
     705
     706auth.override = True
     707languages = s3.l10n_languages
     708languages["lo"] = "Lao"
     709stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     710resource = s3db.resource("gis_location")
     711filename = "LA_L0.csv"
     712File = open(filename, "r")
     713resource.import_xml(File, format="csv", stylesheet=stylesheet)
     714db.commit()
     715filename = "LA_L1.csv"
     716File = open(filename, "r")
     717resource.import_xml(File, format="csv", stylesheet=stylesheet)
     718db.commit()
     719filename = "LA_L2.csv"
     720File = open(filename, "r")
    689721resource.import_xml(File, format="csv", stylesheet=stylesheet)
    690722db.commit()
     
    10371069}}}
    10381070
     1071=== Thailand ===
     1072Admin Boundaries:
     1073* [http://eden.sahanafoundation.org/downloads/TH_Lx.7z TH_Lx.7z]
     1074
     1075These have come originally from [https://data.humdata.org/group/tha HDX] with L3 LINESTRINGs converted to POLYGONs.
     1076
     1077Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     1078{{{
     1079cd /home/web2py
     1080p7zip -d TH_Lx.7z
     1081python web2py.py -S eden -M
     1082
     1083auth.override = True
     1084languages = s3.l10n_languages
     1085languages["th"] = "Thai"
     1086stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     1087resource = s3db.resource("gis_location")
     1088filename = "TH_L0.csv"
     1089File = open(filename, "r")
     1090resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1091db.commit()
     1092filename = "TH_L1.csv"
     1093File = open(filename, "r")
     1094resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1095db.commit()
     1096filename = "TH_L2.csv"
     1097File = open(filename, "r")
     1098resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1099db.commit()
     1100filename = "TH_L3.csv"
     1101File = open(filename, "r")
     1102resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1103db.commit()
     1104gis.update_location_tree()
     1105db.commit()
     1106}}}
     1107
    10391108=== Timor-Leste ===
    10401109Admin Boundaries: