Changes between Version 8 and Version 9 of GIS/Data


Ignore:
Timestamp:
11/10/13 19:18:12 (8 years ago)
Author:
Fran Boon
Comment:

Philippines

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v8 v9  
    3939db.commit()
    4040}}}
     41
     42=== Philippines ===
     43Admin Boundaries:
     44* [http://eden.sahanafoundation.org/downloads/PH_Lx.7z PH_Lx.7z]
     45
     46These have come originally from [http://gadm.org GADM] but have had L1s inserted by [http://www.philgis.org/freegisdata.htm PhilGIS] so their L1s become L2s, etc
     47
     48Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     49{{{
     50cd /home/web2py
     51p7zip -d PH_Lx.7z
     52python web2py.py -S eden -M
     53
     54auth.override = True
     55resource = s3db.resource("gis_location")
     56stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     57import_file = "PH_L0.csv"
     58File = open(import_file, "r")
     59resource.import_xml(File, format="csv", stylesheet=stylesheet)
     60db.commit()
     61import_file = "PH_L1.csv"
     62File = open(import_file, "r")
     63resource.import_xml(File, format="csv", stylesheet=stylesheet)
     64db.commit()
     65import_file = "PH_L2.csv"
     66File = open(import_file, "r")
     67resource.import_xml(File, format="csv", stylesheet=stylesheet)
     68db.commit()
     69import_file = "PH_L3.csv"
     70File = open(import_file, "r")
     71resource.import_xml(File, format="csv", stylesheet=stylesheet)
     72db.commit()
     73import_file = "PH_L4.csv"
     74File = open(import_file, "r")
     75resource.import_xml(File, format="csv", stylesheet=stylesheet)
     76db.commit()
     77gis.update_location_tree()
     78db.commit()
     79}}}
     80
    4181
    4282=== Vietnam ===