Changes between Version 68 and Version 69 of GIS/Data


Ignore:
Timestamp:
09/11/14 14:47:15 (7 years ago)
Author:
Fran Boon
Comment:

+KR

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v68 v69  
    271271db.commit()
    272272import_file = "ID_L2.csv"
     273File = open(import_file, "r")
     274resource.import_xml(File, format="csv", stylesheet=stylesheet)
     275db.commit()
     276gis.update_location_tree()
     277db.commit()
     278}}}
     279
     280=== Korea, Republic of ===
     281'South Korea'
     282
     283Admin Boundaries:
     284* [http://eden.sahanafoundation.org/downloads/KR_Lx.7z KR_Lx.7z]
     285
     286These have come originally from [http://gadm.org GADM]
     287
     288Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     289{{{
     290cd /home/web2py
     291p7zip -d KR_Lx.7z
     292python web2py.py -S eden -M
     293
     294auth.override = True
     295languages = s3.l10n_languages
     296languages["ko"] = "Korean"
     297resource = s3db.resource("gis_location")
     298stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     299import_file = "KR_L0.csv"
    273300File = open(import_file, "r")
    274301resource.import_xml(File, format="csv", stylesheet=stylesheet)