Changes between Version 119 and Version 120 of GIS/Data


Ignore:
Timestamp:
10/21/17 16:37:44 (4 years ago)
Author:
Fran Boon
Comment:

+BO

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v119 v120  
    271271db.commit()
    272272filename = "AR_L2.csv"
     273File = open(filename, "r")
     274resource.import_xml(File, format="csv", stylesheet=stylesheet)
     275db.commit()
     276gis.update_location_tree()
     277db.commit()
     278}}}
     279
     280=== Bolivia ===
     281Admin Boundaries:
     282* [http://eden.sahanafoundation.org/downloads/BO_Lx.7z BO_Lx.7z]
     283
     284Source is Ministerio de Desarrollo Sostenible via [https://data.humdata.org/dataset/bolivia-admin-level-2-boundaries HDX]
     285
     286Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     287{{{
     288cd /home/web2py
     289p7zip -d BO_Lx.7z
     290python web2py.py -S eden -M
     291
     292auth.override = True
     293stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     294resource = s3db.resource("gis_location")
     295filename = "BO_L0.csv"
     296File = open(filename, "r")
     297resource.import_xml(File, format="csv", stylesheet=stylesheet)
     298db.commit()
     299filename = "BO_L1.csv"
     300File = open(filename, "r")
     301resource.import_xml(File, format="csv", stylesheet=stylesheet)
     302db.commit()
     303filename = "BO_L2.csv"
     304File = open(filename, "r")
     305resource.import_xml(File, format="csv", stylesheet=stylesheet)
     306db.commit()
     307filename = "BO_L3.csv"
    273308File = open(filename, "r")
    274309resource.import_xml(File, format="csv", stylesheet=stylesheet)