Changes between Version 20 and Version 21 of GIS/Data


Ignore:
Timestamp:
02/11/14 22:09:03 (11 years ago)
Author:
Fran Boon
Comment:

+KH

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v20 v21  
    44This page lists sources for data, including some which has been pre-formatted for easy import into Sahana Eden.
    55== Asia ==
     6
     7=== Cambodia ===
     8Admin Boundaries:
     9* [http://eden.sahanafoundation.org/downloads/KH_Lx.7z KH_Lx.7z]
     10
     11These have come originally from [http://gadm.org COD] with Khmer names, Hierarchy, Newer locations and better Romanised names from Wikipedia.
     12
     13Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     14{{{
     15cd /home/web2py
     16p7zip -d KH_Lx.7z
     17python web2py.py -S eden -M
     18
     19auth.override = True
     20settings.L10n.languages["km"] = "Khmer"
     21resource = s3db.resource("gis_location")
     22stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     23import_file = "KH_L0.csv"
     24File = open(import_file, "r")
     25resource.import_xml(File, format="csv", stylesheet=stylesheet)
     26db.commit()
     27import_file = "KH_L1.csv"
     28File = open(import_file, "r")
     29resource.import_xml(File, format="csv", stylesheet=stylesheet)
     30db.commit()
     31import_file = "KH_L2.csv"
     32File = open(import_file, "r")
     33resource.import_xml(File, format="csv", stylesheet=stylesheet)
     34db.commit()
     35gis.update_location_tree()
     36db.commit()
     37}}}
    638
    739=== India ===