Changes between Version 102 and Version 103 of GIS/Data


Ignore:
Timestamp:
11/19/15 01:04:08 (7 years ago)
Author:
Fran Boon
Comment:

+IT

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v102 v103  
    13791379}}}
    13801380
     1381=== Italy ===
     1382Admin Boundaries:
     1383* [http://eden.sahanafoundation.org/downloads/IT_Lx.7z IT_Lx.7z]
     1384
     1385These have come originally from [http://gadm.org GADM] with the 2x BAT L2 dissolved to 1.
     1386
     1387Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     1388{{{
     1389cd /home/web2py
     1390p7zip -d IT_Lx.7z
     1391python web2py.py -S eden -M
     1392
     1393auth.override = True
     1394languages = s3.l10n_languages
     1395languages["it"] = "Italian"
     1396resource = s3db.resource("gis_location")
     1397stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     1398import_file = "IT_L0.csv"
     1399File = open(import_file, "r")
     1400resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1401db.commit()
     1402import_file = "IT_L1.csv"
     1403File = open(import_file, "r")
     1404resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1405db.commit()
     1406import_file = "IT_L2.csv"
     1407File = open(import_file, "r")
     1408resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1409db.commit()
     1410import_file = "IT_L3.csv"
     1411File = open(import_file, "r")
     1412resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1413db.commit()
     1414gis.update_location_tree()
     1415db.commit()
     1416}}}
     1417
    13811418=== Macedonia ===
    13821419Admin Boundaries: