Changes between Initial Version and Version 1 of GIS/Data


Ignore:
Timestamp:
10/17/13 10:43:34 (11 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v1 v1  
     1= GIS Data =
     2[[TOC]]
     3
     4== Asia ==
     5
     6=== India ===
     7
     8==== Admin Boundaries ====
     9These have come from [http://gadm.org GADM]. The state name 'Orissa' has been updated to 'Odisha'.
     10
     11* [http://eden.sahanafoundation.org/raw-attachment/wiki/GIS/Data/IN_Lx.7z IN_Lx.7z]
     12
     13Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     14
     15{{{
     16cd /home/web2py
     17p7zip -d IN_Lx.7z
     18python web2py.py -S eden -M
     19
     20auth.override = True
     21resource = s3db.resource("gis_location")
     22stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     23import_file = "IN_L0.csv"
     24File = open(import_file, "r")
     25resource.import_xml(File, format="csv", stylesheet=stylesheet)
     26db.commit()
     27import_file = "IN_L1.csv"
     28File = open(import_file, "r")
     29resource.import_xml(File, format="csv", stylesheet=stylesheet)
     30db.commit()
     31import_file = "IN_L2.csv"
     32File = open(import_file, "r")
     33resource.import_xml(File, format="csv", stylesheet=stylesheet)
     34db.commit()
     35import_file = "IN_L3.csv"
     36File = open(import_file, "r")
     37resource.import_xml(File, format="csv", stylesheet=stylesheet)
     38db.commit()
     39gis.update_location_tree()
     40db.commit()
     41}}}