Changes between Version 167 and Version 168 of GIS/Data


Ignore:
Timestamp:
04/02/20 21:07:30 (5 years ago)
Author:
Fran Boon
Comment:

+PL

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v167 v168  
    24482448}}}
    24492449
     2450=== Poland ===
     2451Admin Boundaries:
     2452* [http://eden.sahanafoundation.org/downloads/PL_Lx.7z PL_Lx.7z]
     2453
     2454These have come originally from [http://gadm.org GADM].
     2455
     2456Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     2457{{{
     2458cd /home/web2py
     2459p7zip -d PL_Lx.7z
     2460python web2py.py -S eden -M
     2461
     2462auth.override = True
     2463languages = s3.l10n_languages
     2464languages["pl"] = "Polish"
     2465resource = s3db.resource("gis_location")
     2466stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     2467import_file = "PL_L0.csv"
     2468File = open(import_file, "r")
     2469resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2470db.commit()
     2471import_file = "PL_L1.csv"
     2472File = open(import_file, "r")
     2473resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2474db.commit()
     2475import_file = "PL_L2.csv"
     2476File = open(import_file, "r")
     2477resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2478db.commit()
     2479import_file = "PL_L3.csv"
     2480File = open(import_file, "r")
     2481resource.import_xml(File, format="csv", stylesheet=stylesheet)
     2482db.commit()
     2483gis.update_location_tree()
     2484db.commit()
     2485}}}
     2486
    24502487=== Serbia ===
    24512488Admin Boundaries: