Changes between Version 101 and Version 102 of GIS/Data


Ignore:
Timestamp:
11/19/15 00:13:36 (9 years ago)
Author:
Fran Boon
Comment:

+BG

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v101 v102  
    11811181}}}
    11821182
     1183=== Bulgaria ===
     1184Admin Boundaries:
     1185* [http://eden.sahanafoundation.org/downloads/BG_Lx.7z BG_Lx.7z]
     1186
     1187These have come originally from [http://gadm.org GADM].
     1188
     1189Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     1190{{{
     1191cd /home/web2py
     1192p7zip -d BG_Lx.7z
     1193python web2py.py -S eden -M
     1194
     1195auth.override = True
     1196languages = s3.l10n_languages
     1197languages["bg"] = "Bulgarian"
     1198stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     1199resource = s3db.resource("gis_location")
     1200filename = "BG_L0.csv"
     1201File = open(filename, "r")
     1202resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1203db.commit()
     1204filename = "BG_L1.csv"
     1205File = open(filename, "r")
     1206resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1207db.commit()
     1208filename = "BG_L2.csv"
     1209File = open(filename, "r")
     1210resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1211db.commit()
     1212gis.update_location_tree()
     1213db.commit()
     1214}}}
     1215
    11831216=== Croatia ===
    11841217Admin Boundaries: