Changes between Version 70 and Version 71 of GIS/Data


Ignore:
Timestamp:
10/11/14 11:05:02 (7 years ago)
Author:
Fran Boon
Comment:

+MN

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v70 v71  
    412412stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
    413413import_file = "MV_L0.csv"
     414File = open(import_file, "r")
     415resource.import_xml(File, format="csv", stylesheet=stylesheet)
     416db.commit()
     417gis.update_location_tree()
     418db.commit()
     419}}}
     420
     421=== Mongolia ===
     422Admin Boundaries:
     423* [http://eden.sahanafoundation.org/downloads/MN_Lx.7z MN_Lx.7z]
     424
     425These have come originally from [https://cod.humanitarianresponse.info COD] with the names updated from Wikipedia....and the 1994 creation of Govisümber noted.
     426
     427Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     428{{{
     429cd /home/web2py
     430p7zip -d MN_Lx.7z
     431python web2py.py -S eden -M
     432
     433auth.override = True
     434languages = s3.l10n_languages
     435languages["mn"] = "Mongolian"
     436resource = s3db.resource("gis_location")
     437stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     438import_file = "MN_L0.csv"
     439File = open(import_file, "r")
     440resource.import_xml(File, format="csv", stylesheet=stylesheet)
     441db.commit()
     442import_file = "MN_L1.csv"
     443File = open(import_file, "r")
     444resource.import_xml(File, format="csv", stylesheet=stylesheet)
     445db.commit()
     446import_file = "MN_L2.csv"
    414447File = open(import_file, "r")
    415448resource.import_xml(File, format="csv", stylesheet=stylesheet)