/usr/share/doc/mapproxy/html/mapproxy_util.html is in mapproxy-doc 1.9.0-3+deb9u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>mapproxy-util — MapProxy 1.8.2a0 Docs</title>
<link rel="stylesheet" href="_static/basic.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/bootstrap-3.3.6/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="_static/bootstrap-3.3.6/css/bootstrap-theme.min.css" type="text/css" />
<link rel="stylesheet" href="_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet" href="_static/mapproxy.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '1.8.2a0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="_static/js/jquery-fix.js"></script>
<script type="text/javascript" src="_static/bootstrap-3.3.6/js/bootstrap.min.js"></script>
<script type="text/javascript" src="_static/bootstrap-sphinx.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="top" title="MapProxy 1.8.2a0 Docs" href="index.html" />
<link rel="next" title="mapproxy-util autoconfig" href="mapproxy_util_autoconfig.html" />
<link rel="prev" title="Coverages" href="coverages.html" />
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
<meta name="apple-mobile-web-app-capable" content="yes">
</head>
<body role="document">
<div id="navbar" class="navbar navbar-default ">
<div class="container">
<div class="navbar-header">
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.html" class="pull-left"><img src="_static/logo.png" height="50">
</a>
<a class="navbar-brand" href="index.html">
<span>
MapProxy</span>
<span>1.8.2a0</span>
</a>
</div>
<div class="collapse navbar-collapse nav-collapse">
<form class="navbar-form navbar-right" action="search.html" method="get">
<div class="form-group">
<input type="text" name="q" class="form-control" placeholder="Search" />
</div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-3">
<div id="sidebar" class="bs-sidenav" role="complementary"><ul class="current">
<li class="toctree-l1"><a class="reference internal" href="install.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="install_windows.html">Installation on Windows</a></li>
<li class="toctree-l1"><a class="reference internal" href="install_osgeo4w.html">Installation on OSGeo4W</a></li>
<li class="toctree-l1"><a class="reference internal" href="tutorial.html">Tutorial</a></li>
<li class="toctree-l1"><a class="reference internal" href="configuration.html">Configuration</a></li>
<li class="toctree-l1"><a class="reference internal" href="services.html">Services</a></li>
<li class="toctree-l1"><a class="reference internal" href="sources.html">Sources</a></li>
<li class="toctree-l1"><a class="reference internal" href="caches.html">Caches</a></li>
<li class="toctree-l1"><a class="reference internal" href="seed.html">Seeding</a></li>
<li class="toctree-l1"><a class="reference internal" href="coverages.html">Coverages</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">mapproxy-util</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#create"><code class="docutils literal"><span class="pre">create</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="#serve-develop"><code class="docutils literal"><span class="pre">serve-develop</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="#serve-multiapp-develop"><code class="docutils literal"><span class="pre">serve-multiapp-develop</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="#scales"><code class="docutils literal"><span class="pre">scales</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="#wms-capabilities"><code class="docutils literal"><span class="pre">wms-capabilities</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="#grids"><code class="docutils literal"><span class="pre">grids</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="#export"><code class="docutils literal"><span class="pre">export</span></code></a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="mapproxy_util_autoconfig.html">mapproxy-util autoconfig</a></li>
<li class="toctree-l1"><a class="reference internal" href="deployment.html">Deployment</a></li>
<li class="toctree-l1"><a class="reference internal" href="configuration_examples.html">Configuration examples</a></li>
<li class="toctree-l1"><a class="reference internal" href="inspire.html">INSPIRE View Service</a></li>
<li class="toctree-l1"><a class="reference internal" href="labeling.html">WMS Labeling</a></li>
<li class="toctree-l1"><a class="reference internal" href="auth.html">Authentication and Authorization</a></li>
<li class="toctree-l1"><a class="reference internal" href="decorate_img.html">Decorate Image</a></li>
<li class="toctree-l1"><a class="reference internal" href="development.html">Development</a></li>
<li class="toctree-l1"><a class="reference internal" href="mapproxy_2.html">MapProxy 2.0</a></li>
</ul>
</div>
</div>
<div class="col-md-8">
<div class="section" id="mapproxy-util">
<span id="id1"></span><h1>mapproxy-util<a class="headerlink" href="#mapproxy-util" title="Permalink to this headline">¶</a></h1>
<p>The commandline tool <code class="docutils literal"><span class="pre">mapproxy-util</span></code> provides sub-commands that are helpful when working with MapProxy.</p>
<p>To get a list of all sub-commands call:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mapproxy</span><span class="o">-</span><span class="n">util</span>
</pre></div>
</div>
<p>To call a sub-command:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mapproxy</span><span class="o">-</span><span class="n">util</span> <span class="n">subcommand</span>
</pre></div>
</div>
<p>Each sub-command provides additional information:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mapproxy</span><span class="o">-</span><span class="n">util</span> <span class="n">subcommand</span> <span class="o">--</span><span class="n">help</span>
</pre></div>
</div>
<p>The current sub-commands are:</p>
<ul class="simple">
<li><a class="reference internal" href="#mapproxy-util-create"><span class="std std-ref">create</span></a></li>
<li><a class="reference internal" href="#mapproxy-util-serve-develop"><span class="std std-ref">serve-develop</span></a></li>
<li><a class="reference internal" href="#mapproxy-util-serve-multiapp-develop"><span class="std std-ref">serve-multiapp-develop</span></a></li>
<li><a class="reference internal" href="#mapproxy-util-scales"><span class="std std-ref">scales</span></a></li>
<li><a class="reference internal" href="#mapproxy-util-wms-capabilities"><span class="std std-ref">wms-capabilities</span></a></li>
<li><a class="reference internal" href="#mapproxy-util-grids"><span class="std std-ref">grids</span></a></li>
<li><a class="reference internal" href="#mapproxy-util-export"><span class="std std-ref">export</span></a></li>
<li><code class="docutils literal"><span class="pre">autoconfig</span></code> (see <a class="reference internal" href="mapproxy_util_autoconfig.html#mapproxy-util-autoconfig"><span class="std std-ref">mapproxy-util autoconfig</span></a>)</li>
</ul>
<div class="section" id="create">
<span id="mapproxy-util-create"></span><h2><code class="docutils literal"><span class="pre">create</span></code><a class="headerlink" href="#create" title="Permalink to this headline">¶</a></h2>
<p>This sub-command creates example configurations for you. There are templates for each configuration file.</p>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-create-l">
<span id="cmdoption-mapproxy-util-create--list-templates"></span><code class="descname">-l</code><code class="descclassname"></code><code class="descclassname">, </code><code class="descname">--list-templates</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-create-l" title="Permalink to this definition">¶</a></dt>
<dd><p>List names of all available configuration templates.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-create-t">
<span id="cmdoption-mapproxy-util-create--template"></span><code class="descname">-t</code><code class="descclassname"> <name></code><code class="descclassname">, </code><code class="descname">--template</code><code class="descclassname"> <name></code><a class="headerlink" href="#cmdoption-mapproxy-util-create-t" title="Permalink to this definition">¶</a></dt>
<dd><p>Create a configuration with the named template.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-create-f">
<span id="cmdoption-mapproxy-util-create--mapproxy-conf"></span><code class="descname">-f</code><code class="descclassname"> <mapproxy.yaml></code><code class="descclassname">, </code><code class="descname">--mapproxy-conf</code><code class="descclassname"> <mapproxy.yaml></code><a class="headerlink" href="#cmdoption-mapproxy-util-create-f" title="Permalink to this definition">¶</a></dt>
<dd><p>The path to the MapProxy configuration. Required for some templates.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-create--force">
<code class="descname">--force</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-create--force" title="Permalink to this definition">¶</a></dt>
<dd><p>Overwrite any existing configuration with the same output filename.</p>
</dd></dl>
<div class="section" id="configuration-templates">
<h3>Configuration templates<a class="headerlink" href="#configuration-templates" title="Permalink to this headline">¶</a></h3>
<p>Available templates are:</p>
<dl class="docutils">
<dt>base-config:</dt>
<dd>Creates an example <code class="docutils literal"><span class="pre">mapproxy.yaml</span></code> and <code class="docutils literal"><span class="pre">seed.yaml</span></code> file. You need to pass the destination directory to the command.</dd>
<dt>log-ini:</dt>
<dd>Creates an example logging configuration. You need to pass the target filename to the command.</dd>
<dt>wsgi-app:</dt>
<dd>Creates an example server script for the given MapProxy configuration (<a class="reference internal" href="#cmdoption-mapproxy-util-create-f"><code class="xref std std-option docutils literal"><span class="pre">--f/--mapproxy-conf</span></code></a>) . You need to pass the target filename to the command.</dd>
</dl>
</div>
<div class="section" id="example">
<h3>Example<a class="headerlink" href="#example" title="Permalink to this headline">¶</a></h3>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mapproxy</span><span class="o">-</span><span class="n">util</span> <span class="n">create</span> <span class="o">-</span><span class="n">t</span> <span class="n">base</span><span class="o">-</span><span class="n">config</span> <span class="o">./</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="serve-develop">
<span id="mapproxy-util-serve-develop"></span><span id="index-0"></span><h2><code class="docutils literal"><span class="pre">serve-develop</span></code><a class="headerlink" href="#serve-develop" title="Permalink to this headline">¶</a></h2>
<p>This sub-command starts a MapProxy instance of your configuration as a stand-alone server.</p>
<p>You need to pass the MapProxy configuration as an argument. The server will automatically reload if you change the configuration or any of the MapProxy source code.</p>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-serve-develop-b">
<span id="cmdoption-mapproxy-util-serve-develop--bind"></span><code class="descname">-b</code><code class="descclassname"> <address></code><code class="descclassname">, </code><code class="descname">--bind</code><code class="descclassname"> <address></code><a class="headerlink" href="#cmdoption-mapproxy-util-serve-develop-b" title="Permalink to this definition">¶</a></dt>
<dd><p>The server address where the HTTP server should listen for incomming connections. Can be a port (<code class="docutils literal"><span class="pre">:8080</span></code>), a host (<code class="docutils literal"><span class="pre">localhost</span></code>) or both (<code class="docutils literal"><span class="pre">localhost:8081</span></code>). The default is <code class="docutils literal"><span class="pre">localhost:8080</span></code>. You need to use <code class="docutils literal"><span class="pre">0.0.0.0</span></code> to be able to connect to the server from external clients.</p>
</dd></dl>
<div class="section" id="id2">
<h3>Example<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h3>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mapproxy</span><span class="o">-</span><span class="n">util</span> <span class="n">serve</span><span class="o">-</span><span class="n">develop</span> <span class="o">./</span><span class="n">mapproxy</span><span class="o">.</span><span class="n">yaml</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="serve-multiapp-develop">
<span id="mapproxy-util-serve-multiapp-develop"></span><span id="index-1"></span><h2><code class="docutils literal"><span class="pre">serve-multiapp-develop</span></code><a class="headerlink" href="#serve-multiapp-develop" title="Permalink to this headline">¶</a></h2>
<div class="versionadded">
<p><span class="versionmodified">New in version 1.3.0.</span></p>
</div>
<p>This sub-command is similar to <code class="docutils literal"><span class="pre">serve-develop</span></code> but it starts a <a class="reference internal" href="deployment.html#multimapproxy"><span class="std std-ref">MultiMapProxy</span></a> instance.</p>
<p>You need to pass a directory of your MapProxy configurations as an argument. The server will automatically reload if you change any configuration or any of the MapProxy source code.</p>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-serve-multiapp-develop-b">
<span id="cmdoption-mapproxy-util-serve-multiapp-develop--bind"></span><code class="descname">-b</code><code class="descclassname"> <address></code><code class="descclassname">, </code><code class="descname">--bind</code><code class="descclassname"> <address></code><a class="headerlink" href="#cmdoption-mapproxy-util-serve-multiapp-develop-b" title="Permalink to this definition">¶</a></dt>
<dd><p>The server address where the HTTP server should listen for incomming connections. Can be a port (<code class="docutils literal"><span class="pre">:8080</span></code>), a host (<code class="docutils literal"><span class="pre">localhost</span></code>) or both (<code class="docutils literal"><span class="pre">localhost:8081</span></code>). The default is <code class="docutils literal"><span class="pre">localhost:8080</span></code>. You need to use <code class="docutils literal"><span class="pre">0.0.0.0</span></code> to be able to connect to the server from external clients.</p>
</dd></dl>
<div class="section" id="id3">
<h3>Example<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h3>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mapproxy</span><span class="o">-</span><span class="n">util</span> <span class="n">serve</span><span class="o">-</span><span class="n">multiapp</span><span class="o">-</span><span class="n">develop</span> <span class="n">my_projects</span><span class="o">/</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="scales">
<span id="mapproxy-util-scales"></span><span id="index-2"></span><h2><code class="docutils literal"><span class="pre">scales</span></code><a class="headerlink" href="#scales" title="Permalink to this headline">¶</a></h2>
<div class="versionadded">
<p><span class="versionmodified">New in version 1.2.0.</span></p>
</div>
<p>This sub-command helps to convert between scales and resolutions.</p>
<p>Scales are ambiguous when the resolution of the output device (LCD, printer, mobile, etc) is unknown and therefore MapProxy only uses resolutions for configuration (see <a class="reference internal" href="configuration.html#scale-resolution"><span class="std std-ref">Scale vs. resolution</span></a>). You can use the <code class="docutils literal"><span class="pre">scales</span></code> sub-command to calculate between known scale values and resolutions.</p>
<p>The command takes a list with one or more scale values and returns the corresponding resolution value.</p>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-scales--unit">
<code class="descname">--unit</code><code class="descclassname"> <m|d></code><a class="headerlink" href="#cmdoption-mapproxy-util-scales--unit" title="Permalink to this definition">¶</a></dt>
<dd><p>Return resolutions in this unit per pixel (default meter per pixel).</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-scales-l">
<span id="cmdoption-mapproxy-util-scales--levels"></span><code class="descname">-l</code><code class="descclassname"> <n></code><code class="descclassname">, </code><code class="descname">--levels</code><code class="descclassname"> <n></code><a class="headerlink" href="#cmdoption-mapproxy-util-scales-l" title="Permalink to this definition">¶</a></dt>
<dd><p>Calculate resolutions for <code class="docutils literal"><span class="pre">n</span></code> levels. This will double the resolution of the last scale value if <code class="docutils literal"><span class="pre">n</span></code> is larger than the number of the provided scales.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-scales-d">
<span id="cmdoption-mapproxy-util-scales--dpi"></span><code class="descname">-d</code><code class="descclassname"> <dpi></code><code class="descclassname">, </code><code class="descname">--dpi</code><code class="descclassname"> <dpi></code><a class="headerlink" href="#cmdoption-mapproxy-util-scales-d" title="Permalink to this definition">¶</a></dt>
<dd><p>The resolution of the output display to use for the calculation. You need to set this to the same value of the client/server software you are using. Common values are 72 and 96. The default value is the equivalent of a pixel size of .28mm, which is around 91 DPI. This is the value the OGC uses since the WMS 1.3.0 specification.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-scales--as-res-config">
<code class="descname">--as-res-config</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-scales--as-res-config" title="Permalink to this definition">¶</a></dt>
<dd><p>Format the output so that it can be pasted into a MapProxy grid configuration.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-scales--res-to-scale">
<code class="descname">--res-to-scale</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-scales--res-to-scale" title="Permalink to this definition">¶</a></dt>
<dd><p>Calculate from resolutions to scale.</p>
</dd></dl>
<div class="section" id="id4">
<h3>Example<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h3>
<p>For multiple levels as MapProxy configuration snippet:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mapproxy</span><span class="o">-</span><span class="n">util</span> <span class="n">scales</span> <span class="o">-</span><span class="n">l</span> <span class="mi">4</span> <span class="o">--</span><span class="k">as</span><span class="o">-</span><span class="n">res</span><span class="o">-</span><span class="n">config</span> <span class="mi">100000</span>
</pre></div>
</div>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">res</span><span class="p">:</span> <span class="p">[</span>
<span class="c1"># res level scale</span>
<span class="mf">28.0000000000</span><span class="p">,</span> <span class="c1"># 0 100000.00000000</span>
<span class="mf">14.0000000000</span><span class="p">,</span> <span class="c1"># 1 50000.00000000</span>
<span class="mf">7.0000000000</span><span class="p">,</span> <span class="c1"># 2 25000.00000000</span>
<span class="mf">3.5000000000</span><span class="p">,</span> <span class="c1"># 3 12500.00000000</span>
<span class="p">]</span>
</pre></div>
</div>
<p>With multiple scale values and custom DPI:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mapproxy</span><span class="o">-</span><span class="n">util</span> <span class="n">scales</span> <span class="o">--</span><span class="n">dpi</span> <span class="mi">96</span> <span class="o">--</span><span class="k">as</span><span class="o">-</span><span class="n">res</span><span class="o">-</span><span class="n">config</span> \
<span class="mi">100000</span> <span class="mi">50000</span> <span class="mi">25000</span> <span class="mi">10000</span>
</pre></div>
</div>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">res</span><span class="p">:</span> <span class="p">[</span>
<span class="c1"># res level scale</span>
<span class="mf">26.4583333333</span><span class="p">,</span> <span class="c1"># 0 100000.00000000</span>
<span class="mf">13.2291666667</span><span class="p">,</span> <span class="c1"># 1 50000.00000000</span>
<span class="mf">6.6145833333</span><span class="p">,</span> <span class="c1"># 2 25000.00000000</span>
<span class="mf">2.6458333333</span><span class="p">,</span> <span class="c1"># 3 10000.00000000</span>
<span class="p">]</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="wms-capabilities">
<span id="mapproxy-util-wms-capabilities"></span><h2><code class="docutils literal"><span class="pre">wms-capabilities</span></code><a class="headerlink" href="#wms-capabilities" title="Permalink to this headline">¶</a></h2>
<div class="versionadded">
<p><span class="versionmodified">New in version 1.5.0.</span></p>
</div>
<p>This sub-command parses a valid capabilites document from a URL and displays all available layers.</p>
<p>This tool does not create a MapProxy configuration, but the output should help you to set up or modify your MapProxy configuration.</p>
<p>The command takes a valid URL GetCapabilities URL.</p>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-wms_capabilities--host">
<code class="descname">--host</code><code class="descclassname"> <URL></code><a class="headerlink" href="#cmdoption-mapproxy-util-wms_capabilities--host" title="Permalink to this definition">¶</a></dt>
<dd><p>Display all available Layers for this service. Each new layer will be marked with a hyphen and all sublayers are indented.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-wms_capabilities--version">
<code class="descname">--version</code><code class="descclassname"> <versionnumber></code><a class="headerlink" href="#cmdoption-mapproxy-util-wms_capabilities--version" title="Permalink to this definition">¶</a></dt>
<dd><p>Parse the Capabilities-document for the given version. Only version 1.1.1 and 1.3.0 are supported. The default value is 1.1.1</p>
</dd></dl>
<div class="section" id="id5">
<h3>Example<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h3>
<p>With the following MapProxy layer configuration:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">layers</span><span class="p">:</span>
<span class="o">-</span> <span class="n">name</span><span class="p">:</span> <span class="n">osm</span>
<span class="n">title</span><span class="p">:</span> <span class="n">Omniscale</span> <span class="n">OSM</span> <span class="n">WMS</span> <span class="o">-</span> <span class="n">osm</span><span class="o">.</span><span class="n">omniscale</span><span class="o">.</span><span class="n">net</span>
<span class="n">sources</span><span class="p">:</span> <span class="p">[</span><span class="n">osm_cache</span><span class="p">]</span>
<span class="o">-</span> <span class="n">name</span><span class="p">:</span> <span class="n">foo</span>
<span class="n">title</span><span class="p">:</span> <span class="n">Group</span> <span class="n">Layer</span>
<span class="n">layers</span><span class="p">:</span>
<span class="o">-</span> <span class="n">name</span><span class="p">:</span> <span class="n">layer1a</span>
<span class="n">title</span><span class="p">:</span> <span class="n">Title</span> <span class="n">of</span> <span class="n">Layer</span> <span class="mi">1</span><span class="n">a</span>
<span class="n">sources</span><span class="p">:</span> <span class="p">[</span><span class="n">osm_cache</span><span class="p">]</span>
<span class="o">-</span> <span class="n">name</span><span class="p">:</span> <span class="n">layer1b</span>
<span class="n">title</span><span class="p">:</span> <span class="n">Title</span> <span class="n">of</span> <span class="n">Layer</span> <span class="mi">1</span><span class="n">b</span>
<span class="n">sources</span><span class="p">:</span> <span class="p">[</span><span class="n">osm_cache</span><span class="p">]</span>
</pre></div>
</div>
<p>Parsed capabilities document:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>mapproxy-util wms-capabilities http://127.0.0.1:8080/service?REQUEST=GetCapabilities
</pre></div>
</div>
<div class="highlight-default"><div class="highlight"><pre><span></span>Capabilities Document Version 1.1.1
Root-Layer:
- title: MapProxy WMS Proxy
url: http://127.0.0.1:8080/service?
opaque: False
srs: ['EPSG:31467', 'EPSG:31466', 'EPSG:4326', 'EPSG:25831', 'EPSG:25833',
'EPSG:25832', 'EPSG:31468', 'EPSG:900913', 'CRS:84', 'EPSG:4258']
bbox:
EPSG:900913: [-20037508.3428, -20037508.3428, 20037508.3428, 20037508.3428]
EPSG:4326: [-180.0, -85.0511287798, 180.0, 85.0511287798]
queryable: False
llbbox: [-180.0, -85.0511287798, 180.0, 85.0511287798]
layers:
- name: osm
title: Omniscale OSM WMS - osm.omniscale.net
url: http://127.0.0.1:8080/service?
opaque: False
srs: ['EPSG:31467', 'EPSG:31466', 'EPSG:25832', 'EPSG:25831', 'EPSG:25833',
'EPSG:4326', 'EPSG:31468', 'EPSG:900913', 'CRS:84', 'EPSG:4258']
bbox:
EPSG:900913: [-20037508.3428, -20037508.3428, 20037508.3428, 20037508.3428]
EPSG:4326: [-180.0, -85.0511287798, 180.0, 85.0511287798]
queryable: False
llbbox: [-180.0, -85.0511287798, 180.0, 85.0511287798]
- name: foobar
title: Group Layer
url: http://127.0.0.1:8080/service?
opaque: False
srs: ['EPSG:31467', 'EPSG:31466', 'EPSG:25832', 'EPSG:25831', 'EPSG:25833',
'EPSG:4326', 'EPSG:31468', 'EPSG:900913', 'CRS:84', 'EPSG:4258']
bbox:
EPSG:900913: [-20037508.3428, -20037508.3428, 20037508.3428, 20037508.3428]
EPSG:4326: [-180.0, -85.0511287798, 180.0, 85.0511287798]
queryable: False
llbbox: [-180.0, -85.0511287798, 180.0, 85.0511287798]
layers:
- name: layer1a
title: Title of Layer 1a
url: http://127.0.0.1:8080/service?
opaque: False
srs: ['EPSG:31467', 'EPSG:31466', 'EPSG:25832', 'EPSG:25831', 'EPSG:25833',
'EPSG:4326', 'EPSG:31468', 'EPSG:900913', 'CRS:84', 'EPSG:4258']
bbox:
EPSG:900913: [-20037508.3428, -20037508.3428, 20037508.3428, 20037508.3428]
EPSG:4326: [-180.0, -85.0511287798, 180.0, 85.0511287798]
queryable: False
llbbox: [-180.0, -85.0511287798, 180.0, 85.0511287798]
- name: layer1b
title: Title of Layer 1b
url: http://127.0.0.1:8080/service?
opaque: False
srs: ['EPSG:31467', 'EPSG:31466', 'EPSG:25832', 'EPSG:25831', 'EPSG:25833',
'EPSG:4326', 'EPSG:31468', 'EPSG:900913', 'CRS:84', 'EPSG:4258']
bbox:
EPSG:900913: [-20037508.3428, -20037508.3428, 20037508.3428, 20037508.3428]
EPSG:4326: [-180.0, -85.0511287798, 180.0, 85.0511287798]
queryable: False
llbbox: [-180.0, -85.0511287798, 180.0, 85.0511287798]
</pre></div>
</div>
</div>
</div>
<div class="section" id="grids">
<span id="mapproxy-util-grids"></span><h2><code class="docutils literal"><span class="pre">grids</span></code><a class="headerlink" href="#grids" title="Permalink to this headline">¶</a></h2>
<div class="versionadded">
<p><span class="versionmodified">New in version 1.5.0.</span></p>
</div>
<p>This sub-command displays information about configured grids.</p>
<p>The command takes a MapProxy configuration file and returns all configured grids.</p>
<p>Furthermore, default values for each grid will be displayed if they are not defined explicitly.
All default values are marked with an asterisk in the output.</p>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-grids-f">
<span id="cmdoption-mapproxy-util-grids--mapproxy-config"></span><code class="descname">-f</code><code class="descclassname"> <path/to/config></code><code class="descclassname">, </code><code class="descname">--mapproxy-config</code><code class="descclassname"> <path/to/config></code><a class="headerlink" href="#cmdoption-mapproxy-util-grids-f" title="Permalink to this definition">¶</a></dt>
<dd><p>Display all configured grids for this MapProxy configuration with detailed information.
If this option is not set, the sub-command will try to use the last argument as the mapproxy config.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-grids-l">
<span id="cmdoption-mapproxy-util-grids--list"></span><code class="descname">-l</code><code class="descclassname"></code><code class="descclassname">, </code><code class="descname">--list</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-grids-l" title="Permalink to this definition">¶</a></dt>
<dd><p>Display only the names of the grids for the given configuration, which are used by any grid.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-grids--all">
<code class="descname">--all</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-grids--all" title="Permalink to this definition">¶</a></dt>
<dd><p>Show also grids that are not referenced by any cache.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-grids-g">
<span id="cmdoption-mapproxy-util-grids--grid"></span><code class="descname">-g</code><code class="descclassname"> <grid_name></code><code class="descclassname">, </code><code class="descname">--grid</code><code class="descclassname"> <grid_name></code><a class="headerlink" href="#cmdoption-mapproxy-util-grids-g" title="Permalink to this definition">¶</a></dt>
<dd><p>Display information only for a single grid.
The tool will exit, if the grid name is not found.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-grids-c">
<span id="cmdoption-mapproxy-util-grids--coverage"></span><code class="descname">-c</code><code class="descclassname"> <coverage name></code><code class="descclassname">, </code><code class="descname">--coverage</code><code class="descclassname"> <coverage name></code><a class="headerlink" href="#cmdoption-mapproxy-util-grids-c" title="Permalink to this definition">¶</a></dt>
<dd><p>Display an approximation of the number of tiles for each level that which are within this coverage.
The coverage must be defined in Seed configuration.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-grids-s">
<span id="cmdoption-mapproxy-util-grids--seed-conf"></span><code class="descname">-s</code><code class="descclassname"> <seed.yaml></code><code class="descclassname">, </code><code class="descname">--seed-conf</code><code class="descclassname"> <seed.yaml></code><a class="headerlink" href="#cmdoption-mapproxy-util-grids-s" title="Permalink to this definition">¶</a></dt>
<dd><p>This option loads the seed configuration and is needed if you use the <code class="docutils literal"><span class="pre">--coverage</span></code> option.</p>
</dd></dl>
<div class="section" id="id6">
<h3>Example<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h3>
<p>With the following MapProxy grid configuration:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">grids</span><span class="p">:</span>
<span class="n">localgrid</span><span class="p">:</span>
<span class="n">srs</span><span class="p">:</span> <span class="n">EPSG</span><span class="p">:</span><span class="mi">31467</span>
<span class="n">bbox</span><span class="p">:</span> <span class="p">[</span><span class="mi">5</span><span class="p">,</span><span class="mi">50</span><span class="p">,</span><span class="mi">10</span><span class="p">,</span><span class="mi">55</span><span class="p">]</span>
<span class="n">bbox_srs</span><span class="p">:</span> <span class="n">EPSG</span><span class="p">:</span><span class="mi">4326</span>
<span class="n">min_res</span><span class="p">:</span> <span class="mi">10000</span>
<span class="n">localgrid2</span><span class="p">:</span>
<span class="n">base</span><span class="p">:</span> <span class="n">localgrid</span>
<span class="n">srs</span><span class="p">:</span> <span class="n">EPSG</span><span class="p">:</span><span class="mi">25832</span>
<span class="n">res_factor</span><span class="p">:</span> <span class="n">sqrt2</span>
<span class="n">tile_size</span><span class="p">:</span> <span class="p">[</span><span class="mi">512</span><span class="p">,</span> <span class="mi">512</span><span class="p">]</span>
</pre></div>
</div>
<p>List all configured grids:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mapproxy</span><span class="o">-</span><span class="n">util</span> <span class="n">grids</span> <span class="o">--</span><span class="nb">list</span> <span class="o">--</span><span class="n">mapproxy</span><span class="o">-</span><span class="n">config</span> <span class="o">/</span><span class="n">path</span><span class="o">/</span><span class="n">to</span><span class="o">/</span><span class="n">mapproxy</span><span class="o">.</span><span class="n">yaml</span>
</pre></div>
</div>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">GLOBAL_GEODETIC</span>
<span class="n">GLOBAL_MERCATOR</span>
<span class="n">localgrid</span>
<span class="n">localgrid2</span>
</pre></div>
</div>
<p>Display detailed information for one specific grid:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mapproxy</span><span class="o">-</span><span class="n">util</span> <span class="n">grids</span> <span class="o">--</span><span class="n">grid</span> <span class="n">localgrid</span> <span class="o">--</span><span class="n">mapproxy</span><span class="o">-</span><span class="n">conf</span> <span class="o">/</span><span class="n">path</span><span class="o">/</span><span class="n">to</span><span class="o">/</span><span class="n">mapproxy</span><span class="o">.</span><span class="n">yaml</span>
</pre></div>
</div>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">localgrid</span><span class="p">:</span>
<span class="n">Configuration</span><span class="p">:</span>
<span class="n">bbox</span><span class="p">:</span> <span class="p">[</span><span class="mi">5</span><span class="p">,</span> <span class="mi">50</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span> <span class="mi">55</span><span class="p">]</span>
<span class="n">bbox_srs</span><span class="p">:</span> <span class="s1">'EPSG:4326'</span>
<span class="n">min_res</span><span class="p">:</span> <span class="mi">10000</span>
<span class="n">origin</span><span class="o">*</span><span class="p">:</span> <span class="s1">'sw'</span>
<span class="n">srs</span><span class="p">:</span> <span class="s1">'EPSG:31467'</span>
<span class="n">tile_size</span><span class="o">*</span><span class="p">:</span> <span class="p">[</span><span class="mi">256</span><span class="p">,</span> <span class="mi">256</span><span class="p">]</span>
<span class="n">Levels</span><span class="p">:</span> <span class="n">Resolutions</span><span class="p">,</span> <span class="c1"># x * y = total tiles</span>
<span class="mi">00</span><span class="p">:</span> <span class="mi">10000</span><span class="p">,</span> <span class="c1"># 1 * 1 = 1</span>
<span class="mi">01</span><span class="p">:</span> <span class="mf">5000.0</span><span class="p">,</span> <span class="c1"># 1 * 1 = 1</span>
<span class="mi">02</span><span class="p">:</span> <span class="mf">2500.0</span><span class="p">,</span> <span class="c1"># 1 * 1 = 1</span>
<span class="mi">03</span><span class="p">:</span> <span class="mf">1250.0</span><span class="p">,</span> <span class="c1"># 2 * 2 = 4</span>
<span class="mi">04</span><span class="p">:</span> <span class="mf">625.0</span><span class="p">,</span> <span class="c1"># 3 * 4 = 12</span>
<span class="mi">05</span><span class="p">:</span> <span class="mf">312.5</span><span class="p">,</span> <span class="c1"># 5 * 8 = 40</span>
<span class="mi">06</span><span class="p">:</span> <span class="mf">156.25</span><span class="p">,</span> <span class="c1"># 9 * 15 = 135</span>
<span class="mi">07</span><span class="p">:</span> <span class="mf">78.125</span><span class="p">,</span> <span class="c1"># 18 * 29 = 522</span>
<span class="mi">08</span><span class="p">:</span> <span class="mf">39.0625</span><span class="p">,</span> <span class="c1"># 36 * 57 = 2.052K</span>
<span class="mi">09</span><span class="p">:</span> <span class="mf">19.53125</span><span class="p">,</span> <span class="c1"># 72 * 113 = 8.136K</span>
<span class="mi">10</span><span class="p">:</span> <span class="mf">9.765625</span><span class="p">,</span> <span class="c1"># 144 * 226 = 32.544K</span>
<span class="mi">11</span><span class="p">:</span> <span class="mf">4.8828125</span><span class="p">,</span> <span class="c1"># 287 * 451 = 129.437K</span>
<span class="mi">12</span><span class="p">:</span> <span class="mf">2.44140625</span><span class="p">,</span> <span class="c1"># 574 * 902 = 517.748K</span>
<span class="mi">13</span><span class="p">:</span> <span class="mf">1.220703125</span><span class="p">,</span> <span class="c1"># 1148 * 1804 = 2.071M</span>
<span class="mi">14</span><span class="p">:</span> <span class="mf">0.6103515625</span><span class="p">,</span> <span class="c1"># 2295 * 3607 = 8.278M</span>
<span class="mi">15</span><span class="p">:</span> <span class="mf">0.30517578125</span><span class="p">,</span> <span class="c1"># 4589 * 7213 = 33.100M</span>
<span class="mi">16</span><span class="p">:</span> <span class="mf">0.152587890625</span><span class="p">,</span> <span class="c1"># 9178 * 14426 = 132.402M</span>
<span class="mi">17</span><span class="p">:</span> <span class="mf">0.0762939453125</span><span class="p">,</span> <span class="c1"># 18355 * 28851 = 529.560M</span>
<span class="mi">18</span><span class="p">:</span> <span class="mf">0.03814697265625</span><span class="p">,</span> <span class="c1"># 36709 * 57701 = 2.118G</span>
<span class="mi">19</span><span class="p">:</span> <span class="mf">0.019073486328125</span><span class="p">,</span> <span class="c1"># 73417 * 115402 = 8.472G</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="export">
<span id="mapproxy-util-export"></span><h2><code class="docutils literal"><span class="pre">export</span></code><a class="headerlink" href="#export" title="Permalink to this headline">¶</a></h2>
<p>This sub-command exports tiles from one cache to another. This is similar to the seed tool, but you don’t need to edit the configuration. The destination cache, grid and the coverage can be defined on the command line.</p>
<p>Required arguments:</p>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-export-f">
<span id="cmdoption-mapproxy-util-export--mapproxy-conf"></span><code class="descname">-f</code><code class="descclassname"></code><code class="descclassname">, </code><code class="descname">--mapproxy-conf</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-export-f" title="Permalink to this definition">¶</a></dt>
<dd><p>The path to the MapProxy configuration of the source cache.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-export--source">
<code class="descname">--source</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-export--source" title="Permalink to this definition">¶</a></dt>
<dd><p>Name of the source or cache to export.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-export--levels">
<code class="descname">--levels</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-export--levels" title="Permalink to this definition">¶</a></dt>
<dd><p>Comma separated list of levels to export. You can also define a range of levels. For example <code class="docutils literal"><span class="pre">'1,2,3,4,5'</span></code>, <code class="docutils literal"><span class="pre">'1..10'</span></code> or <code class="docutils literal"><span class="pre">'1,3,4,6..8'</span></code>.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-export--grid">
<code class="descname">--grid</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-export--grid" title="Permalink to this definition">¶</a></dt>
<dd><p>The tile grid for the export. The option can either be the name of the grid as defined in the in the MapProxy configuration, or it can be the grid definition itself. You can define a grid as a single string of the key-value pairs. The grid definition <a class="reference internal" href="configuration.html#id6"><span class="std std-ref">supports all grid parameters</span></a>. See below for examples.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-export--dest">
<code class="descname">--dest</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-export--dest" title="Permalink to this definition">¶</a></dt>
<dd><p>Destination of the export. Can be a filename, directory or URL, depending on the export <code class="docutils literal"><span class="pre">--type</span></code>.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-export--type">
<code class="descname">--type</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-export--type" title="Permalink to this definition">¶</a></dt>
<dd><p>Choose the export type. See below for a list of all options.</p>
</dd></dl>
<p>Other options:</p>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-export--fetch-missing-tiles">
<code class="descname">--fetch-missing-tiles</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-export--fetch-missing-tiles" title="Permalink to this definition">¶</a></dt>
<dd><p>If MapProxy should request missing tiles from the source. By default, the export tool will only existing tiles.</p>
</dd></dl>
<dl class="cmdoption">
<dt id="cmdoption-mapproxy-util-export--coverage">
<span id="cmdoption-mapproxy-util-export--srs"></span><span id="cmdoption-mapproxy-util-export--where"></span><code class="descname">--coverage</code><code class="descclassname"></code><code class="descclassname">, </code><code class="descname">--srs</code><code class="descclassname"></code><code class="descclassname">, </code><code class="descname">--where</code><code class="descclassname"></code><a class="headerlink" href="#cmdoption-mapproxy-util-export--coverage" title="Permalink to this definition">¶</a></dt>
<dd><p>Limit the export to this coverage. You can use a BBOX, WKT files or OGR datasources. See <a class="reference internal" href="coverages.html"><span class="doc">Coverages</span></a>.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-mapproxy-util-export-c">
<span id="cmdoption-mapproxy-util-export--concurrency"></span><code class="descname">-c</code><code class="descclassname"> N</code><code class="descclassname">, </code><code class="descname">--concurrency</code><code class="descclassname"> N</code><a class="headerlink" href="#cmdoption-mapproxy-util-export-c" title="Permalink to this definition">¶</a></dt>
<dd><p>The number of concurrent export processes.</p>
</dd></dl>
<div class="section" id="export-types">
<h3>Export types<a class="headerlink" href="#export-types" title="Permalink to this headline">¶</a></h3>
<dl class="docutils">
<dt><code class="docutils literal"><span class="pre">tms</span></code>:</dt>
<dd>Export tiles in a TMS like directory structure.</dd>
<dt><code class="docutils literal"><span class="pre">mapproxy</span></code> or <code class="docutils literal"><span class="pre">tc</span></code>:</dt>
<dd>Export tiles like the internal cache directory structure. This is compatible with TileCache.</dd>
<dt><code class="docutils literal"><span class="pre">mbtile</span></code>:</dt>
<dd>Exports tiles into a MBTile file.</dd>
<dt><code class="docutils literal"><span class="pre">arcgis</span></code>:</dt>
<dd>Exports tiles in a ArcGIS exploded cache directory structure.</dd>
</dl>
</div>
<div class="section" id="examples">
<h3>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h3>
<p>Export tiles into a TMS directory structure under <code class="docutils literal"><span class="pre">./cache/</span></code>. Limit export to the BBOX and levels 0 to 6.</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mapproxy</span><span class="o">-</span><span class="n">util</span> <span class="n">export</span> <span class="o">-</span><span class="n">f</span> <span class="n">mapproxy</span><span class="o">.</span><span class="n">yaml</span> <span class="o">--</span><span class="n">grid</span> <span class="n">osm_grid</span> \
<span class="o">--</span><span class="n">source</span> <span class="n">osm_cache</span> <span class="o">--</span><span class="n">dest</span> <span class="o">./</span><span class="n">cache</span><span class="o">/</span> \
<span class="o">--</span><span class="n">levels</span> <span class="mf">1.</span><span class="o">.</span><span class="mi">6</span> <span class="o">--</span><span class="n">coverage</span> <span class="mi">5</span><span class="p">,</span><span class="mi">50</span><span class="p">,</span><span class="mi">10</span><span class="p">,</span><span class="mi">60</span> <span class="o">--</span><span class="n">srs</span> <span class="mi">4326</span>
</pre></div>
</div>
<p>Export tiles into an MBTiles file. Limit export to a shape coverage.</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mapproxy</span><span class="o">-</span><span class="n">util</span> <span class="n">export</span> <span class="o">-</span><span class="n">f</span> <span class="n">mapproxy</span><span class="o">.</span><span class="n">yaml</span> <span class="o">--</span><span class="n">grid</span> <span class="n">osm_grid</span> \
<span class="o">--</span><span class="n">source</span> <span class="n">osm_cache</span> <span class="o">--</span><span class="n">dest</span> <span class="n">osm</span><span class="o">.</span><span class="n">mbtiles</span> <span class="o">--</span><span class="nb">type</span> <span class="n">mbtile</span> \
<span class="o">--</span><span class="n">levels</span> <span class="mf">1.</span><span class="o">.</span><span class="mi">6</span> <span class="o">--</span><span class="n">coverage</span> <span class="n">boundaries</span><span class="o">.</span><span class="n">shp</span> \
<span class="o">--</span><span class="n">where</span> <span class="s1">'CNTRY_NAME = "Germany"'</span> <span class="o">--</span><span class="n">srs</span> <span class="mi">3857</span>
</pre></div>
</div>
<p>Export tiles into an MBTiles file using a custom grid definition.</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mapproxy</span><span class="o">-</span><span class="n">util</span> <span class="n">export</span> <span class="o">-</span><span class="n">f</span> <span class="n">mapproxy</span><span class="o">.</span><span class="n">yaml</span> <span class="o">--</span><span class="n">levels</span> <span class="mf">1.</span><span class="o">.</span><span class="mi">6</span> \
<span class="o">--</span><span class="n">grid</span> <span class="s2">"srs='EPSG:4326' bbox=[5,50,10,60] tile_size=[512,512]"</span> \
<span class="o">--</span><span class="n">source</span> <span class="n">osm_cache</span> <span class="o">--</span><span class="n">dest</span> <span class="n">osm</span><span class="o">.</span><span class="n">mbtiles</span> <span class="o">--</span><span class="nb">type</span> <span class="n">mbtile</span> \
</pre></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p class="pull-right">
<a href="#">Back to top</a>
</p>
<p>
© Copyright Oliver Tonnhofer, Omniscale, <a href="http://mapproxy.org/about">Legal</a>
<br/>
Last updated on 2018-01-07
<br/>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.9.
</p>
</div>
</footer>
</body>
</html>
|