File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,16 @@ for FILE in ${1:-}*.shp # cycles through all files in directory (case-sensitive!
7
7
do
8
8
SIZE=$( ls -al " $FILE " | awk ' {print $5}' )
9
9
echo " $SIZE bytes"
10
- # if [ "$SIZE" -gt "30000000" ]
11
- # then
12
- # echo "WARNING: Skipping $FILE because it's pretty big and GitHub might complain!"
13
- # continue
14
- # fi
15
- # FILENEW=`echo | basename $FILE | sed "s/.shp/_new.geojson/"` # replaces old filename
16
- # echo "converting file: $FILE...into $FILENEW..."
17
- # ogr2ogr \
18
- # -f "GeoJSON" \
19
- # -t_srs "urn:ogc:def:crs:OGC:1.3:CRS84" \
20
- # $NEWDIR$FILENEW $FILE
10
+ if [ " $SIZE " -gt " 30000000" ]
11
+ then
12
+ echo " WARNING: Skipping $FILE because it's pretty big and GitHub might complain!"
13
+ continue
14
+ fi
15
+ FILENEW=` echo | basename $FILE | sed " s/.shp/_new.geojson/" ` # replaces old filename
16
+ echo " converting file: $FILE ...into $FILENEW ..."
17
+ ogr2ogr \
18
+ -f " GeoJSON" \
19
+ -t_srs " urn:ogc:def:crs:OGC:1.3:CRS84" \
20
+ $NEWDIR$FILENEW $FILE
21
21
done
22
22
exit
You can’t perform that action at this time.
0 commit comments