Changes between Version 100 and Version 101 of GIS/Data


Ignore:
Timestamp:
11/18/15 23:06:40 (7 years ago)
Author:
Fran Boon
Comment:

+AL

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v100 v101  
    10291029
    10301030== Europe ==
     1031=== Albania ===
     1032Admin Boundaries:
     1033* [http://eden.sahanafoundation.org/downloads/AL_Lx.7z AL_Lx.7z]
     1034
     1035These have come originally from [http://gadm.org GADM].
     1036
     1037Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     1038{{{
     1039cd /home/web2py
     1040p7zip -d AL_Lx.7z
     1041python web2py.py -S eden -M
     1042
     1043auth.override = True
     1044languages = s3.l10n_languages
     1045languages["al"] = "Albanian"
     1046stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     1047resource = s3db.resource("gis_location")
     1048filename = "AL_L0.csv"
     1049File = open(filename, "r")
     1050resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1051db.commit()
     1052filename = "AL_L1.csv"
     1053File = open(filename, "r")
     1054resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1055db.commit()
     1056filename = "AL_L2.csv"
     1057File = open(filename, "r")
     1058resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1059db.commit()
     1060filename = "AL_L3.csv"
     1061File = open(filename, "r")
     1062resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1063db.commit()
     1064gis.update_location_tree()
     1065db.commit()
     1066}}}
     1067
    10311068=== Austria ===
    10321069Admin Boundaries: