File: config.rst

package info (click to toggle)
pycoast 1.7.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 21,788 kB
  • sloc: python: 5,236; makefile: 139
file content (26 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (3)
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
Pycoast from a configuration file
---------------------------------

If you want to run to avoid typing the same options over and over again, or if
caching is an optimization you want, you can use a configuration file with the
pycoast options you need:

.. code-block:: ini

  [cache]
  file=/var/run/satellit/white_overlay
  regenerate=False

  [coasts]
  level=1
  width=0.75
  outline=white
  fill=yellow

  [borders]
  outline=white
  width=0.5

Then, you can just call:

   >>> cw.add_overlay_from_config("my_config.cfg", area_def)