Changes between Version 94 and Version 95 of GIS/Data


Ignore:
Timestamp:
09/13/15 11:19:59 (6 years ago)
Author:
Fran Boon
Comment:

+BE

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v94 v95  
    10191019}}}
    10201020
     1021=== Belgium ===
     1022Admin Boundaries:
     1023* [http://eden.sahanafoundation.org/downloads/BE_Lx.7z BE_Lx.7z]
     1024
     1025These have come originally from [http://gadm.org GADM].
     1026
     1027Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     1028{{{
     1029cd /home/web2py
     1030p7zip -d BE_Lx.7z
     1031python web2py.py -S eden -M
     1032
     1033auth.override = True
     1034languages = s3.l10n_languages
     1035languages["fr"] = "French"
     1036languages["nl"] = "Dutch"
     1037stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     1038resource = s3db.resource("gis_location")
     1039filename = "BE_L0.csv"
     1040File = open(filename, "r")
     1041resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1042db.commit()
     1043filename = "BE_L1.csv"
     1044File = open(filename, "r")
     1045resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1046db.commit()
     1047filename = "BE_L2.csv"
     1048File = open(filename, "r")
     1049resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1050db.commit()
     1051filename = "BE_L3.csv"
     1052File = open(filename, "r")
     1053resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1054db.commit()
     1055filename = "BE_L4.csv"
     1056File = open(filename, "r")
     1057resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1058db.commit()
     1059gis.update_location_tree()
     1060db.commit()
     1061}}}
     1062
    10211063=== Bosnia and Herzegovina ===
    10221064Admin Boundaries: