From 8394e604f09a989582c5eda694c8e06b64d9da17 Mon Sep 17 00:00:00 2001 From: Martin Spott Date: Wed, 28 Sep 2011 04:30:21 -0700 Subject: [PATCH] PostGIS 2.x nomenclatura cleanup --- gisscripts/grass01import.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gisscripts/grass01import.sh b/gisscripts/grass01import.sh index f647633b..2681c550 100755 --- a/gisscripts/grass01import.sh +++ b/gisscripts/grass01import.sh @@ -57,7 +57,7 @@ case ${MODE} in PREFIX=cs_ # Maybe unsafe because "_" matches any single character in LIKE; # escape understores. - SELECTION=`${PSQL} "SELECT f_table_name FROM geometry_columns WHERE f_table_name LIKE '$(echo ${PREFIX} | sed -e 's/_/\\_/g')%' AND type LIKE 'POLYGON' ORDER BY f_table_name"` + SELECTION=`${PSQL} "SELECT f_table_name FROM geometry_columns WHERE f_table_name LIKE '$(echo ${PREFIX} | sed -e 's/_/\\_/g')%' AND type LIKE 'ST_Polygon' ORDER BY f_table_name"` # SELECTION=`psql -tA -c "\dt" | awk -F\| '{print $2}' | grep \^${PREFIX}` SNAP=0.0003 # Fits nicely with VMap0, consider SNAP=0.00001 for accurate data # SPAT="spatial=2.8,49.8,8.2,54.2" # spatial=-123,37,-121,38 # spatial=3,50,8,54