We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14f6524 commit ba13b25Copy full SHA for ba13b25
shp-to-geojson.sh
@@ -5,7 +5,12 @@
5
NEWDIR=${2:-"$1/geojson"}
6
for FILE in ${1:-}*.shp # cycles through all files in directory (case-sensitive!)
7
do
8
- echo "converting file: $FILE..."
+ if [stat -c %s $FILE > 30000000]
9
+ then
10
+ echo "Skipping $FILE because it's pretty big and GitHub might complain!"
11
+ continue
12
+ fi
13
+ echo "converting file: $FILE...into $NEWDIR$FILENEW..."
14
FILENEW=`echo | basename $FILE | sed "s/.shp/_new.geojson/"` # replaces old filename
15
ogr2ogr \
16
-f "GeoJSON" \
0 commit comments