Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShpToZip

The utility script ShpToZip.py automates the task of converting ArcGIS .shp files to .zip archives.

The script was developed for Geospatial Data Analysis: UBC course external link

Table of Contents

  • Software framework
  • Version control
  • Executing
  • Contributors
  • Licence
  • References

Software framework

Required software (version used during development)

Optional software (version used during development)

Version control

Version (date): 01.02 (15 OCT 2017)

Versionining was performed with Git. To review version history, the folder 17ubcCgem530_Lab04_Repo can be opened in Git as a repository.

Executing

To execute as a module, copy ShpToZip.py (along with associated files ShpToZip_README.md and ShpToZip_LICENCE.md) to the folder containing the calling script. The module can be called with the following parameters:

# Import module
import ShpToZip

# Location of the folder that contains the output .shp files
dirOut = "C:\\folderName"

# Execute module
ShpToZip.ShpToZipInDir(dirOut)

Contributors

deepVector - Author

Code elements adapted from:

  • mafic9 et al. (2015)
  • Esri (2017)
  • Greer (2017)

Licence

This script is licensed under the terms of the MIT Licence (see LICENSE.md).

References

Esri, 2017, Zip (compress) Python script, online: https://desktop.arcgis.com/en/arcmap/latest/analyze/sharing-workflows/h-zip-python-script.htm [accessed 14 October 2017].

Greer, B., 2017, Zip all shapefiles in directory individually, online: http://www.bgcarto.com/zip-all-shapefiles-in-directory-individually/[accessed 14 October 2017].

mafic9, Hornbydd, lpugh01, oogalabs1, johnswood, hzhu, and yooperjb, 2015, Zipping multiple shapefiles to multiple zip folders, online: https://community.esri.com/thread/28985 [accessed 14 October 2017].

About

The utility script automates the task of converting ArcGIS .shp files to .zip archives.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages