Changes between Version 67 and Version 68 of GIS/Data


Ignore:
Timestamp:
09/11/14 14:41:32 (10 years ago)
Author:
Fran Boon
Comment:

+MV

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v67 v68  
    362362db.commit()
    363363import_file = "MY_L2.csv"
     364File = open(import_file, "r")
     365resource.import_xml(File, format="csv", stylesheet=stylesheet)
     366db.commit()
     367gis.update_location_tree()
     368db.commit()
     369}}}
     370
     371=== Maldives ===
     372Admin Boundaries:
     373* [http://eden.sahanafoundation.org/downloads/MV_Lx.7z MV_Lx.7z]
     374
     375These have come originally from [http://gadm.org GADM]
     376
     377Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     378{{{
     379cd /home/web2py
     380p7zip -d MV_Lx.7z
     381python web2py.py -S eden -M
     382
     383auth.override = True
     384resource = s3db.resource("gis_location")
     385stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     386import_file = "MV_L0.csv"
    364387File = open(import_file, "r")
    365388resource.import_xml(File, format="csv", stylesheet=stylesheet)