Skip to content

Commit

Permalink
import_planet doesn't seem to understand how to read from stdin, and …
Browse files Browse the repository at this point in the history
…was assuming database is local.
  • Loading branch information
bnordgren committed Dec 10, 2016
1 parent bf5190b commit 3d986cf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions import_planet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fi
#fi


DBCMD="psql -q -p $DB_PORT $DB_NAME $DB_USER"
DBCMD="psql -q -U $DB_USER -h $DB_HOST -p $DB_PORT $DB_NAME $DB_NAME"

# Import data files.
while [ $# -gt 0 ]; do
Expand Down Expand Up @@ -59,11 +59,10 @@ while [ $# -gt 0 ]; do
# -U "$DB_USER" --prefix "$DB_PREFIX" \
# --slim -C 2000 -

$CAT "$SRCFILE" | \
osm2pgsql -m $OPERATOR --bbox "$EXTENTS_LATLON" \
--style "$OSM2PGSQL_STYLE_FILE" -P $DB_PORT -d "$DB_NAME" \
-U "$DB_USER" --prefix "$DB_PREFIX" \
--slim -C 2000 -
-H "$DB_HOST" -U "$DB_USER" --prefix "$DB_PREFIX" \
--slim -C 2000 $SRCFILE

shift
done
Expand Down

0 comments on commit 3d986cf

Please sign in to comment.