This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # loop through all of the shapefiles in the directory and act on them | |
| # http://trac.osgeo.org/gdal/wiki/FAQVector#HowcanImergehundredsofShapefiles | |
| # http://stackoverflow.com/questions/965053/extract-filename-and-extension-in-bash | |
| # !IMPORTANT: OGR 1.9 for direct to PostGIS support, linestring-multilinestring, and character encoding support. | |
| if [ $# -ne 1 ]; then | |
| echo "USAGE: ./import.sh <in_dir_path>" |