2009-03-30 07:20:00 +02:00
|
|
|
<?xml version="1.0" encoding="ascii"?>
|
2006-03-23 03:45:08 +01:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
|
|
"DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
|
<head>
|
|
|
|
<title>Help</title>
|
2009-03-30 07:20:00 +02:00
|
|
|
<link rel="stylesheet" href="epydoc.css" type="text/css" />
|
|
|
|
<script type="text/javascript" src="epydoc.js"></script>
|
2006-03-23 03:45:08 +01:00
|
|
|
</head>
|
2009-03-30 07:20:00 +02:00
|
|
|
|
2006-03-23 03:45:08 +01:00
|
|
|
<body bgcolor="white" text="black" link="blue" vlink="#204080"
|
|
|
|
alink="#204080">
|
2009-03-30 07:20:00 +02:00
|
|
|
<!-- ==================== NAVIGATION BAR ==================== -->
|
|
|
|
<table class="navbar" border="0" width="100%" cellpadding="0"
|
|
|
|
bgcolor="#a0c0ff" cellspacing="0">
|
|
|
|
<tr valign="middle">
|
|
|
|
<!-- Home link -->
|
|
|
|
<th> <a
|
|
|
|
href="mapnik-module.html">Home</a> </th>
|
|
|
|
|
|
|
|
<!-- Tree link -->
|
|
|
|
<th> <a
|
|
|
|
href="module-tree.html">Trees</a> </th>
|
|
|
|
|
|
|
|
<!-- Index link -->
|
|
|
|
<th> <a
|
|
|
|
href="identifier-index.html">Indices</a> </th>
|
|
|
|
|
|
|
|
<!-- Help link -->
|
|
|
|
<th bgcolor="#70b0f0" class="navbar-select"
|
|
|
|
> Help </th>
|
2006-03-23 03:45:08 +01:00
|
|
|
|
2009-03-30 07:20:00 +02:00
|
|
|
<!-- Project homepage -->
|
|
|
|
<th class="navbar" align="right" width="100%">
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
|
|
<tr><th class="navbar" align="center"
|
|
|
|
><a class="navbar" target="_top" href="http://mapnik.org">mapnik</a></th>
|
|
|
|
</tr></table></th>
|
2006-03-23 03:45:08 +01:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="0">
|
|
|
|
<tr valign="top">
|
2009-03-30 07:20:00 +02:00
|
|
|
<td width="100%"> </td>
|
|
|
|
<td>
|
|
|
|
<table cellpadding="0" cellspacing="0">
|
|
|
|
<!-- hide/show private -->
|
|
|
|
</table>
|
2006-03-23 03:45:08 +01:00
|
|
|
</td>
|
2009-03-30 07:20:00 +02:00
|
|
|
</tr>
|
|
|
|
</table>
|
2006-03-23 03:45:08 +01:00
|
|
|
|
2009-03-30 07:20:00 +02:00
|
|
|
<h1 class="epydoc"> API Documentation </h1>
|
2006-03-23 03:45:08 +01:00
|
|
|
|
|
|
|
<p> This document contains the API (Application Programming Interface)
|
2009-03-30 07:20:00 +02:00
|
|
|
documentation for mapnik. Documentation for the Python
|
2006-03-23 03:45:08 +01:00
|
|
|
objects defined by the project is divided into separate pages for each
|
|
|
|
package, module, and class. The API documentation also includes two
|
|
|
|
pages containing information about the project as a whole: a trees
|
|
|
|
page, and an index page. </p>
|
|
|
|
|
|
|
|
<h2> Object Documentation </h2>
|
|
|
|
|
2009-03-30 07:20:00 +02:00
|
|
|
<p>Each <strong>Package Documentation</strong> page contains: </p>
|
2006-03-23 03:45:08 +01:00
|
|
|
<ul>
|
|
|
|
<li> A description of the package. </li>
|
|
|
|
<li> A list of the modules and sub-packages contained by the
|
|
|
|
package. </li>
|
|
|
|
<li> A summary of the classes defined by the package. </li>
|
|
|
|
<li> A summary of the functions defined by the package. </li>
|
|
|
|
<li> A summary of the variables defined by the package. </li>
|
|
|
|
<li> A detailed description of each function defined by the
|
|
|
|
package. </li>
|
|
|
|
<li> A detailed description of each variable defined by the
|
|
|
|
package. </li>
|
2009-03-30 07:20:00 +02:00
|
|
|
</ul>
|
2006-03-23 03:45:08 +01:00
|
|
|
|
2009-03-30 07:20:00 +02:00
|
|
|
<p>Each <strong>Module Documentation</strong> page contains:</p>
|
2006-03-23 03:45:08 +01:00
|
|
|
<ul>
|
|
|
|
<li> A description of the module. </li>
|
|
|
|
<li> A summary of the classes defined by the module. </li>
|
|
|
|
<li> A summary of the functions defined by the module. </li>
|
|
|
|
<li> A summary of the variables defined by the module. </li>
|
|
|
|
<li> A detailed description of each function defined by the
|
|
|
|
module. </li>
|
|
|
|
<li> A detailed description of each variable defined by the
|
|
|
|
module. </li>
|
2009-03-30 07:20:00 +02:00
|
|
|
</ul>
|
2006-03-23 03:45:08 +01:00
|
|
|
|
2009-03-30 07:20:00 +02:00
|
|
|
<p>Each <strong>Class Documentation</strong> page contains: </p>
|
2006-03-23 03:45:08 +01:00
|
|
|
<ul>
|
|
|
|
<li> A class inheritance diagram. </li>
|
|
|
|
<li> A list of known subclasses. </li>
|
|
|
|
<li> A description of the class. </li>
|
|
|
|
<li> A summary of the methods defined by the class. </li>
|
|
|
|
<li> A summary of the instance variables defined by the class. </li>
|
|
|
|
<li> A summary of the class (static) variables defined by the
|
|
|
|
class. </li>
|
|
|
|
<li> A detailed description of each method defined by the
|
|
|
|
class. </li>
|
|
|
|
<li> A detailed description of each instance variable defined by the
|
|
|
|
class. </li>
|
|
|
|
<li> A detailed description of each class (static) variable defined
|
|
|
|
by the class. </li>
|
2009-03-30 07:20:00 +02:00
|
|
|
</ul>
|
2006-03-23 03:45:08 +01:00
|
|
|
|
|
|
|
<h2> Project Documentation </h2>
|
|
|
|
|
2009-03-30 07:20:00 +02:00
|
|
|
<p> The <strong>Trees</strong> page contains the module and class hierarchies: </p>
|
2006-03-23 03:45:08 +01:00
|
|
|
<ul>
|
2009-03-30 07:20:00 +02:00
|
|
|
<li> The <em>module hierarchy</em> lists every package and module, with
|
2006-03-23 03:45:08 +01:00
|
|
|
modules grouped into packages. At the top level, and within each
|
|
|
|
package, modules and sub-packages are listed alphabetically. </li>
|
2009-03-30 07:20:00 +02:00
|
|
|
<li> The <em>class hierarchy</em> lists every class, grouped by base
|
2006-03-23 03:45:08 +01:00
|
|
|
class. If a class has more than one base class, then it will be
|
|
|
|
listed under each base class. At the top level, and under each base
|
|
|
|
class, classes are listed alphabetically. </li>
|
2009-03-30 07:20:00 +02:00
|
|
|
</ul>
|
2006-03-23 03:45:08 +01:00
|
|
|
|
2009-03-30 07:20:00 +02:00
|
|
|
<p> The <strong>Index</strong> page contains indices of terms and
|
|
|
|
identifiers: </p>
|
2006-03-23 03:45:08 +01:00
|
|
|
<ul>
|
2009-03-30 07:20:00 +02:00
|
|
|
<li> The <em>term index</em> lists every term indexed by any object's
|
2006-03-23 03:45:08 +01:00
|
|
|
documentation. For each term, the index provides links to each
|
|
|
|
place where the term is indexed. </li>
|
2009-03-30 07:20:00 +02:00
|
|
|
<li> The <em>identifier index</em> lists the (short) name of every package,
|
2006-03-23 03:45:08 +01:00
|
|
|
module, class, method, function, variable, and parameter. For each
|
|
|
|
identifier, the index provides a short description, and a link to
|
|
|
|
its documentation. </li>
|
2009-03-30 07:20:00 +02:00
|
|
|
</ul>
|
2006-03-23 03:45:08 +01:00
|
|
|
|
|
|
|
<h2> The Table of Contents </h2>
|
|
|
|
|
|
|
|
<p> The table of contents occupies the two frames on the left side of
|
2009-03-30 07:20:00 +02:00
|
|
|
the window. The upper-left frame displays the <em>project
|
|
|
|
contents</em>, and the lower-left frame displays the <em>module
|
|
|
|
contents</em>: </p>
|
|
|
|
|
|
|
|
<table class="help summary" border="1" cellspacing="0" cellpadding="3">
|
|
|
|
<tr style="height: 30%">
|
|
|
|
<td align="center" style="font-size: small">
|
|
|
|
Project<br />Contents<hr />...</td>
|
|
|
|
<td align="center" style="font-size: small" rowspan="2" width="70%">
|
|
|
|
API<br />Documentation<br />Frame<br /><br /><br />
|
2006-03-23 03:45:08 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-03-30 07:20:00 +02:00
|
|
|
<td align="center" style="font-size: small">
|
|
|
|
Module<br />Contents<hr /> <br />...<br />
|
2006-03-23 03:45:08 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
2009-03-30 07:20:00 +02:00
|
|
|
</table><br />
|
2006-03-23 03:45:08 +01:00
|
|
|
|
2009-03-30 07:20:00 +02:00
|
|
|
<p> The <strong>project contents frame</strong> contains a list of all packages
|
2006-03-23 03:45:08 +01:00
|
|
|
and modules that are defined by the project. Clicking on an entry
|
|
|
|
will display its contents in the module contents frame. Clicking on a
|
|
|
|
special entry, labeled "Everything," will display the contents of
|
|
|
|
the entire project. </p>
|
|
|
|
|
2009-03-30 07:20:00 +02:00
|
|
|
<p> The <strong>module contents frame</strong> contains a list of every
|
2006-03-23 03:45:08 +01:00
|
|
|
submodule, class, type, exception, function, and variable defined by a
|
|
|
|
module or package. Clicking on an entry will display its
|
|
|
|
documentation in the API documentation frame. Clicking on the name of
|
|
|
|
the module, at the top of the frame, will display the documentation
|
|
|
|
for the module itself. </p>
|
|
|
|
|
2009-03-30 07:20:00 +02:00
|
|
|
<p> The "<strong>frames</strong>" and "<strong>no frames</strong>" buttons below the top
|
2006-03-23 03:45:08 +01:00
|
|
|
navigation bar can be used to control whether the table of contents is
|
|
|
|
displayed or not. </p>
|
|
|
|
|
|
|
|
<h2> The Navigation Bar </h2>
|
|
|
|
|
|
|
|
<p> A navigation bar is located at the top and bottom of every page.
|
|
|
|
It indicates what type of page you are currently viewing, and allows
|
|
|
|
you to go to related pages. The following table describes the labels
|
|
|
|
on the navigation bar. Note that not some labels (such as
|
|
|
|
[Parent]) are not displayed on all pages. </p>
|
|
|
|
|
|
|
|
<table class="summary" border="1" cellspacing="0" cellpadding="3" width="100%">
|
|
|
|
<tr class="summary">
|
|
|
|
<th>Label</th>
|
|
|
|
<th>Highlighted when...</th>
|
|
|
|
<th>Links to...</th>
|
|
|
|
</tr>
|
2009-03-30 07:20:00 +02:00
|
|
|
<tr><td valign="top"><strong>[Parent]</strong></td>
|
|
|
|
<td valign="top"><em>(never highlighted)</em></td>
|
2006-03-23 03:45:08 +01:00
|
|
|
<td valign="top"> the parent of the current package </td></tr>
|
2009-03-30 07:20:00 +02:00
|
|
|
<tr><td valign="top"><strong>[Package]</strong></td>
|
2006-03-23 03:45:08 +01:00
|
|
|
<td valign="top">viewing a package</td>
|
|
|
|
<td valign="top">the package containing the current object
|
|
|
|
</td></tr>
|
2009-03-30 07:20:00 +02:00
|
|
|
<tr><td valign="top"><strong>[Module]</strong></td>
|
2006-03-23 03:45:08 +01:00
|
|
|
<td valign="top">viewing a module</td>
|
|
|
|
<td valign="top">the module containing the current object
|
|
|
|
</td></tr>
|
2009-03-30 07:20:00 +02:00
|
|
|
<tr><td valign="top"><strong>[Class]</strong></td>
|
2006-03-23 03:45:08 +01:00
|
|
|
<td valign="top">viewing a class </td>
|
|
|
|
<td valign="top">the class containing the current object</td></tr>
|
2009-03-30 07:20:00 +02:00
|
|
|
<tr><td valign="top"><strong>[Trees]</strong></td>
|
2006-03-23 03:45:08 +01:00
|
|
|
<td valign="top">viewing the trees page</td>
|
|
|
|
<td valign="top"> the trees page </td></tr>
|
2009-03-30 07:20:00 +02:00
|
|
|
<tr><td valign="top"><strong>[Index]</strong></td>
|
2006-03-23 03:45:08 +01:00
|
|
|
<td valign="top">viewing the index page</td>
|
|
|
|
<td valign="top"> the index page </td></tr>
|
2009-03-30 07:20:00 +02:00
|
|
|
<tr><td valign="top"><strong>[Help]</strong></td>
|
2006-03-23 03:45:08 +01:00
|
|
|
<td valign="top">viewing the help page</td>
|
|
|
|
<td valign="top"> the help page </td></tr>
|
|
|
|
</table>
|
|
|
|
|
2009-03-30 07:20:00 +02:00
|
|
|
<p> The "<strong>show private</strong>" and "<strong>hide private</strong>" buttons below
|
2006-03-23 03:45:08 +01:00
|
|
|
the top navigation bar can be used to control whether documentation
|
|
|
|
for private objects is displayed. Private objects are usually defined
|
|
|
|
as objects whose (short) names begin with a single underscore, but do
|
|
|
|
not end with an underscore. For example, "<code>_x</code>",
|
|
|
|
"<code>__pprint</code>", and "<code>epydoc.epytext._tokenize</code>"
|
|
|
|
are private objects; but "<code>re.sub</code>",
|
|
|
|
"<code>__init__</code>", and "<code>type_</code>" are not. However,
|
|
|
|
if a module defines the "<code>__all__</code>" variable, then its
|
|
|
|
contents are used to decide which objects are private. </p>
|
|
|
|
|
|
|
|
<p> A timestamp below the bottom navigation bar indicates when each
|
|
|
|
page was last updated. </p>
|
2009-03-30 07:20:00 +02:00
|
|
|
<!-- ==================== NAVIGATION BAR ==================== -->
|
|
|
|
<table class="navbar" border="0" width="100%" cellpadding="0"
|
|
|
|
bgcolor="#a0c0ff" cellspacing="0">
|
|
|
|
<tr valign="middle">
|
|
|
|
<!-- Home link -->
|
|
|
|
<th> <a
|
|
|
|
href="mapnik-module.html">Home</a> </th>
|
2006-03-23 03:45:08 +01:00
|
|
|
|
2009-03-30 07:20:00 +02:00
|
|
|
<!-- Tree link -->
|
|
|
|
<th> <a
|
|
|
|
href="module-tree.html">Trees</a> </th>
|
|
|
|
|
|
|
|
<!-- Index link -->
|
|
|
|
<th> <a
|
|
|
|
href="identifier-index.html">Indices</a> </th>
|
|
|
|
|
|
|
|
<!-- Help link -->
|
|
|
|
<th bgcolor="#70b0f0" class="navbar-select"
|
|
|
|
> Help </th>
|
|
|
|
|
|
|
|
<!-- Project homepage -->
|
|
|
|
<th class="navbar" align="right" width="100%">
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
|
|
<tr><th class="navbar" align="center"
|
|
|
|
><a class="navbar" target="_top" href="http://mapnik.org">mapnik</a></th>
|
|
|
|
</tr></table></th>
|
2006-03-23 03:45:08 +01:00
|
|
|
</tr>
|
|
|
|
</table>
|
2009-03-30 07:20:00 +02:00
|
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
2006-03-23 03:45:08 +01:00
|
|
|
<tr>
|
2009-03-30 07:20:00 +02:00
|
|
|
<td align="left" class="footer">
|
2009-04-12 23:37:42 +02:00
|
|
|
Generated by Epydoc 3.0.1 on Sun Apr 12 14:37:25 2009
|
2009-03-30 07:20:00 +02:00
|
|
|
</td>
|
|
|
|
<td align="right" class="footer">
|
|
|
|
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
|
|
|
>http://epydoc.sourceforge.net</a>
|
|
|
|
</td>
|
2006-03-23 03:45:08 +01:00
|
|
|
</tr>
|
|
|
|
</table>
|
2009-03-30 07:20:00 +02:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
<!--
|
|
|
|
// Private objects are initially displayed (because if
|
|
|
|
// javascript is turned off then we want them to be
|
|
|
|
// visible); but by default, we want to hide them. So hide
|
|
|
|
// them unless we have a cookie that says to show them.
|
|
|
|
checkCookie();
|
|
|
|
// -->
|
|
|
|
</script>
|
2006-03-23 03:45:08 +01:00
|
|
|
</body>
|
|
|
|
</html>
|