| 1225 | === Macedonia === |
| 1226 | Admin Boundaries: |
| 1227 | * [http://eden.sahanafoundation.org/downloads/MK_Lx.7z MK_Lx.7z] |
| 1228 | |
| 1229 | These have come originally from [http://gadm.org GADM]. |
| 1230 | |
| 1231 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 1232 | {{{ |
| 1233 | cd /home/web2py |
| 1234 | p7zip -d MK_Lx.7z |
| 1235 | python web2py.py -S eden -M |
| 1236 | |
| 1237 | auth.override = True |
| 1238 | languages = s3.l10n_languages |
| 1239 | languages["mk"] = "Macedonian" |
| 1240 | resource = s3db.resource("gis_location") |
| 1241 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 1242 | import_file = "MK_L0.csv" |
| 1243 | File = open(import_file, "r") |
| 1244 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 1245 | db.commit() |
| 1246 | import_file = "MK_L1.csv" |
| 1247 | File = open(import_file, "r") |
| 1248 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 1249 | db.commit() |
| 1250 | gis.update_location_tree() |
| 1251 | db.commit() |
| 1252 | }}} |
| 1253 | |