Changes between Version 27 and Version 28 of GIS/Data


Ignore:
Timestamp:
02/26/14 10:32:48 (11 years ago)
Author:
Fran Boon
Comment:

+MY

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v27 v28  
    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=== Malaysia ===
     144Admin Boundaries:
     145* [http://eden.sahanafoundation.org/downloads/MY_Lx.7z MY_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 MY_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 = "MY_L0.csv"
     159File = open(import_file, "r")
     160resource.import_xml(File, format="csv", stylesheet=stylesheet)
     161db.commit()
     162import_file = "MY_L1.csv"
     163File = open(import_file, "r")
     164resource.import_xml(File, format="csv", stylesheet=stylesheet)
     165db.commit()
     166import_file = "MY_L2.csv"
    136167File = open(import_file, "r")
    137168resource.import_xml(File, format="csv", stylesheet=stylesheet)