Changes between Version 30 and Version 31 of GIS/Data


Ignore:
Timestamp:
03/25/14 09:15:05 (8 years ago)
Author:
Fran Boon
Comment:

+AF

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v30 v31  
    1010It is safest (and fastest) to use a plain text editor (eg. Notepad++)
    1111== Asia ==
     12
     13=== Afghanistan ===
     14Admin Boundaries:
     15* [http://eden.sahanafoundation.org/downloads/AF_Lx.7z AF_Lx.7z]
     16
     17These have come originally from [https://cod.humanitarianresponse.info COD] with Dari/Pashto names and better Romanised names from Wikipedia.[[BR]]
     18
     19Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     20{{{
     21cd /home/web2py
     22p7zip -d AF_Lx.7z
     23python web2py.py -S eden -M
     24
     25auth.override = True
     26settings.L10n.languages["prs"] = "Dari"
     27settings.L10n.languages["ps"] = "Pashto"
     28stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     29resource = s3db.resource("gis_location")
     30filename = "AF_L0.csv"
     31File = open(filename, "r")
     32resource.import_xml(File, format="csv", stylesheet=stylesheet)
     33db.commit()
     34filename = "AF_L1.csv"
     35File = open(filename, "r")
     36resource.import_xml(File, format="csv", stylesheet=stylesheet)
     37db.commit()
     38filename = "AF_L2.csv"
     39File = open(filename, "r")
     40resource.import_xml(File, format="csv", stylesheet=stylesheet)
     41db.commit()
     42gis.update_location_tree()
     43db.commit()
     44}}}
    1245
    1346=== Cambodia ===