Changes between Version 111 and Version 112 of GIS/Data


Ignore:
Timestamp:
02/06/17 14:29:34 (8 years ago)
Author:
Fran Boon
Comment:

+PY

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v111 v112  
    247247}}}
    248248
     249=== Paraguay ===
     250Admin Boundaries:
     251* [http://eden.sahanafoundation.org/downloads/PY_Lx.7z PY_Lx.7z]
     252
     253These have come originally from [http://gadm.org GADM] with ISO-3166-2 codes from Wikipedia
     254
     255Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     256{{{
     257cd /home/web2py
     258p7zip -d PY_Lx.7z
     259python web2py.py -S eden -M
     260
     261auth.override = True
     262stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     263resource = s3db.resource("gis_location")
     264filename = "PY_L0.csv"
     265File = open(filename, "r")
     266resource.import_xml(File, format="csv", stylesheet=stylesheet)
     267db.commit()
     268filename = "PY_L1.csv"
     269File = open(filename, "r")
     270resource.import_xml(File, format="csv", stylesheet=stylesheet)
     271db.commit()
     272filename = "PY_L2.csv"
     273File = open(filename, "r")
     274resource.import_xml(File, format="csv", stylesheet=stylesheet)
     275db.commit()
     276gis.update_location_tree()
     277db.commit()
     278}}}
    249279=== United States ===
    250280Admin Boundaries: