Changes between Version 41 and Version 42 of GIS/Data


Ignore:
Timestamp:
06/14/14 16:07:34 (7 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v41 v42  
    430430=== Sri Lanka ===
    431431Admin Boundaries:
    432 * [http://eden.sahanafoundation.org/downloads/SL_Lx.7z SL_Lx.7z]
     432* [http://eden.sahanafoundation.org/downloads/LK_Lx.7z LK_Lx.7z]
    433433
    434434These have come originally from [http://cod.humanitarianresponse.info COD] with Sinhala & Tamil names added from Wikipedia.
     
    446446resource = s3db.resource("gis_location")
    447447stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
    448 import_file = "SL_L1.csv"
    449 File = open(import_file, "r")
    450 resource.import_xml(File, format="csv", stylesheet=stylesheet)
    451 db.commit()
    452 filename = "SL_L2.csv"
    453 File = open(filename, "r")
    454 resource.import_xml(File, format="csv", stylesheet=stylesheet)
    455 db.commit()
    456 filename = "SL_L3.csv"
    457 File = open(filename, "r")
    458 resource.import_xml(File, format="csv", stylesheet=stylesheet)
    459 db.commit()
    460 filename = "SL_L4.csv"
     448import_file = "LK_L1.csv"
     449File = open(import_file, "r")
     450resource.import_xml(File, format="csv", stylesheet=stylesheet)
     451db.commit()
     452filename = "LK_L2.csv"
     453File = open(filename, "r")
     454resource.import_xml(File, format="csv", stylesheet=stylesheet)
     455db.commit()
     456filename = "LK_L3.csv"
     457File = open(filename, "r")
     458resource.import_xml(File, format="csv", stylesheet=stylesheet)
     459db.commit()
     460filename = "LK_L4.csv"
    461461File = open(filename, "r")
    462462resource.import_xml(File, format="csv", stylesheet=stylesheet)