Changes between Version 36 and Version 37 of GIS/Data


Ignore:
Timestamp:
05/21/14 22:05:42 (8 years ago)
Author:
Fran Boon
Comment:

+BA

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v36 v37  
    129129db.commit()
    130130import_file = "KH_L3.csv"
    131 File = open(import_file, "r")
    132 resource.import_xml(File, format="csv", stylesheet=stylesheet)
    133 db.commit()
    134 gis.update_location_tree()
    135 db.commit()
    136 }}}
    137 
    138 === Georgia ===
    139 Admin Boundaries:
    140 * [http://eden.sahanafoundation.org/downloads/GE_Lx.7z GE_Lx.7z]
    141 
    142 These have come originally from [http://gadm.org GADM] with Georgian & Russian names added from Wikipedia.
    143 
    144 Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
    145 {{{
    146 cd /home/web2py
    147 p7zip -d GE_Lx.7z
    148 python web2py.py -S eden -M
    149 
    150 auth.override = True
    151 settings.L10n.languages["ka"] = "Georgian"
    152 settings.L10n.languages["ru"] = "Russian"
    153 resource = s3db.resource("gis_location")
    154 stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
    155 import_file = "GE_L0.csv"
    156131File = open(import_file, "r")
    157132resource.import_xml(File, format="csv", stylesheet=stylesheet)
     
    633608
    634609== Europe ==
     610=== Bosnia and Herzegovina ===
     611Admin Boundaries:
     612* [http://eden.sahanafoundation.org/downloads/BA_Lx.7z BA_Lx.7z]
     613
     614These have come originally from [http://gadm.org GADM] with Bosnian, Croatian & Serbian names added from Wikipedia.
     615
     616Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     617{{{
     618cd /home/web2py
     619p7zip -d BA_Lx.7z
     620python web2py.py -S eden -M
     621
     622auth.override = True
     623settings.L10n.languages["bs"] = "Bosnian"
     624settings.L10n.languages["hr"] = "Croatian"
     625settings.L10n.languages["rs"] = "Serbian"
     626stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     627resource = s3db.resource("gis_location")
     628filename = "BA_L0.csv"
     629File = open(filename, "r")
     630resource.import_xml(File, format="csv", stylesheet=stylesheet)
     631db.commit()
     632filename = "BA_L1.csv"
     633File = open(filename, "r")
     634resource.import_xml(File, format="csv", stylesheet=stylesheet)
     635db.commit()
     636filename = "BA_L2.csv"
     637File = open(filename, "r")
     638resource.import_xml(File, format="csv", stylesheet=stylesheet)
     639db.commit()
     640filename = "BA_L3.csv"
     641File = open(filename, "r")
     642resource.import_xml(File, format="csv", stylesheet=stylesheet)
     643db.commit()
     644gis.update_location_tree()
     645db.commit()
     646}}}
     647
     648=== Georgia ===
     649Admin Boundaries:
     650* [http://eden.sahanafoundation.org/downloads/GE_Lx.7z GE_Lx.7z]
     651
     652These have come originally from [http://gadm.org GADM] with Georgian & Russian names added from Wikipedia.
     653
     654Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     655{{{
     656cd /home/web2py
     657p7zip -d GE_Lx.7z
     658python web2py.py -S eden -M
     659
     660auth.override = True
     661settings.L10n.languages["ka"] = "Georgian"
     662settings.L10n.languages["ru"] = "Russian"
     663resource = s3db.resource("gis_location")
     664stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     665import_file = "GE_L0.csv"
     666File = open(import_file, "r")
     667resource.import_xml(File, format="csv", stylesheet=stylesheet)
     668db.commit()
     669gis.update_location_tree()
     670db.commit()
     671}}}
     672
    635673=== Greece ===
    636674Admin Boundaries: