/[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 1496 by frank, Tue Jul 29 12:07:13 2003 UTC revision 2670 by frank, Thu Sep 8 16:44:26 2005 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>
9      <title>Thuban Manual</title>      <title>User's Manual for Thuban 1.0</title>
10      <author>          <authorgroup>
11        <firstname>Jonathan</firstname><surname>Coles</surname>        <author>
12      </author>          <firstname>Jonathan</firstname><surname>Coles</surname>
13      <author>        </author>
14        <firstname>Jan-Oliver</firstname><surname>Wagner</surname>        <author>
15      </author>          <firstname>Jan-Oliver</firstname><surname>Wagner</surname>
16      <author>        </author>
17        <firstname>Frank</firstname><surname>Koormann</surname>        <author>
18      </author>          <firstname>Frank</firstname><surname>Koormann</surname>
19          </author>
20            </authorgroup>
21      <copyright>      <copyright>
22        <year>2003</year>        <year>2003, 2004, 2005</year>
23        <holder>Intevation GmbH</holder>        <holder>Intevation GmbH</holder>
24      </copyright>      </copyright>
25       <revhistory>
26    <!-- comment this first revision out when releasing a real version -->
27         <revision>
28            <revnumber>CVS version $Id$</revnumber>
29            <date></date>
30            <revremark>Under development.</revremark>
31         </revision>
32         <revision>
33            <revnumber>1.0.0</revnumber>
34            <date>22-Jan-2004</date>
35            <revremark>
36                            Corresponds to Thuban 1.0.0.
37                            New: Installation instructions for Win32.
38                    </revremark>
39         </revision>
40         <revision>
41            <revnumber>1.0pre3</revnumber>
42            <date>04-Dec-2003</date>
43            <revremark>
44                            Corresponds to Thuban 1.0rc1.
45                            New: I18n, right button legend menu, EPSG projectons,
46                PostGIS support.
47                    </revremark>
48         </revision>
49         <revision>
50            <revnumber>1.0pre2</revnumber>
51            <date>29-Aug-2003</date>
52            <revremark>
53                            Corresponds to Thuban development release 0.8.1.
54                            New: chapter on extensions.
55                    </revremark>
56         </revision>
57         <revision>
58            <revnumber>1.0pre1</revnumber>
59            <date>08-Aug-2003</date>
60            <revremark>Corresponds to Thuban development release 0.8.1.</revremark>
61         </revision>
62      </revhistory>
63    
64    </bookinfo>    </bookinfo>
65    
66    <chapter><title>Introduction</title>    <chapter><title>Introduction</title>
67      <para>      <para>
68      Thuban is a Free Software Geographic Information Systems (GIS) viewer.      Thuban is an interactive geographic data viewer.
69      It is being developed because there is currently no simple interactive      Its development had been started because there was no simple interactive
70      viewer for geographic information available as Free Software. Thuban is      viewer for geographic information available as Free Software. Thuban is
71      written in Python and C++ and uses the wxWindows library allowing it to      written mainly in Python and uses the wxWidgets (former wxWindows)
72        library allowing it to
73      run on many different platforms, including GNU/Linux and Windows.      run on many different platforms, including GNU/Linux and Windows.
74      </para>      </para>
75      <para>      <para>
76      GIS viewers are a necessary tool as they allow one to get a visual      Geographic data viewers are a necessary tool as they allow one to
77            get a visual
78      impression of the positional relationship of the information that may not      impression of the positional relationship of the information that may not
79      be apparent from simple inspection of the data values themselves.      be apparent from simple inspection of the data values themselves.
80      Thuban allows the user to create a session that displays      Thuban allows the user to create a session that displays
# Line 40  Line 83 
83      </para>      </para>
84      <para>      <para>
85      Thuban arranges a session in a hierarchy. A session contains a map which      Thuban arranges a session in a hierarchy. A session contains a map which
86      consists of layers. Each layer represents one kind of data set. For      consists of layers. Each layer represents a data set. For
87      instance, there may be a layer for roads and another layer for buildings.      instance, there may be a layer for roads and another layer for buildings.
88      These layers can either be vector shapes or images.      These layers can either be vector shapes or images.
89      </para>      </para>
# Line 48  Line 91 
91          <section><title>Installation</title>          <section><title>Installation</title>
92          <para>          <para>
93          Thuban is actively supported under Debian Testing (sarge), RedHat 7.2,          Thuban is actively supported under Debian Testing (sarge), RedHat 7.2,
94          and Windows 2000. All the necessary files can be found on the          and Windows 2000. Thuban depends on the following packages. These
95            packages can also be found on the
96          <ulink url="http://thuban.intevation.org/download.html">          <ulink url="http://thuban.intevation.org/download.html">
97          Thuban Download site          Thuban Download site
98          </ulink>.          </ulink>.
99          </para>          </para>
100            <para>
101            Required:
102            <itemizedlist>
103                <listitem><para>Python 2.2.1
104                            (<literal>http://www.python.org</literal>)
105                            </para></listitem>
106                <listitem><para>wxWindows 2.4
107                            (<literal>http://www.wxwindows.org</literal>)
108                            </para></listitem>
109                <listitem><para>wxPython 2.4
110                            (<literal>http://www.wxpython.org</literal>)
111                            </para></listitem>
112                <listitem><para>proj 4.4.5 Projection Library
113                            (<literal>http://www.remotesensing.org/proj/</literal>)
114                            </para></listitem>
115                <listitem><para>SQLite 2.8.3
116                            <literal>http://www.hwaci.com/sw/sqlite/</literal>)
117                            </para></listitem>
118                <listitem><para>PySQLite 0.4.3
119                            (<literal>http://pysqlite.sourceforge.net</literal>)
120                            </para></listitem>
121            </itemizedlist>
122            </para>
123            <para>
124            Optional:
125            <itemizedlist>
126                <listitem><para>GDAL 1.1.8
127                            (<literal>http://www.remotesensing.org/gdal/</literal>)
128                            </para></listitem>
129                <listitem><para>psycopg 1.0.8
130                            (<literal>http://initd.org/software/psycopg</literal>)
131                            </para></listitem>
132                </itemizedlist>
133            </para>
134                    <para>
135                    Along with the source codes, the download page also offers full
136                    installation packages for Debian, Windows and RPM-based systems
137                    (Mandrake, RedHat, SuSE, etc).
138                    </para>
139                    <section><title>RPM-based GNU/Linux Systems</title>
140                            <section><title>Installing Binary Packages</title>
141                                    <para>
142                                    The most wide-spread RPM-based GNU/Linux
143                                    Systems are RedHat, Mandrake and SuSE.
144                                    The documentation of these distributions
145                                    should contain information about how to
146                                    install third-party RPM packages.
147                                    Nonetheless, a short summary is provided here.
148                                    </para>
149                                    <para>
150                                    RPM packages can be installed applying several
151                                    tools. The most basic one is the command line
152                                    program "rpm".  The hardware architecture is
153                                    identified in the name of RPM packages, eg.
154                                    'i386' for most Intel/AMD architectures.  
155                                    If you have a different hardware architecture,
156                                    where no binary RPM packages are provided,
157                                    you must rebuild binary packages from the
158                                    RPM source packages first (see below).
159                                    Typical rpm commands look like:
160    
161                                    <programlisting>
162                                    rpm --install Thuban-0.9.0-1.i386.rpm
163                                    </programlisting>
164    
165                                    Depending on what you already have installed
166                                    on your system, you are informed that some
167                                    packages are required, but not installed.
168                                    You need to install them first. Either they
169                                    are provided by your GNU/Linux distributor
170                                    or available somewhere on the Internet.  
171                                    The more essential and special ones are
172                                    provided together with the Thuban package.
173                                    </para>
174    
175                                    <para>
176                                    For rpm exist some graphical user interfaces, notably
177                                    kpackage, GnoRPM and xrpm.
178                                    </para>
179    
180                                    <para>
181                                    Make yourself familiar with one of the tools and apply it
182                                    to install the packages.
183                                    Note, that you need to be administrator (root) for the system
184                                    to do that.
185                                    </para>
186                            </section>
187                            <section><title>Build Binaries from Source Packages</title>
188                                    <para>
189                                    This section describes howto build RPM install-packages
190                                    from RPM source-packages.
191                                    This adapts and optimizes an install-package specifically
192                                    to your system.
193                                    This is especially helpful to resolve version conflicts of
194                                    dependent packages. Furthermore, install-packages for other
195                                    platforms (e.g. PowerPC) can be created.
196                                    </para>
197    
198                                    <para>
199                                    Note: rpm must be at least version 4. Execute
200                                    <literal>rpm --version</literal> to find out about the version.
201                                    </para>
202    
203                                    <para>
204                                    You need to do the following preparations to be able to
205                                    build the packages as a regular user. You should now
206                                    perform the package buling as root since this
207                                    might cause damage to your system.
208                            <itemizedlist>
209                            <listitem>
210                                                    <para>
211                                                    Create RPM directory structure:
212                                                    Choose a directory (e.g. $HOME/myrpm) and create the
213                                                    subdirectories BUILD, RPM, SOURCES, SPECS and SRPMS.
214                                                    A possible command sequence for this is:
215                                                    <programlisting>
216                                                    mkdir $HOME/freegisrpm
217                                                    cd $HOME/freegisrpm
218                                                    mkdir BUILD RPMS SOURCES SPECS SRPMS
219                                                    </programlisting>
220                                                    </para>
221                                            </listitem>
222                                            <listitem>
223                                                    <para>
224                                                    Set environment variable RPM_DIR:
225                                                    <programlisting>
226                                                    export RPM_DIR=$HOME/freegisrpm
227                                                    </programlisting>
228                                                    </para>
229                                            </listitem>
230                                            <listitem>
231                                                    <para>
232                                                    Create $HOME/.rpmmacros:
233                                                    This file sets general preferences and some
234                                                    specific settings for signing packages.
235                                                    If you don't have a GnuPG-key, you can skip
236                                                    the signature settings i.e. drop the last 4 lines.
237                                                    A signature becomes important when you want to
238                                                    give away packages to third parties.
239                                                    <programlisting>
240    <![CDATA[
241    %packager Name Lastname <[email protected]>
242    
243    %_topdir /home/mylogin/myrpm
244    
245    %_signature gpg
246    %_gpg_name Name Lastname
247    %_pgp_path ~/.gnupg
248    %_pgpbin /usr/bin/gpg
249    ]]>
250                                                    </programlisting>
251                                                    </para>
252                                            </listitem>
253                            </itemizedlist>
254    
255                                    Now you can install any RPM source-package.
256                                    It's components are installed into the corresponding
257                                    subdirectories of your rpm-directory.
258                                    Essentially these are the sources (into directory SOURCES)
259                                    and the so-called spec-file which contains all build
260                                    instructions. The spec-file will go into the SPEC directory.
261                                    Example:
262                                    <literal>rpm --install Thuban-0.9.0-1.src.rpm</literal>
263                                    </para>
264    
265                                    <para>
266                                    Create install-package:
267                                    Go to the directory with the spec-files and rebuild the
268                                    package:
269                                    <programlisting>
270    cd $HOME/mypm/SPECS
271    rpm -bb thuban.spec
272                                    </programlisting>
273                                    Next, you will find the newly created package in
274                                    $HOME/myrpm/RPMS/i386.
275                                    If you build the package for another architecture than
276                                    i386, then the name of the directory has a corresponding name.
277                                    </para>
278                                    <para>
279                                    For documentation of RPM, either type
280                                    <literal>man rpm</literal> or <literal>rpm --help</literal>.
281                                    This will provide you with information on the various command
282                                    line options of RPM.
283                                    For more information see the
284                            <ulink url="http://www.rpm.org/">homepage of RPM</ulink>.
285                                    </para>
286                            </section>
287                    </section> <!-- Intro - Installation - RPM-->
288    
289                    <section><title>Win32 Systems</title>
290                    <para>
291                            A common installation package of Thuban for Win32
292                            systems is available from the Thuban website download
293                            section. This installation package is configured for
294                            displaying file based vector data (Shapefiles). For the
295                            display of raster data or the connection to spatial
296                            databases additional steps are needed.  
297                    </para>
298                    <para>
299                            The required Python packages are listed and linked on
300                            the download page as well.  If you don't have Python
301                            installed already, download the packages for Python,
302                            wxPython for Python and the SQLite Python Libraries as
303                            well as the Thuban package. Install all four packages
304                            in the order: Python, wxPython, SQLite, Thuban. Follow
305                            the installation instructions provided by the seperate
306                            setups. The Thuban installation package will add an
307                            entry in the menu folder you configured.
308                    </para>
309                    <section><title>Raster Data: Installation of GDAL</title>
310                    <para>
311                            Enabling the raster data features of Thuban is
312                            straight forward. For the examples we assume that
313                            Thuban has been installed under
314                            <literal>C:\Thuban</literal>:
315                            <itemizedlist>
316                            <listitem>
317                            <para>
318                            Download the zip-archive <ulink
319                            url="ftp://intevation.de/thuban/win2k/gdal-win2k.zip"
320                            >gdal-win2k</ulink>.
321                            </para></listitem>
322                            <listitem><para>Extract the archive (e.g. with
323                            <ulink
324                            url="http://www.info-zip.org/pub/infozip/WiZ.html"
325                            >WiZ (InfoZip)</ulink>) into the
326                            <literal>C:\Thuban\Lib</literal>
327                            directory of your Thuban installation.
328                            </para>
329                            </listitem>
330                            <listitem>
331                            <para>
332                            Extent the <varname>PYTHONPATH</varname>
333                            environment variable (in your Windows Control Panel)
334                            to make the new libraries available for Thuban.
335                            <programlisting>
336    %PYTHONPATH%;C:\Thuban\Lib\gdal;C:\Thuban\Lib\gdal\pymod
337                            </programlisting>
338                            </para>
339                            </listitem>
340                            <listitem>
341                            <para>
342                            Extent also the <varname>PATH</varname>
343                            environment variable accordingly:
344                            <programlisting>
345    %PATH%;C:\Thuban\Lib\gdal
346                            </programlisting>
347                            </para>
348                            </listitem>
349                            </itemizedlist>
350                            After this installation steps Thuban is ready to
351                            display raster data (e.g. the
352                            <literal>island.tif</literal> from the Iceland Demo
353                            data set.
354                    </para>
355                    </section> <!-- Win32: GDAL-->
356    
357                    <section><title>Working with PostGIS: Installation of PsycoPG</title>
358                    <para>
359                            To access PostgreSQL/PostGIS spatial databases with
360                            Thuban you have to install the PsycoPG package for
361                            Windows:
362                            <itemizedlist>
363                            <listitem>
364                            <para>
365                            Download the zip-archive
366                            <ulink
367                                    url="http://stickpeople.com/projects/python/win-psycopg/win-psycopg22.zip"
368                            >win-psycopg22.zip</ulink>.
369                            </para>
370                            </listitem>
371                            <listitem>
372                            <para>
373                            Extract the zip-archive into a directory either already
374                            in your <varname>PYTHONPATH</varname> or extent your
375                            <varname>PYTHONPATH</varname> variable to the directory
376                            you have extracted the archive to.
377                            </para>
378                            </listitem>
379                            </itemizedlist>
380                            For installation and maintenance of spatial databases
381                            we refer to the  <ulink
382                            url="http://postgis.refractions.net"
383                            >PostGIS Homepage</ulink>.
384                    </para>
385                    </section> <!-- Win32: PsycoPG-->
386    
387                    </section> <!-- Intro - Installation - Win32 -->
388          </section>          </section>
389    
390            <section><title>Internationalization</title>
391            <para>
392            Thuban is implemented with internationalization support. So far Thuban
393            is translated by volunteers to the following languages (apart from its
394            main language: English):
395            <itemizedlist>
396                <listitem><para>French</para></listitem>
397                <listitem><para>German</para></listitem>
398                <listitem><para>Italian</para></listitem>
399                    <listitem><para>Portuguese (Brazilian)</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            <programlisting>
414            LC_ALL=fr_FR thuban.py
415            </programlisting>
416    
417            <para>
418            MS Windows users have to specify the language to be used via the control
419            bar (which effects all applications).
420            </para>
421            </section>
422    
423          <section><title>The Main Window</title>          <section><title>The Main Window</title>
424          <para>          <para>
425          <screenshot>          <figure>
426          <screeninfo>The Main Window</screeninfo>          <title>The Main Window</title>
427          <mediaobject>          <mediaobject>
428          <imageobject> <imagedata fileref="../images/1_2_mainwindow.png" format="PNG" scale="&imgscale;"/> </imageobject>          <imageobject> <imagedata fileref="../images/1_2_mainwindow.png" format="PNG" scale="&imgscale;"/> </imageobject>
429          <imageobject> <imagedata fileref="./images/1_2_mainwindow.ps" format="EPS" scale="&imgscale;"/> </imageobject>          <imageobject> <imagedata fileref="./images/1_2_mainwindow.ps" format="EPS" scale="&imgscale;"/> </imageobject>
         <textobject><phrase>The Main Window</phrase></textobject>  
         <caption><para>The Main Window</para></caption>  
430          </mediaobject>          </mediaobject>
431          </screenshot>          </figure>
432          </para>          </para>
433    
434          <para>          <para>
# Line 121  Line 484 
484          If a session is already loaded and has been modified without          If a session is already loaded and has been modified without
485          being saved a prompt will ask if the current session should          being saved a prompt will ask if the current session should
486          be saved. A new session consists of an empty map with no          be saved. A new session consists of an empty map with no
487          layers and no tables.          layers, no tables and no projection.
488          </para>          </para>
489          </section>          </section>
490    
# Line 135  Line 498 
498          for a Thuban Session file. Thuban session files end with          for a Thuban Session file. Thuban session files end with
499          <varname>.thuban</varname>. Selecting a file a clicking          <varname>.thuban</varname>. Selecting a file a clicking
500          <guibutton>OK</guibutton> will load the session into Thuban.          <guibutton>OK</guibutton> will load the session into Thuban.
501                    </para>
502    
503                    <para>
504          If a session is already loaded and has been modified without          If a session is already loaded and has been modified without
505          being saved a prompt will ask if the current session should          being saved a prompt will ask if the current session should
506          be saved.          be saved.
507          </para>          </para>
508                    
509                    <para>
510                    Thuban provides a path recovery feature: If a (shape) file referenced
511                    in a Thuban session cannot be found at the specified location, the user
512                    is prompted a file dialog. Here a new location can be selected for the
513                    currents layer data source. Cancelling the dialog removes the layer
514                    from the session. If a new location has been selected, Thuban checks
515                    this again, if further layers data sources are missing. The user is
516                    informed about this and can accept or cancel the suggestion.
517            </para>
518          </section>          </section>
519    
520          <section><title>Saving a Session</title>          <section><title>Saving a Session</title>
# Line 148  Line 523 
523          <menuchoice>          <menuchoice>
524          <guimenu>File</guimenu>          <guimenu>File</guimenu>
525          <guimenuitem>Save Session</guimenuitem>          <guimenuitem>Save Session</guimenuitem>
526          </menuchoice>. A dialog box will open allowing the user to browse          </menuchoice>.
527                    In the case the session is not a new and unsaved one,
528                    the corresponding file is updated with the current session
529                    data.
530                    In the case the current session is a new one and yet unsaved
531                    a dialog box will open allowing the user to browse
532          the file system and select a place to save the session. Thuban          the file system and select a place to save the session. Thuban
533          sessions should be saved under a name ending in          sessions should be saved under a name ending in
534          <varname>.thuban</varname>. If the file already exists the user          <varname>.thuban</varname>. If the file already exists the user
# Line 159  Line 539 
539    
540          <section><title>The Session Info-Tree</title>          <section><title>The Session Info-Tree</title>
541          <para>          <para>
542          <screenshot>          <figure>
543          <screeninfo>Session Info Tree</screeninfo>          <title>Session Info Tree</title>
544          <mediaobject>          <mediaobject>
545          <imageobject><imagedata fileref="../images/2_4_session_tree.png" format="PNG" scale="&imgscale;"/></imageobject>          <imageobject><imagedata fileref="../images/2_4_session_tree.png" format="PNG" scale="&imgscale;"/></imageobject>
546          <imageobject><imagedata fileref="./images/2_4_session_tree.eps" format="EPS" scale="&imgscale;"/></imageobject>          <imageobject><imagedata fileref="./images/2_4_session_tree.eps" format="EPS" scale="&imgscale;"/></imageobject>
         <textobject><phrase>Session Info Tree</phrase></textobject>  
         <caption><para>Session Info Tree</para></caption>  
547          </mediaobject>          </mediaobject>
548          </screenshot>          </figure>
549          </para>          </para>
550          <para>          <para>
551          The session info-tree is primarily intended for developers working          The session info-tree is primarily intended for developers working
# Line 209  Line 587 
587    
588          <section><title>Adding and Removing Layers</title>          <section><title>Adding and Removing Layers</title>
589          <para>          <para>
590          There are two types of layers that can use added to a map: shape layers          There are three types of layers that can be added to a map:
591            Shape layers, database layers
592          and image layers. Shape layers are stored in Shapefile format, a          and image layers. Shape layers are stored in Shapefile format, a
593          standard file format for storing geographic objects. These          widely used file format for storing geographic objects. These
594          files have the extension ``.shp''. Associated with          files have the extension ``.shp''. Associated with
595          the shape file is a database file which stores attributes for          the shape file is a database file which stores attributes for
596          each shape in the shape file. This file, in dBase format,          each shape in the Shape file. This file, in dBase format,
597          has the extension ``.dbf''. Both files must have the same base name.          has the extension ``.dbf''. Both files must have the same base name.
598          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
599          also be a file roads.dbf.          also be a file roads.dbf.
600          </para>          </para>
601          <para>          <itemizedlist>
602            <listitem>
603            <para>
604          Shape layers can be added to the map with          Shape layers can be added to the map with
605          <menuchoice>          <menuchoice>
606          <guimenu>Map</guimenu>          <guimenu>Map</guimenu>
607          <guimenuitem>Add Layer</guimenuitem>          <guimenuitem>Add Layer</guimenuitem>
608          </menuchoice>.          </menuchoice>.
609          Thuban will load all files with the same base name, so it doesn't          Initially, only the ``.shp'' files are shown which is enough for the
610          matter if the shape file or database file is selected.                  selection. However, if you switch to display all files and select one
611          </para>                  of the associated files (e.g. ``.dbf''), Thuban will recognize the base
612                    name and load the corresponding Shape file.
613            </para>
614                    <para>
615                    The file dialog for Shape files allows to select multiple files.
616                    Use the shift-button together with the left mouse button to extend
617                    the selection.
618            </para>
619            </listitem>
620    
621            <listitem>
622            <para>Database layers can be added to the map with
623            <menuchoice>
624            <guimenu>Map</guimenu>
625            <guimenuitem>Add Database Layer</guimenuitem>
626            </menuchoice>.
627            A dialog with two lists is opened. The left list displays all
628            database connections currently open for the session. You can retrieve
629            a list of available layers from the selected database which is
630            displayed on the right hand. From this list one layer can be selected,
631            the dialog is closed afterwards.
632            </para>
633            <para>
634            See appendix ``Working with PostGIS'' for details.
635            </para>
636            </listitem>
637    
638            <listitem>
639          <para>          <para>
640          Image layers can be added to the map with          Image layers can be added to the map with
641          <menuchoice>          <menuchoice>
# Line 240  Line 647 
647          or in another file. If geographic information cannot be found, Thuban          or in another file. If geographic information cannot be found, Thuban
648          will report an error.          will report an error.
649          </para>          </para>
650            </listitem>
651            </itemizedlist>
652          </section>          </section>
653    
654          <section><title>Navigation</title>          <section><title>Navigation</title>
# Line 248  Line 657 
657          the tool bar or from the          the tool bar or from the
658          <menuchoice><guimenu>Map</guimenu></menuchoice> menu.          <menuchoice><guimenu>Map</guimenu></menuchoice> menu.
659          </para>          </para>
660            <itemizedlist>
661            <listitem>
662          <para>          <para>
663          The ZoomIn tool          The ZoomIn tool
664          <inlinemediaobject>          <inlinemediaobject>
# Line 261  Line 672 
672          </inlinemediaobject>          </inlinemediaobject>
673          enlarges a region of the map. Clicking once on the map          enlarges a region of the map. Clicking once on the map
674          will double the magnification and center the map on the point that          will double the magnification and center the map on the point that
675          was clicked. Clicking and dragging selects a region that will          was clicked. Clicking and dragging selects a region that will be
676          enlarged to fit the window.          enlarged to fit the window.
677          </para>          </para>
678            </listitem>
679            <listitem>
680          <para>          <para>
681          The ZoomOut tool          The ZoomOut tool
682          <inlinemediaobject>          <inlinemediaobject>
# Line 280  Line 693 
693          selects a box such that the current contents of the window will be          selects a box such that the current contents of the window will be
694          scaled to fit into that box.          scaled to fit into that box.
695          </para>          </para>
696            </listitem>
697            <listitem>
698          <para>          <para>
699          The Pan tool          The Pan tool
700          <inlinemediaobject>          <inlinemediaobject>
# Line 293  Line 708 
708          </inlinemediaobject>          </inlinemediaobject>
709          allows the user to move the map around by clicking and dragging.          allows the user to move the map around by clicking and dragging.
710          </para>          </para>
711            </listitem>
712            <listitem>
713          <para>          <para>
714          The Full Extent tool          The Full Extent tool
715          <inlinemediaobject>          <inlinemediaobject>
# Line 306  Line 723 
723          </inlinemediaobject>          </inlinemediaobject>
724          rescales the viewable region so that the entire map is visible.          rescales the viewable region so that the entire map is visible.
725          </para>          </para>
726            </listitem>
727            <listitem>
728          <para>          <para>
729          The Full Layer Extent tool          The Full Layer Extent tool
730          <inlinemediaobject>          <inlinemediaobject>
# Line 321  Line 740 
740          layer fits within the window. If no layer is selected this button          layer fits within the window. If no layer is selected this button
741          will be disabled.          will be disabled.
742          </para>          </para>
743            </listitem>
744            <listitem>
745          <para>          <para>
746          The Full Shape Extent tool          The Full Shape Extent tool
747          <inlinemediaobject>          <inlinemediaobject>
# Line 335  Line 756 
756          rescales the viewable region so that the currently selected          rescales the viewable region so that the currently selected
757          shape fits within the window. If the shape is a point, it is          shape fits within the window. If the shape is a point, it is
758          centered and the map is zoomed all the way in. If no shape is          centered and the map is zoomed all the way in. If no shape is
759          selected this button will be disabled.          selected this button will be disabled. This feature is especially
760            helpful when identifying an object related to a selected record
761            in a tableview (see below).
762    
763          </para>          </para>
764            </listitem>
765            </itemizedlist>
766          </section>          </section>
767    
768          <section><title>Object Identification</title>          <section><title>Object Identification</title>
# Line 353  Line 779 
779          </inlinemediaobject>.          </inlinemediaobject>.
780          Clicking on an object selects that object and opens a dialog which          Clicking on an object selects that object and opens a dialog which
781          shows all the table attributes for that object. Any current selection          shows all the table attributes for that object. Any current selection
782          is lost.          is lost. Objects on the map are typically shapes and this document
783            will often refer to objects as shapes.
784          </para>          </para>
785          </section>          </section>
786    
# Line 404  Line 831 
831          <menuchoice><guimenu>Map</guimenu></menuchoice>.          <menuchoice><guimenu>Map</guimenu></menuchoice>.
832          </para>          </para>
833    
834            <itemizedlist>
835            <listitem>
836          <para>          <para>
837          The Move Layer to Top tool          The Move Layer to Top tool
838          <inlinemediaobject>          <inlinemediaobject>
# Line 416  Line 845 
845          <textobject> <phrase>Move Layer to Top</phrase> </textobject>          <textobject> <phrase>Move Layer to Top</phrase> </textobject>
846          </inlinemediaobject> raises the selected layer to the top of the map.          </inlinemediaobject> raises the selected layer to the top of the map.
847          </para>          </para>
848            </listitem>
849            <listitem>
850    
851          <para>          <para>
852          The Move Layer Up tool          The Move Layer Up tool
# Line 429  Line 860 
860          <textobject> <phrase>Move Layer Up</phrase> </textobject>          <textobject> <phrase>Move Layer Up</phrase> </textobject>
861          </inlinemediaobject> raises the selected layer one level.          </inlinemediaobject> raises the selected layer one level.
862          </para>          </para>
863            </listitem>
864            <listitem>
865    
866          <para>          <para>
867          The Move Layer Down tool          The Move Layer Down tool
# Line 443  Line 876 
876          </inlinemediaobject> lowers the selected layer one level.          </inlinemediaobject> lowers the selected layer one level.
877          </para>          </para>
878    
879            </listitem>
880            <listitem>
881          <para>          <para>
882          The Move Layer to Bottom tool          The Move Layer to Bottom tool
883          <inlinemediaobject>          <inlinemediaobject>
# Line 456  Line 891 
891          </inlinemediaobject> lowers the selected layer to the bottom of the map.          </inlinemediaobject> lowers the selected layer to the bottom of the map.
892          </para>          </para>
893    
894            </listitem>
895            <listitem>
896          <para>          <para>
897          The Visible tool          The Visible tool
898          <inlinemediaobject>          <inlinemediaobject>
# Line 470  Line 907 
907          hidden.          hidden.
908          </para>          </para>
909    
910            </listitem>
911            <listitem>
912          <para>          <para>
913          The Invisible tool          The Invisible tool
914          <inlinemediaobject>          <inlinemediaobject>
# Line 483  Line 922 
922          </inlinemediaobject> hides the selected layer in the map.          </inlinemediaobject> hides the selected layer in the map.
923          </para>          </para>
924    
925            </listitem>
926            <listitem>
927          <para>          <para>
928          The Properties tool          The Properties tool
929          <inlinemediaobject>          <inlinemediaobject>
# Line 497  Line 938 
938          Double-clicking on a layer or a group of a layer will open the          Double-clicking on a layer or a group of a layer will open the
939          properties dialog for that layer.          properties dialog for that layer.
940          </para>          </para>
941            </listitem>
942            </itemizedlist>
943    
944            <para>
945            The most used layer related actions are also available from a
946            popup menu. It is raised when a layer is clicked with the right mouse
947            button.
948            </para>
949            
950            <para>
951            <figure>
952            <title>Layer Popup Menu</title>
953            <mediaobject>
954            <imageobject><imagedata fileref="../images/3_5_popup_menu.png" format="PNG" scale="&imgscale;"/></imageobject>
955            <imageobject><imagedata fileref="./images/3_5_popup_menu.eps" format="EPS" scale="&imgscale;"/></imageobject>
956            </mediaobject>
957            </figure>
958            </para>
959    
960            <para>
961            Along the bottom of the legend is the scalebar. The scalebar
962            will be available if there are any layers and the  map has a
963            projection set.
964            </para>
965          </section>          </section>
966    
967          <section><title>Exporting</title>          <section><title>Exporting</title>
# Line 507  Line 972 
972          <menuchoice>          <menuchoice>
973          <guimenu>Map</guimenu>          <guimenu>Map</guimenu>
974          <guimenuitem>Export</guimenuitem>          <guimenuitem>Export</guimenuitem>
975          </menuchoice>. Under other platforms this option is not available.          </menuchoice> for use in reports, presentations, or further
976          Clicking this menu item open a file selection dialog that lets the          modification. The current map view, legend, and, if available,
977          user select a location to export the map.          scalebar are exported. Under other platforms this option is not
978            available. Clicking this menu item open a file selection dialog
979            that lets the user select a location to export the map.
980          </para>          </para>
981          </section>          </section>
982    
# Line 519  Line 986 
986          <menuchoice>          <menuchoice>
987          <guimenu>Map</guimenu>          <guimenu>Map</guimenu>
988          <guimenuitem>Print</guimenuitem>          <guimenuitem>Print</guimenuitem>
989          </menuchoice>. A standard printing dialog will open allowing the          </menuchoice>. The current map view, legend, and, if available,
990          user to configure the printer. This dialog will differ depending          scalebar are printed. A standard printing dialog will open allowing
991            the user to configure the printer. This dialog will differ depending
992          on which platform Thuban is running.          on which platform Thuban is running.
993          </para>          </para>
994          </section>          </section>
# Line 533  Line 1001 
1001    
1002          <section><title>Types of Layers</title>          <section><title>Types of Layers</title>
1003          <para>          <para>
1004          There are two types of layers supported by Thuban: shape layers and          There are three types of layers supported by Thuban: shape layers,
1005            database layers and
1006          image layers. Shape layers consist of vector based shapes with          image layers. Shape layers consist of vector based shapes with
1007          geo-referenced coordinates. There are three types of supported          geo-referenced coordinates. There are three types of supported
1008          shapes: polygons, lines, and points. Image layers can be any image          shapes: polygons, lines (arc), and points. Database layers are similar
1009            to shape layers but loaded from a database instead of the file system.
1010            Image layers can be any image
1011          file format supported by the Geo-spatial Data Abstraction Library          file format supported by the Geo-spatial Data Abstraction Library
1012          (GDAL). The images must have geographic          (GDAL). The images must have geographic
1013          coordinate data either embedded within the file or in a separate          coordinate data either embedded within the file or in a separate
# Line 544  Line 1015 
1015          work very well with Thuban and were designed specifically to be image          work very well with Thuban and were designed specifically to be image
1016          layers in GIS programs.          layers in GIS programs.
1017          </para>          </para>
1018            <para>
1019            All actions in the
1020            <menuchoice>
1021            <guimenu>Layer</guimenu>
1022            </menuchoice> menu act on the currently selected layer in the legend.
1023            </para>
1024          </section>          </section>
1025    
1026          <section><title>Properties</title>          <section><title>Properties</title>
# Line 554  Line 1031 
1031          <guimenu>Layer</guimenu>          <guimenu>Layer</guimenu>
1032          <guimenuitem>Properties</guimenuitem>          <guimenuitem>Properties</guimenuitem>
1033          </menuchoice> opens a dialog that displays a layer's properties.          </menuchoice> opens a dialog that displays a layer's properties.
1034          All layers have a title and it can be modified in the text field          All layers have a title which can be modified in the text field
1035          provided. The type of layer is also shows. If the type is a type          provided. The type of layer is also shows. If the type is a type
1036          of shape (polygon, arc, point) the classification table will be          of shape (polygon, arc, point) the classification table will be
1037          shown. Image layers have no other properties other than title          shown. Image layers have no other properties other than title
1038          and type.          and type.
1039          </para>          </para>
1040          <para>          <para>
1041          <screenshot>          <figure>
1042          <screeninfo>Properties Window</screeninfo>          <title>Properties Window</title>
1043          <mediaobject>          <mediaobject>
1044          <imageobject><imagedata fileref="../images/4_2_layer_properties.png" format="PNG" scale="&imgscale;"/></imageobject>          <imageobject><imagedata fileref="../images/4_2_layer_properties.png" format="PNG" scale="&imgscale;"/></imageobject>
1045          <imageobject><imagedata fileref="./images/4_2_layer_properties.eps" format="EPS" scale="&imgscale;"/></imageobject>          <imageobject><imagedata fileref="./images/4_2_layer_properties.eps" format="EPS" scale="&imgscale;"/></imageobject>
         <textobject><phrase>Properties Window</phrase></textobject>  
         <caption><para>The Properties Window for a Shape Layer</para></caption>  
1046          </mediaobject>          </mediaobject>
1047          </screenshot>          </figure>
1048          </para>          </para>
1049          <para>          <para>
1050          <screenshot>          <figure>
1051          <screeninfo>Properties Window</screeninfo>          <title>Properties Window</title>
1052          <mediaobject>          <mediaobject>
1053          <imageobject><imagedata fileref="../images/4_2_raster_layer_properties.png" format="PNG" scale="&imgscale;"/></imageobject>          <imageobject><imagedata fileref="../images/4_2_raster_layer_properties.png" format="PNG" scale="&imgscale;"/></imageobject>
1054          <imageobject><imagedata fileref="./images/4_2_raster_layer_properties.eps" format="EPS" scale="&imgscale;"/></imageobject>          <imageobject><imagedata fileref="./images/4_2_raster_layer_properties.eps" format="EPS" scale="&imgscale;"/></imageobject>
         <textobject><phrase>Properties Window</phrase></textobject>  
         <caption><para>The Properties Window for an Image Layer</para></caption>  
1055          </mediaobject>          </mediaobject>
1056          </screenshot>          </figure>
1057          </para>          </para>
1058          </section>          </section>
1059    
# Line 646  Line 1119 
1119      <para>      <para>
1120      A layer always has a classification. When a new layer is added to the      A layer always has a classification. When a new layer is added to the
1121      map, a default classification is created with the DEFAULT group. This      map, a default classification is created with the DEFAULT group. This
1122      group cannot be removed. Every shape in the layer, regardless of its      group cannot be removed but can be hidden (see below). Every shape in the
1123      attributes, will match this group if no other group matches.      layer, regardless of its attributes, will match this group if no other
1124        group matches.
1125      </para>      </para>
1126    
1127          <section><title>Editing Classifications</title>          <section><title>Editing Classifications</title>
# Line 664  Line 1138 
1138          button.          button.
1139          </para>          </para>
1140          <para>          <para>
1141          <screenshot>          To apply the changes to the map the user can click
1142          <screeninfo>Properties Window</screeninfo>          either <guibutton>Try</guibutton> or <guibutton>OK</guibutton>.
1143            <guibutton>Try</guibutton> will not close the dialog box, allowing
1144            the user to see how the classification changes the map.
1145            <guibutton>Revert</guibutton> will undo the last classification applied
1146            to the map. <guibutton>OK</guibutton> will commit the changes and
1147            close the dialog. The user will be unable to undo the changes.
1148            <guibutton>Close</guibutton> simply closes the dialog box. If any
1149            changes have not been applied with <guibutton>Try</guibutton> the
1150            changes will not be applied to the map.
1151            </para>
1152            <para>
1153            <figure>
1154            <title>Properties Window</title>
1155          <mediaobject>          <mediaobject>
1156          <imageobject><imagedata fileref="../images/5_classification.png" format="PNG" scale="&imgscale;"/></imageobject>          <imageobject><imagedata fileref="../images/5_classification.png" format="PNG" scale="&imgscale;"/></imageobject>
1157          <imageobject><imagedata fileref="./images/5_classification.eps" format="EPS" scale="&imgscale;"/></imageobject>          <imageobject><imagedata fileref="./images/5_classification.eps" format="EPS" scale="&imgscale;"/></imageobject>
         <textobject><phrase>Properties Window</phrase></textobject>  
         <caption><para>The Properties Window with Classifications</para></caption>  
1158          </mediaobject>          </mediaobject>
1159          </screenshot>          </figure>
1160          </para>          </para>
1161          <para>          <para>
1162          The order of the groups in the classification is significant          The order of the groups in the classification is significant
# Line 738  Line 1222 
1222    
1223          <section><title>Generating Classes</title>          <section><title>Generating Classes</title>
1224          <para>          <para>
1225          <screenshot>          <figure>
1226          <screeninfo>Generate Class</screeninfo>          <title>Generate Class</title>
1227          <mediaobject>          <mediaobject>
1228          <imageobject><imagedata fileref="../images/5_3_genclass.png" format="PNG" scale="&imgscale;"/></imageobject>          <imageobject><imagedata fileref="../images/5_3_genclass.png" format="PNG" scale="&imgscale;"/></imageobject>
1229          <imageobject><imagedata fileref="./images/5_3_genclass.eps" format="EPS" scale="&imgscale;"/></imageobject>          <imageobject><imagedata fileref="./images/5_3_genclass.eps" format="EPS" scale="&imgscale;"/></imageobject>
         <textobject><phrase>Generate Class</phrase></textobject>  
         <caption><para>The Generate Classifications Dialog</para></caption>  
1230          </mediaobject>          </mediaobject>
1231          </screenshot>          </figure>
1232          </para>          </para>
1233          <para>          <para>
1234          Creating a classification by hand can be tedious.          Creating a classification by hand can be tedious.
# Line 756  Line 1238 
1238          opens the <varname>Generate Classification</varname> dialog.          opens the <varname>Generate Classification</varname> dialog.
1239          Under the <varname>Generate</varname> pull down there are at most          Under the <varname>Generate</varname> pull down there are at most
1240          three different ways to generate classifications:          three different ways to generate classifications:
1241          Unique Values, Unique Distribution, and Quantiles. Some options          Unique Values, Uniform Distribution, and Quantiles. Some options
1242          may not be available if the data type for the field does not          may not be available if the data type for the field does not
1243          support them. For instance, <varname>Unique Distribution</varname>          support them. For instance, <varname>Uniform Distribution</varname>
1244          doesn't make sense for a Text field.          doesn't make sense for a Text field.
1245          </para>          </para>
1246          <para>          <para>
1247          For every way of generating a classification, a color scheme must          For every way of generating a classification, a color scheme must
1248          be selected. Thuban provides several different color schemes that          be selected. Thuban provides several different color schemes that
1249          affect how the group properties change over the classification.          affect how the group properties change over the classification.
1250            It may be desirable that only certain properties change over the
1251            classification. If the shape type is a polygon or a point then
1252            the <guibutton>Fix Border Color</guibutton> option will be available.
1253            This allows the user to select a border color for all classification
1254            groups.
1255          It is also possible to create a custom color scheme. Selecting          It is also possible to create a custom color scheme. Selecting
1256          this option will display two symbols: the one of the left has the          this option will display two symbols: the one of the left has the
1257          properties of the first group and the one on the right has the          properties of the first group and the one on the right has the
1258          properties of the last group. Thuban will interpolate between these          properties of the last group. Thuban will interpolate between these
1259          two properties to generate the other groups.          two properties to generate the other groups.
1260            <figure>
1261            <title>Custom Color Scheme</title>
1262            <mediaobject>
1263            <imageobject><imagedata fileref="../images/5_2_custom_ramp.png" format="PNG" scale="&imgscale;"/></imageobject>
1264            <imageobject><imagedata fileref="./images/5_2_custom_ramp.eps" format="EPS" scale="&imgscale;"/></imageobject>
1265            </mediaobject>
1266            </figure>
1267          </para>          </para>
1268          <para>          <para>
1269          The Unique Values option lets the user select specific values that          The Unique Values option lets the user select specific values that
# Line 779  Line 1273 
1273          right. Each list can be sorted or reversed for easier searching.          right. Each list can be sorted or reversed for easier searching.
1274          The classification that is generated will be in the same order as          The classification that is generated will be in the same order as
1275          the list on the right.          the list on the right.
1276            <figure>
1277            <title>Unique Values</title>
1278            <mediaobject>
1279            <imageobject><imagedata fileref="../images/5_2_unique_values.png" format="PNG" scale="&imgscale;"/></imageobject>
1280            <imageobject><imagedata fileref="./images/5_2_unique_values.eps" format="EPS" scale="&imgscale;"/></imageobject>
1281            </mediaobject>
1282            </figure>
1283          </para>          </para>
1284          <para>          <para>
1285          The Unique Distribution option creates a user specified number of          The Uniform Distribution option creates a user specified number of
1286          groups of ranges such that each range covers equal intervals. The          groups of ranges such that each range covers equal intervals. The
1287          minimum and maximum values can automatically be retrieved from the          minimum and maximum values can automatically be retrieved from the
1288          table by clicking <guibutton>Retrieve From Table</guibutton>. The          table by clicking <guibutton>Retrieve From Table</guibutton>. The
1289          stepping is how large each interval is. Adjusting this value will          stepping is how large each interval is. Adjusting this value will
1290          automatically recalculate how many groups is appropriate.          automatically recalculate how many groups is appropriate.
1291            <figure>
1292            <title>Uniform Distribution</title>
1293            <mediaobject>
1294            <imageobject><imagedata fileref="../images/5_2_uniform_dist.png" format="PNG" scale="&imgscale;"/></imageobject>
1295            <imageobject><imagedata fileref="./images/5_2_uniform_dist.eps" format="EPS" scale="&imgscale;"/></imageobject>
1296            </mediaobject>
1297            </figure>
1298          </para>          </para>
1299          <para>          <para>
1300          The Quantiles option generates ranges based on the number of items          The Quantiles option generates ranges based on the number of items
1301          in the input set. For example, by specifying five groups Thuban will          in the table. For example, by specifying five groups Thuban will
1302          generate five groups with appropriate ranges such that 20% of the table          generate five groups with appropriate ranges such that 20% of the table
1303          data is in each group. If it is impossible to generate exact          data is in each group. If it is impossible to generate exact
1304          groupings, Thuban will issue a warning but allow the user to continue.          groupings, Thuban will issue a warning but allow the user to continue.
1305            <figure>
1306            <title>Quantiles</title>
1307            <mediaobject>
1308            <imageobject><imagedata fileref="../images/5_2_quantiles.png" format="PNG" scale="&imgscale;"/></imageobject>
1309            <imageobject><imagedata fileref="./images/5_2_quantiles.eps" format="EPS" scale="&imgscale;"/></imageobject>
1310            </mediaobject>
1311            </figure>
1312          </para>          </para>
1313          </section>          </section>
1314    </chapter>    </chapter>
# Line 815  Line 1330 
1330      <guimenu>Layer</guimenu>      <guimenu>Layer</guimenu>
1331      <guimenuitem>Projection</guimenuitem>      <guimenuitem>Projection</guimenuitem>
1332      </menuchoice>.      </menuchoice>.
1333      <screenshot>      <figure>
1334      <screeninfo>Projection Window</screeninfo>      <title>Projection Window</title>
1335      <mediaobject>      <mediaobject>
1336      <imageobject><imagedata fileref="../images/6_projection.png" format="PNG" scale="&imgscale;"/></imageobject>      <imageobject><imagedata fileref="../images/6_projection.png" format="PNG" scale="&imgscale;"/></imageobject>
1337      <imageobject><imagedata fileref="./images/6_projection.eps" format="EPS" scale="&imgscale;"/></imageobject>      <imageobject><imagedata fileref="./images/6_projection.eps" format="EPS" scale="&imgscale;"/></imageobject>
     <textobject><phrase>Projection Window</phrase></textobject>  
     <caption><para>The Projection Window</para></caption>  
1338      </mediaobject>      </mediaobject>
1339      </screenshot>      </figure>
1340        </para>
1341        <para>
1342        Thuban is distributed with a sample collection of projections and the
1343        set of coordinate systems as used by the EPSG
1344        (European Petroleum Survey Group). This quite large set is only displayed
1345        if activated by the according checkbox. The set falls into two parts:
1346        deprecated lists all projections which are no longer part of the
1347        EPSG data base.
1348      </para>      </para>
1349      <para>      <para>
1350      Thuban is distributed with a sample collection of projections. The           The
1351      user can create new projections and make them available to all      user can create new projections and make them available to all
1352      future Thuban sessions. They may also be exported and imported so      future Thuban sessions. They may also be exported and imported so
1353      that custom projections can be distributed.      that custom projections can be distributed.
# Line 855  Line 1376 
1376          <guibutton>Remove</guibutton> button will permanently remove a          <guibutton>Remove</guibutton> button will permanently remove a
1377          projection from the list of available projections.          projection from the list of available projections.
1378          </para>          </para>
1379            <para>
1380            To apply the selected projection to the map the user can click
1381            either <guibutton>Try</guibutton> or <guibutton>OK</guibutton>.
1382            <guibutton>Try</guibutton> will not close the dialog box, allowing
1383            the user to see how the projeciton changes the map.
1384            <guibutton>Revert</guibutton> will undo the last projection applied
1385            to the map. <guibutton>OK</guibutton> will commit the changes and
1386            close the dialog. The user will be unable to undo the changes.
1387            <guibutton>Close</guibutton> simply closes the dialog box. If no
1388            selection has been applied with <guibutton>Try</guibutton> the
1389            selection will not be applied to the map.
1390            </para>
1391      </section>      </section>
1392          <section><title>Importing/Exporting Projections</title>          <section><title>Importing/Exporting Projections</title>
1393          <para>          <para>
# Line 881  Line 1414 
1414    
1415      <section><title>Table View</title>      <section><title>Table View</title>
1416          <para>          <para>
1417          <screenshot>          <figure>
1418          <screeninfo>Table View</screeninfo>          <title>Table View</title>
1419          <mediaobject>          <mediaobject>
1420          <imageobject><imagedata fileref="../images/7_1_table_view.png" format="PNG" scale="&imgscale;"/></imageobject>          <imageobject><imagedata fileref="../images/7_1_table_view.png" format="PNG" scale="&imgscale;"/></imageobject>
1421          <imageobject><imagedata fileref="./images/7_1_table_view.eps" format="EPS" scale="&imgscale;"/></imageobject>          <imageobject><imagedata fileref="./images/7_1_table_view.eps" format="EPS" scale="&imgscale;"/></imageobject>
         <textobject><phrase>Table View</phrase></textobject>  
         <caption><para>The Table View</para></caption>  
1422          </mediaobject>          </mediaobject>
1423          </screenshot>          </figure>
1424          </para>          </para>
1425          <para>          <para>
1426          Thuban provides a standard dialog to display table contents, the          Thuban provides a standard dialog to display table contents, the
1427          Table View. The view falls has five sections: The title, selections,          Table View. The view has five sections: The title, selections,
1428          the table grid, export functions, and the status bar.          the table grid, export functions, and the status bar.
1429          </para>          </para>
1430          <para>          <para>
# Line 906  Line 1437 
1437          third choice can be either a specific value (interpreted as numerical          third choice can be either a specific value (interpreted as numerical
1438          or string depending on the type of the first field) or a second field          or string depending on the type of the first field) or a second field
1439          identifier. Thus you can perform analysis like selecting all          identifier. Thus you can perform analysis like selecting all
1440          records where "population > 10000" or          records where <literal>population > 10000</literal> or
1441          "cars_per_inhabitant <  bikes_per_inhabitant" (note that the field names          <literal>cars_per_inhabitant < bikes_per_inhabitant</literal>
1442          are only explanatory, the dBase files allow only          (note that the field names are only explanatory, the dBase files
1443          11 character field names).          allow only 11 character field names).
1444                
1445          Selections can be combined either by applying a selection only on          Selections can be combined either by applying a selection only on
1446          a previously selected set of records or by adding the results of a          a previously selected set of records or by adding the results of a
# Line 917  Line 1448 
1448          earlier results.          earlier results.
1449          </para>          </para>
1450          <para>          <para>
1451          The table grid shows the contents of the table (a record per column),          The table grid shows the contents of the table (one record per row),
1452          with highlighted selection results. Columns and rows can be resized.          with highlighted selection results. Columns and rows can be resized.
1453          </para>          </para>
1454          <para>          <para>
# Line 1010  Line 1541 
1541    
1542          <section><title>Join</title>          <section><title>Join</title>
1543              <para>              <para>
1544              <screenshot>              <figure>
1545              <screeninfo>Join Tables</screeninfo>              <title>Join Tables</title>
1546              <mediaobject>              <mediaobject>
1547              <imageobject><imagedata fileref="../images/7_2_5_join.png" format="PNG" scale="&imgscale;"/></imageobject>              <imageobject><imagedata fileref="../images/7_2_5_join.png" format="PNG" scale="&imgscale;"/></imageobject>
1548              <imageobject><imagedata fileref="./images/7_2_5_join.eps" format="EPS" scale="&imgscale;"/></imageobject>              <imageobject><imagedata fileref="./images/7_2_5_join.eps" format="EPS" scale="&imgscale;"/></imageobject>
             <textobject><phrase>Join Tables</phrase></textobject>  
             <caption><para>The Join Tables Dialog</para></caption>  
1549              </mediaobject>              </mediaobject>
1550              </screenshot>              </figure>
1551              </para>              </para>
1552              <para>              <para>
1553              The              The
# Line 1044  Line 1573 
1573      </section>      </section>
1574      <section><title>Attribute Tables</title>      <section><title>Attribute Tables</title>
1575          <para>          <para>
1576              To clearly separate between both types, Thuban provides              To clearly separate between both types of tables (data and
1577          functionality regarding the attribute tables under the Layer menu.          attribute), Thuban provides functionality regarding the attribute
1578            tables under the <menuchoice><guimenu>Layer</guimenu></menuchoice> menu.
1579          </para>          </para>
1580    
1581          <section><title>Show Table</title>          <section><title>Show Table</title>
# Line 1097  Line 1627 
1627      </section>      </section>
1628    </chapter>    </chapter>
1629    
1630      <chapter><title>Extensions</title>
1631            <para>
1632            Thuban is designed to be extensible. The term Extension is used as a
1633            general term for anything that extends Thuban.
1634            This chapter introduces into some oppportunities how to add and
1635            handle extra functionality developed by your own or third parties.
1636            </para>
1637    
1638            <section><title>Add personal extensions via thubanstart.py</title>
1639                    <para>
1640                    After Thuban has been started for the first time, a directory
1641                    .thuban is created within your home directory.
1642                    There you can add a file thubanstart.py  which will be imported
1643                    by Thuban at start-up. It is recommended to add only import-statements
1644                    to this file to keep the actual code of extensions separate.
1645                    </para>
1646                    <para>
1647                    The modules to import must either be found through the environment
1648                    variable PYTHONPATH or directly be placed into the .thuban-directory.
1649                    </para>
1650                    <para>
1651                    As an example, copy the file examples/simple_extensions/hello_world.py
1652                    of the Thuban source code into the .thuban-directory of your home
1653                    directory. Now add add the statement import hello_world to the
1654                    file thubanstart.py and run Thuban. You will notice an additional
1655                    menu <menuchoice><guimenu>Extensions</guimenu></menuchoice> where
1656                    the new item for the Hello-World extension is placed - select it
1657                    to see the Hello-World message.
1658                    </para>
1659            </section>
1660    
1661            <section><title>Extensions included in Thuban package</title>
1662                    <para>
1663                    The extensions described in this section are part of the
1664                    Thuban package, but not activated by default.
1665                    You will find them in the Thuban installation directory
1666                    under <literal>Extensions/</literal>. Activate them as personal
1667                    extensions via PYTHONPATH as described in the previous section.
1668                    Stable extensions will appear under the menu
1669                    <menuchoice><guimenu>Extensions</guimenu></menuchoice> and
1670                    extensions which are in experimental state and therefore
1671                    not fully functional under
1672                    <menuchoice><guimenu>Experimental</guimenu></menuchoice>.
1673                    </para>
1674    
1675                    <section><title>Stable extensions</title>
1676                        <para>
1677                        These extensions provide extra-functionality to Thuban
1678                        that has not (yet) been integrated in the main application.
1679                        They are considered to be free of bugs, but may be
1680                        further polished with helpful user interactions.
1681                        </para>
1682                        <section><title>gns2shp</title>
1683                                    <para>
1684                                    This tool converts data of the Geospatial Names Server
1685                                    (GNS, see <ulink url="http://www.nima.mil/gns"/>)
1686                                    into Shapefile format.
1687                                    The above web-site offer to download named places
1688                                    information grouped by countries for all of the world
1689                                    except USA for which other data are provided.
1690                                    </para>
1691                                    <para>
1692                                    If you download and unpack a package, you will have
1693                                    a text-file with suffix .txt.
1694                                    Selecting such a file via gns2shp will create the
1695                                    corresponding Shapefile with the same basename and
1696                                    place it in the same direcory. Afterwards it
1697                                    is automatically loaded into Thuban.
1698                                    The Shapefile will not automatically be delete afterwards.
1699                                    </para>
1700                                    <para>
1701                                    The gns2shp.py module can also be executed on the
1702                                    command line for batch processing purposes.
1703                                    </para>
1704                                    <para>
1705                                    A sample (<literal>ls.txt</literal> for Liechtenstein)
1706                                    is included in the directory
1707                                    <literal>Extensions/gns2shp/test</literal>.
1708                                    </para>
1709                        </section>
1710                        <section><title>SVG Export</title>
1711                            <para>
1712                            Map and legend can be exported separately in the
1713                            Thuban-Map-SVG format.
1714                            You get files that comply with
1715                            the Scalable Vector Graphics (SVG) 1.1 Specification
1716                            and can be read by many vector drawing applications.
1717                            </para>
1718                            <para>
1719                            Goal of svgexport is to provide
1720                            the start of a printing pipeline for Thuban.
1721                            For this purpose the written Thuban-Map-SVG files
1722                            contain information that can be used in postprocessing.
1723                            Typically a general vector drawing application is
1724                            more powerful then a geographic information viewer;
1725                            e.g. having much fancier symbols and fonts.
1726                            Also users benefit much more when learning to use a
1727                            more general application they can also use for other
1728                            tasks.  So the charming idea is to enable
1729                            the drawing application to postprocess a Thuban maps.
1730                            So thee xtra information in the format will make it
1731                            possible to export from Thuban and if a few geoobjects
1732                            change, and keep the general layout and style
1733                            of the full map in the vector drawing appplication.
1734                            </para>
1735                            <para>
1736                            Markus Rechtien has developed a prototype of this
1737                            printing pipline as his Diplom thetis, showing
1738                            the feasability of Bernhard Reiter's concept.
1739                            Scripts exist for the drawing application Skencil
1740                            (<ulink url="http://www.skencil.org"/>).
1741                            </para>
1742                            <para>
1743                            Technical notes: the names of the layers are used
1744                            as base for ids within the SVG format.
1745                            If you try to export with two layers having
1746                            the same name, you will get a name clash error.
1747                            Just change one of the layer names and try again.
1748                            </para>
1749                        </section>
1750                    </section>
1751                    <section><title>Experimental extensions</title>
1752                            <para>
1753                            All all of these functions have to be handled with care,
1754                            since they are neither complete nor well tested.
1755                            They are to be seen as a proof-of-concept and may
1756                            additionally in some cases of practical help.
1757                            </para>
1758                            <para>
1759                            Any interest on further improvement of these extensions
1760                            should be communicated towards the developer and user
1761                            community.
1762                            </para>
1763    
1764                            <section><title>importAPR</title>
1765                                    <para>
1766                                    This command offer to load an ESRI� ArcView� project
1767                                    file (suffix .apr) and convert it for use within Thuban.
1768                                    After selecting a apr-file to load, a list
1769                                    will be presented that offers to select one of the views
1770                                    of the apr-file, provided there is more than one.
1771                                    Furthermore, the Session Info-Tree is extended with
1772                                    a complete representation of the parsed apr-file.
1773                                    </para>
1774                                    <para>
1775                                    The legend of Thuban does not yet cover all of the elements as
1776                                    supported by the legend of ArcView�. Therefore, the Thuban
1777                                    map will look different. Furthermore, the apr-format is
1778                                    a proprietary format, not openly documented.
1779                                    Therefore, the interpretation is
1780                                    partly based on reverse engeneering and good guessing.
1781                                    </para>
1782                                    <para>
1783                                    The file-paths within the apr-file may not fit and potentially
1784                                    are subject to fix in the apr-file. You can do this
1785                                    applying any text editor. The paths are either absolute
1786                                    or relative from where Thuban has been started.
1787                                    </para>
1788                                    <para>
1789                                    A sample for the Iceland data is included as
1790                                    <literal>Extensions/importAPR/samples/iceland.apr</literal>.
1791                                    The file-paths are relative from the Thuban main directory.
1792                                    </para>
1793                            </section>
1794                    </section>
1795            </section>
1796    
1797            <section><title>Writing simple extensions</title>
1798                    <para>
1799                    Writing an extension for Thuban basically means to
1800                    implement the extra functionality in Python with all of the
1801                    Thuban classes, methods and variables available.
1802                    </para>
1803                    <para>
1804                    All classes and their methods are documented in the source code
1805                    (see their doc-strings). Here is an example from
1806                    Thuban/Model/layer.py that describes some of the methods
1807                    of a Layer object:
1808                    </para>
1809                    <programlisting>
1810                    <![CDATA[
1811    class BaseLayer(TitledObject, Modifiable):
1812    
1813        """Base class for the layers."""
1814    
1815        def __init__(self, title, visible = True, projection = None):
1816            """Initialize the layer.
1817    
1818            title -- the title
1819            visible -- boolean. If true the layer is visible.
1820            """
1821            TitledObject.__init__(self, title)
1822            Modifiable.__init__(self)
1823            self.visible = visible
1824            self.projection = projection
1825    
1826        def Visible(self):
1827            """Return true if layer is visible"""
1828            return self.visible
1829    
1830        def SetVisible(self, visible):
1831            """Set the layer's visibility."""
1832            self.visible = visible
1833            self.issue(LAYER_VISIBILITY_CHANGED, self)
1834    
1835        def HasClassification(self):
1836            """Determine if this layer support classifications."""
1837    ...
1838                    ]]>
1839                    </programlisting>
1840                    <para>
1841                    This example intends to give you an impression of the
1842                    source-code-level documentation.
1843                    You have to make yourself familiar with
1844                    the Python programming language to understand some special
1845                    code elements.
1846                    </para>
1847                    <section><title>hello_world.py</title>
1848                      <para>
1849                      Traditionally, the first example should welcome the world.
1850                      Most of the code handles the frame for integrating a menu
1851                      item into Thuban while the actual raising of a message
1852                      is done in a single line.
1853                      </para>
1854                            <programlisting>
1855                            <![CDATA[
1856    # Copyright (C) 2003 by Intevation GmbH
1857    # Authors:
1858    # Jan-Oliver Wagner <[email protected]>
1859    #
1860    # This program is free software under the GPL (>=v2)
1861    # Read the file COPYING coming with Thuban for details.
1862    
1863    """
1864    Extend Thuban with a sample Hello World to demonstrate simple
1865    extensions.
1866    """
1867    
1868    __version__ = '$Revision$'
1869    
1870    # use _() already now for all strings that may later be translated
1871    from Thuban import _
1872    
1873    # Thuban has named commands which can be registered in the central
1874    # instance registry.
1875    from Thuban.UI.command import registry, Command
1876    
1877    # The instance of the main menu of the Thuban application
1878    # See Thuban/UI/menu.py for the API of the Menu class
1879    from Thuban.UI.mainwindow import main_menu
1880    
1881    def hello_world_dialog(context):
1882        """Just raise a simple dialog to greet the world.
1883    
1884        context -- The Thuban context.
1885        """
1886        context.mainwindow.RunMessageBox(_('Hello World'), _('Hello World!'))
1887    
1888    
1889    # create a new command and register it
1890    registry.Add(Command('hello_world', _('Hello World'), hello_world_dialog,
1891                         helptext = _('Welcome everyone on this planet')))
1892    
1893    # find the extensions menu (create it anew if not found)
1894    extensions_menu = main_menu.FindOrInsertMenu('extensions', _('E&xtensions'))
1895    
1896    # finally bind the new command with an entry in the extensions menu
1897    extensions_menu.InsertItem('hello_world')
1898                            ]]>
1899                            </programlisting>
1900                    </section>
1901                    <section><title>Registering a Command</title>
1902                      <para>
1903                      Mainly, our new function has to be registered to the Thuban
1904                      framework in order to connect it to the menu. A registered
1905                      command can also be connected to e.g. a toolbar button.
1906                      </para>
1907                      <para>
1908                      The instances and classes for this are imported at the beginning.
1909                      Any code not inside a method or class is directly executed when
1910                      the source-code module is imported. Therefore, the second
1911                      part of this example consist of the plain statements to create a new
1912                      Command and to add it to the menu.
1913                      </para>
1914                      <para>
1915                      By convention, it looks for a menu registered as ``extensions'' to
1916                      insert the new command. If it does not exist yet, it gets created.
1917                      It is advisable to copy this code for any of your extensions.
1918                      </para>
1919                    </section>
1920                    <section><title>The Thuban context</title>
1921                            <para>
1922                            A registered command that is called, always receives the
1923                            Thuban context. This instance provides our method with
1924                            hook references to all important components of the Thuban
1925                            application.
1926                            </para>
1927                            <para>
1928                    In the example hello_world.py, our function uses the
1929                            mainwindow component which offers a method to raise a
1930                            message dialog. In total there are three hooks:
1931                            <itemizedlist>
1932                            <listitem>
1933                            <para>application:
1934                            This object is the instance of the Thuban Application class.
1935                            Except maybe for loading or savinf sessions, you will not
1936                            need this object for a simple extension.
1937                            See Thuban/UI/application.py for the API.
1938                            </para>
1939                            </listitem>
1940                            <listitem>
1941                            <para>session:
1942                            The instance of the current session. It manages the sessions'
1943                            map and tables. You can set and remove the map or tables.
1944                            In may also get the map object. However, you should know that
1945                            internally it is already prepared to handle many maps.
1946                            Therfore, currently you would always receive a list with exactlty
1947                            one element. In the future, if there are more than one map,
1948                            you will not know which one is the currently display one and
1949                            therefore you should use the mainwindow as hook to find
1950                            the currently displayed map.
1951                            See Thuban/Model/session.py for the API.
1952                            </para>
1953                            </listitem>
1954                            <listitem>
1955                            <para>
1956                            mainwindow: The mainwindow object is central to manage various
1957                            GUI things such as the Legend sub-window. Most notably,
1958                            you get access to the canvas which is the window part where
1959                            the map is drawn. The canvas knows, which map it currently
1960                            draws and therefore you get the current map via
1961                            context.mainwindow.canvas.Map().
1962                            See Thuban/UI/mainwindow.py for the API.
1963                            </para>
1964                            </listitem>
1965                            </itemizedlist>
1966                </para>
1967                    </section>
1968            </section>
1969      </chapter>
1970    
1971    <chapter><title>Trouble Shooting</title>    <chapter><title>Trouble Shooting</title>
1972      <para>      <para>
1973        Here are a few problems that users have encountered when first using Thuban.
1974      </para>      </para>
1975      <variablelist>      <para>
1976    
1977      <varlistentry>      <itemizedlist>
     <term>After adding two or more layers nothing is being drawn in the  
     map window.  
     </term>  
1978      <listitem>      <listitem>
1979        <para>After adding two or more layers nothing is drawn in the map window.
1980        </para>
1981      <para>      <para>
1982      This is probably because the layers have different projections. Projections      This is probably because the layers have different projections. Projections
1983      must be set on all layers and on the map itself if the layer's projections      must be set on all layers and on the map itself if the layers' projections
1984      are different.      are different.
1985      </para>      </para>
1986      </listitem>      </listitem>
     </varlistentry>  
1987    
     <varlistentry>  
     <term>Thuban crashes on startup with the error  
         <literal>NameError: global name 'False' is not defined</literal>.  
     </term>  
1988      <listitem>      <listitem>
1989        <para>Thuban crashes on startup with the error
1990            <literal>NameError: global name 'False' is not defined</literal>.
1991        </para>
1992      <para>      <para>
1993      <varname>True</varname> and <varname>False</varname> were only introduced      <varname>True</varname> and <varname>False</varname> were only introduced
1994      in Python 2.2.1. Thuban depends on at least Python 2.2.1.      in Python 2.2.1. Thuban depends on at least Python 2.2.1.
1995      </para>      </para>
1996      </listitem>      </listitem>
     </varlistentry>  
1997    
1998      <varlistentry>      <listitem>
1999      <term>After compiling Thuban, Thuban crashes with an error similar to      <para>After compiling Thuban, Thuban crashes with an error similar to
2000          <literal>          <literal>
2001          ImportError: /usr/local//lib/thuban/Thuban/../Lib/wxproj.so: undefined symbol: __gxx_personality_v0          ImportError: /usr/local//lib/thuban/Thuban/../Lib/wxproj.so: undefined symbol: __gxx_personality_v0
2002          </literal>          </literal>
2003      </term>      </para>
     <listitem>  
2004      <para>      <para>
2005      Thuban depends on the wxWindows library. If Thuban is compiled with an      Thuban depends on the wxWindows library. If Thuban is compiled with an
2006      incompatible version of the compiler than wxWindows was compiled with      incompatible version of the compiler than wxWindows was compiled with
# Line 1141  Line 2008 
2008      compiler.      compiler.
2009      </para>      </para>
2010      </listitem>      </listitem>
2011      </varlistentry>      </itemizedlist>
2012      </variablelist>      </para>
2013        <para>
2014        If an error occurs Thuban will display a dialog indicating the error
2015        before closing. The text should be copied and reported to the
2016        <ulink url="http://thuban.intevation.org/bugtracker.html">
2017        Intevation bugtracker
2018        </ulink>.
2019        More information about the system is available from
2020        <menuchoice><guimenu>Help</guimenu><guimenuitem>About</guimenuitem></menuchoice> box.
2021        This should also be included in the bug report.
2022        <figure>
2023        <title>Error Dialog</title>
2024        <mediaobject>
2025        <imageobject><imagedata fileref="../images/8_int_error.png" format="PNG" scale="&imgscale;"/></imageobject>
2026        <imageobject><imagedata fileref="./images/8_int_error.eps" format="EPS" scale="&imgscale;"/></imageobject>
2027        </mediaobject>
2028        </figure>
2029        </para>
2030    
2031    </chapter>    </chapter>
2032    
# Line 1178  Line 2062 
2062      </listitem>      </listitem>
2063      </varlistentry>      </varlistentry>
2064    
2065        <varlistentry>
2066        <term>PostGIS</term>
2067        <listitem>
2068            <para>
2069            PostGIS adds support for geographic objects to the PostgreSQL
2070            object-relational database. Different layer types (as for Shapefiles)
2071            are supported. <ulink url="http://postgis.refractions.net">PostGIS
2072            Homepage</ulink>
2073            </para>
2074        </listitem>
2075        </varlistentry>
2076    
2077        <varlistentry>
2078        <term>Raster files</term>
2079        <listitem>
2080            <para>
2081            Binding the GDAL library Thuban supports numerous raster file formats,
2082            see <ulink url="http://www.remotesensing.org/gdal/formats_list.html">
2083            GDAL format list</ulink> for details.</para>
2084    
2085            <para>Most commonly used is the <emphasis>TIFF/GeoTIFF</emphasis>
2086            format: Raster maps are provided as TIFF images, with an additional
2087            "world file" storing the geographic reference (usually with an
2088            extension ".tfw").
2089            </para>
2090        </listitem>
2091        </varlistentry>
2092    
2093      </variablelist>      </variablelist>
2094    </appendix>    </appendix>
2095    
2096      <appendix><title>Working with PostGIS</title>
2097      <para>
2098      This section focusses on the use of PostGIS in the Thuban framework. For
2099      installation and maintenance of spatial databases we refer to the  
2100      <ulink url="http://postgis.refractions.net">PostGIS Homepage</ulink>.
2101      The Thuban PostGIS support requires the
2102      <ulink url="http://initd.org/software/psycopg">psycopg module</ulink>.
2103      </para>
2104    
2105      <para>
2106            Working with PostGIS Databases is seperated into two steps:
2107            <itemizedlist>
2108            <listitem><para>Opening a Database Connection</para></listitem>
2109            <listitem><para>Loading a Data Layer</para></listitem>
2110            </itemizedlist>
2111      </para>
2112            <section><title>Opening a Database Connection</title>
2113            <para>
2114                    Before a data layer can be loaded from a PostGIS database a
2115                    connection with the database has to be established.
2116                    <menuchoice>
2117                    <guimenu>Session</guimenu>
2118                    <guimenuitem>Database Connections ...</guimenuitem>
2119                    </menuchoice> opens a dialog for database connection
2120                    management. In the dialog new connections can be added
2121                    and existing ones can be removed. Removing a database
2122                    connection is not possible if the map still displays a
2123                    layer provided by this database connection.
2124            </para>
2125        <figure>
2126        <title>Database Management Dialog</title>
2127        <mediaobject>
2128        <imageobject><imagedata fileref="../images/app_postgis_db_management.png" format="PNG" scale="&imgscale;"/></imageobject>
2129        <imageobject><imagedata fileref="./images/app_postgis_db_management.eps" format="EPS" scale="&imgscale;"/></imageobject>
2130        </mediaobject>
2131        </figure>
2132    
2133            <para>
2134                    To add a new database connection to the session a dialog is
2135                    opened to specify the relevant connection data. Enter all
2136                    data relevant for your connection. If the connection fails
2137                    the dialog remains open and provides some hints on the failure.
2138            </para>
2139            <figure>
2140            <title>Add Database Dialog</title>
2141            <mediaobject>
2142            <imageobject><imagedata fileref="../images/app_postgis_db_add.png" format="PNG" scale="&imgscale;"/></imageobject>
2143            <imageobject><imagedata fileref="./images/app_postgis_db_add.eps" format="EPS" scale="&imgscale;"/></imageobject>
2144            </mediaobject>
2145            </figure>
2146            
2147            <para>
2148            It is important to note that information on database connections are
2149            also stored with the session. Passwords are NOT stored. If you load a
2150            session with database connections you are asked to enter these
2151            passwords again where required.
2152            </para>
2153    
2154            </section>
2155    
2156            <section><title>Loading a Data Layer</title>
2157            <para>
2158            Data layers as part of a map are loaded with the
2159            <menuchoice>
2160            <guimenu>Map</guimenu>
2161            <guimenuitem>Add Database Layer ...</guimenuitem>
2162            </menuchoice> menu item. A dialog is raised displaying two choice
2163            lists. In the left list all connected databases are shown.
2164            Highlighting
2165            one of these and issuing a retrieval results in a list of available
2166            layer tables from that database. After selection of a
2167            layer the dialog is closed.
2168            </para>
2169            <figure>
2170            <title>Add Database Dialog</title>
2171            <mediaobject>
2172            <imageobject><imagedata fileref="../images/app_postgis_add_layer.png" format="PNG" scale="&imgscale;"/></imageobject>
2173            <imageobject><imagedata fileref="./images/app_postgis_add_layer.eps" format="EPS" scale="&imgscale;"/></imageobject>
2174            </mediaobject>
2175            </figure>
2176            
2177            </section>
2178    
2179      </appendix>
2180    
2181    <appendix><title>Supported Projections</title>    <appendix><title>Supported Projections</title>
2182      <para>      <para>
2183      The following types of projections are directly support by      The following types of projections are directly support by
2184      Thuban. The specific values for each are provided by the user      Thuban. The specific values for each are provided by the user
2185      to create custom projections. Thuban comes with predefined      to create custom projections. Thuban comes with predefined
2186      projections and are available through the Projections dialog.      projections which are available through the Projections dialog.
2187        </para>
2188        <itemizedlist>
2189        <listitem>
2190            <para>Geographic</para>
2191            <itemizedlist>
2192            <listitem><para><literal>Ellipsoid</literal></para></listitem>
2193            <listitem><para>
2194                    <literal>Source Data</literal>: either Degrees or Radians
2195                    </para></listitem>
2196            </itemizedlist>
2197        </listitem>
2198        <listitem>
2199            <para>Lambert Conic Conformal</para>
2200        <itemizedlist>
2201            <listitem><para><literal>Ellipsoid</literal></para></listitem>
2202            <listitem><para><literal>Latitude of 1st standard parallel</literal></para></listitem>
2203            <listitem><para><literal>Latitude of 2nd standard parallel</literal></para></listitem>
2204            <listitem><para><literal>Central Meridian</literal></para></listitem>
2205            <listitem><para><literal>Latitude of Origin</literal></para></listitem>
2206            <listitem><para><literal>False Easting</literal> (meters)</para></listitem>
2207            <listitem><para><literal>False Northing</literal> (meters)</para></listitem>
2208        </itemizedlist>
2209        </listitem>
2210        <listitem>
2211            <para>Transverse Mercator</para>
2212        <itemizedlist>
2213            <listitem><para><literal>Ellipsoid</literal></para></listitem>
2214            <listitem><para><literal>Latitude</literal>of origin</para></listitem>
2215            <listitem><para><literal>Longitude</literal>at central meridian</para></listitem>
2216            <listitem><para><literal>Scale Factor</literal>at central meridian</para></listitem>
2217            <listitem><para><literal>False Easting</literal> (meters)</para></listitem>
2218            <listitem><para><literal>False Northing</literal> (meters)</para></listitem>
2219        </itemizedlist>
2220        </listitem>
2221        <listitem>
2222            <para>Universal Transverse Mercator</para>
2223        <itemizedlist>
2224            <listitem><para><literal>Ellipsoid</literal></para></listitem>
2225            <listitem><para><literal>Zone</literal>
2226                    (can be guessed appling the Propose button)</para></listitem>
2227            <listitem><para><literal>Southern Hemisphere</literal> flag</para></listitem>
2228        </itemizedlist>
2229        </listitem>
2230        </itemizedlist>
2231        
2232        <para>
2233        Thuban comes with a sample set of map projections for various
2234        European countries. Apart from the basic projection they differ
2235        especially in their parameterization:
2236        </para>
2237        <itemizedlist>
2238        <listitem><para>Belgium Datum 1972 (Lambert Conic Conformal)</para>
2239        </listitem>
2240    
2241        <listitem><para>Gauss-Boaga Zone 1 (Italy, Transverse Mercartor)</para>
2242        </listitem>
2243    
2244        <listitem><para>Gauss-Krueger Zone 2 (Germany, Transverse Mercartor)
2245        </para>
2246        </listitem>
2247    
2248        <listitem><para>Reseau Geodesique Francaise
2249        (France, Lambert Conic Conformal)</para>
2250        </listitem>
2251    
2252        <listitem><para>UK National Grid (United Kingdom, Transverse Mercartor)
2253        </para>
2254        </listitem>
2255        </itemizedlist>
2256    
2257        <para>
2258        Thuban uses the comprehensive PROJ library for projections. PROJ provides
2259        more than the four commonly used projections described above. If needed
2260        Thuban can be easily extended to a new projection covered by PROJ.
2261      </para>      </para>
     <variablelist>  
     <varlistentry>  
     <term>Geographic</term>  
     <listitem><para></para></listitem>  
     </varlistentry>  
     <varlistentry>  
     <term>Lambert Conic Conformal</term>  
     <listitem><para></para></listitem>  
     </varlistentry>  
     <varlistentry>  
     <term>Transverse Mercator</term>  
     <listitem><para></para></listitem>  
     </varlistentry>  
     <varlistentry>  
     <term>Universal Transverse Mercator</term>  
     <listitem><para></para></listitem>  
     </varlistentry>  
     </variablelist>  
2262    </appendix>    </appendix>
2263    
2264  </book>  </book>

Legend:
Removed from v.1496  
changed lines
  Added in v.2670

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26