/usr/share/doc/mapproxy/html/coverages.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 | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Coverages — 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" href="mapproxy_util.html" />
<link rel="prev" title="Seeding" href="seed.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 current"><a class="current reference internal" href="#">Coverages</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#requirements">Requirements</a></li>
<li class="toctree-l2"><a class="reference internal" href="#configuration">Configuration</a></li>
<li class="toctree-l2"><a class="reference internal" href="#coverage-types">Coverage Types</a></li>
<li class="toctree-l2"><a class="reference internal" href="#examples">Examples</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="mapproxy_util.html">mapproxy-util</a></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="coverages">
<span id="id1"></span><h1>Coverages<a class="headerlink" href="#coverages" title="Permalink to this headline">¶</a></h1>
<p>With coverages you can define areas where data is available or where data you are interested in is.
MapProxy supports coverages for <a class="reference internal" href="sources.html"><span class="doc">sources</span></a> and in the <a class="reference internal" href="seed.html"><span class="doc">mapproxy-seed tool</span></a>. Refer to the corresponding section in the documentation.</p>
<p>There are three different ways to describe a coverage.</p>
<ul class="simple">
<li>a simple rectangular bounding box,</li>
<li>a text file with one or more (multi)polygons in WKT format,</li>
<li>(multi)polygons from any data source readable with OGR (e.g. Shapefile, GeoJSON, PostGIS)</li>
</ul>
<div class="section" id="requirements">
<h2>Requirements<a class="headerlink" href="#requirements" title="Permalink to this headline">¶</a></h2>
<p>If you want to use polygons to define a coverage, instead of simple bounding boxes, you will also need Shapely and GEOS. For loading polygons from shapefiles you’ll also need GDAL/OGR.</p>
<p>MapProxy requires Shapely 1.2.0 or later and GEOS 3.1.0 or later.</p>
<p>On Debian:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">aptitude</span> <span class="n">install</span> <span class="n">libgeos</span><span class="o">-</span><span class="n">dev</span> <span class="n">libgdal</span><span class="o">-</span><span class="n">dev</span>
<span class="n">pip</span> <span class="n">install</span> <span class="n">Shapely</span>
</pre></div>
</div>
</div>
<div class="section" id="configuration">
<h2>Configuration<a class="headerlink" href="#configuration" title="Permalink to this headline">¶</a></h2>
<p>All coverages are configured by defining the source of the coverage and the SRS.
The configuration of the coverage depends on the type. The SRS can allways be configured with the <code class="docutils literal"><span class="pre">srs</span></code> option.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 1.5.0: </span>MapProxy can autodetect the type of the coverage. You can now use <code class="docutils literal"><span class="pre">coverage</span></code> instead of the <code class="docutils literal"><span class="pre">bbox</span></code>, <code class="docutils literal"><span class="pre">polygons</span></code> or <code class="docutils literal"><span class="pre">ogr_datasource</span></code> option.
The old options are still supported.</p>
</div>
</div>
<div class="section" id="coverage-types">
<h2>Coverage Types<a class="headerlink" href="#coverage-types" title="Permalink to this headline">¶</a></h2>
<div class="section" id="bounding-box">
<h3>Bounding box<a class="headerlink" href="#bounding-box" title="Permalink to this headline">¶</a></h3>
<p>For simple box coverages.</p>
<dl class="docutils">
<dt><code class="docutils literal"><span class="pre">bbox</span></code> or <code class="docutils literal"><span class="pre">datasource</span></code>:</dt>
<dd>A simple BBOX as a list, e.g: <cite>[4, -30, 10, -28]</cite> or as a string <cite>4,-30,10,-28</cite>.</dd>
</dl>
</div>
<div class="section" id="polygon-file">
<h3>Polygon file<a class="headerlink" href="#polygon-file" title="Permalink to this headline">¶</a></h3>
<p>Text files with one WKT polygon or multi-polygon per line.
You can create your own files or use <a class="reference external" href="http://mapproxy.org/static/polygons/">one of the files we provide for every country</a>. Read <a class="reference external" href="http://mapproxy.org/static/polygons/0-fips-codes.txt">the index</a> to find your country.</p>
<dl class="docutils">
<dt><code class="docutils literal"><span class="pre">datasource</span></code>:</dt>
<dd>The path to the polygon file. Should be relative to the proxy configuration or absolute.</dd>
</dl>
</div>
<div class="section" id="ogr-datasource">
<h3>OGR datasource<a class="headerlink" href="#ogr-datasource" title="Permalink to this headline">¶</a></h3>
<p>Any polygon datasource that is supported by OGR (e.g. Shapefile, GeoJSON, PostGIS).</p>
<dl class="docutils">
<dt><code class="docutils literal"><span class="pre">datasource</span></code>:</dt>
<dd>The name of the datasource. Refer to the <a class="reference external" href="http://www.gdal.org/ogr/ogr_formats.html">OGR format page</a> for a list of all supported
datasources. File paths should be relative to the proxy configuration or absolute.</dd>
<dt><code class="docutils literal"><span class="pre">where</span></code>:</dt>
<dd>Restrict which polygons should be loaded from the datasource. Either a simple where
statement (e.g. <code class="docutils literal"><span class="pre">'CNTRY_NAME="Germany"'</span></code>) or a full select statement. Refer to the
<a class="reference external" href="http://www.gdal.org/ogr/ogr_sql.html">OGR SQL support documentation</a>. If this
option is unset, the first layer from the datasource will be used.</dd>
</dl>
</div>
</div>
<div class="section" id="examples">
<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
<div class="section" id="sources">
<h3>sources<a class="headerlink" href="#sources" title="Permalink to this headline">¶</a></h3>
<p>Use the <code class="docutils literal"><span class="pre">coverage</span></code> option to define a coverage for a WMS or tile source.</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>sources:
mywms:
type: wms
req:
url: http://example.com/service?
layers: base
coverage:
bbox: [5, 50, 10, 55]
srs: 'EPSG:4326'
</pre></div>
</div>
</div>
<div class="section" id="mapproxy-seed">
<h3>mapproxy-seed<a class="headerlink" href="#mapproxy-seed" title="Permalink to this headline">¶</a></h3>
<p>To define a seed-area in the <code class="docutils literal"><span class="pre">seed.yaml</span></code>, add the coverage directly to the view.</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">coverages</span><span class="p">:</span>
<span class="n">germany</span><span class="p">:</span>
<span class="n">datasource</span><span class="p">:</span> <span class="s1">'shps/world_boundaries_m.shp'</span>
<span class="n">where</span><span class="p">:</span> <span class="s1">'CNTRY_NAME = "Germany"'</span>
<span class="n">srs</span><span class="p">:</span> <span class="s1">'EPSG:900913'</span>
</pre></div>
</div>
<p id="index-0">Here is the same example with a PostGIS source:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">coverages</span><span class="p">:</span>
<span class="n">germany</span><span class="p">:</span>
<span class="n">datasource</span><span class="p">:</span> <span class="s2">"PG: dbname='db' host='host' user='user'</span>
<span class="n">password</span><span class="o">=</span><span class="s1">'password'</span><span class="s2">"</span>
<span class="n">where</span><span class="p">:</span> <span class="s2">"select * from coverages where country='germany'"</span>
<span class="n">srs</span><span class="p">:</span> <span class="s1">'EPSG:900913'</span>
</pre></div>
</div>
<p id="index-1">And here is an example with a GeoJSON source:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">coverages</span><span class="p">:</span>
<span class="n">germany</span><span class="p">:</span>
<span class="n">datasource</span><span class="p">:</span> <span class="s1">'boundary.geojson'</span>
<span class="n">srs</span><span class="p">:</span> <span class="s1">'EPSG:4326'</span>
</pre></div>
</div>
<p>See <a class="reference external" href="http://www.gdal.org/ogr/ogr_formats.html">the OGR driver list</a> for all supported formats.</p>
</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>
|