Created
April 8, 2013 17:34
-
-
Save mtravis/5338707 to your computer and use it in GitHub Desktop.
Loader config for Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: Environment variables can be used with any of | |
# the options by using a token of the form: | |
# $HOME, ${HOME} or %TEMP% (Windows only) | |
# The directory containing your source files. | |
# All supported files in the specified directory and | |
# it's descendants will be loaded. | |
src_dir=/home/matt/loader/data/import/ | |
# The directory used to store the translated data | |
# if writing to a file based format such as ESRI | |
# Shape, MapInfo TAB etc. | |
out_dir=/home/matt/loader/data/export/ | |
# The directory used to store temporary working files | |
# during loading. | |
tmp_dir=/home/matt/loader/data/temp/ | |
# The ogr2ogr command that will be used to load the data. | |
# Here you can specify the destination format and any | |
# associated settings (for example database connection | |
# details if you are writing to PostGIS). | |
# As well as environment variables the following tokens can | |
# be used which will be substituted at runtime: | |
# $output_dir - the directory specified by the out_dir setting | |
# $base_file_name - the file name of the file to be loaded | |
# $file_path - the full path of the file to be loaded | |
ogr_cmd=ogr2ogr -append -skipfailures -f PostgreSQL PG:'dbname=osmm active_schema=public host=localhost port=5432 user=postgres password=postgres' $file_path | |
# The command used to prepare the source | |
# data so it is suitable for loading with OGR. Choose a prep | |
# class appropriate for your data, for Ordnance Survey | |
# products take a look at prep_osgml.py for the available classes. | |
prep_cmd=python prepgml4ogr.py $file_path prep_osmm_topo | |
# An optional command to be run once OGR has created it's output. | |
# Called once per file, useful for loading SQL dump files etc. | |
# All of the tokens available to the ogr_cmd can be used here. | |
post_cmd= | |
# Optional OGR .gfs file used to define the | |
# feature attributes and geometry type of | |
# the features read from the GML. | |
gfs_file=../gfs/osmm_topo_postgres.gfs | |
# Whether to output debug messages and keep | |
# temporary files (True or False). | |
debug=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment