| | 988 | === Austria === |
| | 989 | Admin Boundaries: |
| | 990 | * [http://eden.sahanafoundation.org/downloads/AT_Lx.7z AT_Lx.7z] |
| | 991 | |
| | 992 | These have come originally from [http://gadm.org GADM]. |
| | 993 | |
| | 994 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| | 995 | {{{ |
| | 996 | cd /home/web2py |
| | 997 | p7zip -d AT_Lx.7z |
| | 998 | python web2py.py -S eden -M |
| | 999 | |
| | 1000 | auth.override = True |
| | 1001 | languages = s3.l10n_languages |
| | 1002 | languages["de"] = "German" |
| | 1003 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| | 1004 | resource = s3db.resource("gis_location") |
| | 1005 | filename = "AT_L0.csv" |
| | 1006 | File = open(filename, "r") |
| | 1007 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 1008 | db.commit() |
| | 1009 | filename = "AT_L1.csv" |
| | 1010 | File = open(filename, "r") |
| | 1011 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 1012 | db.commit() |
| | 1013 | filename = "AT_L2.csv" |
| | 1014 | File = open(filename, "r") |
| | 1015 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 1016 | db.commit() |
| | 1017 | gis.update_location_tree() |
| | 1018 | db.commit() |
| | 1019 | }}} |
| | 1020 | |