Changes between Version 115 and Version 116 of GIS/Data


Ignore:
Timestamp:
09/28/17 11:18:18 (4 years ago)
Author:
Fran Boon
Comment:

+BN

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v115 v116  
    464464db.commit()
    465465import_file = "BD_L3.csv"
     466File = open(import_file, "r")
     467resource.import_xml(File, format="csv", stylesheet=stylesheet)
     468db.commit()
     469gis.update_location_tree()
     470db.commit()
     471}}}
     472
     473=== Brunei Darussalam ===
     474Admin Boundaries:
     475* [http://eden.sahanafoundation.org/downloads/BN_Lx.7z BN_Lx.7z]
     476
     477These have come originally from [http://gadm.org GADM].
     478
     479Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     480{{{
     481cd /home/web2py
     482p7zip -d BN_Lx.7z
     483python web2py.py -S eden -M
     484
     485auth.override = True
     486resource = s3db.resource("gis_location")
     487stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     488import_file = "BN_L0.csv"
     489File = open(import_file, "r")
     490resource.import_xml(File, format="csv", stylesheet=stylesheet)
     491db.commit()
     492import_file = "BN_L1.csv"
     493File = open(import_file, "r")
     494resource.import_xml(File, format="csv", stylesheet=stylesheet)
     495db.commit()
     496import_file = "BN_L2.csv"
    466497File = open(import_file, "r")
    467498resource.import_xml(File, format="csv", stylesheet=stylesheet)