Changes between Version 166 and Version 167 of GIS/Data


Ignore:
Timestamp:
03/27/20 22:07:09 (19 months ago)
Author:
Fran Boon
Comment:

US Airports

Legend:

Unmodified
Added
Removed
Modified
  • GIS/Data

    v166 v167  
    10261026}}}
    10271027
     1028Airports & Heliports:
     1029* [http://eden.sahanafoundation.org/downloads/US_Transport.7z US_Transport.7z]
     1030
     1031These have come originally from [https://data.humdata.org/dataset/ourairports-usa HDX] with L1 fixed & L2 added
     1032
     1033Use [http://7zip.org 7-Zip] to extract to your web2py folder & then install like this:
     1034{{{
     1035cd /home/web2py
     1036p7zip -d US_Transport.7z
     1037python web2py.py -S eden -M
     1038
     1039auth.override = True
     1040stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "transport", "airport.xsl")
     1041resource = s3db.resource("transport_airport")
     1042filename = "airport.csv"
     1043File = open(filename, "r")
     1044resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1045db.commit()
     1046stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "transport", "heliport.xsl")
     1047resource = s3db.resource("transport_heliport")
     1048filename = "heliport.csv"
     1049File = open(filename, "r")
     1050resource.import_xml(File, format="csv", stylesheet=stylesheet)
     1051db.commit()
     1052gis.update_location_tree()
     1053db.commit()
     1054}}}
    10281055== Asia ==
    10291056