Changes between Version 187 and Version 188 of UserGuidelines/GIS/Data


Ignore:
Timestamp:
11/17/11 16:51:01 (13 years ago)
Author:
Fran Boon
Comment:

Admin Boundary Importer

Legend:

Unmodified
Added
Removed
Modified
  • UserGuidelines/GIS/Data

    v187 v188  
    329329There are often better local sources for specific countries, although getting hold of these can be difficult.
    330330Note that some countries have boundaries which change frequently and so datasets can often be a little out of date.
     331
     332To 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{{{
     336python 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{{{
     340countries = [ "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{{{
     344gis.import_admin_areas(countries=countries)
     345}}}
     346
    331347
    332348To import into PostGIS for serving as WMS: