Changes between Version 160 and Version 161 of GIS/Data


Ignore:
Timestamp:
07/15/19 18:33:16 (5 years ago)
Author:
Fran Boon
Comment:

+GB

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v160 v161  
    24902490}}}
    24912491
     2492=== United Kingdon ===
     2493Admin Boundaries:
     2494* [http://eden.sahanafoundation.org/downloads/GB_Lx.7z GB_Lx.7z]
     2495
     2496These have come originally from [http://gadm.org GADM] v3.6.
     2497
     2498Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     2499{{{
     2500cd /home/web2py
     2501p7zip -d GB_Lx.7z
     2502python web2py.py -S eden -M
     2503
     2504auth.override = True
     2505resource = s3db.resource("gis_location")
     2506stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     2507import_file = "GB_L0.csv"
     2508File = open(import_file, "r")
     2509resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2510db.commit()
     2511import_file = "GB_L1.csv"
     2512File = open(import_file, "r")
     2513resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2514db.commit()
     2515import_file = "GB_L2.csv"
     2516File = open(import_file, "r")
     2517resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2518db.commit()
     2519import_file = "GB_L3.csv"
     2520File = open(import_file, "r")
     2521resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2522db.commit()
     2523gis.update_location_tree()
     2524db.commit()
     2525}}}
     2526
    24922527== Middle East ==
    24932528=== Iraq===