Permalink
Browse files

add concurrency option to mapproxy-util export

  • Loading branch information...
1 parent 2987bb9 commit 442dd00a233febec8f8a78c6f950f444bbb4f1a1 @olt olt committed Dec 5, 2012
Showing with 8 additions and 1 deletion.
  1. +3 −0 doc/mapproxy_util.rst
  2. +5 −1 mapproxy/script/export.py
View
@@ -482,6 +482,9 @@ Other options:
Limit the export to this coverage. You can use a BBOX, WKT files or OGR datasources. See :doc:`coverages`.
+.. option:: -c N, --concurrency N
+
+ The number of concurrent export processes.
Export types
@@ -124,6 +124,10 @@ def export_command(args=None):
action="store_true", default=False,
help="do not export, just print output")
+ parser.add_option("-c", "--concurrency", type="int",
+ dest="concurrency", default=1,
+ help="number of parallel export processes")
+
parser.add_option("--coverage",
help="the coverage for the export as a BBOX string, WKT file "
"or OGR datasource")
@@ -248,7 +252,7 @@ def export_command(args=None):
logger = ProgressLog(verbose=True, silent=False)
try:
seed_task(task, progress_logger=logger, dry_run=options.dry_run,
- concurrency=1)
+ concurrency=options.concurrency)
except KeyboardInterrupt:
print >>sys.stderr, 'stopping...'
sys.exit(2)

0 comments on commit 442dd00

Please sign in to comment.