| Version 1 (modified by , 12 years ago) ( diff ) |
|---|
GIS Data
Table of Contents
Asia
India
Admin Boundaries
These have come from GADM. The state name 'Orissa' has been updated to 'Odisha'.
Use 7-Zip to extract to your web2py folder & then install like this:
cd /home/web2py
p7zip -d IN_Lx.7z
python web2py.py -S eden -M
auth.override = True
resource = s3db.resource("gis_location")
stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
import_file = "IN_L0.csv"
File = open(import_file, "r")
resource.import_xml(File, format="csv", stylesheet=stylesheet)
db.commit()
import_file = "IN_L1.csv"
File = open(import_file, "r")
resource.import_xml(File, format="csv", stylesheet=stylesheet)
db.commit()
import_file = "IN_L2.csv"
File = open(import_file, "r")
resource.import_xml(File, format="csv", stylesheet=stylesheet)
db.commit()
import_file = "IN_L3.csv"
File = open(import_file, "r")
resource.import_xml(File, format="csv", stylesheet=stylesheet)
db.commit()
gis.update_location_tree()
db.commit()
Note:
See TracWiki
for help on using the wiki.

