Changes between Version 28 and Version 29 of GIS/Data


Ignore:
Timestamp:
02/26/14 10:48:48 (11 years ago)
Author:
Fran Boon
Comment:

+MM

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v28 v29  
    165165db.commit()
    166166import_file = "MY_L2.csv"
     167File = open(import_file, "r")
     168resource.import_xml(File, format="csv", stylesheet=stylesheet)
     169db.commit()
     170gis.update_location_tree()
     171db.commit()
     172}}}
     173
     174=== Myanmar ===
     175Admin Boundaries:
     176* [http://eden.sahanafoundation.org/downloads/MM_Lx.7z MM_Lx.7z]
     177
     178These have come originally from [https://cod.humanitarianresponse.info COD]
     179
     180Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     181{{{
     182cd /home/web2py
     183p7zip -d MM_Lx.7z
     184python web2py.py -S eden -M
     185
     186auth.override = True
     187resource = s3db.resource("gis_location")
     188stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     189import_file = "MM_L0.csv"
     190File = open(import_file, "r")
     191resource.import_xml(File, format="csv", stylesheet=stylesheet)
     192db.commit()
     193import_file = "MM_L1.csv"
     194File = open(import_file, "r")
     195resource.import_xml(File, format="csv", stylesheet=stylesheet)
     196db.commit()
     197import_file = "MM_L2.csv"
     198File = open(import_file, "r")
     199resource.import_xml(File, format="csv", stylesheet=stylesheet)
     200db.commit()
     201import_file = "MM_L3.csv"
     202File = open(import_file, "r")
     203resource.import_xml(File, format="csv", stylesheet=stylesheet)
     204db.commit()
     205import_file = "MM_L4.csv"
     206File = open(import_file, "r")
     207resource.import_xml(File, format="csv", stylesheet=stylesheet)
     208db.commit()
     209import_file = "MM_L5.csv"
    167210File = open(import_file, "r")
    168211resource.import_xml(File, format="csv", stylesheet=stylesheet)