Changes between Version 116 and Version 117 of GIS/Data


Ignore:
Timestamp:
09/28/17 11:20:56 (4 years ago)
Author:
Fran Boon
Comment:

+SG

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v116 v117  
    942942}}}
    943943
     944=== Singapore ===
     945Admin Boundaries:
     946* [http://eden.sahanafoundation.org/downloads/SG_Lx.7z SG_Lx.7z]
     947
     948These have come originally from [http://gadm.org GADM].
     949
     950Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     951{{{
     952cd /home/web2py
     953p7zip -d SG_Lx.7z
     954python web2py.py -S eden -M
     955
     956auth.override = True
     957resource = s3db.resource("gis_location")
     958stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     959import_file = "SG_L0.csv"
     960File = open(import_file, "r")
     961resource.import_xml(File, format="csv", stylesheet=stylesheet)
     962db.commit()
     963import_file = "SG_L1.csv"
     964File = open(import_file, "r")
     965resource.import_xml(File, format="csv", stylesheet=stylesheet)
     966db.commit()
     967gis.update_location_tree()
     968db.commit()
     969}}}
     970
    944971=== Sri Lanka ===
    945972Admin Boundaries: