Changes between Version 87 and Version 88 of GIS/Data


Ignore:
Timestamp:
04/19/15 16:40:41 (7 years ago)
Author:
Fran Boon
Comment:

+NZ

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v87 v88  
    14301430}}}
    14311431
     1432=== New Zealand ===
     1433Admin Boundaries:
     1434* [http://eden.sahanafoundation.org/downloads/NZ_Lx.7z NZ_Lx.7z]
     1435
     1436These have come originally from [http://gadm.org GADM].
     1437
     1438Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     1439{{{
     1440cd /home/web2py
     1441p7zip -d NZ_Lx.7z
     1442python web2py.py -S eden -M
     1443
     1444auth.override = True
     1445resource = s3db.resource("gis_location")
     1446stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     1447import_file = "NZ_L0.csv"
     1448File = open(import_file, "r")
     1449resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1450db.commit()
     1451import_file = "NZ_L1.csv"
     1452File = open(import_file, "r")
     1453resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1454db.commit()
     1455import_file = "NZ_L2.csv"
     1456File = open(import_file, "r")
     1457resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1458db.commit()
     1459gis.update_location_tree()
     1460db.commit()
     1461}}}
     1462
    14321463=== Papua New Guinea ===
    14331464Admin Boundaries: