Changes between Version 122 and Version 123 of GIS/Data


Ignore:
Timestamp:
10/23/17 21:48:11 (4 years ago)
Author:
Fran Boon
Comment:

+BZ

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v122 v123  
    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=== Belize ===
     281Admin Boundaries:
     282* [http://eden.sahanafoundation.org/downloads/BZ_Lx.7z BZ_Lx.7z]
     283
     284Source is [http://gadm.org GADM].
     285
     286Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     287{{{
     288cd /home/web2py
     289p7zip -d BZ_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 = "BZ_L0.csv"
     296File = open(filename, "r")
     297resource.import_xml(File, format="csv", stylesheet=stylesheet)
     298db.commit()
     299filename = "BZ_L1.csv"
    273300File = open(filename, "r")
    274301resource.import_xml(File, format="csv", stylesheet=stylesheet)