| 239 | == Europe == |
| 240 | === Greece === |
| 241 | Admin Boundaries: |
| 242 | * [http://eden.sahanafoundation.org/downloads/GR_Lx.7z GR_Lx.7z] |
| 243 | |
| 244 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| 245 | {{{ |
| 246 | cd /home/web2py |
| 247 | p7zip -d JO_Lx.7z |
| 248 | python web2py.py -S eden -M |
| 249 | |
| 250 | auth.override = True |
| 251 | settings.L10n.languages["el"] = "Greek" |
| 252 | resource = s3db.resource("gis_location") |
| 253 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| 254 | import_file = "GR_L1.csv" |
| 255 | File = open(import_file, "r") |
| 256 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 257 | db.commit() |
| 258 | import_file = "GR_L2.csv" |
| 259 | File = open(import_file, "r") |
| 260 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 261 | db.commit() |
| 262 | import_file = "GR_L3.csv" |
| 263 | File = open(import_file, "r") |
| 264 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 265 | db.commit() |
| 266 | import_file = "GR_L4.csv" |
| 267 | File = open(import_file, "r") |
| 268 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| 269 | db.commit() |
| 270 | gis.update_location_tree() |
| 271 | db.commit() |
| 272 | }}} |
| 273 | |