| | 174 | |
| | 175 | === Honduras === |
| | 176 | Admin Boundaries: |
| | 177 | * [http://eden.sahanafoundation.org/downloads/HN_Lx.7z HN_Lx.7z] |
| | 178 | |
| | 179 | L0 and L1 have come originally from [http://cod.humanitarianresponse.info COD] with L2 from [http://gadm.org GADM] |
| | 180 | |
| | 181 | Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this: |
| | 182 | {{{ |
| | 183 | cd /home/web2py |
| | 184 | p7zip -d HN_Lx.7z |
| | 185 | python web2py.py -S eden -M |
| | 186 | |
| | 187 | auth.override = True |
| | 188 | stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl") |
| | 189 | resource = s3db.resource("gis_location") |
| | 190 | filename = "HN_L0.csv" |
| | 191 | File = open(filename, "r") |
| | 192 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 193 | db.commit() |
| | 194 | filename = "HN_L1.csv" |
| | 195 | File = open(filename, "r") |
| | 196 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 197 | db.commit() |
| | 198 | filename = "HN_L2.csv" |
| | 199 | File = open(filename, "r") |
| | 200 | resource.import_xml(File, format="csv", stylesheet=stylesheet) |
| | 201 | db.commit() |
| | 202 | gis.update_location_tree() |
| | 203 | db.commit() |
| | 204 | }}} |