Changes between Version 25 and Version 26 of Deployments/Sandy


Ignore:
Timestamp:
11/04/12 20:10:20 (12 years ago)
Author:
Pat Tressel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Deployments/Sandy

    v25 v26  
    6262   Click the 'Download template' link to get a blank sample
    6363 * Location hierarchy & wkt \\
    64    location.xsl
     64   Fran's CLI process to import location CSVs:
     65{{{
     66auth.override = True
     67resource = s3db.resource("gis_location")
     68stylesheet = os.path.join(request.folder, "static", "formats", "s3csv", "gis", "location.xsl")
     69import_file = os.path.join("/", "home", "data", "US_L2.csv")
     70File = open(import_file, "r")
     71resource.import_xml(File, format="csv", stylesheet=stylesheet)
     72db.commit()
     73}}}
    6574 * http://eden.sahanafoundation.org/wiki/UserGuidelinesGISData
    6675 * http://eden.sahanafoundation.org/wiki/GIS/OpenStreetMap#Import