source: subversion/applications/rendering/toposm/set-toposm-env @ 34399

Last change on this file since 34399 was 25435, checked in by ahlzen, 9 years ago

Minor refactoring and cleanup of the TopOSM code.

File size: 1.4 KB
Line 
1#!/bin/sh
2
3# Configures the environment for TopOSM rendering.
4# Change these settings to match your setup.
5
6# Postgres settings
7export DB_NAME="gis"
8export DB_PORT=5432 # local postgres port
9export DB_PREFIX="us_osm" # prefix for all tables
10export DB_USER=`whoami` # username
11export CONTOURS_TABLE="contours_us"
12export NHD_TABLE_PREFIX="nhd"
13
14# Data directories
15export WORLD_BOUNDARIES_DIR="geodata/osm/world_boundaries"
16export NHD_DIR="temp/nhd" # contains (unpacked) NHD shapefiles
17export NED13_DIR="usgs/hsm/iadd1/ned/13arcsec/grid" # 1/3" NED data
18
19# Output directories
20export BASE_TILE_DIR="tile" # output directory
21export TEMP_DIR="temp" # preprocessed data and temporary files
22
23# Program locations
24export HILLSHADE="$HOME/bin/hillshade"
25export COLORRELIEF="$HOME/bin/color-relief"
26
27# Misc files
28export OSM2PGSQL_STYLE_FILE="/usr/share/osm2pgsql/default.style"
29export COLORFILE="colors.txt" # elevation-to-color mapping
30
31# Render settings
32export RENDER_THREADS=4 # typically equal to # of cores
33export TILE_SIZE=256
34export BORDER_WIDTH=128
35export ERROR_LOG="errors.log"
36
37# Quality setting for combined JPEG layer
38export JPEG_QUALITY=90
39
40# The area we're interested in
41# (this setting limits both import and rendering)
42# E.g. Conterminous US: "-127,23,-65,51"
43export EXTENTS_LATLON="-127,23,-65,51"
44export EXTENTS_MERCATOR="-20037508,-19929239,20037508,19929239"
45
46# Used to check that the env is set. Don't modify.
47export TOPOSM_ENV_SET=1
48
Note: See TracBrowser for help on using the repository browser.