Changes between Version 97 and Version 98 of GIS/Data


Ignore:
Timestamp:
09/15/15 11:11:06 (10 years ago)
Author:
Fran Boon
Comment:

+RS

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v97 v98  
    12951295}}}
    12961296
     1297=== Serbia ===
     1298Admin Boundaries:
     1299* [http://eden.sahanafoundation.org/downloads/RS_Lx.7z RS_Lx.7z]
     1300
     1301These have come originally from [http://gadm.org GADM].
     1302
     1303Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     1304{{{
     1305cd /home/web2py
     1306p7zip -d RS_Lx.7z
     1307python web2py.py -S eden -M
     1308
     1309auth.override = True
     1310languages = s3.l10n_languages
     1311languages["sr"] = "Serbian"
     1312resource = s3db.resource("gis_location")
     1313stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     1314import_file = "RS_L0.csv"
     1315File = open(import_file, "r")
     1316resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1317db.commit()
     1318import_file = "RS_L1.csv"
     1319File = open(import_file, "r")
     1320resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1321db.commit()
     1322import_file = "RS_L2.csv"
     1323File = open(import_file, "r")
     1324resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1325db.commit()
     1326gis.update_location_tree()
     1327db.commit()
     1328}}}
     1329
    12971330=== Ukraine ===
    12981331Admin Boundaries: