Changes between Version 34 and Version 35 of GIS/Data


Ignore:
Timestamp:
05/08/14 18:56:51 (11 years ago)
Author:
Fran Boon
Comment:

+PG

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v34 v35  
    99* Excel and Open Office can truncate WKTs
    1010It is safest (and fastest) to use a plain text editor (eg. Notepad++)
     11
    1112== Asia ==
    1213
     
    843844}}}
    844845
     846== Oceania ==
     847=== Papua New Guinea ===
     848Admin Boundaries:
     849* [http://eden.sahanafoundation.org/downloads/PG_Lx.7z PG_Lx.7z]
     850
     851These have come originally from [http://gadm.org GADM] with L3 & L4 added from Wikipedia.
     852
     853Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     854{{{
     855cd /home/web2py
     856p7zip -d PG_Lx.7z
     857python web2py.py -S eden -M
     858
     859auth.override = True
     860settings.L10n.languages["tpi"] = "Tok Pisin"
     861settings.L10n.languages["ho"] = "Hiri Motu"
     862resource = s3db.resource("gis_location")
     863stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     864import_file = "PG_L0.csv"
     865File = open(import_file, "r")
     866resource.import_xml(File, format="csv", stylesheet=stylesheet)
     867db.commit()
     868import_file = "PG_L1.csv"
     869File = open(import_file, "r")
     870resource.import_xml(File, format="csv", stylesheet=stylesheet)
     871db.commit()
     872import_file = "PG_L2.csv"
     873File = open(import_file, "r")
     874resource.import_xml(File, format="csv", stylesheet=stylesheet)
     875db.commit()
     876filename = "PG_L3.csv"
     877File = open(filename, "r")
     878resource.import_xml(File, format="csv", stylesheet=stylesheet)
     879db.commit()
     880filename = "PG_L4.csv"
     881File = open(filename, "r")
     882resource.import_xml(File, format="csv", stylesheet=stylesheet)
     883db.commit()
     884gis.update_location_tree()
     885db.commit()
     886}}}
     887
    845888== Other Data Sources ==
    846889* https://cod.humanitarianresponse.info - official UN source of boundaries & P-Codes