Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compliance to PEP8 style guide, typo correction and some revision
List of changes: - Coding revised to fully comply to PEP8 style guide - A documentation typo has been fixed - Additional documentation provided - Some minor code improvements - Rebased UNIX compatibility and other improvements - code compacted and exploiting a dictionary - added execution flag - tested with Windows, Ubuntu and Cygwin - file dates are checked before downloading new files - curl is used if available - return codes are checked - documentation updated - now update is the default and does not require confirmation - code improvements $ ./get-shapefiles.py -h usage: get-shapefiles1.py [-h] [-c] [-d <directory name>] [-e] [-f] [-l] [-n] [-p] [-r] [-s] [-u] [-1] [-2] [-3] [-4] [-5] [-6] optional arguments: -h, --help show this help message and exit -c, --check check whether the 'data' directory already exists -d <directory name>, --directory <directory name> set the name of the data directory (default: 'data') -e, --no-extract do not populate target directories with the expansion of downloaded data -f, --force force continuing even if project.yaml does not exist -l, --no-curl do not use 'curl' even if available -n, --no-download do not download archive if already existing locally -p, --pause pause before starting -r, --remove remove each downloaded archive after its expansion -s, --no-shape do not run shapeindex -u, --update force downloading files even if not newer than the locally existing ones -1, --world-boundaries only process world_boundaries -2, --simplified-land only process simplified-land-polygons-complete-3857 -3, --ne-admin only process ne_110m_admin_0_boundary_lines_land -4, --land-polygons only process land-polygons-split-3857 -5, --icesheet-polygons only process antarctica-icesheet-polygons-3857 -6, --icesheet-outlines only process antarctica-icesheet-outlines-3857 This script generates and populates the 'data' directory with all needed shapefiles, including indexing them through shapeindex. git update-index --add --chmod=+x scripts/get-shapefiles.py Corrected script directory to scripts in INSTALL.md
- Loading branch information