Changes between Version 187 and Version 188 of UserGuidelines/GIS/Data
- Timestamp:
- 11/17/11 16:51:01 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UserGuidelines/GIS/Data
v187 v188 329 329 There are often better local sources for specific countries, although getting hold of these can be difficult. 330 330 Note that some countries have boundaries which change frequently and so datasets can often be a little out of date. 331 332 To import into Sahana Eden's gis_location table: 333 * Install Python GDAL bindings: GDAL-1.8.1.tar.gz 334 * Open a web2py CLI: 335 {{{ 336 python web2py.py -S eden -M 337 }}} 338 * Optionally, define a filter for which countries you wish to import data, e.g. for Asia-Pacific: 339 {{{ 340 countries = [ "AF", "AU", "BD", "BN", "CK", "CN", "FJ", "FM", "HK", "ID", "IN", "JP", "KH", "KI", "KP", "KR", "LA", "MH", "MM", "MN", "MV", "MY", "NP", "NZ", "PG", "PH", "PK", "PW", "SB", "SG", "SL", "TH", "TL", "TO", "TV", "TW", "VN", "VU", "WS"] 341 }}} 342 * Import: 343 {{{ 344 gis.import_admin_areas(countries=countries) 345 }}} 346 331 347 332 348 To import into PostGIS for serving as WMS: