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