Changes between Version 43 and Version 44 of GIS/Data


Ignore:
Timestamp:
07/02/14 16:48:44 (11 years ago)
Author:
Fran Boon
Comment:

+UA

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v43 v44  
    758758}}}
    759759
     760=== Ukraine ===
     761Admin Boundaries:
     762* [http://eden.sahanafoundation.org/downloads/UA_Lx.7z UA_Lx.7z]
     763
     764These have come originally from [http://gadm.org GADM] with Ukrainian names added from Wikipedia.
     765
     766Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     767{{{
     768cd /home/web2py
     769p7zip -d UA_Lx.7z
     770python web2py.py -S eden -M
     771
     772auth.override = True
     773languages = s3.l10n_languages
     774languages["uk"] = "Ukrainian"
     775resource = s3db.resource("gis_location")
     776stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     777import_file = "UA_L0.csv"
     778File = open(import_file, "r")
     779resource.import_xml(File, format="csv", stylesheet=stylesheet)
     780db.commit()
     781import_file = "UA_L1.csv"
     782File = open(import_file, "r")
     783resource.import_xml(File, format="csv", stylesheet=stylesheet)
     784db.commit()
     785import_file = "UA_L2.csv"
     786File = open(import_file, "r")
     787resource.import_xml(File, format="csv", stylesheet=stylesheet)
     788db.commit()
     789gis.update_location_tree()
     790db.commit()
     791}}}
     792
    760793== Middle East ==
    761794=== Iraq===