Changes between Version 92 and Version 93 of GIS/Data


Ignore:
Timestamp:
09/13/15 10:05:13 (10 years ago)
Author:
Fran Boon
Comment:

+HU

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v92 v93  
    11901190}}}
    11911191
     1192=== Hungary ===
     1193Admin Boundaries:
     1194* [http://eden.sahanafoundation.org/downloads/HU_Lx.7z HU_Lx.7z]
     1195
     1196These have come originally from [http://gadm.org GADM].
     1197
     1198Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     1199{{{
     1200cd /home/web2py
     1201p7zip -d HU_Lx.7z
     1202python web2py.py -S eden -M
     1203
     1204auth.override = True
     1205languages = s3.l10n_languages
     1206languages["hu"] = "Hungarian"
     1207resource = s3db.resource("gis_location")
     1208stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     1209import_file = "HU_L0.csv"
     1210File = open(import_file, "r")
     1211resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1212db.commit()
     1213import_file = "HU_L1.csv"
     1214File = open(import_file, "r")
     1215resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1216db.commit()
     1217import_file = "HU_L2.csv"
     1218File = open(import_file, "r")
     1219resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1220db.commit()
     1221gis.update_location_tree()
     1222db.commit()
     1223}}}
     1224
    11921225=== Ukraine ===
    11931226Admin Boundaries: