This file is indexed.

/usr/share/doc/mapproxy/html/_sources/install_osgeo4w.txt 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
Installation on OSGeo4W
=======================


`OSGeo4W`_ is a popular package of open-source geospatial tools for Windows systems. Besides packing a lot of GIS tools and a nice installer, it also features a full Python installation, along with some of the packages that MapProxy needs to run.

.. _`OSGeo4W`: http://trac.osgeo.org/osgeo4w/

In order to install MapProxy within an OSGeo4W environment, the first step is to ensure that the needed Python packages are installed. In order to do so:

* Download and run the `OSGeo4W installer`
* Select advanced installation
* When shown a list of available packages, check (at least) ``python`` and ``python-pil`` for installation.

.. _`OSGeo4W installer`: http://download.osgeo.org/osgeo4w/osgeo4w-setup.exe

Please refer to the `OSGeo4W installer FAQ <http://trac.osgeo.org/osgeo4w/wiki/FAQ>`_ if you've got trouble running it.

At this point, you should see an OSGeo4W shell icon on your desktop and/or start menu. Right-click that, and *run as administrator*.

As happens with the standard Windows installation, you need to `install the distribute package <http://pypi.python.org/pypi/distribute#distribute-setup-py>`_ to get the ``easy_install`` command. Run this in your administrator OSGeo4W shell, e.g.::

 C:\OSGeo4W> python C:\Users\MyUsername\Downloads\distribute-setup.py

Once ``easy_install`` is working within the OSGeo4W python environment, run::

 C:\OSGeo4W> easy_install mapproxy

and

::

 C:\OSGeo4W> easy_install pyproj

If these three last commands didn't print out any errors, your installation of MapProxy is successful. You can now close the OSGeo4W shell with administrator privileges, as it is no longer needed.


Check installation
------------------

To check if the MapProxy was successfully installed, you can launch a regular OSGeo4W shell, and call ``mapproxy-util``. You should see the installed version number::

  C:\OSGeo4W> mapproxy-util --version

.. note::

    You need to run *all* MapProxy-related commands from an OSGeo4W shell, and not from a standard command shell.

Now continue with :ref:`Create a configuration <create_configuration>` from the installation documentation.


Unattended OSGeo4W environment
-------------------------------


If you need to run unattended commands (like scheduled runs of *mapproxy-seed*), make a copy of ``C:\OSGeo4W\OSGeo4W.bat`` and modify the last line, to call ``cmd`` so it runs the MapProxy script you need, e.g.::

 cmd /c mapproxy-seed -s C:\path\to\seed.yaml -f C:\path\to\mapproxy.yaml