143
143
if [ $TABLEEXISTS -eq 1 ] ; then
144
144
v.db.select -c map="$MAP" layer="$LAYER" | sort -n -t'|' -k 1 | grep -v '^0' > "$TMP1"
145
145
if [ `wc -l "$TMP1" | awk '{print $1}'` -eq 0 ] ; then
147
147
g.message -e "There is a table connected to input vector map '$MAP', but\
148
148
there are no categories present in the key column '$KEY'. Consider using\
149
149
v.to.db to correct this."