Changes between Version 24 and Version 25 of GIS/Data


Ignore:
Timestamp:
02/13/14 17:28:15 (11 years ago)
Author:
Fran Boon
Comment:

+IQ, TL, TR Lx

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v24 v25  
    99* [http://eden.sahanafoundation.org/downloads/KH_Lx.7z KH_Lx.7z]
    1010
    11 These have come originally from [http://gadm.org COD] with Khmer names, Hierarchy, Newer locations and better Romanised names from Wikipedia.[[BR]]
    12 (The CODS dataset is a little more complete than the GADM one, although is very similar)
     11These have come originally from [https://cod.humanitarianresponse.info COD] with Khmer names, Hierarchy, Newer locations and better Romanised names from Wikipedia.[[BR]]
     12(The COD dataset is a little more complete than the GADM one, although is very similar)
    1313
    1414Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     
    156156}}}
    157157
     158=== Timor-Leste ===
     159Admin Boundaries:
     160* [http://eden.sahanafoundation.org/downloads/TL_Lx.7z TL_Lx.7z]
     161
     162These have come originally from [https://cod.humanitarianresponse.info COD]
     163
     164Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     165{{{
     166cd /home/web2py
     167p7zip -d TL_Lx.7z
     168python web2py.py -S eden -M
     169
     170auth.override = True
     171resource = s3db.resource("gis_location")
     172stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     173import_file = "TL_L1.csv"
     174File = open(import_file, "r")
     175resource.import_xml(File, format="csv", stylesheet=stylesheet)
     176db.commit()
     177import_file = "TL_L2.csv"
     178File = open(import_file, "r")
     179resource.import_xml(File, format="csv", stylesheet=stylesheet)
     180db.commit()
     181import_file = "TL_L3.csv"
     182File = open(import_file, "r")
     183resource.import_xml(File, format="csv", stylesheet=stylesheet)
     184db.commit()
     185gis.update_location_tree()
     186db.commit()
     187}}}
    158188
    159189=== Vietnam ===
     
    273303
    274304== Middle East ==
     305=== Iraq===
     306Admin Boundaries:
     307* [http://eden.sahanafoundation.org/downloads/IQ_Lx.7z IQ_Lx.7z]
     308
     309These have come originally from [https://cod.humanitarianresponse.info COD]
     310
     311Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     312{{{
     313cd /home/web2py
     314p7zip -d IQ_Lx.7z
     315python web2py.py -S eden -M
     316
     317auth.override = True
     318resource = s3db.resource("gis_location")
     319stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     320import_file = "IQ_L0.csv"
     321File = open(import_file, "r")
     322resource.import_xml(File, format="csv", stylesheet=stylesheet)
     323db.commit()
     324import_file = "IQ_L1.csv"
     325File = open(import_file, "r")
     326resource.import_xml(File, format="csv", stylesheet=stylesheet)
     327db.commit()
     328import_file = "IQ_L2.csv"
     329File = open(import_file, "r")
     330resource.import_xml(File, format="csv", stylesheet=stylesheet)
     331db.commit()
     332import_file = "IQ_L3.csv"
     333File = open(import_file, "r")
     334resource.import_xml(File, format="csv", stylesheet=stylesheet)
     335db.commit()
     336gis.update_location_tree()
     337db.commit()
     338}}}
     339
    275340=== Jordan ===
    276341Admin Boundaries:
     
    382447db.commit()
    383448}}}
     449
     450=== Turkey ===
     451Admin Boundaries:
     452* [http://eden.sahanafoundation.org/downloads/TR_Lx.7z TR_Lx.7z]
     453
     454These have come originally from [https://cod.humanitarianresponse.info COD]
     455
     456Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     457{{{
     458cd /home/web2py
     459p7zip -d TR_Lx.7z
     460python web2py.py -S eden -M
     461
     462auth.override = True
     463resource = s3db.resource("gis_location")
     464stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     465import_file = "TR_L0.csv"
     466File = open(import_file, "r")
     467resource.import_xml(File, format="csv", stylesheet=stylesheet)
     468db.commit()
     469import_file = "TR_L1.csv"
     470File = open(import_file, "r")
     471resource.import_xml(File, format="csv", stylesheet=stylesheet)
     472db.commit()
     473import_file = "TR_L2.csv"
     474File = open(import_file, "r")
     475resource.import_xml(File, format="csv", stylesheet=stylesheet)
     476db.commit()
     477gis.update_location_tree()
     478db.commit()
     479}}}
     480
    384481== Other Data Sources ==
    385482* https://cod.humanitarianresponse.info - official UN source of boundaries & P-Codes