summaryrefslogtreecommitdiff
path: root/ipl/gpacks/tiger/tgrstrip
diff options
context:
space:
mode:
Diffstat (limited to 'ipl/gpacks/tiger/tgrstrip')
-rwxr-xr-xipl/gpacks/tiger/tgrstrip13
1 files changed, 13 insertions, 0 deletions
diff --git a/ipl/gpacks/tiger/tgrstrip b/ipl/gpacks/tiger/tgrstrip
new file mode 100755
index 0000000..46338e0
--- /dev/null
+++ b/ipl/gpacks/tiger/tgrstrip
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# tgrstrip [file] -- remove details from line chain file
+#
+# Filters a line chain file to remove hydrology (water), pipelines,
+# powerlines, and minor roads, except when any of these coincides
+# with a major boundary line. The effect of this is to produce a
+# much smaller file with less detail.
+
+sed '
+ /^[CEFH]..0/d
+ /^A[4-9].0/d
+' $*