source: subversion/applications/rendering/toposm/prep_contours_table @ 29599

Last change on this file since 29599 was 22872, checked in by ahlzen, 9 years ago

Added central configuration script.

  • Property svn:executable set to *
File size: 286 bytes
Line 
1#!/bin/bash
2
3if [[ -z $TOPOSM_ENV_SET ]]; then
4    echo "Error: TopOSM environment not set."
5    exit 1
6fi
7
8DBCMD="psql -q -p $DB_PORT $DB_NAME $DB_USER"
9
10shp2pgsql -p -I -g way contours.shp $CONTOURS_TABLE | $DBCMD
11echo "ALTER TABLE $CONTOURS_TABLE ADD COLUMN height_ft INT" | $DBCMD
12
Note: See TracBrowser for help on using the repository browser.