Changes between Version 26 and Version 27 of GIS/Data


Ignore:
Timestamp:
02/25/14 11:26:04 (11 years ago)
Author:
Fran Boon
Comment:

+NP

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v26 v27  
    134134db.commit()
    135135import_file = "KG_L2.csv"
     136File = open(import_file, "r")
     137resource.import_xml(File, format="csv", stylesheet=stylesheet)
     138db.commit()
     139gis.update_location_tree()
     140db.commit()
     141}}}
     142
     143=== Nepal ===
     144Admin Boundaries:
     145* [http://eden.sahanafoundation.org/downloads/NP_Lx.7z NP_Lx.7z]
     146
     147These have come originally from [http://gadm.org GADM]
     148
     149Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     150{{{
     151cd /home/web2py
     152p7zip -d NP_Lx.7z
     153python web2py.py -S eden -M
     154
     155auth.override = True
     156resource = s3db.resource("gis_location")
     157stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     158import_file = "NP_L0.csv"
     159File = open(import_file, "r")
     160resource.import_xml(File, format="csv", stylesheet=stylesheet)
     161db.commit()
     162import_file = "NP_L1.csv"
     163File = open(import_file, "r")
     164resource.import_xml(File, format="csv", stylesheet=stylesheet)
     165db.commit()
     166import_file = "NP_L2.csv"
     167File = open(import_file, "r")
     168resource.import_xml(File, format="csv", stylesheet=stylesheet)
     169db.commit()
     170import_file = "NP_L3.csv"
     171File = open(import_file, "r")
     172resource.import_xml(File, format="csv", stylesheet=stylesheet)
     173db.commit()
     174import_file = "NP_L4.csv"
    136175File = open(import_file, "r")
    137176resource.import_xml(File, format="csv", stylesheet=stylesheet)