Changes between Version 17 and Version 18 of GIS/Data


Ignore:
Timestamp:
12/20/13 15:20:37 (11 years ago)
Author:
Fran Boon
Comment:

+ JO, LB, SY

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v17 v18  
    169169}}}
    170170
     171== Middle East ==
     172=== Jordan ===
     173Admin Boundaries:
     174* [http://eden.sahanafoundation.org/downloads/JO_Lx.7z JO_Lx.7z]
     175
     176Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     177{{{
     178cd /home/web2py
     179p7zip -d JO_Lx.7z
     180python web2py.py -S eden -M
     181
     182auth.override = True
     183settings.L10n.languages["ar"] = "Arabic"
     184resource = s3db.resource("gis_location")
     185stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     186import_file = "JO_L0.csv"
     187File = open(import_file, "r")
     188resource.import_xml(File, format="csv", stylesheet=stylesheet)
     189db.commit()
     190import_file = "JO_L1.csv"
     191File = open(import_file, "r")
     192resource.import_xml(File, format="csv", stylesheet=stylesheet)
     193db.commit()
     194import_file = "JO_L2.csv"
     195File = open(import_file, "r")
     196resource.import_xml(File, format="csv", stylesheet=stylesheet)
     197db.commit()
     198import_file = "JO_L3.csv"
     199File = open(import_file, "r")
     200resource.import_xml(File, format="csv", stylesheet=stylesheet)
     201db.commit()
     202import_file = "JO_Zaatari.csv"
     203File = open(import_file, "r")
     204resource.import_xml(File, format="csv", stylesheet=stylesheet)
     205db.commit()
     206gis.update_location_tree()
     207db.commit()
     208}}}
     209
     210=== Lebanon ===
     211Admin Boundaries:
     212* [http://eden.sahanafoundation.org/downloads/LB_Lx.7z LB_Lx.7z]
     213
     214Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     215{{{
     216cd /home/web2py
     217p7zip -d LB_Lx.7z
     218python web2py.py -S eden -M
     219
     220auth.override = True
     221settings.L10n.languages["ar"] = "Arabic"
     222resource = s3db.resource("gis_location")
     223stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     224import_file = "LB_L0.csv"
     225File = open(import_file, "r")
     226resource.import_xml(File, format="csv", stylesheet=stylesheet)
     227db.commit()
     228import_file = "LB_L1.csv"
     229File = open(import_file, "r")
     230resource.import_xml(File, format="csv", stylesheet=stylesheet)
     231db.commit()
     232import_file = "LB_L2.csv"
     233File = open(import_file, "r")
     234resource.import_xml(File, format="csv", stylesheet=stylesheet)
     235db.commit()
     236import_file = "LB_L3.csv"
     237File = open(import_file, "r")
     238resource.import_xml(File, format="csv", stylesheet=stylesheet)
     239db.commit()
     240import_file = "LB_Wadi_Khaled.csv"
     241File = open(import_file, "r")
     242resource.import_xml(File, format="csv", stylesheet=stylesheet)
     243db.commit()
     244gis.update_location_tree()
     245db.commit()
     246}}}
     247
     248=== Syria ===
     249Admin Boundaries:
     250* [http://eden.sahanafoundation.org/downloads/SY_Lx.7z SY_Lx.7z]
     251
     252Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     253{{{
     254cd /home/web2py
     255p7zip -d SY_Lx.7z
     256python web2py.py -S eden -M
     257
     258auth.override = True
     259settings.L10n.languages["ar"] = "Arabic"
     260resource = s3db.resource("gis_location")
     261stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     262import_file = "SY_L0.csv"
     263File = open(import_file, "r")
     264resource.import_xml(File, format="csv", stylesheet=stylesheet)
     265db.commit()
     266import_file = "SY_L1.csv"
     267File = open(import_file, "r")
     268resource.import_xml(File, format="csv", stylesheet=stylesheet)
     269db.commit()
     270import_file = "SY_L2.csv"
     271File = open(import_file, "r")
     272resource.import_xml(File, format="csv", stylesheet=stylesheet)
     273db.commit()
     274import_file = "SY_L3.csv"
     275File = open(import_file, "r")
     276resource.import_xml(File, format="csv", stylesheet=stylesheet)
     277db.commit()
     278gis.update_location_tree()
     279db.commit()
     280}}}
    171281== Other Data Sources ==
    172282* https://cod.humanitarianresponse.info - official UN source of boundaries & P-Codes