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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2547 - (hide annotations)
Wed Jan 26 08:14:55 2005 UTC (20 years, 1 month ago) by jan
Original Path: trunk/thuban/Doc/manual/thuban-manual-de.xml
File MIME type: text/xml
File size: 89549 byte(s)
More translations.

1 jan 2309 <?xml version="1.0" encoding="ISO-8859-1"?>
2     <!DOCTYPE book
3     PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
4     "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
5     [<!ENTITY imgscale "60">]>
6     <!-- $Revision$ -->
7     <book>
8     <bookinfo>
9     <title>Benutzerhandbuch für Thuban 1.0</title>
10     <authorgroup>
11     <author>
12     <firstname>Jonathan</firstname><surname>Coles</surname>
13     </author>
14     <author>
15     <firstname>Jan-Oliver</firstname><surname>Wagner</surname>
16     </author>
17     <author>
18     <firstname>Frank</firstname><surname>Koormann</surname>
19     </author>
20     </authorgroup>
21     <copyright>
22     <year>2004</year>
23     <holder>Intevation GmbH</holder>
24     </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     <!--
33     <revision>
34     <revnumber>1.0.0</revnumber>
35     <date>nn-Mmm-2004</date>
36     <revremark>
37     Corresponds to Thuban 1.0.0.
38     </revremark>
39     </revision>
40     -->
41     </revhistory>
42    
43     </bookinfo>
44    
45     <chapter><title>Einführung</title>
46     <para>
47     Thuban ist ein interaktiver Geodaten-Betrachter.
48     Die Entwicklung wurde seinerzeit gestartet, da es zu dieser Zeit
49     keinen einfachen interkativen Betrachter für Geo-Daten als Freie
50     Software gab.
51     Thuban ist im wesentlichen in der Programmiersprache Python implementiert und
52     nutzt die wxWidgets (ehemals: wxWindows) Bibliothek die es erlaubt
53     Thuban auf verschiedenen Plattformen laufen zu lassen, darunter GNU/Linux
54     und Windows.
55     </para>
56     <para>
57     Geodatenbetrachter sind wichtige Werkzeuge die es gestatten, einen visuelle
58     Eindruck des räumlichen (gegenseiten) Bezuges von Informationen zu bekommen
59     die ansonsten anhand der reinen Daten nicht leicht ersichtlich sind.
60     Thuban erlaubt dem Benutzer, Sitzungen zu erzeugen, die geografische
61     Daten darstellen. Diese können dann erforscht werden indem er durch sie
62     sie navigieren und die Art der Darstellung ändern kann.
63     Die Ergebnisse können gespeichert oder gedruckt werden.
64     </para>
65     <para>
66     Thuban strukturiert eine Sitzung hierarchisch.
67     Eine Sitzung besteht aus Ebenen. Jede Ebene rerpäsentiert
68     einen bestimmten Datensatz.
69     Beispielsweise eine Ebene für Strassen und eine weitere für Gebäude.
70     Die Ebenen können sowohl Vektor-Daten beschreiben als auch Raster-Daten.
71     </para>
72    
73     <section><title>Installation</title>
74     <para>
75     Thuban is actively supported under Debian Testing (sarge), RedHat 7.2,
76     and Windows 2000. Thuban depends on the following packages. These
77     packages can also be found on the
78     <ulink url="http://thuban.intevation.org/download.html">
79     Thuban Download site
80     </ulink>.
81     </para>
82     <para>
83     Required:
84     <itemizedlist>
85     <listitem><para>Python 2.2.1
86     (<literal>http://www.python.org</literal>)
87     </para></listitem>
88     <listitem><para>wxWindows 2.4
89     (<literal>http://www.wxwindows.org</literal>)
90     </para></listitem>
91     <listitem><para>wxPython 2.4
92     (<literal>http://www.wxpython.org</literal>)
93     </para></listitem>
94     <listitem><para>proj 4.4.5 Projection Library
95     (<literal>http://www.remotesensing.org/proj/</literal>)
96     </para></listitem>
97     <listitem><para>SQLite 2.8.3
98     <literal>http://www.hwaci.com/sw/sqlite/</literal>)
99     </para></listitem>
100     <listitem><para>PySQLite 0.4.3
101     (<literal>http://pysqlite.sourceforge.net</literal>)
102     </para></listitem>
103     </itemizedlist>
104     </para>
105     <para>
106     Optional:
107     <itemizedlist>
108     <listitem><para>GDAL 1.1.8
109     (<literal>http://www.remotesensing.org/gdal/</literal>)
110     </para></listitem>
111     <listitem><para>psycopg 1.0.8
112     (<literal>http://initd.org/software/psycopg</literal>)
113     </para></listitem>
114     </itemizedlist>
115     </para>
116     <para>
117     Along with the source codes, the download page also offers full
118     installation packages for Debian, Windows and RPM-based systems
119     (Mandrake, RedHat, SuSE, etc).
120     </para>
121     <section><title>RPM-based GNU/Linux Systems</title>
122     <section><title>Installing Binary Packages</title>
123     <para>
124     The most wide-spread RPM-based GNU/Linux
125     Systems are RedHat, Mandrake and SuSE.
126     The documentation of these distributions
127     should contain information about how to
128     install third-party RPM packages.
129     Nonetheless, a short summary is provided here.
130     </para>
131     <para>
132     RPM packages can be installed applying several
133     tools. The most basic one is the command line
134     program "rpm". The hardware architecture is
135     identified in the name of RPM packages, eg.
136     'i386' for most Intel/AMD architectures.
137     If you have a different hardware architecture,
138     where no binary RPM packages are provided,
139     you must rebuild binary packages from the
140     RPM source packages first (see below).
141     Typical rpm commands look like:
142    
143     <programlisting>
144     rpm --install Thuban-0.9.0-1.i386.rpm
145     </programlisting>
146    
147     Depending on what you already have installed
148     on your system, you are informed that some
149     packages are required, but not installed.
150     You need to install them first. Either they
151     are provided by your GNU/Linux distributor
152     or available somewhere on the Internet.
153     The more essential and special ones are
154     provided together with the Thuban package.
155     </para>
156    
157     <para>
158     For rpm exist some graphical user interfaces, notably
159     kpackage, GnoRPM and xrpm.
160     </para>
161    
162     <para>
163     Make yourself familiar with one of the tools and apply it
164     to install the packages.
165     Note, that you need to be administrator (root) for the system
166     to do that.
167     </para>
168     </section>
169     <section><title>Build Binaries from Source Packages</title>
170     <para>
171     This section describes howto build RPM install-packages
172     from RPM source-packages.
173     This adapts and optimizes an install-package specifically
174     to your system.
175     This is especially helpful to resolve version conflicts of
176     dependent packages. Furthermore, install-packages for other
177     platforms (e.g. PowerPC) can be created.
178     </para>
179    
180     <para>
181     Note: rpm must be at least version 4. Execute
182     <literal>rpm --version</literal> to find out about the version.
183     </para>
184    
185     <para>
186     You need to do the following preparations to be able to
187     build the packages as a regular user. You should now
188     perform the package buling as root since this
189     might cause damage to your system.
190     <itemizedlist>
191     <listitem>
192     <para>
193     Create RPM directory structure:
194     Choose a directory (e.g. $HOME/myrpm) and create the
195     subdirectories BUILD, RPM, SOURCES, SPECS and SRPMS.
196     A possible command sequence for this is:
197     <programlisting>
198     mkdir $HOME/freegisrpm
199     cd $HOME/freegisrpm
200     mkdir BUILD RPMS SOURCES SPECS SRPMS
201     </programlisting>
202     </para>
203     </listitem>
204     <listitem>
205     <para>
206     Set environment variable RPM_DIR:
207     <programlisting>
208     export RPM_DIR=$HOME/freegisrpm
209     </programlisting>
210     </para>
211     </listitem>
212     <listitem>
213     <para>
214     Create $HOME/.rpmmacros:
215     This file sets general preferences and some
216     specific settings for signing packages.
217     If you don't have a GnuPG-key, you can skip
218     the signature settings i.e. drop the last 4 lines.
219     A signature becomes important when you want to
220     give away packages to third parties.
221     <programlisting>
222     <![CDATA[
223     %packager Name Lastname <[email protected]>
224    
225     %_topdir /home/mylogin/myrpm
226    
227     %_signature gpg
228     %_gpg_name Name Lastname
229     %_pgp_path ~/.gnupg
230     %_pgpbin /usr/bin/gpg
231     ]]>
232     </programlisting>
233     </para>
234     </listitem>
235     </itemizedlist>
236    
237     Now you can install any RPM source-package.
238     It's components are installed into the corresponding
239     subdirectories of your rpm-directory.
240     Essentially these are the sources (into directory SOURCES)
241     and the so-called spec-file which contains all build
242     instructions. The spec-file will go into the SPEC directory.
243     Example:
244     <literal>rpm --install Thuban-0.9.0-1.src.rpm</literal>
245     </para>
246    
247     <para>
248     Create install-package:
249     Go to the directory with the spec-files and rebuild the
250     package:
251     <programlisting>
252     cd $HOME/mypm/SPECS
253     rpm -bb thuban.spec
254     </programlisting>
255     Next, you will find the newly created package in
256     $HOME/myrpm/RPMS/i386.
257     If you build the package for another architecture than
258     i386, then the name of the directory has a corresponding name.
259     </para>
260     <para>
261     For documentation of RPM, either type
262     <literal>man rpm</literal> or <literal>rpm --help</literal>.
263     This will provide you with information on the various command
264     line options of RPM.
265     For more information see the
266     <ulink url="http://www.rpm.org/">homepage of RPM</ulink>.
267     </para>
268     </section>
269     </section> <!-- Intro - Installation - RPM-->
270    
271     <section><title>Win32 Systems</title>
272     <para>
273     A common installation package of Thuban for Win32
274     systems is available from the Thuban website download
275     section. This installation package is configured for
276     displaying file based vector data (Shapefiles). For the
277     display of raster data or the connection to spatial
278     databases additional steps are needed.
279     </para>
280     <para>
281     The required Python packages are listed and linked on
282     the download page as well. If you don't have Python
283     installed already, download the packages for Python,
284     wxPython for Python and the SQLite Python Libraries as
285     well as the Thuban package. Install all four packages
286     in the order: Python, wxPython, SQLite, Thuban. Follow
287     the installation instructions provided by the seperate
288     setups. The Thuban installation package will add an
289     entry in the menu folder you configured.
290     </para>
291     <section><title>Raster Data: Installation of GDAL</title>
292     <para>
293     Enabling the raster data features of Thuban is
294     straight forward. For the examples we assume that
295     Thuban has been installed under
296     <literal>C:\Thuban</literal>:
297     <itemizedlist>
298     <listitem>
299     <para>
300     Download the zip-archive <ulink
301     url="ftp://intevation.de/thuban/win2k/gdal-win2k.zip"
302     >gdal-win2k</ulink>.
303     </para></listitem>
304     <listitem><para>Extract the archive (e.g. with
305     <ulink
306     url="http://www.info-zip.org/pub/infozip/WiZ.html"
307     >WiZ (InfoZip)</ulink>) into the
308     <literal>C:\Thuban\Lib</literal>
309     directory of your Thuban installation.
310     </para>
311     </listitem>
312     <listitem>
313     <para>
314     Extent the <varname>PYTHONPATH</varname>
315     environment variable (in your Windows Control Panel)
316     to make the new libraries available for Thuban.
317     <programlisting>
318     %PYTHONPATH%;C:\Thuban\Lib\gdal;C:\Thuban\Lib\gdal\pymod
319     </programlisting>
320     </para>
321     </listitem>
322     <listitem>
323     <para>
324     Extent also the <varname>PATH</varname>
325     environment variable accordingly:
326     <programlisting>
327     %PATH%;C:\Thuban\Lib\gdal
328     </programlisting>
329     </para>
330     </listitem>
331     </itemizedlist>
332     After this installation steps Thuban is ready to
333     display raster data (e.g. the
334     <literal>island.tif</literal> from the Iceland Demo
335     data set.
336     </para>
337     </section> <!-- Win32: GDAL-->
338    
339     <section><title>Working with PostGIS: Installation of PsycoPG</title>
340     <para>
341     To access PostgreSQL/PostGIS spatial databases with
342     Thuban you have to install the PsycoPG package for
343     Windows:
344     <itemizedlist>
345     <listitem>
346     <para>
347     Download the zip-archive
348     <ulink
349     url="http://stickpeople.com/projects/python/win-psycopg/win-psycopg22.zip"
350     >win-psycopg22.zip</ulink>.
351     </para>
352     </listitem>
353     <listitem>
354     <para>
355     Extract the zip-archive into a directory either already
356     in your <varname>PYTHONPATH</varname> or extent your
357     <varname>PYTHONPATH</varname> variable to the directory
358     you have extracted the archive to.
359     </para>
360     </listitem>
361     </itemizedlist>
362     For installation and maintenance of spatial databases
363     we refer to the <ulink
364     url="http://postgis.refractions.net"
365     >PostGIS Homepage</ulink>.
366     </para>
367     </section> <!-- Win32: PsycoPG-->
368    
369     </section> <!-- Intro - Installation - Win32 -->
370     </section>
371    
372     <section><title>Internationalisierung</title>
373     <para>
374     Thuban ist mit Unterstützung für Internaionalisierung realisiert.
375     Bisher wurde Thuban in folgende Sprachen (neben der Basis Englisch) übersetzt:
376     <itemizedlist>
377     <listitem><para>Französisch</para></listitem>
378     <listitem><para>Deutsch</para></listitem>
379     <listitem><para>Italienisch</para></listitem>
380     <listitem><para>Portugiesisch (Brasilien)</para></listitem>
381     <listitem><para>Russisch</para></listitem>
382     <listitem><para>Spanisch</para></listitem>
383     </itemizedlist>
384     </para>
385    
386     <para>
387     Um die Internationalisierung auf POSIX Systemen (wie etwa GNU/Linux)
388     zu verwenden, muss die Umgebungsvariable LC_ALL entsprechend
389     gesetzt werden (z.B. LC_ALL=de_DE für Deutsch).
390     Prüfen Sie die Dokumentation zu Ihrem System für Details
391     und die unterstützten Einstellungen.
392     Normalweise haben Sie Ihre Sprache bereits mit der Installation
393     oder beim einloggen bereits vorausgewählt.
394     Trotzdem kann auch dann noch durch Setzen von LC_ALL auf
395     der Kommandozeile beim Aufruf von Thuban eine andere Sprache
396     gesetzt werden:
397     </para>
398     <programlisting>
399     LC_ALL=fr_FR thuban.py
400     </programlisting>
401    
402     <para>
403     MS Windows Benutzer müssen die Sprache über die Kontroll-Leiste einstellen
404     welche grundsätzlich alle Anwendungen beeinflusst.
405     </para>
406     </section>
407    
408     <section><title>Das Hauptfenster</title>
409     <para>
410     <figure><title>Das Hauptfenster</title>
411     <mediaobject>
412     <imageobject> <imagedata fileref="../images/1_2_mainwindow.png" format="PNG" scale="&imgscale;"/> </imageobject>
413     <imageobject> <imagedata fileref="./images/1_2_mainwindow.ps" format="EPS" scale="&imgscale;"/> </imageobject>
414     </mediaobject>
415     </figure>
416     </para>
417    
418     <para>
419     Das Hauptfenster stellt die aktuelle Karte dar. Hier kann der
420     Benutzer mit der Karte interagieren indem er die verschiednen
421     Werkzeuge anwendet.
422     </para>
423    
424     <para>
425     Die Legende auf der linken Seite zeigt eine Liste der aktuellen
426     Ebenen und alle dargestellten Klassifikations-Gruppen.
427     Bei diesem Beispiel haben alle Geo-Objekte Ebenen eine voreingestellte
428     Klassifizierung wie die jeweiligen Geo-Objekte in den einzelnen
429     Ebenen gezeichnet werden sollen.
430     Die Ebenen die weiter oben in der Liste dargestellt werden über
431     die darunter aufgelisteten gezeichnet.
432     Die Legende kann durch Anwahl des X in der oberen rechten Ecke
433     geschlossen werden.
434     Um die Legenden-Ansicht wieder zu öffnen, wählen Sie
435 jan 2313 <menuchoice>
436     <guimenu>Karte</guimenu>
437     <guimenuitem>Legende</guimenuitem>
438     </menuchoice>.
439     Das Legenden-Fenster ist lösbar. Das bedeutet, dass sie vom Hauptfenster
440     abgelöst und dann als eigenständiges Fenster
441     positioniert werden kann. Dies wird durch den kleinen Schalter
442     neben dem X gemacht. Erneutes Anwählen des Schalters läßt das
443     Legenden-Fenster wieder in das Hauptfenster integrieren.
444     </para>
445     <para>
446     Die Status-Leiste zeigt verschiedene Informationen jeweils
447     abhängig vom Kontext. Wählt der Benutzer einen Menüpunkt
448     dann wird in der Status-Leiste ein Hilfetext zu dem jeweiligen
449     Menüpunkt angezeigt.
450     Ist eines der Werkzeuge aktiviert, so wird in der Status-Leiste
451     die Position angegeben über der der Maus-Cursor auf der Karte
452     steht.
453     </para>
454     <para>
455     Die Werkzeugleiste erlaubt direkten Zugriff auf häufig
456     benötigte Werkzeuge.
457     Schwebt der Maus-Zeiger über einem Knopf wird eine Kurz-Info
458     über das jeweilige Werkzeug gegeben.
459     Folgende Werzeuge stehen zur Verfügung: Hineinzoomen,
460     Herauszoomen, Verschieben, Zur vollen Kartenausdehnung zoomen,
461     Zur vollen Ebenenausdehnung zoomen, Zur vollen Auswahlausdehnung zoomen,
462     Identifizieren, Labels hinzufügen/entfernen.
463     Alle Werkzeuge werden in diesem Handbuch noch detaillierter beschrieben.
464     </para>
465     </section>
466 jan 2309
467     </chapter>
468    
469     <chapter><title>Session Management</title>
470    
471 jan 2313 <section><title>Eine neue Session beginnen</title>
472     <para>
473     Eine neue Session wird gestartet über
474     <menuchoice>
475     <guimenu>Datei</guimenu>
476     <guimenuitem>Neue Session</guimenuitem>
477     </menuchoice>.
478     Falls bereits eine Session geladen ist und seit der letzten
479     Speicherung verändert wurde, so wird nun nachgefragt, ob
480     diese Session zunächst gespeichert werden soll.
481     Eine neue Session besteht aus einer leeren Karte
482     ohne Ebenen, Tabellen und Projektion.
483     </para>
484     </section>
485 jan 2309
486 jan 2313 <section><title>Eine Session öffnen</title>
487     <para>
488     Eine Session kann geöffnet werden über
489     <menuchoice>
490     <guimenu>Datei</guimenu>
491     <guimenuitem>Öffne Session</guimenuitem>
492     </menuchoice>.
493     Es wird ein Dateiauswahl-Dialog geöffnet um eine
494     Thuban Session Datei auszuwählen. Diese Dateien enden
495     auf <varname>.thuban</varname>. Wird eine Datei ausgewählt und mit
496     <guibutton>OK</guibutton> bestätigt, so wird die entsprechende
497     Session in Thuban geladen.
498 jan 2309
499 jan 2313 Ist bereits eine Session geladen und seit dem letzten Speichern modifiziert
500     worden, so wird nachgefragt, ob zunächst die alte Session gespeichert werden
501     soll.
502     </para>
503     </section>
504 jan 2309
505 jan 2313 <section><title>Eine Session speichern</title>
506     <para>
507     Eine Session kann gepsiechert werden über
508     <menuchoice>
509     <guimenu>Datei</guimenu>
510     <guimenuitem>Session Speichern</guimenuitem>
511     </menuchoice>.
512     Handelt es sich bei der aktuellen Session nicht um eine
513     neue und ungespeicherte, so wird die entsprechende Datei
514     mit den Daten der aktuellen Session überschrieben.
515     Im Falle einer neuen und noch nicht gespeicherten Session
516     wird ein Dateiauswahl-Dialog geöffnet um einen Namen
517     für die zu speicherende Session auszuwählen.
518     Thuban Session Dateien sollten mit der Endung
519     <varname>.thuban</varname> versehen werden.
520     Existiert bereits eine Datei mit dem gleichen Namen
521     wird der Benutzer gefragt ob diese überschrieben
522     oder ein neuer Name gewählt werden soll.
523     </para>
524     </section>
525 jan 2309
526 jan 2313 <section><title>Der Session Info-Baum</title>
527     <para>
528     <figure>
529     <title>Session Info-Baum</title>
530     <mediaobject>
531     <imageobject><imagedata fileref="../images/2_4_session_tree.png" format="PNG" scale="&imgscale;"/></imageobject>
532     <imageobject><imagedata fileref="./images/2_4_session_tree.eps" format="EPS" scale="&imgscale;"/></imageobject>
533     </mediaobject>
534     </figure>
535     </para>
536     <para>
537     Der Session Info-Baum ist hauptsächlich für Software-Entwickler gedacht
538     die an Thuban arbeiten.
539     Er stellt eine Reihe von internen Daten zur Session, der Karte, den
540     Ebenen usw. dar. Er wird geöffnet über
541     <menuchoice>
542     <guimenu>Datei</guimenu>
543     <guimenuitem>Session Baum</guimenuitem>
544     </menuchoice>.
545     </para>
546     </section>
547 jan 2309 </chapter>
548    
549 jan 2369 <chapter><title>Karten Management</title>
550 jan 2309 <para>
551 jan 2369 Die Karte besteht aus eine Anzahl Ebenen wobei jede Ebene einen
552     Datensatz mit bestimtem Typ repräsentiert. Mit Interaktion auf der
553     Karte kann ein Benutzer die Daten visuell erforschen.
554 jan 2309 </para>
555     <para>
556 jan 2369 Die Karte kann einen Namen haben der dann in der Kopfzeile des
557     Thuban Fensters auftaucht. Der Kartenname kann geändert werden
558     über
559 jan 2309 <menuchoice>
560 jan 2369 <guimenu>Karte</guimenu>
561     <guimenuitem>Umbennen</guimenuitem>
562 jan 2309 </menuchoice>.
563     </para>
564     <para>
565     <inlinemediaobject>
566     <imageobject>
567     <imagedata fileref="../images/3_rename_map.png" format="PNG" scale="&imgscale;"/>
568     </imageobject>
569     <imageobject>
570     <imagedata fileref="./images/3_rename_map.eps" format="EPS" scale="&imgscale;"/>
571     </imageobject>
572 jan 2369 <textobject> <phrase>Karte umbennen</phrase> </textobject>
573 jan 2309 </inlinemediaobject>
574     </para>
575    
576 jan 2369 <section><title>Hinzufügen und Entfernen von Ebenen</title>
577     <para>
578     Es gibt drei Typen von Ebenen aus denen eine Karte besteht:
579     Shape Ebene, Datenbank Ebene und Bildebene.
580     Shape Ebenen sind im Shapefile Format gespeichert welches
581     weit verbreitet für die Speicherung von geografischen Objekten
582     genutzt wird.
583     Die Dateien haben die Endung ``.shp''. Mit der eigentlichen Shape
584     Datei ist eine Datenbank Datei welche die Attribut-Daten zu dem
585     Shapefile enthält. Diese Datenbank Datei verwendet das dBase Format
586     und hat die Endung ``.dbf''. Beide Dateien müssen den selben
587     Basisnamen haben. So gehören zum Beispiel die Dateien
588     strassen.shp und strassen.dbf zusammen.
589     </para>
590 jan 2309 <itemizedlist>
591     <listitem>
592     <para>
593 jan 2369 Shape Ebenen können zur Karte hinzugefügt werden mit
594 jan 2309 <menuchoice>
595 jan 2369 <guimenu>Karte</guimenu>
596     <guimenuitem>Ebene hinzufügen</guimenuitem>
597 jan 2309 </menuchoice>.
598 jan 2369 Zunächst werden im Dateiauswahl Dialog nur die ``.shp'' Dateien
599     angezeigt, was für die Auswahl vollkommen ausreicht.
600     Falls Sie aber auf Ansicht aller Dateien umschalten, und dann
601     einer der assoziierten Dateien (z.B. mit der Endung ``.dbf'')
602     auswählen, so verwendet Thuban den Basisnamen um die entsprechende
603     Shape Datei zu laden,
604     </para>
605 jan 2309 <para>
606 jan 2369 Der Dateidialog für Shape Dateien erlaubt es auch, viele
607     Dateien gleichzeitig auszuwählen. Verwenden Sie dafür
608     die Umschalt-Taste gleichzeitig mit der linken Maustaste um
609     die Auswahl zu erweitern.
610     </para>
611 jan 2309 </listitem>
612    
613     <listitem>
614 jan 2369 <para>Datenbankebenen können zu Karte hinzugefügt werden mit
615 jan 2309 <menuchoice>
616 jan 2369 <guimenu>Karte</guimenu>
617     <guimenuitem>Datenbankebene hinzufügen</guimenuitem>
618 jan 2309 </menuchoice>.
619 jan 2521 Es wird ein Dialog mit zwei Listen geöffnet.
620 jan 2369 Die linke Liste zeigt alle derzeit offenen Datenbankverbindungen dieser
621     Session an. Eine Liste der verfügbaren Ebenen aus einer Datenbankverbindung
622     wird steht auf der rechten Seite. Aus dieser Liste können Sie eine
623     beliebige Ebene zum Öffnen auswählen. Der Dialog wird dabach
624     automatisch beendet.
625 jan 2309 </para>
626     <para>
627 jan 2369 Siehe auch Anhang ``Mit PostGIS arbeiten'' für weitere Details.
628 jan 2309 </para>
629     </listitem>
630    
631     <listitem>
632     <para>
633 jan 2369 Bildebenen können zur Karte hinzugefügt werden mit
634 jan 2309 <menuchoice>
635 jan 2369 <guimenu>Karte</guimenu>
636     <guimenuitem>Bildebene hinzufügen</guimenuitem>
637 jan 2309 </menuchoice>.
638 jan 2369 Es ist wichtig, dass eine korrekte Bilddatei ausgewählt für
639     die auch geographische Daten (Projektions) vorliegen.
640     Diese Daten können in die Bilddatei eingebettet sein oder
641     als separate Datei vorliegen. Können diese Daten nicht
642     gefunden werden, so wird Thuban einen Fehler melden.
643 jan 2309 </para>
644     </listitem>
645     </itemizedlist>
646     </section>
647    
648     <section><title>Navigation</title>
649     <para>
650 jan 2369 Die Karte kann erforscht werden indem die Navigationswerkzeuge
651     aus der Werkzeugleiste oder über das Menü
652     <menuchoice><guimenu>Karte</guimenu></menuchoice> ausgewählt werden.
653 jan 2309 </para>
654     <itemizedlist>
655     <listitem>
656     <para>
657 jan 2369 Das ZoomIn Werkzeug
658 jan 2309 <inlinemediaobject>
659     <imageobject>
660     <imagedata fileref="../images/3_2_zoomin.png" format="PNG" scale="&imgscale;"/>
661     </imageobject>
662     <imageobject>
663     <imagedata fileref="./images/3_2_zoomin.eps" format="EPS" scale="&imgscale;"/>
664     </imageobject>
665 jan 2369 <textobject> <phrase>ZoomIn Werkzeug</phrase> </textobject>
666 jan 2309 </inlinemediaobject>
667 jan 2369 vergrößert einen Bereich aus der Karte. Ein einmaliges Klicken auf
668     die Karte vergrößert die Karte um das Doppelte und zentriert auf den
669     angewählten Punkt. Klicken und Ziehen selektiert einen Bereich
670     der dann so vergrößert wird, dass er das Fenster ausfüllt.
671 jan 2309 </para>
672     </listitem>
673     <listitem>
674     <para>
675 jan 2369 Das ZoomOut Werkzeug
676 jan 2309 <inlinemediaobject>
677     <imageobject>
678     <imagedata fileref="../images/3_2_zoomout.png" format="PNG" scale="&imgscale;"/>
679     </imageobject>
680     <imageobject>
681     <imagedata fileref="./images/3_2_zoomout.eps" format="EPS" scale="&imgscale;"/>
682     </imageobject>
683 jan 2369 <textobject> <phrase>ZoomOut Werkzeug</phrase> </textobject>
684 jan 2309 </inlinemediaobject>
685 jan 2369 verkleinert die Karte, so dass ein größerer Bereich zu sehen ist.
686     Ein einzelnen Klick verkleinert die Karte um Faktor 2.
687     Klicken und Ziehen selektiert einen Bereich in den die gesamte sichtbare
688     Karte im Fenster hineinverkleinert wird.
689 jan 2309 </para>
690     </listitem>
691     <listitem>
692     <para>
693 jan 2507 Das Verschieben Werkzeug
694 jan 2309 <inlinemediaobject>
695     <imageobject>
696     <imagedata fileref="../images/3_2_pan.png" format="PNG" scale="&imgscale;"/>
697     </imageobject>
698     <imageobject>
699     <imagedata fileref="./images/3_2_pan.eps" format="EPS" scale="&imgscale;"/>
700     </imageobject>
701 jan 2507 <textobject> <phrase>Verschieben Werkzeug</phrase> </textobject>
702 jan 2309 </inlinemediaobject>
703 jan 2507 gestattet es dem Benutzer die Karte durch klicken und
704     ziehen mit gedrückter Maustaste zu verschieben.
705 jan 2309 </para>
706     </listitem>
707     <listitem>
708     <para>
709 jan 2507 Das Volle Ausdehnung Werkzeug
710 jan 2309 <inlinemediaobject>
711     <imageobject>
712     <imagedata fileref="../images/3_2_fullextent.png" format="PNG" scale="&imgscale;"/>
713     </imageobject>
714     <imageobject>
715     <imagedata fileref="./images/3_2_fullextent.eps" format="EPS" scale="&imgscale;"/>
716     </imageobject>
717 jan 2507 <textobject> <phrase>Volle Ausdehnung Werkzeug</phrase> </textobject>
718 jan 2309 </inlinemediaobject>
719 jan 2507 skaliert die Zoom-Stufe so, dass die gesamte sichtbare Karte im
720     Fenster dargestellt wird.
721 jan 2309 </para>
722     </listitem>
723     <listitem>
724     <para>
725 jan 2507 Das Voll Ebenen-Ausdehnung Werkzeug
726 jan 2309 <inlinemediaobject>
727     <imageobject>
728     <imagedata fileref="../images/3_2_fulllayerextent.png" format="PNG" scale="&imgscale;"/>
729     </imageobject>
730     <imageobject>
731     <imagedata fileref="./images/3_2_fulllayerextent.eps" format="EPS" scale="&imgscale;"/>
732     </imageobject>
733 jan 2507 <textobject> <phrase>Volle Ebenen-Ausdehnung Werkzeug</phrase> </textobject>
734 jan 2309 </inlinemediaobject>
735 jan 2507 skaliert die Zoom-Stufe so, dass die akutelle Ebene vollständig
736     im Fenster dargestellt wird. Ist keine Ebene ausgewählt, so
737     ist dieser Knopf ausgegraut und damit nicht verfügbar.
738 jan 2309 </para>
739     </listitem>
740     <listitem>
741     <para>
742 jan 2507 Das Volle Shape-Ausdehnung Werkzeug
743 jan 2309 <inlinemediaobject>
744     <imageobject>
745     <imagedata fileref="../images/3_2_fullshapeextent.png" format="PNG" scale="&imgscale;"/>
746     </imageobject>
747     <imageobject>
748     <imagedata fileref="./images/3_2_fullshapeextent.eps" format="EPS" scale="&imgscale;"/>
749     </imageobject>
750 jan 2507 <textobject> <phrase>Volle Shape-Ausdehnung Werkzeug</phrase> </textobject>
751 jan 2309 </inlinemediaobject>
752 jan 2507 skaliert die Zoom-Stufe so, dass die aktuell ausgewählten Shapes
753     vollständig in das Fenster eingepasst sind.
754     Handelt es sich bei der Auswahl nur um einen einzelnen Punkt
755     so wird dieser zentriert dargestellt und bis zu einem gewissen
756     grad gezoomed.
757     Ist kein Shape selektiert, so ist dieser Knopf ausgegraut und damit
758     nicht verfügbar.
759     Dieses Werkzeug ist besonders für den Fall hilfreich wenn man Objekte
760     in einer Ebenen-Tabelle auswählt und sie auf der Karte schnell
761     anspringen machen möchte.
762 jan 2309 </para>
763     </listitem>
764     </itemizedlist>
765     </section>
766    
767 jan 2521 <section><title>Objekt Identifikation</title>
768 jan 2309 <para>
769 jan 2521 Objekte auf der Karte können identifiziert werden über das Identifikations-Werkzeug
770 jan 2309 <inlinemediaobject>
771     <imageobject>
772     <imagedata fileref="../images/3_3_identify.png" format="PNG" scale="&imgscale;"/>
773     </imageobject>
774     <imageobject>
775     <imagedata fileref="./images/3_3_identify.eps" format="EPS" scale="&imgscale;"/>
776     </imageobject>
777 jan 2521 <textobject> <phrase>Identifikations-Werkzeug</phrase> </textobject>
778 jan 2309 </inlinemediaobject>.
779 jan 2521 Klickt man auf ein Objekt wird es selektiert und es wird ein
780     Dialog geöffnet der dann alle Tabellenattribute für das Objekt
781     anzeigt. Jegliche vorherige Selektion wird gelöscht.
782     Objekte auf der Karte sind typischerweise Shapes und dieses
783     Dokument wird sich häufiger auf Objekte als Shapes beziehen.
784 jan 2309 </para>
785     </section>
786    
787 jan 2547 <section><title>Objekt mit Label versehen</title>
788 jan 2309 <para>
789 jan 2547 Objekte können über das Label-Werkzeug mit Labeln versehen
790     werden
791 jan 2309 <inlinemediaobject>
792     <imageobject>
793     <imagedata fileref="../images/3_3_label.png" format="PNG" scale="&imgscale;"/>
794     </imageobject>
795     <imageobject>
796     <imagedata fileref="./images/3_3_label.eps" format="EPS" scale="&imgscale;"/>
797     </imageobject>
798 jan 2547 <textobject> <phrase>Label Werkzeug</phrase> </textobject>
799 jan 2309 </inlinemediaobject>.
800 jan 2547 Klickt man auf ein Objekt, so wird dies selektiert und es wird ein
801     Dialog geöffnet welcher dessen Attribute darstellt.
802     Eins der Attribute kann nun als Label für das Objekt auf der Karte
803     ausgewählt werden. Der Label wird dann mittif auf dem Shape
804     plaziert.
805     Klickt man auf ein Objekt welches bereits ein
806     Label hat, so wird dieser nun entfernt.
807 jan 2309 </para>
808     </section>
809    
810 jan 2521 <section><title>Die Legende</title>
811 jan 2309 <para>
812     <inlinemediaobject>
813     <imageobject>
814     <imagedata fileref="../images/3_5_legend.png" format="PNG" scale="&imgscale;"/>
815     </imageobject>
816     <imageobject>
817     <imagedata fileref="./images/3_5_legend.eps" format="EPS" scale="&imgscale;"/>
818     </imageobject>
819 jan 2521 <textobject> <phrase>Legende</phrase> </textobject>
820 jan 2309 </inlinemediaobject>
821     </para>
822     <para>
823 jan 2521 Die Legende bietet eine Übersicht über die Ebenen der Karte.
824     Ebenen die weiter oben in der Legende stehen sind
825     ``näher'' zum Benutzer.
826     Falls eine Ebene Klassifizierung unterstützt (derzeit haben
827     nur Shape-Ebenen haben diese Eigenschaft) so werden die Gruppen
828     der Klassifikation für jede Ebene dargestellt.
829     Die Eigenschaften für jede Gruppe werden auch als kleine Grafiken
830     dargestellt. Polygon-Ebenen werden als Rechtecke dargestellt,
831     Linoen als Kurven und Punkte als Kreise.
832 jan 2309 </para>
833     <para>
834 jan 2521 Am oberen Rand der Legende ist eine Werkzeugleiste welche einen schnellen
835     Zugriff auf einige der Komanndos des Menüs
836     <menuchoice><guimenu>Map</guimenu></menuchoice>
837     gestattet.
838 jan 2309 </para>
839    
840     <itemizedlist>
841     <listitem>
842     <para>
843 jan 2521 Das Werkzeug
844 jan 2309 <inlinemediaobject>
845     <imageobject>
846     <imagedata fileref="../images/3_5_totop.png" format="PNG" scale="&imgscale;"/>
847     </imageobject>
848     <imageobject>
849     <imagedata fileref="./images/3_5_totop.eps" format="EPS" scale="&imgscale;"/>
850     </imageobject>
851 jan 2521 <textobject> <phrase>Auf die oberste Ebene bewegen</phrase> </textobject>
852     </inlinemediaobject> bewegt die selektierte Ebene auf der Karte
853     nach ganz oben.
854 jan 2309 </para>
855     </listitem>
856     <listitem>
857    
858     <para>
859 jan 2521 Das Werkzeug
860 jan 2309 <inlinemediaobject>
861     <imageobject>
862     <imagedata fileref="../images/3_5_moveup.png" format="PNG" scale="&imgscale;"/>
863     </imageobject>
864     <imageobject>
865     <imagedata fileref="./images/3_5_moveup.eps" format="EPS" scale="&imgscale;"/>
866     </imageobject>
867 jan 2521 <textobject> <phrase>Eine Ebene nach oben bewegen</phrase> </textobject>
868     </inlinemediaobject> bewegt die selektierte Ebene um einen
869     Schritt nach oben.
870 jan 2309 </para>
871     </listitem>
872     <listitem>
873    
874     <para>
875 jan 2521 Das Werkzeug
876 jan 2309 <inlinemediaobject>
877     <imageobject>
878     <imagedata fileref="../images/3_5_movedown.png" format="PNG" scale="&imgscale;"/>
879     </imageobject>
880     <imageobject>
881     <imagedata fileref="./images/3_5_movedown.eps" format="EPS" scale="&imgscale;"/>
882     </imageobject>
883 jan 2521 <textobject> <phrase>Eine Ebene nach unten bewegen</phrase> </textobject>
884     </inlinemediaobject> bewegt die selektierte Ebene um einen Schritt
885     nach unten.
886 jan 2309 </para>
887    
888     </listitem>
889     <listitem>
890     <para>
891 jan 2521 Das Werkzeug
892 jan 2309 <inlinemediaobject>
893     <imageobject>
894     <imagedata fileref="../images/3_5_tobottom.png" format="PNG" scale="&imgscale;"/>
895     </imageobject>
896     <imageobject>
897     <imagedata fileref="./images/3_5_tobottom.eps" format="EPS" scale="&imgscale;"/>
898     </imageobject>
899 jan 2521 <textobject> <phrase>Auf die unterste Ebene bewegen</phrase> </textobject>
900     </inlinemediaobject> bewegt die selektierte Ebene auf
901     der Karte nach ganz unten.
902 jan 2309 </para>
903    
904     </listitem>
905     <listitem>
906     <para>
907 jan 2547 Das Sichtbarkeits-Werkzeug
908 jan 2309 <inlinemediaobject>
909     <imageobject>
910     <imagedata fileref="../images/3_5_visible.png" format="PNG" scale="&imgscale;"/>
911     </imageobject>
912     <imageobject>
913     <imagedata fileref="./images/3_5_visible.eps" format="EPS" scale="&imgscale;"/>
914     </imageobject>
915 jan 2547 <textobject> <phrase>Sichtbar</phrase> </textobject>
916     </inlinemediaobject> sorgt dafür, dass eine vorher nicht sichtbare
917     Ebene nun wieder in der Karte dargestellt wird.
918 jan 2309 </para>
919    
920     </listitem>
921     <listitem>
922     <para>
923 jan 2547 Das Unsichtbar-Werkzeug
924 jan 2309 <inlinemediaobject>
925     <imageobject>
926     <imagedata fileref="../images/3_5_invisible.png" format="PNG" scale="&imgscale;"/>
927     </imageobject>
928     <imageobject>
929     <imagedata fileref="./images/3_5_invisible.eps" format="EPS" scale="&imgscale;"/>
930     </imageobject>
931 jan 2547 <textobject> <phrase>Unsichtbar</phrase> </textobject>
932     </inlinemediaobject> versteckt die aktuell
933     selektierte Ebene auf der Karte.
934 jan 2309 </para>
935    
936     </listitem>
937     <listitem>
938     <para>
939 jan 2547 Das Eigenschaften-Werkzeug
940 jan 2309 <inlinemediaobject>
941     <imageobject>
942     <imagedata fileref="../images/3_5_props.png" format="PNG" scale="&imgscale;"/>
943     </imageobject>
944     <imageobject>
945     <imagedata fileref="./images/3_5_props.eps" format="EPS" scale="&imgscale;"/>
946     </imageobject>
947 jan 2547 <textobject> <phrase>Eigenschaften</phrase> </textobject>
948     </inlinemediaobject> startet den Eigenschaften-Dialog für die
949     aktuelle Ebene.
950     Ein Doppel-Klick auf eine Ebene startet ebenfalls diesen Dialog.
951 jan 2309 </para>
952     </listitem>
953     </itemizedlist>
954    
955     <para>
956 jan 2547 Die am häufigsten benötigten Aktionen zu den Ebenen sind
957     über ein Popup-Menü erreichbar. Es erscheint wenn Sie
958     mit der Maus über einer Ebene stehen und die rechten
959     Maustaste betätigen.
960 jan 2309 </para>
961    
962     <para>
963     <figure>
964 jan 2547 <title>Popup Menü für Ebenen</title>
965 jan 2309 <mediaobject>
966     <imageobject><imagedata fileref="../images/3_5_popup_menu.png" format="PNG" scale="&imgscale;"/></imageobject>
967     <imageobject><imagedata fileref="./images/3_5_popup_menu.eps" format="EPS" scale="&imgscale;"/></imageobject>
968     </mediaobject>
969     </figure>
970     </para>
971    
972     <para>
973 jan 2547 Am unteren Rand der Legende befindet sich
974     die Maßstabsanzeige. Sie ist immer dann zu sehen wenn
975     für die Karte eine Projektion gesetzt ist und mindestens
976     eine Ebene vorhanden ist.
977 jan 2309 </para>
978     </section>
979    
980 jan 2547 <section><title>Exportieren</title>
981 jan 2309 <para>
982 jan 2547 Auf dem Betriebssystem MS Windows können Karten im Enhanced Metafile Format
983 jan 2309 (<varname>.wmf</varname>)
984 jan 2547 über
985 jan 2309 <menuchoice>
986 jan 2547 <guimenu>Karte</guimenu>
987 jan 2309 <guimenuitem>Export</guimenuitem>
988 jan 2547 </menuchoice> erstellt werden um sie in Reports,
989     Präsentationen oder weitergehenden Bearbeitungen zu verwenden.
990     Die aktuelle Kartenansicht, Legende und, falls verfügbar,
991     Maßstabsanzeige werden dafür exportiert.
992     Auf anderen Plattformen steht dies nicht zur
993     Verfügung.
994     Wählt man diesen Menüpunkt an so wird ein
995     Dateiauswahldialog für die zu erstellende Exportdatei
996     geöffnet.
997 jan 2309 </para>
998     </section>
999    
1000 jan 2547 <section><title>Drucken</title>
1001 jan 2309 <para>
1002 jan 2547 Eine Karte wird über
1003 jan 2309 <menuchoice>
1004 jan 2547 <guimenu>Karte</guimenu>
1005     <guimenuitem>Drucken</guimenuitem>
1006     </menuchoice> ausgedruckt. Die aktuelle Kartenansicht, Legende und,
1007     falls vorhanden, die Maßstabsanzeige werden gedruckt.
1008     Es wird ein Standard-Druckdialog geöffnet der die Konfiguration
1009     des Druckers gestattet. Dieser Druckdialog unterscheidet sich je
1010     nachdem auf welcher Plattform Thuban ausgeführt wird.
1011 jan 2309 </para>
1012     </section>
1013    
1014     </chapter>
1015    
1016 jan 2547 <chapter><title>Ebenen Management</title>
1017 jan 2309 <para>
1018     </para>
1019    
1020 jan 2547 <section><title>Typen von Ebenen</title>
1021 jan 2309 <para>
1022 jan 2547 Thuban unterstützt 3 Typen von Ebenen:
1023     Shape-Ebenen, Datenbank-Ebenen und Bild-Ebenen.
1024     Shape-Ebenen bestehen aus vektor-basierten Objekten mit
1025     geo-referenzierten Koordinaten.
1026     Es werden drei Shape-Typen unterstützt:
1027     Polygone, Linien und Punkte.
1028     Datenbank-Ebenen sind den Shape-Ebenen ähnlich und unterscheiden
1029     sich darin, dass die Daten aus einer Datenbank geholt werden
1030     anstatt direkt vom Dateisystem.
1031     Bild-Ebenen können im Prinzip alle von GDAL unterstützten Dateiformate
1032     sein. GDAL ist eine externe Bibliothek und steht für
1033     Geo-spatial Data Abstraction Library.
1034     Das Bild muss Informationen zu seiner geographische Lage und
1035     Ausdenung beinhalten, entweder direkt in die Datei eingebettet
1036     oder als separate Datei im selben Verzeichnis wie die Bild-Datei.
1037     GeoTIFF Dateien funktionieren sehr gut mit Thuban und sind
1038     speziell als Bildebenen für Bild-Ebenen bei Geographischen
1039     Informationssystemen geeignet.
1040 jan 2309 </para>
1041     <para>
1042     All actions in the
1043     <menuchoice>
1044     <guimenu>Layer</guimenu>
1045     </menuchoice> menu act on the currently selected layer in the legend.
1046     </para>
1047     </section>
1048    
1049     <section><title>Properties</title>
1050     <para>
1051     To view the properties for a layer it must first be selected in the
1052     legend. The menu option
1053     <menuchoice>
1054     <guimenu>Layer</guimenu>
1055     <guimenuitem>Properties</guimenuitem>
1056     </menuchoice> opens a dialog that displays a layer's properties.
1057     All layers have a title which can be modified in the text field
1058     provided. The type of layer is also shows. If the type is a type
1059     of shape (polygon, arc, point) the classification table will be
1060     shown. Image layers have no other properties other than title
1061     and type.
1062     </para>
1063     <para>
1064     <figure>
1065     <title>Properties Window</title>
1066     <mediaobject>
1067     <imageobject><imagedata fileref="../images/4_2_layer_properties.png" format="PNG" scale="&imgscale;"/></imageobject>
1068     <imageobject><imagedata fileref="./images/4_2_layer_properties.eps" format="EPS" scale="&imgscale;"/></imageobject>
1069     </mediaobject>
1070     </figure>
1071     </para>
1072     <para>
1073     <figure>
1074     <title>Properties Window</title>
1075     <mediaobject>
1076     <imageobject><imagedata fileref="../images/4_2_raster_layer_properties.png" format="PNG" scale="&imgscale;"/></imageobject>
1077     <imageobject><imagedata fileref="./images/4_2_raster_layer_properties.eps" format="EPS" scale="&imgscale;"/></imageobject>
1078     </mediaobject>
1079     </figure>
1080     </para>
1081     </section>
1082    
1083     <section><title>Visibility</title>
1084     <para>
1085     Sometimes it is not desirable to view all layers at the same time.
1086     Some layers may take a long time to draw and so while navigating
1087     around the map the user may not want to wait for the map to redraw
1088     all the layers each time the map is changed. Each layer can be
1089     independently turned on or off using the
1090     <menuchoice>
1091     <guimenu>Layer</guimenu>
1092     <guimenuitem>Show</guimenuitem>
1093     </menuchoice>
1094     or
1095     <menuchoice>
1096     <guimenu>Layer</guimenu>
1097     <guimenuitem>Hide</guimenuitem>
1098     </menuchoice> options respectively.
1099     </para>
1100     </section>
1101    
1102     <section><title>Duplication</title>
1103     <para>
1104     Layers and all their properties, including classifications, can
1105     be duplicated using
1106     <menuchoice>
1107     <guimenu>Layer</guimenu>
1108     <guimenuitem>Duplicate</guimenuitem>
1109     </menuchoice>. Duplicating a layer is useful if the user wishes
1110     to model a layer in several different ways. Even though the layers
1111     overlap, by carefully selecting the shape properties it is possible
1112     to display several pieces of information at once. For example, one
1113     copy of a roads layer may be classified on a length property and
1114     another copy may be classified on a type property. If the length
1115     property was expressed with color and the type property expressed
1116     with line thickness then it would be possible to view both
1117     classifications by placing the type property copy over the
1118     length property copy.
1119     </para>
1120     </section>
1121    
1122     </chapter>
1123    
1124     <chapter><title>Layer Classifications</title>
1125     <para>
1126     A layer classification is a way of assigning drawing properties to
1127     groups of shapes based on attributes stored in the layer's table.
1128     Only layer's with shapes can have a classification; image layers
1129     cannot be classified.
1130     </para>
1131     <para>
1132     A classification consists of a number of groups, each group
1133     having a value or range of values to match against, and symbol
1134     properties which control how a shape is drawn on the map. The user
1135     selects which field in the table is used by the classification and
1136     when the map is drawn the value for that field for each shape is
1137     compared with each group's value. The properties of the first group
1138     to match are used to draw the shape. This allows the user to get a
1139     visual impression of not only how the data is laid out but also what
1140     kind of data lies where.
1141     </para>
1142     <para>
1143     A layer always has a classification. When a new layer is added to the
1144     map, a default classification is created with the DEFAULT group. This
1145     group cannot be removed but can be hidden (see below). Every shape in the
1146     layer, regardless of its attributes, will match this group if no other
1147     group matches.
1148     </para>
1149    
1150     <section><title>Editing Classifications</title>
1151     <para>
1152     A layer's classification can be modified under the properties dialog
1153     (<menuchoice>
1154     <guimenu>Layer</guimenu>
1155     <guimenuitem>Properties</guimenuitem>
1156     </menuchoice>). The layer's classification field can be set to None,
1157     which simply assigns a DEFAULT group to the classification. No new
1158     groups can be added to the classification if the field is None.
1159     The user must first select a field to classify on. New groups can
1160     be added to the classification with the <guibutton>Add</guibutton>
1161     button.
1162     </para>
1163     <para>
1164     To apply the changes to the map the user can click
1165     either <guibutton>Try</guibutton> or <guibutton>OK</guibutton>.
1166     <guibutton>Try</guibutton> will not close the dialog box, allowing
1167     the user to see how the classification changes the map.
1168     <guibutton>Revert</guibutton> will undo the last classification applied
1169     to the map. <guibutton>OK</guibutton> will commit the changes and
1170     close the dialog. The user will be unable to undo the changes.
1171     <guibutton>Close</guibutton> simply closes the dialog box. If any
1172     changes have not been applied with <guibutton>Try</guibutton> the
1173     changes will not be applied to the map.
1174     </para>
1175     <para>
1176     <figure>
1177     <title>Properties Window</title>
1178     <mediaobject>
1179     <imageobject><imagedata fileref="../images/5_classification.png" format="PNG" scale="&imgscale;"/></imageobject>
1180     <imageobject><imagedata fileref="./images/5_classification.eps" format="EPS" scale="&imgscale;"/></imageobject>
1181     </mediaobject>
1182     </figure>
1183     </para>
1184     <para>
1185     The order of the groups in the classification is significant
1186     except for the DEFAULT group, which remains at the top. When shapes
1187     are matched against groups the matching begins at the first group
1188     after the DEFAULT group so that groups higher in the list will
1189     be checked first. Matching for a
1190     given shape will stop at the first group that matches. The user can
1191     use <guibutton>Move Up</guibutton> and <guibutton>Move Down</guibutton>
1192     to change the order of the groups. The DEFAULT group will always
1193     match a shape that hasn't matched another group.
1194     </para>
1195     <section><title>Visible</title>
1196     <para>
1197     The Visible column has check-boxes that determine whether a
1198     classification group will be displayed in the legend. This is
1199     useful if the user knows that the groups completely cover
1200     the data set and don't want the DEFAULT group to be displayed
1201     in the legend and on a printout.
1202     </para>
1203     </section>
1204     <section><title>Symbols</title>
1205     <para>
1206     Each type of shape has its own type of symbol. Thuban supports three
1207     types of shapes: polygons, lines, and points. Polygons and points
1208     have outline and fill color, while lines have only line color. Each
1209     group has associated symbol properties. To edit the symbol
1210     properties for a group the user can double click on the Symbol
1211     column or select a group and click the
1212     <guibutton>Edit Symbol</guibutton> button.
1213     </para>
1214     </section>
1215     <section><title>Value</title>
1216     <para>
1217     The Value column of the classification table is the value that will
1218     be matched when the map is being drawn. The type of data that can
1219     entered into this field depends on the type of data of the
1220     classification field.
1221     </para>
1222     <para>
1223     If the field is of type Text, anything entered
1224     into the field is valid. The text will be compared literally to the
1225     value of the shape attribute, including case sensitivity.
1226     If the type is Integer, then any valid integer may be entered. In
1227     addition, with special syntax, a range of values can be entered.
1228     A range from <varname>start</varname> to <varname>end</varname>
1229     inclusive is specified like this: <literal>[start;end]</literal>.
1230     The exclusive range is specified like this:
1231     <literal>]start;end[</literal>. Ranges can include infinity like
1232     this: <literal>[-oo;oo]</literal>. Field types can also be of type
1233     Decimal. They represent any rational number and can be used in
1234     ranges as well.
1235     </para>
1236     </section>
1237     <section><title>Label</title>
1238     <para>
1239     By default, the text that is displayed for a group in the legend
1240     is the value for that group. The label can substitute a more
1241     descriptive term in the legend.
1242     </para>
1243     </section>
1244     </section>
1245    
1246     <section><title>Generating Classes</title>
1247     <para>
1248     <figure>
1249     <title>Generate Class</title>
1250     <mediaobject>
1251     <imageobject><imagedata fileref="../images/5_3_genclass.png" format="PNG" scale="&imgscale;"/></imageobject>
1252     <imageobject><imagedata fileref="./images/5_3_genclass.eps" format="EPS" scale="&imgscale;"/></imageobject>
1253     </mediaobject>
1254     </figure>
1255     </para>
1256     <para>
1257     Creating a classification by hand can be tedious.
1258     Thuban, therefore, provides a means of generating an entire
1259     classification at once while still giving the user control over
1260     how it appears. Clicking <guibutton>Generate Class</guibutton>
1261     opens the <varname>Generate Classification</varname> dialog.
1262     Under the <varname>Generate</varname> pull down there are at most
1263     three different ways to generate classifications:
1264     Unique Values, Uniform Distribution, and Quantiles. Some options
1265     may not be available if the data type for the field does not
1266     support them. For instance, <varname>Uniform Distribution</varname>
1267     doesn't make sense for a Text field.
1268     </para>
1269     <para>
1270     For every way of generating a classification, a color scheme must
1271     be selected. Thuban provides several different color schemes that
1272     affect how the group properties change over the classification.
1273     It may be desirable that only certain properties change over the
1274     classification. If the shape type is a polygon or a point then
1275     the <guibutton>Fix Border Color</guibutton> option will be available.
1276     This allows the user to select a border color for all classification
1277     groups.
1278     It is also possible to create a custom color scheme. Selecting
1279     this option will display two symbols: the one of the left has the
1280     properties of the first group and the one on the right has the
1281     properties of the last group. Thuban will interpolate between these
1282     two properties to generate the other groups.
1283     <figure>
1284     <title>Custom Color Scheme</title>
1285     <mediaobject>
1286     <imageobject><imagedata fileref="../images/5_2_custom_ramp.png" format="PNG" scale="&imgscale;"/></imageobject>
1287     <imageobject><imagedata fileref="./images/5_2_custom_ramp.eps" format="EPS" scale="&imgscale;"/></imageobject>
1288     </mediaobject>
1289     </figure>
1290     </para>
1291     <para>
1292     The Unique Values option lets the user select specific values that
1293     appear in the table. Clicking <guibutton>Retrieve From Table</guibutton>
1294     searches the table for all unique values and displays them in the
1295     list on the left. Items can be selected and moved to the list on the
1296     right. Each list can be sorted or reversed for easier searching.
1297     The classification that is generated will be in the same order as
1298     the list on the right.
1299     <figure>
1300     <title>Unique Values</title>
1301     <mediaobject>
1302     <imageobject><imagedata fileref="../images/5_2_unique_values.png" format="PNG" scale="&imgscale;"/></imageobject>
1303     <imageobject><imagedata fileref="./images/5_2_unique_values.eps" format="EPS" scale="&imgscale;"/></imageobject>
1304     </mediaobject>
1305     </figure>
1306     </para>
1307     <para>
1308     The Uniform Distribution option creates a user specified number of
1309     groups of ranges such that each range covers equal intervals. The
1310     minimum and maximum values can automatically be retrieved from the
1311     table by clicking <guibutton>Retrieve From Table</guibutton>. The
1312     stepping is how large each interval is. Adjusting this value will
1313     automatically recalculate how many groups is appropriate.
1314     <figure>
1315     <title>Uniform Distribution</title>
1316     <mediaobject>
1317     <imageobject><imagedata fileref="../images/5_2_uniform_dist.png" format="PNG" scale="&imgscale;"/></imageobject>
1318     <imageobject><imagedata fileref="./images/5_2_uniform_dist.eps" format="EPS" scale="&imgscale;"/></imageobject>
1319     </mediaobject>
1320     </figure>
1321     </para>
1322     <para>
1323     The Quantiles option generates ranges based on the number of items
1324     in the table. For example, by specifying five groups Thuban will
1325     generate five groups with appropriate ranges such that 20% of the table
1326     data is in each group. If it is impossible to generate exact
1327     groupings, Thuban will issue a warning but allow the user to continue.
1328     <figure>
1329     <title>Quantiles</title>
1330     <mediaobject>
1331     <imageobject><imagedata fileref="../images/5_2_quantiles.png" format="PNG" scale="&imgscale;"/></imageobject>
1332     <imageobject><imagedata fileref="./images/5_2_quantiles.eps" format="EPS" scale="&imgscale;"/></imageobject>
1333     </mediaobject>
1334     </figure>
1335     </para>
1336     </section>
1337     </chapter>
1338    
1339     <chapter><title>Projection Management</title>
1340     <para>
1341     Projections control how the geographic data is displayed on the screen.
1342     If multiple layers are loaded into Thuban where the geographic data
1343     is in a different projection system, then the user must specify a
1344     projection for each layer. The user must also tell Thuban which
1345     projection the map is in. This can be the same as the layers or a different
1346     projection in which case the layers are reprojected into that space.
1347     The map projection can be set using
1348     <menuchoice>
1349     <guimenu>Map</guimenu>
1350     <guimenuitem>Projection</guimenuitem>
1351     </menuchoice> and the layer projection can be set using
1352     <menuchoice>
1353     <guimenu>Layer</guimenu>
1354     <guimenuitem>Projection</guimenuitem>
1355     </menuchoice>.
1356     <figure>
1357     <title>Projection Window</title>
1358     <mediaobject>
1359     <imageobject><imagedata fileref="../images/6_projection.png" format="PNG" scale="&imgscale;"/></imageobject>
1360     <imageobject><imagedata fileref="./images/6_projection.eps" format="EPS" scale="&imgscale;"/></imageobject>
1361     </mediaobject>
1362     </figure>
1363     </para>
1364     <para>
1365     Thuban is distributed with a sample collection of projections and the
1366     set of coordinate systems as used by the EPSG
1367     (European Petroleum Survey Group). This quite large set is only displayed
1368     if activated by the according checkbox. The set falls into two parts:
1369     deprecated lists all projections which are no longer part of the
1370     EPSG data base.
1371     </para>
1372     <para>
1373     The
1374     user can create new projections and make them available to all
1375     future Thuban sessions. They may also be exported and imported so
1376     that custom projections can be distributed.
1377     </para>
1378     <section><title>Selecting a Projection</title>
1379     <para>
1380     The available projections are listed on the left. If the layer
1381     or map already has a projection it will initially be highlighted
1382     and will end with <varname>(current)</varname>. Selecting
1383     <varname>&lt;None&gt;</varname> will cause Thuban to use the data as
1384     it appears in the source file and will not use a projection.
1385     </para>
1386     </section>
1387     <section><title>Editing a Projection</title>
1388     <para>
1389     Whenever a projection is selected from the list its properties
1390     are displayed on the right. These properties can be changed
1391     and the changes saved to the selected projection using
1392     <guibutton>Update</guibutton>. Only a projection that comes
1393     from a file can be updated, so if the current layer's projection
1394     is selected, <guibutton>Update</guibutton> will be disabled.
1395     <guibutton>Add to List</guibutton> adds the projection to the
1396     list of available projections as a new entry, and thus makes it
1397     available to future Thuban sessions. Clicking <guibutton>New</guibutton>
1398     will create an entirely new, empty projection. The
1399     <guibutton>Remove</guibutton> button will permanently remove a
1400     projection from the list of available projections.
1401     </para>
1402     <para>
1403     To apply the selected projection to the map the user can click
1404     either <guibutton>Try</guibutton> or <guibutton>OK</guibutton>.
1405     <guibutton>Try</guibutton> will not close the dialog box, allowing
1406     the user to see how the projeciton changes the map.
1407     <guibutton>Revert</guibutton> will undo the last projection applied
1408     to the map. <guibutton>OK</guibutton> will commit the changes and
1409     close the dialog. The user will be unable to undo the changes.
1410     <guibutton>Close</guibutton> simply closes the dialog box. If no
1411     selection has been applied with <guibutton>Try</guibutton> the
1412     selection will not be applied to the map.
1413     </para>
1414     </section>
1415     <section><title>Importing/Exporting Projections</title>
1416     <para>
1417     The projections that appear in the list of available projections
1418     can be exported to another file that the user chooses. By selecting
1419     one or more projections and clicking <guibutton>Export</guibutton>
1420     the user will be able to select a file in which to store those
1421     projections.
1422     The file can then be distributed to other Thuban users. To import
1423     a projection file the user can click <guibutton>Import</guibutton>.
1424     The imported projections are added to the list and are then available
1425     to the current session and any future Thuban sessions.
1426     </para>
1427     </section>
1428     </chapter>
1429    
1430 jan 2508 <chapter><title>Tabellen-Management</title>
1431 jan 2309 <para>
1432 jan 2508 Thuban unterscheidet zwei unterschiedliche Tabellen-Typen:
1433     Attributtabellen (welche zu einer Ebene gehört) sowie normale
1434     Datentabellen.
1435     Beide bieten die gleiche allgemeine Funktionalität mit dem
1436     einzigen Unterschied, dass Aktionen auf einer Attributtabelle
1437     die Kartendarstellung ändern können.
1438 jan 2309 </para>
1439    
1440 jan 2508 <section><title>Tabellen-Ansicht</title>
1441 jan 2309 <para>
1442     <figure>
1443 jan 2508 <title>Tabellen-Ansicht</title>
1444 jan 2309 <mediaobject>
1445     <imageobject><imagedata fileref="../images/7_1_table_view.png" format="PNG" scale="&imgscale;"/></imageobject>
1446     <imageobject><imagedata fileref="./images/7_1_table_view.eps" format="EPS" scale="&imgscale;"/></imageobject>
1447     </mediaobject>
1448     </figure>
1449     </para>
1450     <para>
1451 jan 2508 Thuban stellt einen Standard-Dialog für die Anzeige einer Tabelle
1452     zur Verfügung. Diese Aansicht hat 5 Elemente:Titel, Selektion,
1453     das Tabellenraster, Exportfunktionen und die Statuszeile.
1454 jan 2309 </para>
1455     <para>
1456 jan 2508 Die Titelzeile identifiziert die Tabelle mit ihrem Namen.
1457 jan 2309 </para>
1458     <para>
1459 jan 2508 Die Selektionsbox erlaubt es dem Benutzer einfache Analysen auf den Daten
1460     durch Vergleiche durchzuführen: Die erste Auswahl ist ein Feldbezeichner
1461     der Tabelle, die zweite Auswahl bestimmt den Typ des Vergleichs.
1462     Die dritte Auswahl kann entweder ein bestimmter Wert (interpretiert
1463     als Zahl oder als Zeichenkette abhängig vom Typ des ersten Feldes)
1464     oder ein zweiter Feldbezeichner sein.
1465     D.h. man kann Analysen durchführen wie alle Einträge auswählen bei
1466     denen <literal>bevoelkerung > 10000</literal> oder
1467     <literal>pkw_pro_einwohner < fahrraeder_pro_einwohner</literal>
1468     (beachten Sie, dass die Namen nur exemplarisch sind, dBase Dateien
1469     erlauben nur Bezeichner mit einer maximalen Länge von 11 Zeichen).
1470 jan 2309
1471 jan 2508 Selektionen können kombiniert werden. Entweder bezieht sich
1472     die Selektion auf die zuvor selektierten Einträge oder man kann
1473     eine bestehende Selektion erweitern. Voreingestellt ist
1474     einersetzen der bisherigen Selektion.
1475 jan 2309 </para>
1476     <para>
1477 jan 2508 Das Tabellenraster zeigt den Inhalt der Tabelle (pro Zeile ein Eintrag).
1478     Selektionen sind hervorgehoben. Die Grösse der Zeiken und Spalten kann
1479     verändert werden.
1480 jan 2309 </para>
1481     <para>
1482 jan 2508 Der Inhalt einer Tabelle kann in eine Datei exportiert werden,
1483     entweder im dBase format (DBF) oder als kommaseparierte Werte
1484     (CSV). Der.
1485     <guibutton>Export</guibutton> Knopf startet einen Dialog
1486     zur Angabe des Pfades und des Namens der Datei.
1487     Der Export-Typ wird durch die Namenserwiterung spezifiziert
1488     (entweder .dbf oder .csv).
1489 jan 2309
1490 jan 2508 Der Knopf <guibutton>Exportiere Selektion</guibutton> funktioniert
1491     ähnlich, exportiert aber nur die aktuelle Selektion.
1492 jan 2309
1493 jan 2508 Der <guibutton>Schliessen</guibutton> Knopf schliesst das
1494     Fenster mit der Tabellenansicht. Dies ist nicht zu verwechseln mit
1495     dem Menüpunkt
1496 jan 2309 <menuchoice>
1497 jan 2508 <guimenu>Tabelle</guimenu>
1498     <guimenuitem>Schliessen</guimenuitem>
1499     </menuchoice> welcher die Tabelle aus Thuban entfernt.
1500 jan 2309 </para>
1501     <para>
1502 jan 2508 Die Statuszeile zeigt einige statistische Informationen zu
1503     der Tabelle sowie zu Selektionsergebnisse an.
1504 jan 2309 </para>
1505     </section>
1506    
1507 jan 2508 <section><title>Allgemeine Funktionalität (Menü Tabelle)</title>
1508 jan 2309 <para>
1509 jan 2508 Die allgemeinen Funktionen wirken sich auf alle geöffneten Tabellen
1510     aus. Attributtabellen werden wie normale Tabellen behandelt (mit der
1511     Ausnahme dass diese nicht geschlossen werden können).
1512 jan 2309 </para>
1513 jan 2508 <section><title>Öffnen</title>
1514 jan 2309 <para>
1515 jan 2508 Der Menüpunkt
1516 jan 2309 <menuchoice>
1517 jan 2508 <guimenu>Tabelle</guimenu>
1518     <guimenuitem>Öffnen</guimenuitem>
1519     </menuchoice>
1520     startet einen Dateiselektionsdialog für die Auswahl
1521     einer dBase-Datei. Diese wird als nur-lesbar in Thuban
1522     geladen.
1523     Mit <guibutton>OK</guibutton> wird die ausgewählte Datei
1524     geladen und eine entsprechende Tabellenansicht geöffnet.
1525 jan 2309 </para>
1526     </section>
1527    
1528 jan 2508 <section><title>Schliessen</title>
1529 jan 2309 <para>
1530 jan 2508 Der Menüpunkt
1531     <menuchoice>
1532     <guimenu>Tabelle</guimenu>
1533     <guimenuitem>Schliessen</guimenuitem>
1534     </menuchoice>
1535     startet einen Dialog welcher alle derzeit geöffneten Datentabellen
1536     (die geladen wurden über
1537 jan 2309 <menuchoice>
1538 jan 2508 <guimenu>Tabelle</guimenu>
1539     <guimenuitem>Öffnen</guimenuitem>
1540     </menuchoice>).
1541     Die gewählten Tabellen werden nach Bestätigung aus Thuban
1542     entfernt.
1543     Da die Tabellen als nur-lesend geöffnet wurden, wird
1544     der Inhalt der Tabellen nicht verändert.
1545 jan 2309
1546 jan 2508 Sämtliche offenen Tabellenansichten für diese
1547     Tabellen werden ebenfalls geschlossen.
1548 jan 2309
1549 jan 2508 Tabellen die bei Verknüpfungen verwendet werden
1550     können nicht geschlossen werden.
1551 jan 2309 </para>
1552     </section>
1553    
1554 jan 2508 <section><title>Umbenennen</title>
1555 jan 2309 <para>
1556     <menuchoice>
1557 jan 2508 <guimenu>Tabelle</guimenu>
1558     <guimenuitem>Umbenennen</guimenuitem>
1559     </menuchoice> ändert den Tabellentitel.
1560 jan 2309 </para>
1561     </section>
1562    
1563 jan 2508 <section><title>Anzeigen</title>
1564 jan 2309 <para>
1565 jan 2508 Der Menüpunkt
1566 jan 2309 <menuchoice>
1567 jan 2508 <guimenu>Tabelle</guimenu>
1568     <guimenuitem>Anzeigen</guimenuitem>
1569 jan 2309 </menuchoice>
1570 jan 2508 öffnet einen Dialog mit der Liste der verfügbaren
1571     Tabellen (explizit geladene Tabellen, Attributtabellen,
1572     Ergebnisse aus Verknüpfungen).
1573     Die ausgewählten Tabellen werden nach der
1574     Bestätigung mit
1575 jan 2521 <guibutton>OK</guibutton> in Tabellenansichten dargestellt.
1576 jan 2309 </para>
1577     </section>
1578    
1579 jan 2521 <section><title>Verbinden</title>
1580 jan 2309 <para>
1581     <figure>
1582 jan 2521 <title>Verbinde Tabellen</title>
1583 jan 2309 <mediaobject>
1584     <imageobject><imagedata fileref="../images/7_2_5_join.png" format="PNG" scale="&imgscale;"/></imageobject>
1585     <imageobject><imagedata fileref="./images/7_2_5_join.eps" format="EPS" scale="&imgscale;"/></imageobject>
1586     </mediaobject>
1587     </figure>
1588     </para>
1589     <para>
1590 jan 2521 Der Menüpunkt
1591 jan 2309 <menuchoice>
1592 jan 2521 <guimenu>Tabelle</guimenu>
1593     <guimenuitem>Verbinden</guimenuitem>
1594 jan 2309 </menuchoice>
1595 jan 2521 startet einen Dialog für die Angabe der beiden Tabellen die
1596     verbunden werdn sollen. Das Ergebnis der Verbindung ist eine
1597     neue Tabelle mit der Bezeichnung
1598     'Join of "linke Tabelle" and "rechte Tabelle"'.
1599 jan 2309
1600 jan 2521 Der Dialog erlaubt es die beiden zu verbindenden Tabellen sowie
1601     die beiden Felder anzugeben über die die Verbindung hergestellt
1602     werden soll. Als Voreinstellung beinhaltet die neue Tabelle
1603     nur die Einträge für die entsprechende Übereinstimmungen
1604     vorlagen.
1605 jan 2309
1606 jan 2521 Wollen Sie die Einträge der linken Tabelle erhalten, so können
1607     Sie eine äussere Verbindung erstellen. Die Felder der rechten
1608     Tabelle für Einträge ohne Übereinstimmung werden in diesem
1609     Fall aufgefüllt mit dem Wert <varname>None</varname>.
1610 jan 2309 </para>
1611     </section>
1612    
1613     </section>
1614 jan 2521 <section><title>Attribut-Tabellen</title>
1615 jan 2309 <para>
1616 jan 2521 Um klarer zwischen den beiden Tabellen-Typen (Daten und Attribute) zu
1617     unterscheiden, bietet Thuban die Funktionalität für die Attribut-Tabellen
1618     unter dem Menü
1619     <menuchoice><guimenu>Ebene</guimenu></menuchoice> an.
1620 jan 2309 </para>
1621    
1622 jan 2521 <section><title>Zeige Tabelle</title>
1623 jan 2309 <para>
1624     <menuchoice>
1625 jan 2521 <guimenu>Ebene</guimenu>
1626     <guimenuitem>Zeige Tabelle</guimenuitem>
1627 jan 2309 </menuchoice>
1628 jan 2521 öffnet die Attribut-Tabelle für die aktuell aktive Ebene in
1629     einer Tabellenansicht.
1630 jan 2309
1631 jan 2521 Eine zusätzliche Funktionalität bei diesen Tabellenansichten
1632     ist, dass bei Selektionen die korrespondierenden Objekte
1633     auf der Karte unmittelbar hervorgehoben werden.
1634 jan 2309 </para>
1635     </section>
1636    
1637 jan 2521 <section><title>Verbinde Tabelle</title>
1638 jan 2309 <para>
1639     Unlike the join described above, the join does not result in a
1640     new table. The attribute table of the currently active layer is the
1641     left table and other tables are joined to this table. The results of
1642     the join are available for classification.
1643    
1644     As a consequence, the join cannot result in fewer
1645     records than the source attribute table. The user is warned if the
1646     right table does not fulfill this constraint. An outer join must be
1647     used in such cases.
1648     </para>
1649     </section>
1650    
1651     <section><title>Unjoin Table</title>
1652     <para>
1653     As said above, a normal table cannot be closed while it is still
1654     used in a join. While the joined table resulting from a join of
1655     normal tables can be simply closed (and thereby dereferencing
1656     the source tables), this is not possible for attribute tables.
1657    
1658     Hence joins on attribute tables must be solved explicitly. This is
1659     what the
1660     <menuchoice>
1661     <guimenu>Layer</guimenu>
1662     <guimenuitem>Unjoin Table</guimenuitem>
1663     </menuchoice>
1664     item is used for: The last join for the currently
1665     active layer is solved.
1666     </para>
1667     </section>
1668     </section>
1669     </chapter>
1670    
1671     <chapter><title>Extensions</title>
1672     <para>
1673     Thuban is designed to be extensible. The term Extension is used as a
1674     general term for anything that extends Thuban.
1675     This chapter introduces into some oppportunities how to add and
1676     handle extra functionality developed by your own or third parties.
1677     </para>
1678    
1679     <section><title>Add personal extensions via thubanstart.py</title>
1680     <para>
1681     After Thuban has been started for the first time, a directory
1682     .thuban is created within your home directory.
1683     There you can add a file thubanstart.py which will be imported
1684     by Thuban at start-up. It is recommended to add only import-statements
1685     to this file to keep the actual code of extensions separate.
1686     </para>
1687     <para>
1688     The modules to import must either be found through the environment
1689     variable PYTHONPATH or directly be placed into the .thuban-directory.
1690     </para>
1691     <para>
1692     As an example, copy the file examples/simple_extensions/hello_world.py
1693     of the Thuban source code into the .thuban-directory of your home
1694     directory. Now add add the statement import hello_world to the
1695     file thubanstart.py and run Thuban. You will notice an additional
1696     menu <menuchoice><guimenu>Extensions</guimenu></menuchoice> where
1697     the new item for the Hello-World extension is placed - select it
1698     to see the Hello-World message.
1699     </para>
1700     </section>
1701    
1702     <section><title>Extensions included in Thuban package</title>
1703     <para>
1704     The extensions described in this section are part of the
1705     Thuban package, but not activated by default.
1706     You will find them in the Thuban installation directory
1707     under <literal>Extensions/</literal>. Activate them as personal
1708     extensions via PYTHONPATH as described in the previous section.
1709     Stable extensions will appear under the menu
1710     <menuchoice><guimenu>Extensions</guimenu></menuchoice> and
1711     extensions which are in experimental state and therefore
1712     not fully functional under
1713     <menuchoice><guimenu>Experimental</guimenu></menuchoice>.
1714     </para>
1715    
1716     <section><title>Stable extensions</title>
1717     <para>
1718     These extensions provide extra-functionality to Thuban
1719     that has not (yet) been integrated in the main application.
1720     They are considered to be free of bugs, but may be
1721     further polished with helpful user interactions.
1722     </para>
1723 bernhard 2482 <section><title>gns2shp</title>
1724 jan 2309 <para>
1725     This tool converts data of the Geospatial Names Server
1726     (GNS, see <ulink url="http://www.nima.mil/gns"/>)
1727     into Shapefile format.
1728     The above web-site offer to download named places
1729     information grouped by countries for all of the world
1730     except USA for which other data are provided.
1731     </para>
1732     <para>
1733     If you download and unpack a package, you will have
1734     a text-file with suffix .txt.
1735     Selecting such a file via gns2shp will create the
1736     corresponding Shapefile with the same basename and
1737     place it in the same direcory. Afterwards it
1738     is automatically loaded into Thuban.
1739     The Shapefile will not automatically be delete afterwards.
1740     </para>
1741     <para>
1742     The gns2shp.py module can also be executed on the
1743     command line for batch processing purposes.
1744     </para>
1745     <para>
1746     A sample (<literal>ls.txt</literal> for Liechtenstein)
1747     is included in the directory
1748     <literal>Extensions/gns2shp/test</literal>.
1749     </para>
1750 bernhard 2482 </section>
1751     <section><title>SVG Export</title>
1752     <para>
1753     Map and legend can be exported separately in the
1754     Thuban-Map-SVG format.
1755     You get files that comply with
1756     the Scalable Vector Graphics (SVG) 1.1 Specification
1757     and can be read by many vector drawing applications.
1758     </para>
1759     <para>
1760     Goal of svgexport is to provide
1761     the start of a printing pipeline for Thuban.
1762     For this purpose the written Thuban-Map-SVG files
1763     contain information that can be used in postprocessing.
1764     Typically a general vector drawing application is
1765     more powerful then a geographic information viewer;
1766     e.g. having much fancier symbols and fonts.
1767     Also users benefit much more when learning to use a
1768     more general application they can also use for other
1769     tasks. So the charming idea is to enable
1770     the drawing application to postprocess a Thuban maps.
1771     So thee xtra information in the format will make it
1772     possible to export from Thuban and if a few geoobjects
1773     change, and keep the general layout and style
1774     of the full map in the vector drawing appplication.
1775     </para>
1776     <para>
1777     Markus Rechtien has developed a prototype of this
1778     printing pipline as his Diplom thetis, showing
1779     the feasability of Bernhard Reiter's concept.
1780     Scripts exist for the drawing application Skencil
1781     (<ulink url="http://www.skencil.org"/>).
1782     </para>
1783     <para>
1784     Technical notes: the names of the layers are used
1785     as base for ids within the SVG format.
1786     If you try to export with two layers having
1787     the same name, you will get a name clash error.
1788     Just change one of the layer names and try again.
1789     </para>
1790     </section>
1791 jan 2309 </section>
1792     <section><title>Experimental extensions</title>
1793     <para>
1794     All all of these functions have to be handled with care,
1795     since they are neither complete nor well tested.
1796     They are to be seen as a proof-of-concept and may
1797     additionally in some cases of practical help.
1798     </para>
1799     <para>
1800     Any interest on further improvement of these extensions
1801     should be communicated towards the developer and user
1802     community.
1803     </para>
1804    
1805     <section><title>importAPR</title>
1806     <para>
1807     This command offer to load an ESRI® ArcView® project
1808     file (suffix .apr) and convert it for use within Thuban.
1809     After selecting a apr-file to load, a list
1810     will be presented that offers to select one of the views
1811     of the apr-file, provided there is more than one.
1812     Furthermore, the Session Info-Tree is extended with
1813     a complete representation of the parsed apr-file.
1814     </para>
1815     <para>
1816     The legend of Thuban does not yet cover all of the elements as
1817     supported by the legend of ArcView®. Therefore, the Thuban
1818     map will look different. Furthermore, the apr-format is
1819     a proprietary format, not openly documented.
1820     Therefore, the interpretation is
1821     partly based on reverse engeneering and good guessing.
1822     </para>
1823     <para>
1824     The file-paths within the apr-file may not fit and potentially
1825     are subject to fix in the apr-file. You can do this
1826     applying any text editor. The paths are either absolute
1827     or relative from where Thuban has been started.
1828     </para>
1829     <para>
1830     A sample for the Iceland data is included as
1831     <literal>Extensions/importAPR/samples/iceland.apr</literal>.
1832     The file-paths are relative from the Thuban main directory.
1833     </para>
1834     </section>
1835     </section>
1836     </section>
1837    
1838     <section><title>Writing simple extensions</title>
1839     <para>
1840     Writing an extension for Thuban basically means to
1841     implement the extra functionality in Python with all of the
1842     Thuban classes, methods and variables available.
1843     </para>
1844     <para>
1845     All classes and their methods are documented in the source code
1846     (see their doc-strings). Here is an example from
1847     Thuban/Model/layer.py that describes some of the methods
1848     of a Layer object:
1849     </para>
1850     <programlisting>
1851     <![CDATA[
1852     class BaseLayer(TitledObject, Modifiable):
1853    
1854     """Base class for the layers."""
1855    
1856     def __init__(self, title, visible = True, projection = None):
1857     """Initialize the layer.
1858    
1859     title -- the title
1860     visible -- boolean. If true the layer is visible.
1861     """
1862     TitledObject.__init__(self, title)
1863     Modifiable.__init__(self)
1864     self.visible = visible
1865     self.projection = projection
1866    
1867     def Visible(self):
1868     """Return true if layer is visible"""
1869     return self.visible
1870    
1871     def SetVisible(self, visible):
1872     """Set the layer's visibility."""
1873     self.visible = visible
1874     self.issue(LAYER_VISIBILITY_CHANGED, self)
1875    
1876     def HasClassification(self):
1877     """Determine if this layer support classifications."""
1878     ...
1879     ]]>
1880     </programlisting>
1881     <para>
1882     This example intends to give you an impression of the
1883     source-code-level documentation.
1884     You have to make yourself familiar with
1885     the Python programming language to understand some special
1886     code elements.
1887     </para>
1888     <section><title>hello_world.py</title>
1889     <para>
1890     Traditionally, the first example should welcome the world.
1891     Most of the code handles the frame for integrating a menu
1892     item into Thuban while the actual raising of a message
1893     is done in a single line.
1894     </para>
1895     <programlisting>
1896     <![CDATA[
1897     # Copyright (C) 2003 by Intevation GmbH
1898     # Authors:
1899     # Jan-Oliver Wagner <[email protected]>
1900     #
1901     # This program is free software under the GPL (>=v2)
1902     # Read the file COPYING coming with Thuban for details.
1903    
1904     """
1905     Extend Thuban with a sample Hello World to demonstrate simple
1906     extensions.
1907     """
1908    
1909     __version__ = '$Revision$'
1910    
1911     # use _() already now for all strings that may later be translated
1912     from Thuban import _
1913    
1914     # Thuban has named commands which can be registered in the central
1915     # instance registry.
1916     from Thuban.UI.command import registry, Command
1917    
1918     # The instance of the main menu of the Thuban application
1919     # See Thuban/UI/menu.py for the API of the Menu class
1920     from Thuban.UI.mainwindow import main_menu
1921    
1922     def hello_world_dialog(context):
1923     """Just raise a simple dialog to greet the world.
1924    
1925     context -- The Thuban context.
1926     """
1927     context.mainwindow.RunMessageBox(_('Hello World'), _('Hello World!'))
1928    
1929    
1930     # create a new command and register it
1931     registry.Add(Command('hello_world', _('Hello World'), hello_world_dialog,
1932     helptext = _('Welcome everyone on this planet')))
1933    
1934     # find the extensions menu (create it anew if not found)
1935     extensions_menu = main_menu.FindOrInsertMenu('extensions', _('E&xtensions'))
1936    
1937     # finally bind the new command with an entry in the extensions menu
1938     extensions_menu.InsertItem('hello_world')
1939     ]]>
1940     </programlisting>
1941     </section>
1942     <section><title>Registering a Command</title>
1943     <para>
1944     Mainly, our new function has to be registered to the Thuban
1945     framework in order to connect it to the menu. A registered
1946     command can also be connected to e.g. a toolbar button.
1947     </para>
1948     <para>
1949     The instances and classes for this are imported at the beginning.
1950     Any code not inside a method or class is directly executed when
1951     the source-code module is imported. Therefore, the second
1952     part of this example consist of the plain statements to create a new
1953     Command and to add it to the menu.
1954     </para>
1955     <para>
1956     By convention, it looks for a menu registered as ``extensions'' to
1957     insert the new command. If it does not exist yet, it gets created.
1958     It is advisable to copy this code for any of your extensions.
1959     </para>
1960     </section>
1961     <section><title>The Thuban context</title>
1962     <para>
1963     A registered command that is called, always receives the
1964     Thuban context. This instance provides our method with
1965     hook references to all important components of the Thuban
1966     application.
1967     </para>
1968     <para>
1969     In the example hello_world.py, our function uses the
1970     mainwindow component which offers a method to raise a
1971     message dialog. In total there are three hooks:
1972     <itemizedlist>
1973     <listitem>
1974     <para>application:
1975     This object is the instance of the Thuban Application class.
1976     Except maybe for loading or savinf sessions, you will not
1977     need this object for a simple extension.
1978     See Thuban/UI/application.py for the API.
1979     </para>
1980     </listitem>
1981     <listitem>
1982     <para>session:
1983     The instance of the current session. It manages the sessions'
1984     map and tables. You can set and remove the map or tables.
1985     In may also get the map object. However, you should know that
1986     internally it is already prepared to handle many maps.
1987     Therfore, currently you would always receive a list with exactlty
1988     one element. In the future, if there are more than one map,
1989     you will not know which one is the currently display one and
1990     therefore you should use the mainwindow as hook to find
1991     the currently displayed map.
1992     See Thuban/Model/session.py for the API.
1993     </para>
1994     </listitem>
1995     <listitem>
1996     <para>
1997     mainwindow: The mainwindow object is central to manage various
1998     GUI things such as the Legend sub-window. Most notably,
1999     you get access to the canvas which is the window part where
2000     the map is drawn. The canvas knows, which map it currently
2001     draws and therefore you get the current map via
2002     context.mainwindow.canvas.Map().
2003     See Thuban/UI/mainwindow.py for the API.
2004     </para>
2005     </listitem>
2006     </itemizedlist>
2007     </para>
2008     </section>
2009     </section>
2010     </chapter>
2011    
2012     <chapter><title>Trouble Shooting</title>
2013     <para>
2014     Here are a few problems that users have encountered when first using Thuban.
2015     </para>
2016     <para>
2017    
2018     <itemizedlist>
2019     <listitem>
2020     <para>After adding two or more layers nothing is drawn in the map window.
2021     </para>
2022     <para>
2023     This is probably because the layers have different projections. Projections
2024     must be set on all layers and on the map itself if the layers' projections
2025     are different.
2026     </para>
2027     </listitem>
2028    
2029     <listitem>
2030     <para>Thuban crashes on startup with the error
2031     <literal>NameError: global name 'False' is not defined</literal>.
2032     </para>
2033     <para>
2034     <varname>True</varname> and <varname>False</varname> were only introduced
2035     in Python 2.2.1. Thuban depends on at least Python 2.2.1.
2036     </para>
2037     </listitem>
2038    
2039     <listitem>
2040     <para>After compiling Thuban, Thuban crashes with an error similar to
2041     <literal>
2042     ImportError: /usr/local//lib/thuban/Thuban/../Lib/wxproj.so: undefined symbol: __gxx_personality_v0
2043     </literal>
2044     </para>
2045     <para>
2046     Thuban depends on the wxWindows library. If Thuban is compiled with an
2047     incompatible version of the compiler than wxWindows was compiled with
2048     this error may occur. Try compiling with a different version of the
2049     compiler.
2050     </para>
2051     </listitem>
2052     </itemizedlist>
2053     </para>
2054     <para>
2055     If an error occurs Thuban will display a dialog indicating the error
2056     before closing. The text should be copied and reported to the
2057     <ulink url="http://thuban.intevation.org/bugtracker.html">
2058     Intevation bugtracker
2059     </ulink>.
2060     More information about the system is available from
2061     <menuchoice><guimenu>Help</guimenu><guimenuitem>About</guimenuitem></menuchoice> box.
2062     This should also be included in the bug report.
2063     <figure>
2064     <title>Error Dialog</title>
2065     <mediaobject>
2066     <imageobject><imagedata fileref="../images/8_int_error.png" format="PNG" scale="&imgscale;"/></imageobject>
2067     <imageobject><imagedata fileref="./images/8_int_error.eps" format="EPS" scale="&imgscale;"/></imageobject>
2068     </mediaobject>
2069     </figure>
2070     </para>
2071    
2072     </chapter>
2073    
2074     <appendix><title>Supported Data Sources</title>
2075     <para>
2076     </para>
2077     <variablelist>
2078     <varlistentry>
2079     <term>Shapefile</term>
2080     <listitem>
2081     <para>
2082     The Shapefile format has become a standard format for saving
2083     geographic vector information. It supports polygons, lines, and
2084     points.
2085    
2086     <ulink url="http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf">
2087     Technical Specification.
2088     </ulink>
2089     </para>
2090     </listitem>
2091     </varlistentry>
2092    
2093     <varlistentry>
2094     <term>dBase file</term>
2095     <listitem>
2096     <para>
2097     dBase files are used to store the attributes for each layer. This
2098     is closely associated with the Shapefile format. For detailed
2099     specifications on the correct format of a dBase file used with
2100     Thuban please see the Technical Specification for the Shapefile
2101     format above.
2102     </para>
2103     </listitem>
2104     </varlistentry>
2105    
2106     <varlistentry>
2107     <term>PostGIS</term>
2108     <listitem>
2109     <para>
2110     PostGIS adds support for geographic objects to the PostgreSQL
2111     object-relational database. Different layer types (as for Shapefiles)
2112     are supported. <ulink url="http://postgis.refractions.net">PostGIS
2113     Homepage</ulink>
2114     </para>
2115     </listitem>
2116     </varlistentry>
2117    
2118     <varlistentry>
2119     <term>Raster files</term>
2120     <listitem>
2121     <para>
2122     Binding the GDAL library Thuban supports numerous raster file formats,
2123     see <ulink url="http://www.remotesensing.org/gdal/formats_list.html">
2124     GDAL format list</ulink> for details.</para>
2125    
2126     <para>Most commonly used is the <emphasis>TIFF/GeoTIFF</emphasis>
2127     format: Raster maps are provided as TIFF images, with an additional
2128     "world file" storing the geographic reference (usually with an
2129     extension ".tfw").
2130     </para>
2131     </listitem>
2132     </varlistentry>
2133    
2134     </variablelist>
2135     </appendix>
2136    
2137     <appendix><title>Working with PostGIS</title>
2138     <para>
2139     This section focusses on the use of PostGIS in the Thuban framework. For
2140     installation and maintenance of spatial databases we refer to the
2141     <ulink url="http://postgis.refractions.net">PostGIS Homepage</ulink>.
2142     The Thuban PostGIS support requires the
2143     <ulink url="http://initd.org/software/psycopg">psycopg module</ulink>.
2144     </para>
2145    
2146     <para>
2147     Working with PostGIS Databases is seperated into two steps:
2148     <itemizedlist>
2149     <listitem><para>Opening a Database Connection</para></listitem>
2150     <listitem><para>Loading a Data Layer</para></listitem>
2151     </itemizedlist>
2152     </para>
2153     <section><title>Opening a Database Connection</title>
2154     <para>
2155     Before a data layer can be loaded from a PostGIS database a
2156     connection with the database has to be established.
2157     <menuchoice>
2158     <guimenu>Session</guimenu>
2159     <guimenuitem>Database Connections ...</guimenuitem>
2160     </menuchoice> opens a dialog for database connection
2161     management. In the dialog new connections can be added
2162     and existing ones can be removed. Removing a database
2163     connection is not possible if the map still displays a
2164     layer provided by this database connection.
2165     </para>
2166     <figure>
2167     <title>Database Management Dialog</title>
2168     <mediaobject>
2169     <imageobject><imagedata fileref="../images/app_postgis_db_management.png" format="PNG" scale="&imgscale;"/></imageobject>
2170     <imageobject><imagedata fileref="./images/app_postgis_db_management.eps" format="EPS" scale="&imgscale;"/></imageobject>
2171     </mediaobject>
2172     </figure>
2173    
2174     <para>
2175     To add a new database connection to the session a dialog is
2176     opened to specify the relevant connection data. Enter all
2177     data relevant for your connection. If the connection fails
2178     the dialog remains open and provides some hints on the failure.
2179     </para>
2180     <figure>
2181     <title>Add Database Dialog</title>
2182     <mediaobject>
2183     <imageobject><imagedata fileref="../images/app_postgis_db_add.png" format="PNG" scale="&imgscale;"/></imageobject>
2184     <imageobject><imagedata fileref="./images/app_postgis_db_add.eps" format="EPS" scale="&imgscale;"/></imageobject>
2185     </mediaobject>
2186     </figure>
2187    
2188     <para>
2189     It is important to note that information on database connections are
2190     also stored with the session. Passwords are NOT stored. If you load a
2191     session with database connections you are asked to enter these
2192     passwords again where required.
2193     </para>
2194    
2195     </section>
2196    
2197     <section><title>Loading a Data Layer</title>
2198     <para>
2199     Data layers as part of a map are loaded with the
2200     <menuchoice>
2201     <guimenu>Map</guimenu>
2202     <guimenuitem>Add Database Layer ...</guimenuitem>
2203     </menuchoice> menu item. A dialog is raised displaying two choice
2204     lists. In the left list all connected databases are shown.
2205     Highlighting
2206     one of these and issuing a retrieval results in a list of available
2207     layer tables from that database. After selection of a
2208     layer the dialog is closed.
2209     </para>
2210     <figure>
2211     <title>Add Database Dialog</title>
2212     <mediaobject>
2213     <imageobject><imagedata fileref="../images/app_postgis_add_layer.png" format="PNG" scale="&imgscale;"/></imageobject>
2214     <imageobject><imagedata fileref="./images/app_postgis_add_layer.eps" format="EPS" scale="&imgscale;"/></imageobject>
2215     </mediaobject>
2216     </figure>
2217    
2218     </section>
2219    
2220     </appendix>
2221    
2222     <appendix><title>Supported Projections</title>
2223     <para>
2224     The following types of projections are directly support by
2225     Thuban. The specific values for each are provided by the user
2226     to create custom projections. Thuban comes with predefined
2227     projections which are available through the Projections dialog.
2228     </para>
2229     <itemizedlist>
2230     <listitem>
2231     <para>Geographic</para>
2232     <itemizedlist>
2233     <listitem><para><literal>Ellipsoid</literal></para></listitem>
2234     <listitem><para>
2235     <literal>Source Data</literal>: either Degrees or Radians
2236     </para></listitem>
2237     </itemizedlist>
2238     </listitem>
2239     <listitem>
2240     <para>Lambert Conic Conformal</para>
2241     <itemizedlist>
2242     <listitem><para><literal>Ellipsoid</literal></para></listitem>
2243     <listitem><para><literal>Latitude of 1st standard parallel</literal></para></listitem>
2244     <listitem><para><literal>Latitude of 2nd standard parallel</literal></para></listitem>
2245     <listitem><para><literal>Central Meridian</literal></para></listitem>
2246     <listitem><para><literal>Latitude of Origin</literal></para></listitem>
2247     <listitem><para><literal>False Easting</literal> (meters)</para></listitem>
2248     <listitem><para><literal>False Northing</literal> (meters)</para></listitem>
2249     </itemizedlist>
2250     </listitem>
2251     <listitem>
2252     <para>Transverse Mercator</para>
2253     <itemizedlist>
2254     <listitem><para><literal>Ellipsoid</literal></para></listitem>
2255     <listitem><para><literal>Latitude</literal>of origin</para></listitem>
2256     <listitem><para><literal>Longitude</literal>at central meridian</para></listitem>
2257     <listitem><para><literal>Scale Factor</literal>at central meridian</para></listitem>
2258     <listitem><para><literal>False Easting</literal> (meters)</para></listitem>
2259     <listitem><para><literal>False Northing</literal> (meters)</para></listitem>
2260     </itemizedlist>
2261     </listitem>
2262     <listitem>
2263     <para>Universal Transverse Mercator</para>
2264     <itemizedlist>
2265     <listitem><para><literal>Ellipsoid</literal></para></listitem>
2266     <listitem><para><literal>Zone</literal>
2267     (can be guessed appling the Propose button)</para></listitem>
2268     <listitem><para><literal>Southern Hemisphere</literal> flag</para></listitem>
2269     </itemizedlist>
2270     </listitem>
2271     </itemizedlist>
2272    
2273     <para>
2274     Thuban comes with a sample set of map projections for various
2275     European countries. Apart from the basic projection they differ
2276     especially in their parameterization:
2277     </para>
2278     <itemizedlist>
2279     <listitem><para>Belgium Datum 1972 (Lambert Conic Conformal)</para>
2280     </listitem>
2281    
2282     <listitem><para>Gauss-Boaga Zone 1 (Italy, Transverse Mercartor)</para>
2283     </listitem>
2284    
2285     <listitem><para>Gauss-Krueger Zone 2 (Germany, Transverse Mercartor)
2286     </para>
2287     </listitem>
2288    
2289     <listitem><para>Reseau Geodesique Francaise
2290     (France, Lambert Conic Conformal)</para>
2291     </listitem>
2292    
2293     <listitem><para>UK National Grid (United Kingdom, Transverse Mercartor)
2294     </para>
2295     </listitem>
2296     </itemizedlist>
2297    
2298     <para>
2299     Thuban uses the comprehensive PROJ library for projections. PROJ provides
2300     more than the four commonly used projections described above. If needed
2301     Thuban can be easily extended to a new projection covered by PROJ.
2302     </para>
2303     </appendix>
2304    
2305     </book>
2306    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26