/[thuban]/branches/WIP-pyshapelib-bramz/Doc/manual/thuban-manual.xml
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Doc/manual/thuban-manual.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1719 by jan, Fri Sep 19 09:17:10 2003 UTC revision 2209 by jan, Sun May 16 09:38:48 2004 UTC
# Line 2  Line 2 
2  <!DOCTYPE book  <!DOCTYPE book
3          PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"          PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
4          "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"          "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
5      [<!ENTITY imgscale "70">]>      [<!ENTITY imgscale "60">]>
6  <!-- $Revision$ -->  <!-- $Revision$ -->
7  <book>  <book>
8    <bookinfo>    <bookinfo>
# Line 19  Line 19 
19        </author>        </author>
20          </authorgroup>          </authorgroup>
21      <copyright>      <copyright>
22        <year>2003</year>        <year>2003, 2004</year>
23        <holder>Intevation GmbH</holder>        <holder>Intevation GmbH</holder>
24      </copyright>      </copyright>
25     <revhistory>     <revhistory>
# Line 32  Line 32 
32       </revision>       </revision>
33  -->  -->
34       <revision>       <revision>
35            <revnumber>1.0.0</revnumber>
36            <date>22-Jan-2004</date>
37            <revremark>
38                            Corresponds to Thuban 1.0.0.
39                            New: Installation instructions for Win32.
40                    </revremark>
41         </revision>
42         <revision>
43            <revnumber>1.0pre3</revnumber>
44            <date>04-Dec-2003</date>
45            <revremark>
46                            Corresponds to Thuban 1.0rc1.
47                            New: I18n, right button legend menu, EPSG projectons,
48                PostGIS support.
49                    </revremark>
50         </revision>
51         <revision>
52          <revnumber>1.0pre2</revnumber>          <revnumber>1.0pre2</revnumber>
53          <date>29-Aug-2003</date>          <date>29-Aug-2003</date>
54          <revremark>          <revremark>
# Line 80  Line 97 
97          <ulink url="http://thuban.intevation.org/download.html">          <ulink url="http://thuban.intevation.org/download.html">
98          Thuban Download site          Thuban Download site
99          </ulink>.          </ulink>.
100            </para>
101            <para>
102            Required:
103          <itemizedlist>          <itemizedlist>
104              <listitem><para>Python 2.2.1 (<literal>http://www.python.org</literal>)</para></listitem>              <listitem><para>Python 2.2.1
105              <listitem><para>wxWindows 2.4 (<literal>http://www.wxwindows.org</literal>)</para></listitem>                          (<literal>http://www.python.org</literal>)
106              <listitem><para>wxPython 2.4 (<literal>http://www.wxpython.org</literal>)</para></listitem>                          </para></listitem>
107              <listitem><para>proj 4.4.5 Projection Library (<literal>http://www.remotesensing.org/proj/</literal>)</para></listitem>              <listitem><para>wxWindows 2.4
108              <listitem><para>GDAL 1.1.8 (<literal>http://www.remotesensing.org/gdal/</literal>)</para></listitem>                          (<literal>http://www.wxwindows.org</literal>)
109              <listitem><para>SQLite 2.8.3 (<literal>http://www.hwaci.com/sw/sqlite/</literal>)</para></listitem>                          </para></listitem>
110              <listitem><para>PySQLite 0.4.3 (<literal>http://pysqlite.sourceforge.net</literal>)</para></listitem>              <listitem><para>wxPython 2.4
111                            (<literal>http://www.wxpython.org</literal>)
112                            </para></listitem>
113                <listitem><para>proj 4.4.5 Projection Library
114                            (<literal>http://www.remotesensing.org/proj/</literal>)
115                            </para></listitem>
116                <listitem><para>SQLite 2.8.3
117                            <literal>http://www.hwaci.com/sw/sqlite/</literal>)
118                            </para></listitem>
119                <listitem><para>PySQLite 0.4.3
120                            (<literal>http://pysqlite.sourceforge.net</literal>)
121                            </para></listitem>
122            </itemizedlist>
123            </para>
124            <para>
125            Optional:
126            <itemizedlist>
127                <listitem><para>GDAL 1.1.8
128                            (<literal>http://www.remotesensing.org/gdal/</literal>)
129                            </para></listitem>
130                <listitem><para>psycopg 1.0.8
131                            (<literal>http://initd.org/software/psycopg</literal>)
132                            </para></listitem>
133              </itemizedlist>              </itemizedlist>
134          </para>          </para>
135                  <para>                  <para>
136                  Along with the source codes, the download page also offers                  Along with the source codes, the download page also offers full
137                  full installation packages for Debian, Windows and RPM-based systems                  installation packages for Debian, Windows and RPM-based systems
138                  (Mandrake, RedHat, SuSE, etc).                  (Mandrake, RedHat, SuSE, etc).
139                  </para>                  </para>
140                  <section><title>RPM-based GNU/Linux Systems</title>                  <section><title>RPM-based GNU/Linux Systems</title>
141                          <section><title>Installing Binary Packages</title>                          <section><title>Installing Binary Packages</title>
142                                  <para>                                  <para>
143                                  The most wide-spread RPM-based GNU/Linux Systems are RedHat,                                  The most wide-spread RPM-based GNU/Linux
144                                  Mandrake and SuSE. The documentation of these distributions                                  Systems are RedHat, Mandrake and SuSE.
145                                  should contain information about how to install third-party                                  The documentation of these distributions
146                                  RPM packages. Nonetheless, a short summary is provided here.                                  should contain information about how to
147                                    install third-party RPM packages.
148                                    Nonetheless, a short summary is provided here.
149                                  </para>                                  </para>
150                                  <para>                                  <para>
151                                  RPM packages can be installed applying several tools.                                  RPM packages can be installed applying several
152                                  The most basic one is the command line program "rpm".                                  tools. The most basic one is the command line
153                                  The hardware architecture is identified in the name                                  program "rpm".  The hardware architecture is
154                                  of RPM packages, eg. 'i386' for most Intel/AMD architectures.                                  identified in the name of RPM packages, eg.
155                                  If you have a different hardware architecture, where no                                  'i386' for most Intel/AMD architectures.  
156                                  binary RPM packages are provided, you must rebuild binary                                  If you have a different hardware architecture,
157                                  packages from the RPM source packages first (see below).                                  where no binary RPM packages are provided,
158                                    you must rebuild binary packages from the
159                                    RPM source packages first (see below).
160                                  Typical rpm commands look like:                                  Typical rpm commands look like:
161    
162                                  <programlisting>                                  <programlisting>
163                                  rpm --install Thuban-0.9.0-1.i386.rpm                                  rpm --install Thuban-0.9.0-1.i386.rpm
164                                  </programlisting>                                  </programlisting>
165    
166                                  Depending on what you already have installed on your                                  Depending on what you already have installed
167                                  system, you are informed that some packages are                                  on your system, you are informed that some
168                                  required, but not installed. You need to install them                                  packages are required, but not installed.
169                                  first. Either they are provided by your GNU/Linux distributor                                  You need to install them first. Either they
170                                  or available somewhere on the Internet.                                  are provided by your GNU/Linux distributor
171                                  The more essential and special ones are provided together                                  or available somewhere on the Internet.  
172                                  with the Thuban package.                                  The more essential and special ones are
173                                    provided together with the Thuban package.
174                                  </para>                                  </para>
175    
176                                  <para>                                  <para>
# Line 238  rpm -bb thuban.spec Line 285  rpm -bb thuban.spec
285                          <ulink url="http://www.rpm.org/">homepage of RPM</ulink>.                          <ulink url="http://www.rpm.org/">homepage of RPM</ulink>.
286                                  </para>                                  </para>
287                          </section>                          </section>
288                  </section>                  </section> <!-- Intro - Installation - RPM-->
289    
290                    <section><title>Win32 Systems</title>
291                    <para>
292                            A common installation package of Thuban for Win32
293                            systems is available from the Thuban website download
294                            section. This installation package is configured for
295                            displaying file based vector data (Shapefiles). For the
296                            display of raster data or the connection to spatial
297                            databases additional steps are needed.  
298                    </para>
299                    <para>
300                            The required Python packages are listed and linked on
301                            the download page as well.  If you don't have Python
302                            installed already, download the packages for Python,
303                            wxPython for Python and the SQLite Python Libraries as
304                            well as the Thuban package. Install all four packages
305                            in the order: Python, wxPython, SQLite, Thuban. Follow
306                            the installation instructions provided by the seperate
307                            setups. The Thuban installation package will add an
308                            entry in the menu folder you configured.
309                    </para>
310                    <section><title>Raster Data: Installation of GDAL</title>
311                    <para>
312                            Enabling the raster data features of Thuban is
313                            straight forward. For the examples we assume that
314                            Thuban has been installed under
315                            <literal>C:\Thuban</literal>:
316                            <itemizedlist>
317                            <listitem>
318                            <para>
319                            Download the zip-archive <ulink
320                            url="ftp://intevation.de/thuban/win2k/gdal-win2k.zip"
321                            >gdal-win2k</ulink>.
322                            </para></listitem>
323                            <listitem><para>Extract the archive (e.g. with
324                            <ulink
325                            url="http://www.info-zip.org/pub/infozip/WiZ.html"
326                            >WiZ (InfoZip)</ulink>) into the
327                            <literal>C:\Thuban\Lib</literal>
328                            directory of your Thuban installation.
329                            </para>
330                            </listitem>
331                            <listitem>
332                            <para>
333                            Extent the <varname>PYTHONPATH</varname>
334                            environment variable (in your Windows Control Panel)
335                            to make the new libraries available for Thuban.
336                            <programlisting>
337    %PYTHONPATH%;C:\Thuban\Lib\gdal;C:\Thuban\Lib\gdal\pymod
338                            </programlisting>
339                            </para>
340                            </listitem>
341                            <listitem>
342                            <para>
343                            Extent also the <varname>PATH</varname>
344                            environment variable accordingly:
345                            <programlisting>
346    %PATH%;C:\Thuban\Lib\gdal
347                            </programlisting>
348                            </para>
349                            </listitem>
350                            </itemizedlist>
351                            After this installation steps Thuban is ready to
352                            display raster data (e.g. the
353                            <literal>island.tif</literal> from the Iceland Demo
354                            data set.
355                    </para>
356                    </section> <!-- Win32: GDAL-->
357    
358                    <section><title>Working with PostGIS: Installation of PsycoPG</title>
359                    <para>
360                            To access PostgreSQL/PostGIS spatial databases with
361                            Thuban you have to install the PsycoPG package for
362                            Windows:
363                            <itemizedlist>
364                            <listitem>
365                            <para>
366                            Download the zip-archive
367                            <ulink
368                                    url="http://stickpeople.com/projects/python/win-psycopg/win-psycopg22.zip"
369                            >win-psycopg22.zip</ulink>.
370                            </para>
371                            </listitem>
372                            <listitem>
373                            <para>
374                            Extract the zip-archive into a directory either already
375                            in your <varname>PYTHONPATH</varname> or extent your
376                            <varname>PYTHONPATH</varname> variable to the directory
377                            you have extracted the archive to.
378                            </para>
379                            </listitem>
380                            </itemizedlist>
381                            For installation and maintenance of spatial databases
382                            we refer to the  <ulink
383                            url="http://postgis.refractions.net"
384                            >PostGIS Homepage</ulink>.
385                    </para>
386                    </section> <!-- Win32: PsycoPG-->
387    
388                    </section> <!-- Intro - Installation - Win32 -->
389          </section>          </section>
390    
391            <section><title>Internationalization</title>
392            <para>
393            Thuban is implemented with internationalization support. So far Thuban
394            is translated by volunteers to the following languages (apart from its
395            main language: English):
396            <itemizedlist>
397                <listitem><para>French</para></listitem>
398                <listitem><para>German</para></listitem>
399                <listitem><para>Italian</para></listitem>
400                <listitem><para>Russian</para></listitem>
401                <listitem><para>Spanish</para></listitem>
402            </itemizedlist>
403            </para>
404    
405            <para>
406            To use internationalization under POSIX systems (like GNU/Linux)
407            you have to set the environment variable LC_ALL accordingly (e.g.
408            LC_ALL=fr_FR for the french language support). Please check your
409            systems documentation for details and supported settings.
410            Specifiying LC_ALL on the command line while launching thuban
411            allows appication specific language settings.
412            </para>
413    
414            <para>
415            MS Windows users have to specify the language to be used via the control
416            bar (which effects all applications).
417            </para>
418            </section>
419    
420          <section><title>The Main Window</title>          <section><title>The Main Window</title>
421          <para>          <para>
422          <figure>          <figure>
# Line 391  rpm -bb thuban.spec Line 567  rpm -bb thuban.spec
567    
568          <section><title>Adding and Removing Layers</title>          <section><title>Adding and Removing Layers</title>
569          <para>          <para>
570          There are two types of layers that can be added to a map: Shape layers          There are three types of layers that can be added to a map:
571            Shape layers, database layers
572          and image layers. Shape layers are stored in Shapefile format, a          and image layers. Shape layers are stored in Shapefile format, a
573          widely used file format for storing geographic objects. These          widely used file format for storing geographic objects. These
574          files have the extension ``.shp''. Associated with          files have the extension ``.shp''. Associated with
# Line 401  rpm -bb thuban.spec Line 578  rpm -bb thuban.spec
578          For example, if there is a shape file named roads.shp there must          For example, if there is a shape file named roads.shp there must
579          also be a file roads.dbf.          also be a file roads.dbf.
580          </para>          </para>
581          <para>          <itemizedlist>
582            <listitem>
583            <para>
584          Shape layers can be added to the map with          Shape layers can be added to the map with
585          <menuchoice>          <menuchoice>
586          <guimenu>Map</guimenu>          <guimenu>Map</guimenu>
# Line 417  rpm -bb thuban.spec Line 596  rpm -bb thuban.spec
596                  Use the shift-button together with the left mouse button to extend                  Use the shift-button together with the left mouse button to extend
597                  the selection.                  the selection.
598          </para>          </para>
599            </listitem>
600    
601            <listitem>
602            <para>Database layers can be added to the map with
603            <menuchoice>
604            <guimenu>Map</guimenu>
605            <guimenuitem>Add Database Layer</guimenuitem>
606            </menuchoice>.
607            A dialog with two is list is opened. The left list displays all
608            database connections currently open for the session. You can retrieve
609            a list of available layers from the selected database which is
610            displayed on the right hand. From this list one layer can be selected,
611            the dialog is closed afterwards.
612            </para>
613            <para>
614            See appendix ``Working with PostGIS'' for details.
615            </para>
616            </listitem>
617    
618            <listitem>
619          <para>          <para>
620          Image layers can be added to the map with          Image layers can be added to the map with
621          <menuchoice>          <menuchoice>
# Line 429  rpm -bb thuban.spec Line 627  rpm -bb thuban.spec
627          or in another file. If geographic information cannot be found, Thuban          or in another file. If geographic information cannot be found, Thuban
628          will report an error.          will report an error.
629          </para>          </para>
630            </listitem>
631            </itemizedlist>
632          </section>          </section>
633    
634          <section><title>Navigation</title>          <section><title>Navigation</title>
# Line 720  rpm -bb thuban.spec Line 920  rpm -bb thuban.spec
920          </para>          </para>
921          </listitem>          </listitem>
922          </itemizedlist>          </itemizedlist>
923    
924            <para>
925            The most used layer related actions are also available from a
926            popup menu. It is raised when a layer is clicked with the right mouse
927            button.
928            </para>
929            
930            <para>
931            <figure>
932            <title>Layer Popup Menu</title>
933            <mediaobject>
934            <imageobject><imagedata fileref="../images/3_5_popup_menu.png" format="PNG" scale="&imgscale;"/></imageobject>
935            <imageobject><imagedata fileref="./images/3_5_popup_menu.eps" format="EPS" scale="&imgscale;"/></imageobject>
936            </mediaobject>
937            </figure>
938            </para>
939    
940          <para>          <para>
941          Along the bottom of the legend is the scalebar. The scalebar          Along the bottom of the legend is the scalebar. The scalebar
942          will be available if there are any layers and the  map has a          will be available if there are any layers and the  map has a
# Line 764  rpm -bb thuban.spec Line 981  rpm -bb thuban.spec
981    
982          <section><title>Types of Layers</title>          <section><title>Types of Layers</title>
983          <para>          <para>
984          There are two types of layers supported by Thuban: shape layers and          There are three types of layers supported by Thuban: shape layers,
985            database layers and
986          image layers. Shape layers consist of vector based shapes with          image layers. Shape layers consist of vector based shapes with
987          geo-referenced coordinates. There are three types of supported          geo-referenced coordinates. There are three types of supported
988          shapes: polygons, lines (arc), and points. Image layers can be any image          shapes: polygons, lines (arc), and points. Database layers are similar
989            to shape layers but loaded from a database instead of the file system.
990            Image layers can be any image
991          file format supported by the Geo-spatial Data Abstraction Library          file format supported by the Geo-spatial Data Abstraction Library
992          (GDAL). The images must have geographic          (GDAL). The images must have geographic
993          coordinate data either embedded within the file or in a separate          coordinate data either embedded within the file or in a separate
# Line 1099  rpm -bb thuban.spec Line 1319  rpm -bb thuban.spec
1319      </figure>      </figure>
1320      </para>      </para>
1321      <para>      <para>
1322      Thuban is distributed with a sample collection of projections. The      Thuban is distributed with a sample collection of projections and the
1323        set of coordinate systems as used by the EPSG
1324        (European Petroleum Survey Group). This quite large set is only displayed
1325        if activated by the according checkbox. The set falls into two parts:
1326        deprecated lists all projections which are no longer part of the
1327        EPSG data base.
1328        </para>
1329        <para>
1330             The
1331      user can create new projections and make them available to all      user can create new projections and make them available to all
1332      future Thuban sessions. They may also be exported and imported so      future Thuban sessions. They may also be exported and imported so
1333      that custom projections can be distributed.      that custom projections can be distributed.
# Line 1410  rpm -bb thuban.spec Line 1638  rpm -bb thuban.spec
1638                  </para>                  </para>
1639          </section>          </section>
1640    
1641            <section><title>Extensions included in Thuban package</title>
1642                    <para>
1643                    The extensions described in this section are part of the
1644                    Thuban package, but not activated by default.
1645                    You will find them in the Thuban installation directory
1646                    under <literal>Extensions/</literal>. Activate them as personal
1647                    extensions via PYTHONPATH as described in the previous section.
1648                    Stable extensions will appear under the menu
1649                    <menuchoice><guimenu>Extensions</guimenu></menuchoice> and
1650                    extensions which are in experimental state and therefore
1651                    not fully functional under
1652                    <menuchoice><guimenu>Experimental</guimenu></menuchoice>.
1653                    </para>
1654    
1655                    <section><title>Stable extensions</title>
1656                            <para>
1657                            These extensions provide extra-functionality to Thuban
1658                            that has not (yet) been integrated in the main application.
1659                            They are considered to be free of bugs, but may be
1660                            further polished with helpful user interactions.
1661                            </para>
1662                            <section><title>gns2shp</title>
1663                                    <para>
1664                                    This tool converts data of the Geospatial Names Server
1665                                    (GNS, see <ulink url="http://www.nima.mil/gns"/>)
1666                                    into Shapefile format.
1667                                    The above web-site offer to download named places
1668                                    information grouped by countries for all of the world
1669                                    except USA for which other data are provided.
1670                                    </para>
1671                                    <para>
1672                                    If you download and unpack a package, you will have
1673                                    a text-file with suffix .txt.
1674                                    Selecting such a file via gns2shp will create the
1675                                    corresponding Shapefile with the same basename and
1676                                    place it in the same direcory. Afterwards it
1677                                    is automatically loaded into Thuban.
1678                                    The Shapefile will not automatically be delete afterwards.
1679                                    </para>
1680                                    <para>
1681                                    The gns2shp.py module can also be executed on the
1682                                    command line for batch processing purposes.
1683                                    </para>
1684                                    <para>
1685                                    A sample (<literal>ls.txt</literal> for Liechtenstein)
1686                                    is included in the directory
1687                                    <literal>Extensions/gns2shp/test</literal>.
1688                                    </para>
1689                            </section>
1690                    </section>
1691                    <section><title>Experimental extensions</title>
1692                            <para>
1693                            All all of these functions have to be handled with care,
1694                            since they are neither complete nor well tested.
1695                            They are to be seen as a proof-of-concept and may
1696                            additionally in some cases of practical help.
1697                            </para>
1698                            <para>
1699                            Any interest on further improvement of these extensions
1700                            should be communicated towards the developer and user
1701                            community.
1702                            </para>
1703    
1704                            <section><title>importAPR</title>
1705                                    <para>
1706                                    This command offer to load an ESRI� ArcView� project
1707                                    file (suffix .apr) and convert it for use within Thuban.
1708                                    After selecting a apr-file to load, a list
1709                                    will be presented that offers to select one of the views
1710                                    of the apr-file, provided there is more than one.
1711                                    Furthermore, the Session Info-Tree is extended with
1712                                    a complete representation of the parsed apr-file.
1713                                    </para>
1714                                    <para>
1715                                    The legend of Thuban does not yet cover all of the elements as
1716                                    supported by the legend of ArcView�. Therefore, the Thuban
1717                                    map will look different. Furthermore, the apr-format is
1718                                    a proprietary format, not openly documented.
1719                                    Therefore, the interpretation is
1720                                    partly based on reverse engeneering and good guessing.
1721                                    </para>
1722                                    <para>
1723                                    The file-paths within the apr-file may not fit and potentially
1724                                    are subject to fix in the apr-file. You can do this
1725                                    applying any text editor. The paths are either absolute
1726                                    or relative from where Thuban has been started.
1727                                    </para>
1728                                    <para>
1729                                    A sample for the Iceland data is included as
1730                                    <literal>Extensions/importAPR/samples/iceland.apr</literal>.
1731                                    The file-paths are relative from the Thuban main directory.
1732                                    </para>
1733                            </section>
1734                    </section>
1735            </section>
1736    
1737          <section><title>Writing simple extensions</title>          <section><title>Writing simple extensions</title>
1738                  <para>                  <para>
1739                  Writing an extension for Thuban basically means to                  Writing an extension for Thuban basically means to
# Line 1507  registry.Add(Command('hello_world', _('H Line 1831  registry.Add(Command('hello_world', _('H
1831                       helptext = _('Welcome everyone on this planet')))                       helptext = _('Welcome everyone on this planet')))
1832    
1833  # find the extensions menu (create it anew if not found)  # find the extensions menu (create it anew if not found)
1834  extensions_menu = main_menu.find_menu('extensions')  extensions_menu = main_menu.FindOrInsertMenu('extensions', _('E&xtensions'))
 if extensions_menu is None:  
     extensions_menu = main_menu.InsertMenu('extensions', _('E&xtensions'))  
1835    
1836  # finally bind the new command with an entry in the extensions menu  # finally bind the new command with an entry in the extensions menu
1837  extensions_menu.InsertItem('hello_world')  extensions_menu.InsertItem('hello_world')
# Line 1681  extensions_menu.InsertItem('hello_world' Line 2003  extensions_menu.InsertItem('hello_world'
2003      </varlistentry>      </varlistentry>
2004    
2005      <varlistentry>      <varlistentry>
2006        <term>PostGIS</term>
2007        <listitem>
2008            <para>
2009            PostGIS adds support for geographic objects to the PostgreSQL
2010            object-relational database. Different layer types (as for Shapefiles)
2011            are supported. <ulink url="http://postgis.refractions.net">PostGIS
2012            Homepage</ulink>
2013            </para>
2014        </listitem>
2015        </varlistentry>
2016    
2017        <varlistentry>
2018      <term>Raster files</term>      <term>Raster files</term>
2019      <listitem>      <listitem>
2020          <para>          <para>
# Line 1699  extensions_menu.InsertItem('hello_world' Line 2033  extensions_menu.InsertItem('hello_world'
2033      </variablelist>      </variablelist>
2034    </appendix>    </appendix>
2035    
2036      <appendix><title>Working with PostGIS</title>
2037      <para>
2038      This section focusses on the use of PostGIS in the Thuban framework. For
2039      installation and maintenance of spatial databases we refer to the  
2040      <ulink url="http://postgis.refractions.net">PostGIS Homepage</ulink>.
2041      The Thuban PostGIS support requires the
2042      <ulink url="http://initd.org/software/psycopg">psycopg module</ulink>.
2043      </para>
2044    
2045      <para>
2046            Working with PostGIS Databases is seperated into two steps:
2047            <itemizedlist>
2048            <listitem><para>Opening a Database Connection</para></listitem>
2049            <listitem><para>Loading a Data Layer</para></listitem>
2050            </itemizedlist>
2051      </para>
2052            <section><title>Opening a Database Connection</title>
2053            <para>
2054                    Before a data layer can be loaded from a PostGIS database a
2055                    connection with the database has to be established.
2056                    <menuchoice>
2057                    <guimenu>Session</guimenu>
2058                    <guimenuitem>Database Connections ...</guimenuitem>
2059                    </menuchoice> opens a dialog for database connection
2060                    management. In the dialog new connections can be added
2061                    and existing ones can be removed. Removing a database
2062                    connection is not possible if the map still displays a
2063                    layer provided by this database connection.
2064            </para>
2065        <figure>
2066        <title>Database Management Dialog</title>
2067        <mediaobject>
2068        <imageobject><imagedata fileref="../images/app_postgis_db_management.png" format="PNG" scale="&imgscale;"/></imageobject>
2069        <imageobject><imagedata fileref="./images/app_postgis_db_management.eps" format="EPS" scale="&imgscale;"/></imageobject>
2070        </mediaobject>
2071        </figure>
2072    
2073            <para>
2074                    To add a new database connection to the session a dialog is
2075                    opened to specify the relevant connection data. Enter all
2076                    data relevant for your connection. If the connection fails
2077                    the dialog remains open and provides some hints on the failure.
2078            </para>
2079            <figure>
2080            <title>Add Database Dialog</title>
2081            <mediaobject>
2082            <imageobject><imagedata fileref="../images/app_postgis_db_add.png" format="PNG" scale="&imgscale;"/></imageobject>
2083            <imageobject><imagedata fileref="./images/app_postgis_db_add.eps" format="EPS" scale="&imgscale;"/></imageobject>
2084            </mediaobject>
2085            </figure>
2086            
2087            <para>
2088            It is important to note that information on database connections are
2089            also stored with the session. Passwords are NOT stored. If you load a
2090            session with database connections you are asked to enter these
2091            passwords again where required.
2092            </para>
2093    
2094            </section>
2095    
2096            <section><title>Loading a Data Layer</title>
2097            <para>
2098            Data layers as part of a map are loaded with the
2099            <menuchoice>
2100            <guimenu>Map</guimenu>
2101            <guimenuitem>Add Database Layer ...</guimenuitem>
2102            </menuchoice> menu item. A dialog is raised displaying two choice
2103            lists. In the left list all connected databases are shown.
2104            Highlighting
2105            one of these and issuing a retrieval results in a list of available
2106            layer tables from that database. After selection of a
2107            layer the dialog is closed.
2108            </para>
2109            <figure>
2110            <title>Add Database Dialog</title>
2111            <mediaobject>
2112            <imageobject><imagedata fileref="../images/app_postgis_add_layer.png" format="PNG" scale="&imgscale;"/></imageobject>
2113            <imageobject><imagedata fileref="./images/app_postgis_add_layer.eps" format="EPS" scale="&imgscale;"/></imageobject>
2114            </mediaobject>
2115            </figure>
2116            
2117            </section>
2118    
2119      </appendix>
2120    
2121    <appendix><title>Supported Projections</title>    <appendix><title>Supported Projections</title>
2122      <para>      <para>
2123      The following types of projections are directly support by      The following types of projections are directly support by

Legend:
Removed from v.1719  
changed lines
  Added in v.2209

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26