Skip to content

Commit c6bcc43

Browse files
committed
removed comments from code
1 parent 3df2252 commit c6bcc43

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

shp-to-geojson.sh

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ for FILE in ${1:-}*.shp # cycles through all files in directory (case-sensitive!
77
do
88
SIZE=$(ls -al "$FILE" | awk '{print $5}')
99
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
2121
done
2222
exit

0 commit comments

Comments
 (0)