Changes between Version 84 and Version 85 of GIS/Data


Ignore:
Timestamp:
10/29/14 01:45:55 (7 years ago)
Author:
Fran Boon
Comment:

+CF

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v84 v85  
    1111
    1212== Africa ==
     13
     14=== Central African Republic ===
     15Admin Boundaries:
     16* [http://eden.sahanafoundation.org/downloads/CF_Lx.7z CF_Lx.7z]
     17
     18These have come originally from [http://cod.humanitarianresponse.info COD].
     19
     20Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     21{{{
     22cd /home/web2py
     23p7zip -d CF_Lx.7z
     24python web2py.py -S eden -M
     25
     26auth.override = True
     27languages = s3.l10n_languages
     28languages["fr"] = "French"
     29languages["sg"] = "Sango"
     30stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     31resource = s3db.resource("gis_location")
     32filename = "CF_L0.csv"
     33File = open(filename, "r")
     34resource.import_xml(File, format="csv", stylesheet=stylesheet)
     35db.commit()
     36filename = "CF_L1.csv"
     37File = open(filename, "r")
     38resource.import_xml(File, format="csv", stylesheet=stylesheet)
     39db.commit()
     40filename = "CF_L2.csv"
     41File = open(filename, "r")
     42resource.import_xml(File, format="csv", stylesheet=stylesheet)
     43db.commit()
     44filename = "CF_L3.csv"
     45File = open(filename, "r")
     46resource.import_xml(File, format="csv", stylesheet=stylesheet)
     47db.commit()
     48gis.update_location_tree()
     49db.commit()
     50}}}
    1351
    1452=== Guinea ===