Changes between Version 50 and Version 51 of GIS/Data


Ignore:
Timestamp:
08/13/14 11:15:33 (7 years ago)
Author:
Fran Boon
Comment:

+BD

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v50 v51  
    130130stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
    131131import_file = "AZ_L0.csv"
     132File = open(import_file, "r")
     133resource.import_xml(File, format="csv", stylesheet=stylesheet)
     134db.commit()
     135gis.update_location_tree()
     136db.commit()
     137}}}
     138
     139=== Bangladesh ===
     140Admin Boundaries:
     141* [http://eden.sahanafoundation.org/downloads/BD_Lx.7z BD_Lx.7z]
     142
     143These have come originally from [https://cod.humanitarianresponse.info COD] with Bangali names and better Romanised names from Wikipedia.[[BR]]
     144
     145Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     146{{{
     147cd /home/web2py
     148p7zip -d BD_Lx.7z
     149python web2py.py -S eden -M
     150
     151auth.override = True
     152languages = s3.l10n_languages
     153languages["bn"] = "Bengali"
     154resource = s3db.resource("gis_location")
     155stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     156import_file = "BD_L1.csv"
     157File = open(import_file, "r")
     158resource.import_xml(File, format="csv", stylesheet=stylesheet)
     159db.commit()
     160import_file = "BD_L2.csv"
     161File = open(import_file, "r")
     162resource.import_xml(File, format="csv", stylesheet=stylesheet)
     163db.commit()
     164import_file = "BD_L3.csv"
    132165File = open(import_file, "r")
    133166resource.import_xml(File, format="csv", stylesheet=stylesheet)