fn_echo "An error occurred while creating the node_density table for '${CITY}' using isochrone-tools. The process will exit now with status $?""ERROR"
exit$?
local exists_density=$(PGPASSWORD="$PG_DB_PASSWORD"${EXEC_PSQL}-qAt-U"$PG_DB_USER"-h localhost -d isochrone -c"SELECT EXISTS (SELECT * FROM pg_class C LEFT JOIN pg_namespace N ON (N.oid=C.relnamespace) WHERE nspname = 'public' AND relname='${CITY}_nodes_density')")
if["$exists_density"=="t"];then
fn_echo " - nodes_density exists... not re-creating table"
else
fn_echo " - nodes_densities does not exist... creating table"