#! /bin/sh

DB=${1:-geoville}

set -v

$GEOHOME/postgres/makemenu $DB

monitor -c "delete geo_menu" $DB
monitor -c "append geo_menu(dynfile=\"$GEOHOME/dynamic/PathMenu.o\", dynfunc=\"make_path_menu\")" $DB

$GEOHOME/analyses/makePathOids $DB

monitor -c "define view Path (Road.all) where Road.oid = PathOids.the_oid" $DB

$GEOHOME/postgres/adddyn Path geo_pln2 None "" make_pln2_shape '$GEOHOME/geo-ext/Geo2Shapes.o' $DB

monitor -c "define index Road_index on Road using btree (oid oid_ops)" $DB

