Changes between Version 171 and Version 172 of GIS/Data


Ignore:
Timestamp:
09/28/21 19:15:15 (2 months ago)
Author:
Fran Boon
Comment:

+ZA

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v171 v172  
    320320}}}
    321321
     322=== South Africa ===
     323Admin Boundaries:
     324* [http://eden.sahanafoundation.org/downloads/ZA_Lx.7z ZA_Lx.7z]
     325
     326These have come originally from [https://data.humdata.org/dataset/south-africa-admin-level-1-boundaries HDX].
     327
     328Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     329{{{
     330cd /home/web2py
     331p7zip -d ZA_Lx.7z
     332python web2py.py -S eden -M
     333
     334auth.override = True
     335stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     336resource = s3db.resource("gis_location")
     337filename = "ZA_L0.csv"
     338File = open(filename, "r")
     339resource.import_xml(File, format="csv", stylesheet=stylesheet)
     340db.commit()
     341filename = "ZA_L1.csv"
     342File = open(filename, "r")
     343resource.import_xml(File, format="csv", stylesheet=stylesheet)
     344db.commit()
     345filename = "ZA_L2.csv"
     346File = open(filename, "r")
     347resource.import_xml(File, format="csv", stylesheet=stylesheet)
     348db.commit()
     349filename = "ZA_L3.csv"
     350File = open(filename, "r")
     351resource.import_xml(File, format="csv", stylesheet=stylesheet)
     352db.commit()
     353filename = "ZA_L4.csv"
     354File = open(filename, "r")
     355resource.import_xml(File, format="csv", stylesheet=stylesheet)
     356db.commit()
     357gis.update_location_tree()
     358db.commit()
     359}}}
    322360== Americas ==
    323361