1 |
<?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 |
<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 |
|
467 |
</chapter> |
468 |
|
469 |
<chapter><title>Session Management</title> |
470 |
|
471 |
<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 |
|
486 |
<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 |
|
499 |
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 |
|
505 |
<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 |
|
526 |
<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 |
</chapter> |
548 |
|
549 |
<chapter><title>Karten Management</title> |
550 |
<para> |
551 |
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 |
</para> |
555 |
<para> |
556 |
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 |
<menuchoice> |
560 |
<guimenu>Karte</guimenu> |
561 |
<guimenuitem>Umbennen</guimenuitem> |
562 |
</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 |
<textobject> <phrase>Karte umbennen</phrase> </textobject> |
573 |
</inlinemediaobject> |
574 |
</para> |
575 |
|
576 |
<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 |
<itemizedlist> |
591 |
<listitem> |
592 |
<para> |
593 |
Shape Ebenen können zur Karte hinzugefügt werden mit |
594 |
<menuchoice> |
595 |
<guimenu>Karte</guimenu> |
596 |
<guimenuitem>Ebene hinzufügen</guimenuitem> |
597 |
</menuchoice>. |
598 |
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 |
<para> |
606 |
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 |
</listitem> |
612 |
|
613 |
<listitem> |
614 |
<para>Datenbankebenen können zu Karte hinzugefügt werden mit |
615 |
<menuchoice> |
616 |
<guimenu>Karte</guimenu> |
617 |
<guimenuitem>Datenbankebene hinzufügen</guimenuitem> |
618 |
</menuchoice>. |
619 |
Es wird ein Dialog mit zwei Listen geöffnet. |
620 |
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 |
</para> |
626 |
<para> |
627 |
Siehe auch Anhang ``Mit PostGIS arbeiten'' für weitere Details. |
628 |
</para> |
629 |
</listitem> |
630 |
|
631 |
<listitem> |
632 |
<para> |
633 |
Bildebenen können zur Karte hinzugefügt werden mit |
634 |
<menuchoice> |
635 |
<guimenu>Karte</guimenu> |
636 |
<guimenuitem>Bildebene hinzufügen</guimenuitem> |
637 |
</menuchoice>. |
638 |
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 |
</para> |
644 |
</listitem> |
645 |
</itemizedlist> |
646 |
</section> |
647 |
|
648 |
<section><title>Navigation</title> |
649 |
<para> |
650 |
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 |
</para> |
654 |
<itemizedlist> |
655 |
<listitem> |
656 |
<para> |
657 |
Das ZoomIn Werkzeug |
658 |
<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 |
<textobject> <phrase>ZoomIn Werkzeug</phrase> </textobject> |
666 |
</inlinemediaobject> |
667 |
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 |
</para> |
672 |
</listitem> |
673 |
<listitem> |
674 |
<para> |
675 |
Das ZoomOut Werkzeug |
676 |
<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 |
<textobject> <phrase>ZoomOut Werkzeug</phrase> </textobject> |
684 |
</inlinemediaobject> |
685 |
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 |
</para> |
690 |
</listitem> |
691 |
<listitem> |
692 |
<para> |
693 |
Das Verschieben Werkzeug |
694 |
<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 |
<textobject> <phrase>Verschieben Werkzeug</phrase> </textobject> |
702 |
</inlinemediaobject> |
703 |
gestattet es dem Benutzer die Karte durch klicken und |
704 |
ziehen mit gedrückter Maustaste zu verschieben. |
705 |
</para> |
706 |
</listitem> |
707 |
<listitem> |
708 |
<para> |
709 |
Das Volle Ausdehnung Werkzeug |
710 |
<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 |
<textobject> <phrase>Volle Ausdehnung Werkzeug</phrase> </textobject> |
718 |
</inlinemediaobject> |
719 |
skaliert die Zoom-Stufe so, dass die gesamte sichtbare Karte im |
720 |
Fenster dargestellt wird. |
721 |
</para> |
722 |
</listitem> |
723 |
<listitem> |
724 |
<para> |
725 |
Das Voll Ebenen-Ausdehnung Werkzeug |
726 |
<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 |
<textobject> <phrase>Volle Ebenen-Ausdehnung Werkzeug</phrase> </textobject> |
734 |
</inlinemediaobject> |
735 |
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 |
</para> |
739 |
</listitem> |
740 |
<listitem> |
741 |
<para> |
742 |
Das Volle Shape-Ausdehnung Werkzeug |
743 |
<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 |
<textobject> <phrase>Volle Shape-Ausdehnung Werkzeug</phrase> </textobject> |
751 |
</inlinemediaobject> |
752 |
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 |
</para> |
763 |
</listitem> |
764 |
</itemizedlist> |
765 |
</section> |
766 |
|
767 |
<section><title>Objekt Identifikation</title> |
768 |
<para> |
769 |
Objekte auf der Karte können identifiziert werden über das Identifikations-Werkzeug |
770 |
<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 |
<textobject> <phrase>Identifikations-Werkzeug</phrase> </textobject> |
778 |
</inlinemediaobject>. |
779 |
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 |
</para> |
785 |
</section> |
786 |
|
787 |
<section><title>Objekt mit Label versehen</title> |
788 |
<para> |
789 |
Objekte können über das Label-Werkzeug mit Labeln versehen |
790 |
werden |
791 |
<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 |
<textobject> <phrase>Label Werkzeug</phrase> </textobject> |
799 |
</inlinemediaobject>. |
800 |
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 |
</para> |
808 |
</section> |
809 |
|
810 |
<section><title>Die Legende</title> |
811 |
<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 |
<textobject> <phrase>Legende</phrase> </textobject> |
820 |
</inlinemediaobject> |
821 |
</para> |
822 |
<para> |
823 |
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 |
</para> |
833 |
<para> |
834 |
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 |
</para> |
839 |
|
840 |
<itemizedlist> |
841 |
<listitem> |
842 |
<para> |
843 |
Das Werkzeug |
844 |
<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 |
<textobject> <phrase>Auf die oberste Ebene bewegen</phrase> </textobject> |
852 |
</inlinemediaobject> bewegt die selektierte Ebene auf der Karte |
853 |
nach ganz oben. |
854 |
</para> |
855 |
</listitem> |
856 |
<listitem> |
857 |
|
858 |
<para> |
859 |
Das Werkzeug |
860 |
<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 |
<textobject> <phrase>Eine Ebene nach oben bewegen</phrase> </textobject> |
868 |
</inlinemediaobject> bewegt die selektierte Ebene um einen |
869 |
Schritt nach oben. |
870 |
</para> |
871 |
</listitem> |
872 |
<listitem> |
873 |
|
874 |
<para> |
875 |
Das Werkzeug |
876 |
<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 |
<textobject> <phrase>Eine Ebene nach unten bewegen</phrase> </textobject> |
884 |
</inlinemediaobject> bewegt die selektierte Ebene um einen Schritt |
885 |
nach unten. |
886 |
</para> |
887 |
|
888 |
</listitem> |
889 |
<listitem> |
890 |
<para> |
891 |
Das Werkzeug |
892 |
<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 |
<textobject> <phrase>Auf die unterste Ebene bewegen</phrase> </textobject> |
900 |
</inlinemediaobject> bewegt die selektierte Ebene auf |
901 |
der Karte nach ganz unten. |
902 |
</para> |
903 |
|
904 |
</listitem> |
905 |
<listitem> |
906 |
<para> |
907 |
Das Sichtbarkeits-Werkzeug |
908 |
<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 |
<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 |
</para> |
919 |
|
920 |
</listitem> |
921 |
<listitem> |
922 |
<para> |
923 |
Das Unsichtbar-Werkzeug |
924 |
<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 |
<textobject> <phrase>Unsichtbar</phrase> </textobject> |
932 |
</inlinemediaobject> versteckt die aktuell |
933 |
selektierte Ebene auf der Karte. |
934 |
</para> |
935 |
|
936 |
</listitem> |
937 |
<listitem> |
938 |
<para> |
939 |
Das Eigenschaften-Werkzeug |
940 |
<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 |
<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 |
</para> |
952 |
</listitem> |
953 |
</itemizedlist> |
954 |
|
955 |
<para> |
956 |
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 |
</para> |
961 |
|
962 |
<para> |
963 |
<figure> |
964 |
<title>Popup Menü für Ebenen</title> |
965 |
<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 |
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 |
</para> |
978 |
</section> |
979 |
|
980 |
<section><title>Exportieren</title> |
981 |
<para> |
982 |
Auf dem Betriebssystem MS Windows können Karten im Enhanced Metafile Format |
983 |
(<varname>.wmf</varname>) |
984 |
über |
985 |
<menuchoice> |
986 |
<guimenu>Karte</guimenu> |
987 |
<guimenuitem>Export</guimenuitem> |
988 |
</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 |
</para> |
998 |
</section> |
999 |
|
1000 |
<section><title>Drucken</title> |
1001 |
<para> |
1002 |
Eine Karte wird über |
1003 |
<menuchoice> |
1004 |
<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 |
</para> |
1012 |
</section> |
1013 |
|
1014 |
</chapter> |
1015 |
|
1016 |
<chapter><title>Ebenen Management</title> |
1017 |
<para> |
1018 |
</para> |
1019 |
|
1020 |
<section><title>Typen von Ebenen</title> |
1021 |
<para> |
1022 |
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 |
</para> |
1041 |
<para> |
1042 |
Alle Aktionen im Menü |
1043 |
<menuchoice> |
1044 |
<guimenu>Ebene</guimenu> |
1045 |
</menuchoice> beziehen sich auf die in der Legende aktuell |
1046 |
ausgewählten Ebene. |
1047 |
</para> |
1048 |
</section> |
1049 |
|
1050 |
<section><title>Eigenschaften</title> |
1051 |
<para> |
1052 |
Um die Eigenschaften einer Ebene anzusehen muss zunächst eine Ebene |
1053 |
in der Legende selektiert werden. |
1054 |
Die Menüoption |
1055 |
<menuchoice> |
1056 |
<guimenu>Ebene</guimenu> |
1057 |
<guimenuitem>Eigenschaften</guimenuitem> |
1058 |
</menuchoice> öffnet einen Dialog zu den Eigenschaften |
1059 |
der Ebene. |
1060 |
Alle Ebenen haben einen Titel der hier entsprechend geändert werden kann. |
1061 |
Der Typ der Ebene ist ebenfalls ersichtlich. |
1062 |
Handelt es sich um einen Shape-Typ (Polygon, Linie, Punkt) so |
1063 |
wird eine Tabelle für Klassifizierung dargestellt. |
1064 |
Bildebenen haben keineweiteren Eigenschaften als |
1065 |
den Titel und Typ. |
1066 |
</para> |
1067 |
<para> |
1068 |
<figure> |
1069 |
<title>Eigenschaften Fenster</title> |
1070 |
<mediaobject> |
1071 |
<imageobject><imagedata fileref="../images/4_2_layer_properties.png" format="PNG" scale="&imgscale;"/></imageobject> |
1072 |
<imageobject><imagedata fileref="./images/4_2_layer_properties.eps" format="EPS" scale="&imgscale;"/></imageobject> |
1073 |
</mediaobject> |
1074 |
</figure> |
1075 |
</para> |
1076 |
<para> |
1077 |
<figure> |
1078 |
<title>Eigenschaften Fenster</title> |
1079 |
<mediaobject> |
1080 |
<imageobject><imagedata fileref="../images/4_2_raster_layer_properties.png" format="PNG" scale="&imgscale;"/></imageobject> |
1081 |
<imageobject><imagedata fileref="./images/4_2_raster_layer_properties.eps" format="EPS" scale="&imgscale;"/></imageobject> |
1082 |
</mediaobject> |
1083 |
</figure> |
1084 |
</para> |
1085 |
</section> |
1086 |
|
1087 |
<section><title>Sichtbarkeit</title> |
1088 |
<para> |
1089 |
Manchmal ist es nicht erwünscht alle Ebenen gleichzeitig anzuzeigen. |
1090 |
Einige Ebenen könnten etwas länger für den Aufbau brauchen, was |
1091 |
z.B. störend bei schneller Navigation ist. |
1092 |
Jede Ebene kann einzeln an- oder ausgeschaltet werden mit |
1093 |
<menuchoice> |
1094 |
<guimenu>Ebene</guimenu> |
1095 |
<guimenuitem>Zeigen</guimenuitem> |
1096 |
</menuchoice> |
1097 |
bzw. |
1098 |
<menuchoice> |
1099 |
<guimenu>Ebene</guimenu> |
1100 |
<guimenuitem>Verstecken</guimenuitem> |
1101 |
</menuchoice>. |
1102 |
</para> |
1103 |
</section> |
1104 |
|
1105 |
<section><title>Duplizierung</title> |
1106 |
<para> |
1107 |
Ebenen mit allen Eigenschaften inklusive Klassifikation |
1108 |
können dupliziert werden mit |
1109 |
<menuchoice> |
1110 |
<guimenu>Ebene</guimenu> |
1111 |
<guimenuitem>Duplizieren</guimenuitem> |
1112 |
</menuchoice>. Die Duplizierung von Ebenen ist sinnvoll |
1113 |
z.B. wenn eine Ebene auf verschiedene Weise modelliert werden |
1114 |
soll. Obwohl sich die Ebenen direkt überlagern ist es |
1115 |
durch sinnvolle Einstellung der Shape Eigenschaften möglich |
1116 |
mehrer Aspekte gleichzeitig zu visualisieren. |
1117 |
Beispielsweise kann eine Kopie einer Strassen-Ebene |
1118 |
bezüglich der Länge klassifiziert sein und eine |
1119 |
weitere Kopie bezüglich Strassen-Typ. |
1120 |
Wenn dann die Länge durch Farbe und der Typ durch Linienbreite |
1121 |
gesetzt wird, dann ist es möglich beide Eigenschaften zu |
1122 |
visualisieren indem die Kopie für den Typ über die Kopie mit |
1123 |
der Länge gelegt wird. |
1124 |
</para> |
1125 |
</section> |
1126 |
|
1127 |
</chapter> |
1128 |
|
1129 |
<chapter><title>Ebenen-Klassifizierung</title> |
1130 |
<para> |
1131 |
Die Klassifizierung einer Ebene bedeutet das zuordnen von |
1132 |
Zeichenvorschriften zu Shape-Gruppen basierend auf deren Attributen |
1133 |
die in zur Ebene gehörenden Tabelle gespeichert sind. |
1134 |
Es können daher auch nur Shape-Ebenen klassifiziert werden und |
1135 |
keine Bild-Ebenen. |
1136 |
</para> |
1137 |
<para> |
1138 |
Eine Klassifizierung besteht aus mehreren Grupppen. Jede Gruppe |
1139 |
hat einen einzelnen Wert oder einen Wertebereich auf den hin |
1140 |
verglichen wird. Ausserdem hat jede Gruppe eine Zeichenvorschrift |
1141 |
welche bestimmt wie die zugehörigen Shapes dargestellt werden |
1142 |
sollen. |
1143 |
Der Anwender gibt an welches Feld der Tabelle für Klassifizierung |
1144 |
verwendet werden soll. Wird die Karte dann gezeichnet so |
1145 |
wird für jedes Shape der entsprechende Wert aus der Tabelle |
1146 |
geholt und mit den definierten Gruppen-Wertebereichen |
1147 |
verglichen. Es werden dann die Zeichenvorschriften |
1148 |
derjenigen Gruppe benutzt, welche als erstes beim Vergleich |
1149 |
passte. |
1150 |
Dies gestattet es einen visuellen Eindruck z.B. |
1151 |
der räumlichen Verteilung von Objekten mit |
1152 |
bestimmten Eigenschaften zu erhalten. |
1153 |
</para> |
1154 |
<para> |
1155 |
Eine Ebene hat grundsätzlich eine Klassifizierung. |
1156 |
Wird zur Karte eine neue Ebene hinzugefügt, |
1157 |
wird sie mit einer vordefinierten Klassifizierung |
1158 |
versehen. Diese besteht nur aus der einen Gruppe DEFAULT. |
1159 |
Diese Gruppe kann man nicht entfernen, lässt sich aber |
1160 |
verstecken (siehe unten). |
1161 |
Jedes Shape der Ebene, unabhängig von dessen Attributen, wird |
1162 |
diese Gruppe zugeordnet, falls nicht vorher eine andere passt. |
1163 |
</para> |
1164 |
|
1165 |
<section><title>Klassifizierung bearbeiten</title> |
1166 |
<para> |
1167 |
A layer's classification can be modified under the properties dialog |
1168 |
(<menuchoice> |
1169 |
<guimenu>Layer</guimenu> |
1170 |
<guimenuitem>Properties</guimenuitem> |
1171 |
</menuchoice>). The layer's classification field can be set to None, |
1172 |
which simply assigns a DEFAULT group to the classification. No new |
1173 |
groups can be added to the classification if the field is None. |
1174 |
The user must first select a field to classify on. New groups can |
1175 |
be added to the classification with the <guibutton>Add</guibutton> |
1176 |
button. |
1177 |
</para> |
1178 |
<para> |
1179 |
To apply the changes to the map the user can click |
1180 |
either <guibutton>Try</guibutton> or <guibutton>OK</guibutton>. |
1181 |
<guibutton>Try</guibutton> will not close the dialog box, allowing |
1182 |
the user to see how the classification changes the map. |
1183 |
<guibutton>Revert</guibutton> will undo the last classification applied |
1184 |
to the map. <guibutton>OK</guibutton> will commit the changes and |
1185 |
close the dialog. The user will be unable to undo the changes. |
1186 |
<guibutton>Close</guibutton> simply closes the dialog box. If any |
1187 |
changes have not been applied with <guibutton>Try</guibutton> the |
1188 |
changes will not be applied to the map. |
1189 |
</para> |
1190 |
<para> |
1191 |
<figure> |
1192 |
<title>Properties Window</title> |
1193 |
<mediaobject> |
1194 |
<imageobject><imagedata fileref="../images/5_classification.png" format="PNG" scale="&imgscale;"/></imageobject> |
1195 |
<imageobject><imagedata fileref="./images/5_classification.eps" format="EPS" scale="&imgscale;"/></imageobject> |
1196 |
</mediaobject> |
1197 |
</figure> |
1198 |
</para> |
1199 |
<para> |
1200 |
The order of the groups in the classification is significant |
1201 |
except for the DEFAULT group, which remains at the top. When shapes |
1202 |
are matched against groups the matching begins at the first group |
1203 |
after the DEFAULT group so that groups higher in the list will |
1204 |
be checked first. Matching for a |
1205 |
given shape will stop at the first group that matches. The user can |
1206 |
use <guibutton>Move Up</guibutton> and <guibutton>Move Down</guibutton> |
1207 |
to change the order of the groups. The DEFAULT group will always |
1208 |
match a shape that hasn't matched another group. |
1209 |
</para> |
1210 |
<section><title>Visible</title> |
1211 |
<para> |
1212 |
The Visible column has check-boxes that determine whether a |
1213 |
classification group will be displayed in the legend. This is |
1214 |
useful if the user knows that the groups completely cover |
1215 |
the data set and don't want the DEFAULT group to be displayed |
1216 |
in the legend and on a printout. |
1217 |
</para> |
1218 |
</section> |
1219 |
<section><title>Symbols</title> |
1220 |
<para> |
1221 |
Each type of shape has its own type of symbol. Thuban supports three |
1222 |
types of shapes: polygons, lines, and points. Polygons and points |
1223 |
have outline and fill color, while lines have only line color. Each |
1224 |
group has associated symbol properties. To edit the symbol |
1225 |
properties for a group the user can double click on the Symbol |
1226 |
column or select a group and click the |
1227 |
<guibutton>Edit Symbol</guibutton> button. |
1228 |
</para> |
1229 |
</section> |
1230 |
<section><title>Value</title> |
1231 |
<para> |
1232 |
The Value column of the classification table is the value that will |
1233 |
be matched when the map is being drawn. The type of data that can |
1234 |
entered into this field depends on the type of data of the |
1235 |
classification field. |
1236 |
</para> |
1237 |
<para> |
1238 |
If the field is of type Text, anything entered |
1239 |
into the field is valid. The text will be compared literally to the |
1240 |
value of the shape attribute, including case sensitivity. |
1241 |
If the type is Integer, then any valid integer may be entered. In |
1242 |
addition, with special syntax, a range of values can be entered. |
1243 |
A range from <varname>start</varname> to <varname>end</varname> |
1244 |
inclusive is specified like this: <literal>[start;end]</literal>. |
1245 |
The exclusive range is specified like this: |
1246 |
<literal>]start;end[</literal>. Ranges can include infinity like |
1247 |
this: <literal>[-oo;oo]</literal>. Field types can also be of type |
1248 |
Decimal. They represent any rational number and can be used in |
1249 |
ranges as well. |
1250 |
</para> |
1251 |
</section> |
1252 |
<section><title>Label</title> |
1253 |
<para> |
1254 |
By default, the text that is displayed for a group in the legend |
1255 |
is the value for that group. The label can substitute a more |
1256 |
descriptive term in the legend. |
1257 |
</para> |
1258 |
</section> |
1259 |
</section> |
1260 |
|
1261 |
<section><title>Generating Classes</title> |
1262 |
<para> |
1263 |
<figure> |
1264 |
<title>Generate Class</title> |
1265 |
<mediaobject> |
1266 |
<imageobject><imagedata fileref="../images/5_3_genclass.png" format="PNG" scale="&imgscale;"/></imageobject> |
1267 |
<imageobject><imagedata fileref="./images/5_3_genclass.eps" format="EPS" scale="&imgscale;"/></imageobject> |
1268 |
</mediaobject> |
1269 |
</figure> |
1270 |
</para> |
1271 |
<para> |
1272 |
Creating a classification by hand can be tedious. |
1273 |
Thuban, therefore, provides a means of generating an entire |
1274 |
classification at once while still giving the user control over |
1275 |
how it appears. Clicking <guibutton>Generate Class</guibutton> |
1276 |
opens the <varname>Generate Classification</varname> dialog. |
1277 |
Under the <varname>Generate</varname> pull down there are at most |
1278 |
three different ways to generate classifications: |
1279 |
Unique Values, Uniform Distribution, and Quantiles. Some options |
1280 |
may not be available if the data type for the field does not |
1281 |
support them. For instance, <varname>Uniform Distribution</varname> |
1282 |
doesn't make sense for a Text field. |
1283 |
</para> |
1284 |
<para> |
1285 |
For every way of generating a classification, a color scheme must |
1286 |
be selected. Thuban provides several different color schemes that |
1287 |
affect how the group properties change over the classification. |
1288 |
It may be desirable that only certain properties change over the |
1289 |
classification. If the shape type is a polygon or a point then |
1290 |
the <guibutton>Fix Border Color</guibutton> option will be available. |
1291 |
This allows the user to select a border color for all classification |
1292 |
groups. |
1293 |
It is also possible to create a custom color scheme. Selecting |
1294 |
this option will display two symbols: the one of the left has the |
1295 |
properties of the first group and the one on the right has the |
1296 |
properties of the last group. Thuban will interpolate between these |
1297 |
two properties to generate the other groups. |
1298 |
<figure> |
1299 |
<title>Custom Color Scheme</title> |
1300 |
<mediaobject> |
1301 |
<imageobject><imagedata fileref="../images/5_2_custom_ramp.png" format="PNG" scale="&imgscale;"/></imageobject> |
1302 |
<imageobject><imagedata fileref="./images/5_2_custom_ramp.eps" format="EPS" scale="&imgscale;"/></imageobject> |
1303 |
</mediaobject> |
1304 |
</figure> |
1305 |
</para> |
1306 |
<para> |
1307 |
The Unique Values option lets the user select specific values that |
1308 |
appear in the table. Clicking <guibutton>Retrieve From Table</guibutton> |
1309 |
searches the table for all unique values and displays them in the |
1310 |
list on the left. Items can be selected and moved to the list on the |
1311 |
right. Each list can be sorted or reversed for easier searching. |
1312 |
The classification that is generated will be in the same order as |
1313 |
the list on the right. |
1314 |
<figure> |
1315 |
<title>Unique Values</title> |
1316 |
<mediaobject> |
1317 |
<imageobject><imagedata fileref="../images/5_2_unique_values.png" format="PNG" scale="&imgscale;"/></imageobject> |
1318 |
<imageobject><imagedata fileref="./images/5_2_unique_values.eps" format="EPS" scale="&imgscale;"/></imageobject> |
1319 |
</mediaobject> |
1320 |
</figure> |
1321 |
</para> |
1322 |
<para> |
1323 |
The Uniform Distribution option creates a user specified number of |
1324 |
groups of ranges such that each range covers equal intervals. The |
1325 |
minimum and maximum values can automatically be retrieved from the |
1326 |
table by clicking <guibutton>Retrieve From Table</guibutton>. The |
1327 |
stepping is how large each interval is. Adjusting this value will |
1328 |
automatically recalculate how many groups is appropriate. |
1329 |
<figure> |
1330 |
<title>Uniform Distribution</title> |
1331 |
<mediaobject> |
1332 |
<imageobject><imagedata fileref="../images/5_2_uniform_dist.png" format="PNG" scale="&imgscale;"/></imageobject> |
1333 |
<imageobject><imagedata fileref="./images/5_2_uniform_dist.eps" format="EPS" scale="&imgscale;"/></imageobject> |
1334 |
</mediaobject> |
1335 |
</figure> |
1336 |
</para> |
1337 |
<para> |
1338 |
The Quantiles option generates ranges based on the number of items |
1339 |
in the table. For example, by specifying five groups Thuban will |
1340 |
generate five groups with appropriate ranges such that 20% of the table |
1341 |
data is in each group. If it is impossible to generate exact |
1342 |
groupings, Thuban will issue a warning but allow the user to continue. |
1343 |
<figure> |
1344 |
<title>Quantiles</title> |
1345 |
<mediaobject> |
1346 |
<imageobject><imagedata fileref="../images/5_2_quantiles.png" format="PNG" scale="&imgscale;"/></imageobject> |
1347 |
<imageobject><imagedata fileref="./images/5_2_quantiles.eps" format="EPS" scale="&imgscale;"/></imageobject> |
1348 |
</mediaobject> |
1349 |
</figure> |
1350 |
</para> |
1351 |
</section> |
1352 |
</chapter> |
1353 |
|
1354 |
<chapter><title>Projection Management</title> |
1355 |
<para> |
1356 |
Projections control how the geographic data is displayed on the screen. |
1357 |
If multiple layers are loaded into Thuban where the geographic data |
1358 |
is in a different projection system, then the user must specify a |
1359 |
projection for each layer. The user must also tell Thuban which |
1360 |
projection the map is in. This can be the same as the layers or a different |
1361 |
projection in which case the layers are reprojected into that space. |
1362 |
The map projection can be set using |
1363 |
<menuchoice> |
1364 |
<guimenu>Map</guimenu> |
1365 |
<guimenuitem>Projection</guimenuitem> |
1366 |
</menuchoice> and the layer projection can be set using |
1367 |
<menuchoice> |
1368 |
<guimenu>Layer</guimenu> |
1369 |
<guimenuitem>Projection</guimenuitem> |
1370 |
</menuchoice>. |
1371 |
<figure> |
1372 |
<title>Projection Window</title> |
1373 |
<mediaobject> |
1374 |
<imageobject><imagedata fileref="../images/6_projection.png" format="PNG" scale="&imgscale;"/></imageobject> |
1375 |
<imageobject><imagedata fileref="./images/6_projection.eps" format="EPS" scale="&imgscale;"/></imageobject> |
1376 |
</mediaobject> |
1377 |
</figure> |
1378 |
</para> |
1379 |
<para> |
1380 |
Thuban is distributed with a sample collection of projections and the |
1381 |
set of coordinate systems as used by the EPSG |
1382 |
(European Petroleum Survey Group). This quite large set is only displayed |
1383 |
if activated by the according checkbox. The set falls into two parts: |
1384 |
deprecated lists all projections which are no longer part of the |
1385 |
EPSG data base. |
1386 |
</para> |
1387 |
<para> |
1388 |
The |
1389 |
user can create new projections and make them available to all |
1390 |
future Thuban sessions. They may also be exported and imported so |
1391 |
that custom projections can be distributed. |
1392 |
</para> |
1393 |
<section><title>Selecting a Projection</title> |
1394 |
<para> |
1395 |
The available projections are listed on the left. If the layer |
1396 |
or map already has a projection it will initially be highlighted |
1397 |
and will end with <varname>(current)</varname>. Selecting |
1398 |
<varname><None></varname> will cause Thuban to use the data as |
1399 |
it appears in the source file and will not use a projection. |
1400 |
</para> |
1401 |
</section> |
1402 |
<section><title>Editing a Projection</title> |
1403 |
<para> |
1404 |
Whenever a projection is selected from the list its properties |
1405 |
are displayed on the right. These properties can be changed |
1406 |
and the changes saved to the selected projection using |
1407 |
<guibutton>Update</guibutton>. Only a projection that comes |
1408 |
from a file can be updated, so if the current layer's projection |
1409 |
is selected, <guibutton>Update</guibutton> will be disabled. |
1410 |
<guibutton>Add to List</guibutton> adds the projection to the |
1411 |
list of available projections as a new entry, and thus makes it |
1412 |
available to future Thuban sessions. Clicking <guibutton>New</guibutton> |
1413 |
will create an entirely new, empty projection. The |
1414 |
<guibutton>Remove</guibutton> button will permanently remove a |
1415 |
projection from the list of available projections. |
1416 |
</para> |
1417 |
<para> |
1418 |
To apply the selected projection to the map the user can click |
1419 |
either <guibutton>Try</guibutton> or <guibutton>OK</guibutton>. |
1420 |
<guibutton>Try</guibutton> will not close the dialog box, allowing |
1421 |
the user to see how the projeciton changes the map. |
1422 |
<guibutton>Revert</guibutton> will undo the last projection applied |
1423 |
to the map. <guibutton>OK</guibutton> will commit the changes and |
1424 |
close the dialog. The user will be unable to undo the changes. |
1425 |
<guibutton>Close</guibutton> simply closes the dialog box. If no |
1426 |
selection has been applied with <guibutton>Try</guibutton> the |
1427 |
selection will not be applied to the map. |
1428 |
</para> |
1429 |
</section> |
1430 |
<section><title>Importing/Exporting Projections</title> |
1431 |
<para> |
1432 |
The projections that appear in the list of available projections |
1433 |
can be exported to another file that the user chooses. By selecting |
1434 |
one or more projections and clicking <guibutton>Export</guibutton> |
1435 |
the user will be able to select a file in which to store those |
1436 |
projections. |
1437 |
The file can then be distributed to other Thuban users. To import |
1438 |
a projection file the user can click <guibutton>Import</guibutton>. |
1439 |
The imported projections are added to the list and are then available |
1440 |
to the current session and any future Thuban sessions. |
1441 |
</para> |
1442 |
</section> |
1443 |
</chapter> |
1444 |
|
1445 |
<chapter><title>Tabellen-Management</title> |
1446 |
<para> |
1447 |
Thuban unterscheidet zwei unterschiedliche Tabellen-Typen: |
1448 |
Attributtabellen (welche zu einer Ebene gehört) sowie normale |
1449 |
Datentabellen. |
1450 |
Beide bieten die gleiche allgemeine Funktionalität mit dem |
1451 |
einzigen Unterschied, dass Aktionen auf einer Attributtabelle |
1452 |
die Kartendarstellung ändern können. |
1453 |
</para> |
1454 |
|
1455 |
<section><title>Tabellen-Ansicht</title> |
1456 |
<para> |
1457 |
<figure> |
1458 |
<title>Tabellen-Ansicht</title> |
1459 |
<mediaobject> |
1460 |
<imageobject><imagedata fileref="../images/7_1_table_view.png" format="PNG" scale="&imgscale;"/></imageobject> |
1461 |
<imageobject><imagedata fileref="./images/7_1_table_view.eps" format="EPS" scale="&imgscale;"/></imageobject> |
1462 |
</mediaobject> |
1463 |
</figure> |
1464 |
</para> |
1465 |
<para> |
1466 |
Thuban stellt einen Standard-Dialog für die Anzeige einer Tabelle |
1467 |
zur Verfügung. Diese Aansicht hat 5 Elemente:Titel, Selektion, |
1468 |
das Tabellenraster, Exportfunktionen und die Statuszeile. |
1469 |
</para> |
1470 |
<para> |
1471 |
Die Titelzeile identifiziert die Tabelle mit ihrem Namen. |
1472 |
</para> |
1473 |
<para> |
1474 |
Die Selektionsbox erlaubt es dem Benutzer einfache Analysen auf den Daten |
1475 |
durch Vergleiche durchzuführen: Die erste Auswahl ist ein Feldbezeichner |
1476 |
der Tabelle, die zweite Auswahl bestimmt den Typ des Vergleichs. |
1477 |
Die dritte Auswahl kann entweder ein bestimmter Wert (interpretiert |
1478 |
als Zahl oder als Zeichenkette abhängig vom Typ des ersten Feldes) |
1479 |
oder ein zweiter Feldbezeichner sein. |
1480 |
D.h. man kann Analysen durchführen wie alle Einträge auswählen bei |
1481 |
denen <literal>bevoelkerung > 10000</literal> oder |
1482 |
<literal>pkw_pro_einwohner < fahrraeder_pro_einwohner</literal> |
1483 |
(beachten Sie, dass die Namen nur exemplarisch sind, dBase Dateien |
1484 |
erlauben nur Bezeichner mit einer maximalen Länge von 11 Zeichen). |
1485 |
|
1486 |
Selektionen können kombiniert werden. Entweder bezieht sich |
1487 |
die Selektion auf die zuvor selektierten Einträge oder man kann |
1488 |
eine bestehende Selektion erweitern. Voreingestellt ist |
1489 |
einersetzen der bisherigen Selektion. |
1490 |
</para> |
1491 |
<para> |
1492 |
Das Tabellenraster zeigt den Inhalt der Tabelle (pro Zeile ein Eintrag). |
1493 |
Selektionen sind hervorgehoben. Die Grösse der Zeiken und Spalten kann |
1494 |
verändert werden. |
1495 |
</para> |
1496 |
<para> |
1497 |
Der Inhalt einer Tabelle kann in eine Datei exportiert werden, |
1498 |
entweder im dBase format (DBF) oder als kommaseparierte Werte |
1499 |
(CSV). Der. |
1500 |
<guibutton>Export</guibutton> Knopf startet einen Dialog |
1501 |
zur Angabe des Pfades und des Namens der Datei. |
1502 |
Der Export-Typ wird durch die Namenserwiterung spezifiziert |
1503 |
(entweder .dbf oder .csv). |
1504 |
|
1505 |
Der Knopf <guibutton>Exportiere Selektion</guibutton> funktioniert |
1506 |
ähnlich, exportiert aber nur die aktuelle Selektion. |
1507 |
|
1508 |
Der <guibutton>Schliessen</guibutton> Knopf schliesst das |
1509 |
Fenster mit der Tabellenansicht. Dies ist nicht zu verwechseln mit |
1510 |
dem Menüpunkt |
1511 |
<menuchoice> |
1512 |
<guimenu>Tabelle</guimenu> |
1513 |
<guimenuitem>Schliessen</guimenuitem> |
1514 |
</menuchoice> welcher die Tabelle aus Thuban entfernt. |
1515 |
</para> |
1516 |
<para> |
1517 |
Die Statuszeile zeigt einige statistische Informationen zu |
1518 |
der Tabelle sowie zu Selektionsergebnisse an. |
1519 |
</para> |
1520 |
</section> |
1521 |
|
1522 |
<section><title>Allgemeine Funktionalität (Menü Tabelle)</title> |
1523 |
<para> |
1524 |
Die allgemeinen Funktionen wirken sich auf alle geöffneten Tabellen |
1525 |
aus. Attributtabellen werden wie normale Tabellen behandelt (mit der |
1526 |
Ausnahme dass diese nicht geschlossen werden können). |
1527 |
</para> |
1528 |
<section><title>Öffnen</title> |
1529 |
<para> |
1530 |
Der Menüpunkt |
1531 |
<menuchoice> |
1532 |
<guimenu>Tabelle</guimenu> |
1533 |
<guimenuitem>Öffnen</guimenuitem> |
1534 |
</menuchoice> |
1535 |
startet einen Dateiselektionsdialog für die Auswahl |
1536 |
einer dBase-Datei. Diese wird als nur-lesbar in Thuban |
1537 |
geladen. |
1538 |
Mit <guibutton>OK</guibutton> wird die ausgewählte Datei |
1539 |
geladen und eine entsprechende Tabellenansicht geöffnet. |
1540 |
</para> |
1541 |
</section> |
1542 |
|
1543 |
<section><title>Schliessen</title> |
1544 |
<para> |
1545 |
Der Menüpunkt |
1546 |
<menuchoice> |
1547 |
<guimenu>Tabelle</guimenu> |
1548 |
<guimenuitem>Schliessen</guimenuitem> |
1549 |
</menuchoice> |
1550 |
startet einen Dialog welcher alle derzeit geöffneten Datentabellen |
1551 |
(die geladen wurden über |
1552 |
<menuchoice> |
1553 |
<guimenu>Tabelle</guimenu> |
1554 |
<guimenuitem>Öffnen</guimenuitem> |
1555 |
</menuchoice>). |
1556 |
Die gewählten Tabellen werden nach Bestätigung aus Thuban |
1557 |
entfernt. |
1558 |
Da die Tabellen als nur-lesend geöffnet wurden, wird |
1559 |
der Inhalt der Tabellen nicht verändert. |
1560 |
|
1561 |
Sämtliche offenen Tabellenansichten für diese |
1562 |
Tabellen werden ebenfalls geschlossen. |
1563 |
|
1564 |
Tabellen die bei Verknüpfungen verwendet werden |
1565 |
können nicht geschlossen werden. |
1566 |
</para> |
1567 |
</section> |
1568 |
|
1569 |
<section><title>Umbenennen</title> |
1570 |
<para> |
1571 |
<menuchoice> |
1572 |
<guimenu>Tabelle</guimenu> |
1573 |
<guimenuitem>Umbenennen</guimenuitem> |
1574 |
</menuchoice> ändert den Tabellentitel. |
1575 |
</para> |
1576 |
</section> |
1577 |
|
1578 |
<section><title>Anzeigen</title> |
1579 |
<para> |
1580 |
Der Menüpunkt |
1581 |
<menuchoice> |
1582 |
<guimenu>Tabelle</guimenu> |
1583 |
<guimenuitem>Anzeigen</guimenuitem> |
1584 |
</menuchoice> |
1585 |
öffnet einen Dialog mit der Liste der verfügbaren |
1586 |
Tabellen (explizit geladene Tabellen, Attributtabellen, |
1587 |
Ergebnisse aus Verknüpfungen). |
1588 |
Die ausgewählten Tabellen werden nach der |
1589 |
Bestätigung mit |
1590 |
<guibutton>OK</guibutton> in Tabellenansichten dargestellt. |
1591 |
</para> |
1592 |
</section> |
1593 |
|
1594 |
<section><title>Verbinden</title> |
1595 |
<para> |
1596 |
<figure> |
1597 |
<title>Verbinde Tabellen</title> |
1598 |
<mediaobject> |
1599 |
<imageobject><imagedata fileref="../images/7_2_5_join.png" format="PNG" scale="&imgscale;"/></imageobject> |
1600 |
<imageobject><imagedata fileref="./images/7_2_5_join.eps" format="EPS" scale="&imgscale;"/></imageobject> |
1601 |
</mediaobject> |
1602 |
</figure> |
1603 |
</para> |
1604 |
<para> |
1605 |
Der Menüpunkt |
1606 |
<menuchoice> |
1607 |
<guimenu>Tabelle</guimenu> |
1608 |
<guimenuitem>Verbinden</guimenuitem> |
1609 |
</menuchoice> |
1610 |
startet einen Dialog für die Angabe der beiden Tabellen die |
1611 |
verbunden werdn sollen. Das Ergebnis der Verbindung ist eine |
1612 |
neue Tabelle mit der Bezeichnung |
1613 |
'Join of "linke Tabelle" and "rechte Tabelle"'. |
1614 |
|
1615 |
Der Dialog erlaubt es die beiden zu verbindenden Tabellen sowie |
1616 |
die beiden Felder anzugeben über die die Verbindung hergestellt |
1617 |
werden soll. Als Voreinstellung beinhaltet die neue Tabelle |
1618 |
nur die Einträge für die entsprechende Übereinstimmungen |
1619 |
vorlagen. |
1620 |
|
1621 |
Wollen Sie die Einträge der linken Tabelle erhalten, so können |
1622 |
Sie eine äussere Verbindung erstellen. Die Felder der rechten |
1623 |
Tabelle für Einträge ohne Übereinstimmung werden in diesem |
1624 |
Fall aufgefüllt mit dem Wert <varname>None</varname>. |
1625 |
</para> |
1626 |
</section> |
1627 |
|
1628 |
</section> |
1629 |
<section><title>Attribut-Tabellen</title> |
1630 |
<para> |
1631 |
Um klarer zwischen den beiden Tabellen-Typen (Daten und Attribute) zu |
1632 |
unterscheiden, bietet Thuban die Funktionalität für die Attribut-Tabellen |
1633 |
unter dem Menü |
1634 |
<menuchoice><guimenu>Ebene</guimenu></menuchoice> an. |
1635 |
</para> |
1636 |
|
1637 |
<section><title>Zeige Tabelle</title> |
1638 |
<para> |
1639 |
<menuchoice> |
1640 |
<guimenu>Ebene</guimenu> |
1641 |
<guimenuitem>Zeige Tabelle</guimenuitem> |
1642 |
</menuchoice> |
1643 |
öffnet die Attribut-Tabelle für die aktuell aktive Ebene in |
1644 |
einer Tabellenansicht. |
1645 |
|
1646 |
Eine zusätzliche Funktionalität bei diesen Tabellenansichten |
1647 |
ist, dass bei Selektionen die korrespondierenden Objekte |
1648 |
auf der Karte unmittelbar hervorgehoben werden. |
1649 |
</para> |
1650 |
</section> |
1651 |
|
1652 |
<section><title>Verbinde Tabelle</title> |
1653 |
<para> |
1654 |
Unlike the join described above, the join does not result in a |
1655 |
new table. The attribute table of the currently active layer is the |
1656 |
left table and other tables are joined to this table. The results of |
1657 |
the join are available for classification. |
1658 |
|
1659 |
As a consequence, the join cannot result in fewer |
1660 |
records than the source attribute table. The user is warned if the |
1661 |
right table does not fulfill this constraint. An outer join must be |
1662 |
used in such cases. |
1663 |
</para> |
1664 |
</section> |
1665 |
|
1666 |
<section><title>Unjoin Table</title> |
1667 |
<para> |
1668 |
As said above, a normal table cannot be closed while it is still |
1669 |
used in a join. While the joined table resulting from a join of |
1670 |
normal tables can be simply closed (and thereby dereferencing |
1671 |
the source tables), this is not possible for attribute tables. |
1672 |
|
1673 |
Hence joins on attribute tables must be solved explicitly. This is |
1674 |
what the |
1675 |
<menuchoice> |
1676 |
<guimenu>Layer</guimenu> |
1677 |
<guimenuitem>Unjoin Table</guimenuitem> |
1678 |
</menuchoice> |
1679 |
item is used for: The last join for the currently |
1680 |
active layer is solved. |
1681 |
</para> |
1682 |
</section> |
1683 |
</section> |
1684 |
</chapter> |
1685 |
|
1686 |
<chapter><title>Extensions</title> |
1687 |
<para> |
1688 |
Thuban is designed to be extensible. The term Extension is used as a |
1689 |
general term for anything that extends Thuban. |
1690 |
This chapter introduces into some oppportunities how to add and |
1691 |
handle extra functionality developed by your own or third parties. |
1692 |
</para> |
1693 |
|
1694 |
<section><title>Add personal extensions via thubanstart.py</title> |
1695 |
<para> |
1696 |
After Thuban has been started for the first time, a directory |
1697 |
.thuban is created within your home directory. |
1698 |
There you can add a file thubanstart.py which will be imported |
1699 |
by Thuban at start-up. It is recommended to add only import-statements |
1700 |
to this file to keep the actual code of extensions separate. |
1701 |
</para> |
1702 |
<para> |
1703 |
The modules to import must either be found through the environment |
1704 |
variable PYTHONPATH or directly be placed into the .thuban-directory. |
1705 |
</para> |
1706 |
<para> |
1707 |
As an example, copy the file examples/simple_extensions/hello_world.py |
1708 |
of the Thuban source code into the .thuban-directory of your home |
1709 |
directory. Now add add the statement import hello_world to the |
1710 |
file thubanstart.py and run Thuban. You will notice an additional |
1711 |
menu <menuchoice><guimenu>Extensions</guimenu></menuchoice> where |
1712 |
the new item for the Hello-World extension is placed - select it |
1713 |
to see the Hello-World message. |
1714 |
</para> |
1715 |
</section> |
1716 |
|
1717 |
<section><title>Extensions included in Thuban package</title> |
1718 |
<para> |
1719 |
The extensions described in this section are part of the |
1720 |
Thuban package, but not activated by default. |
1721 |
You will find them in the Thuban installation directory |
1722 |
under <literal>Extensions/</literal>. Activate them as personal |
1723 |
extensions via PYTHONPATH as described in the previous section. |
1724 |
Stable extensions will appear under the menu |
1725 |
<menuchoice><guimenu>Extensions</guimenu></menuchoice> and |
1726 |
extensions which are in experimental state and therefore |
1727 |
not fully functional under |
1728 |
<menuchoice><guimenu>Experimental</guimenu></menuchoice>. |
1729 |
</para> |
1730 |
|
1731 |
<section><title>Stable extensions</title> |
1732 |
<para> |
1733 |
These extensions provide extra-functionality to Thuban |
1734 |
that has not (yet) been integrated in the main application. |
1735 |
They are considered to be free of bugs, but may be |
1736 |
further polished with helpful user interactions. |
1737 |
</para> |
1738 |
<section><title>gns2shp</title> |
1739 |
<para> |
1740 |
This tool converts data of the Geospatial Names Server |
1741 |
(GNS, see <ulink url="http://www.nima.mil/gns"/>) |
1742 |
into Shapefile format. |
1743 |
The above web-site offer to download named places |
1744 |
information grouped by countries for all of the world |
1745 |
except USA for which other data are provided. |
1746 |
</para> |
1747 |
<para> |
1748 |
If you download and unpack a package, you will have |
1749 |
a text-file with suffix .txt. |
1750 |
Selecting such a file via gns2shp will create the |
1751 |
corresponding Shapefile with the same basename and |
1752 |
place it in the same direcory. Afterwards it |
1753 |
is automatically loaded into Thuban. |
1754 |
The Shapefile will not automatically be delete afterwards. |
1755 |
</para> |
1756 |
<para> |
1757 |
The gns2shp.py module can also be executed on the |
1758 |
command line for batch processing purposes. |
1759 |
</para> |
1760 |
<para> |
1761 |
A sample (<literal>ls.txt</literal> for Liechtenstein) |
1762 |
is included in the directory |
1763 |
<literal>Extensions/gns2shp/test</literal>. |
1764 |
</para> |
1765 |
</section> |
1766 |
<section><title>SVG Export</title> |
1767 |
<para> |
1768 |
Map and legend can be exported separately in the |
1769 |
Thuban-Map-SVG format. |
1770 |
You get files that comply with |
1771 |
the Scalable Vector Graphics (SVG) 1.1 Specification |
1772 |
and can be read by many vector drawing applications. |
1773 |
</para> |
1774 |
<para> |
1775 |
Goal of svgexport is to provide |
1776 |
the start of a printing pipeline for Thuban. |
1777 |
For this purpose the written Thuban-Map-SVG files |
1778 |
contain information that can be used in postprocessing. |
1779 |
Typically a general vector drawing application is |
1780 |
more powerful then a geographic information viewer; |
1781 |
e.g. having much fancier symbols and fonts. |
1782 |
Also users benefit much more when learning to use a |
1783 |
more general application they can also use for other |
1784 |
tasks. So the charming idea is to enable |
1785 |
the drawing application to postprocess a Thuban maps. |
1786 |
So thee xtra information in the format will make it |
1787 |
possible to export from Thuban and if a few geoobjects |
1788 |
change, and keep the general layout and style |
1789 |
of the full map in the vector drawing appplication. |
1790 |
</para> |
1791 |
<para> |
1792 |
Markus Rechtien has developed a prototype of this |
1793 |
printing pipline as his Diplom thetis, showing |
1794 |
the feasability of Bernhard Reiter's concept. |
1795 |
Scripts exist for the drawing application Skencil |
1796 |
(<ulink url="http://www.skencil.org"/>). |
1797 |
</para> |
1798 |
<para> |
1799 |
Technical notes: the names of the layers are used |
1800 |
as base for ids within the SVG format. |
1801 |
If you try to export with two layers having |
1802 |
the same name, you will get a name clash error. |
1803 |
Just change one of the layer names and try again. |
1804 |
</para> |
1805 |
</section> |
1806 |
</section> |
1807 |
<section><title>Experimental extensions</title> |
1808 |
<para> |
1809 |
All all of these functions have to be handled with care, |
1810 |
since they are neither complete nor well tested. |
1811 |
They are to be seen as a proof-of-concept and may |
1812 |
additionally in some cases of practical help. |
1813 |
</para> |
1814 |
<para> |
1815 |
Any interest on further improvement of these extensions |
1816 |
should be communicated towards the developer and user |
1817 |
community. |
1818 |
</para> |
1819 |
|
1820 |
<section><title>importAPR</title> |
1821 |
<para> |
1822 |
This command offer to load an ESRI® ArcView® project |
1823 |
file (suffix .apr) and convert it for use within Thuban. |
1824 |
After selecting a apr-file to load, a list |
1825 |
will be presented that offers to select one of the views |
1826 |
of the apr-file, provided there is more than one. |
1827 |
Furthermore, the Session Info-Tree is extended with |
1828 |
a complete representation of the parsed apr-file. |
1829 |
</para> |
1830 |
<para> |
1831 |
The legend of Thuban does not yet cover all of the elements as |
1832 |
supported by the legend of ArcView®. Therefore, the Thuban |
1833 |
map will look different. Furthermore, the apr-format is |
1834 |
a proprietary format, not openly documented. |
1835 |
Therefore, the interpretation is |
1836 |
partly based on reverse engeneering and good guessing. |
1837 |
</para> |
1838 |
<para> |
1839 |
The file-paths within the apr-file may not fit and potentially |
1840 |
are subject to fix in the apr-file. You can do this |
1841 |
applying any text editor. The paths are either absolute |
1842 |
or relative from where Thuban has been started. |
1843 |
</para> |
1844 |
<para> |
1845 |
A sample for the Iceland data is included as |
1846 |
<literal>Extensions/importAPR/samples/iceland.apr</literal>. |
1847 |
The file-paths are relative from the Thuban main directory. |
1848 |
</para> |
1849 |
</section> |
1850 |
</section> |
1851 |
</section> |
1852 |
|
1853 |
<section><title>Writing simple extensions</title> |
1854 |
<para> |
1855 |
Writing an extension for Thuban basically means to |
1856 |
implement the extra functionality in Python with all of the |
1857 |
Thuban classes, methods and variables available. |
1858 |
</para> |
1859 |
<para> |
1860 |
All classes and their methods are documented in the source code |
1861 |
(see their doc-strings). Here is an example from |
1862 |
Thuban/Model/layer.py that describes some of the methods |
1863 |
of a Layer object: |
1864 |
</para> |
1865 |
<programlisting> |
1866 |
<![CDATA[ |
1867 |
class BaseLayer(TitledObject, Modifiable): |
1868 |
|
1869 |
"""Base class for the layers.""" |
1870 |
|
1871 |
def __init__(self, title, visible = True, projection = None): |
1872 |
"""Initialize the layer. |
1873 |
|
1874 |
title -- the title |
1875 |
visible -- boolean. If true the layer is visible. |
1876 |
""" |
1877 |
TitledObject.__init__(self, title) |
1878 |
Modifiable.__init__(self) |
1879 |
self.visible = visible |
1880 |
self.projection = projection |
1881 |
|
1882 |
def Visible(self): |
1883 |
"""Return true if layer is visible""" |
1884 |
return self.visible |
1885 |
|
1886 |
def SetVisible(self, visible): |
1887 |
"""Set the layer's visibility.""" |
1888 |
self.visible = visible |
1889 |
self.issue(LAYER_VISIBILITY_CHANGED, self) |
1890 |
|
1891 |
def HasClassification(self): |
1892 |
"""Determine if this layer support classifications.""" |
1893 |
... |
1894 |
]]> |
1895 |
</programlisting> |
1896 |
<para> |
1897 |
This example intends to give you an impression of the |
1898 |
source-code-level documentation. |
1899 |
You have to make yourself familiar with |
1900 |
the Python programming language to understand some special |
1901 |
code elements. |
1902 |
</para> |
1903 |
<section><title>hello_world.py</title> |
1904 |
<para> |
1905 |
Traditionally, the first example should welcome the world. |
1906 |
Most of the code handles the frame for integrating a menu |
1907 |
item into Thuban while the actual raising of a message |
1908 |
is done in a single line. |
1909 |
</para> |
1910 |
<programlisting> |
1911 |
<![CDATA[ |
1912 |
# Copyright (C) 2003 by Intevation GmbH |
1913 |
# Authors: |
1914 |
# Jan-Oliver Wagner <[email protected]> |
1915 |
# |
1916 |
# This program is free software under the GPL (>=v2) |
1917 |
# Read the file COPYING coming with Thuban for details. |
1918 |
|
1919 |
""" |
1920 |
Extend Thuban with a sample Hello World to demonstrate simple |
1921 |
extensions. |
1922 |
""" |
1923 |
|
1924 |
__version__ = '$Revision$' |
1925 |
|
1926 |
# use _() already now for all strings that may later be translated |
1927 |
from Thuban import _ |
1928 |
|
1929 |
# Thuban has named commands which can be registered in the central |
1930 |
# instance registry. |
1931 |
from Thuban.UI.command import registry, Command |
1932 |
|
1933 |
# The instance of the main menu of the Thuban application |
1934 |
# See Thuban/UI/menu.py for the API of the Menu class |
1935 |
from Thuban.UI.mainwindow import main_menu |
1936 |
|
1937 |
def hello_world_dialog(context): |
1938 |
"""Just raise a simple dialog to greet the world. |
1939 |
|
1940 |
context -- The Thuban context. |
1941 |
""" |
1942 |
context.mainwindow.RunMessageBox(_('Hello World'), _('Hello World!')) |
1943 |
|
1944 |
|
1945 |
# create a new command and register it |
1946 |
registry.Add(Command('hello_world', _('Hello World'), hello_world_dialog, |
1947 |
helptext = _('Welcome everyone on this planet'))) |
1948 |
|
1949 |
# find the extensions menu (create it anew if not found) |
1950 |
extensions_menu = main_menu.FindOrInsertMenu('extensions', _('E&xtensions')) |
1951 |
|
1952 |
# finally bind the new command with an entry in the extensions menu |
1953 |
extensions_menu.InsertItem('hello_world') |
1954 |
]]> |
1955 |
</programlisting> |
1956 |
</section> |
1957 |
<section><title>Registering a Command</title> |
1958 |
<para> |
1959 |
Mainly, our new function has to be registered to the Thuban |
1960 |
framework in order to connect it to the menu. A registered |
1961 |
command can also be connected to e.g. a toolbar button. |
1962 |
</para> |
1963 |
<para> |
1964 |
The instances and classes for this are imported at the beginning. |
1965 |
Any code not inside a method or class is directly executed when |
1966 |
the source-code module is imported. Therefore, the second |
1967 |
part of this example consist of the plain statements to create a new |
1968 |
Command and to add it to the menu. |
1969 |
</para> |
1970 |
<para> |
1971 |
By convention, it looks for a menu registered as ``extensions'' to |
1972 |
insert the new command. If it does not exist yet, it gets created. |
1973 |
It is advisable to copy this code for any of your extensions. |
1974 |
</para> |
1975 |
</section> |
1976 |
<section><title>The Thuban context</title> |
1977 |
<para> |
1978 |
A registered command that is called, always receives the |
1979 |
Thuban context. This instance provides our method with |
1980 |
hook references to all important components of the Thuban |
1981 |
application. |
1982 |
</para> |
1983 |
<para> |
1984 |
In the example hello_world.py, our function uses the |
1985 |
mainwindow component which offers a method to raise a |
1986 |
message dialog. In total there are three hooks: |
1987 |
<itemizedlist> |
1988 |
<listitem> |
1989 |
<para>application: |
1990 |
This object is the instance of the Thuban Application class. |
1991 |
Except maybe for loading or savinf sessions, you will not |
1992 |
need this object for a simple extension. |
1993 |
See Thuban/UI/application.py for the API. |
1994 |
</para> |
1995 |
</listitem> |
1996 |
<listitem> |
1997 |
<para>session: |
1998 |
The instance of the current session. It manages the sessions' |
1999 |
map and tables. You can set and remove the map or tables. |
2000 |
In may also get the map object. However, you should know that |
2001 |
internally it is already prepared to handle many maps. |
2002 |
Therfore, currently you would always receive a list with exactlty |
2003 |
one element. In the future, if there are more than one map, |
2004 |
you will not know which one is the currently display one and |
2005 |
therefore you should use the mainwindow as hook to find |
2006 |
the currently displayed map. |
2007 |
See Thuban/Model/session.py for the API. |
2008 |
</para> |
2009 |
</listitem> |
2010 |
<listitem> |
2011 |
<para> |
2012 |
mainwindow: The mainwindow object is central to manage various |
2013 |
GUI things such as the Legend sub-window. Most notably, |
2014 |
you get access to the canvas which is the window part where |
2015 |
the map is drawn. The canvas knows, which map it currently |
2016 |
draws and therefore you get the current map via |
2017 |
context.mainwindow.canvas.Map(). |
2018 |
See Thuban/UI/mainwindow.py for the API. |
2019 |
</para> |
2020 |
</listitem> |
2021 |
</itemizedlist> |
2022 |
</para> |
2023 |
</section> |
2024 |
</section> |
2025 |
</chapter> |
2026 |
|
2027 |
<chapter><title>Trouble Shooting</title> |
2028 |
<para> |
2029 |
Here are a few problems that users have encountered when first using Thuban. |
2030 |
</para> |
2031 |
<para> |
2032 |
|
2033 |
<itemizedlist> |
2034 |
<listitem> |
2035 |
<para>After adding two or more layers nothing is drawn in the map window. |
2036 |
</para> |
2037 |
<para> |
2038 |
This is probably because the layers have different projections. Projections |
2039 |
must be set on all layers and on the map itself if the layers' projections |
2040 |
are different. |
2041 |
</para> |
2042 |
</listitem> |
2043 |
|
2044 |
<listitem> |
2045 |
<para>Thuban crashes on startup with the error |
2046 |
<literal>NameError: global name 'False' is not defined</literal>. |
2047 |
</para> |
2048 |
<para> |
2049 |
<varname>True</varname> and <varname>False</varname> were only introduced |
2050 |
in Python 2.2.1. Thuban depends on at least Python 2.2.1. |
2051 |
</para> |
2052 |
</listitem> |
2053 |
|
2054 |
<listitem> |
2055 |
<para>After compiling Thuban, Thuban crashes with an error similar to |
2056 |
<literal> |
2057 |
ImportError: /usr/local//lib/thuban/Thuban/../Lib/wxproj.so: undefined symbol: __gxx_personality_v0 |
2058 |
</literal> |
2059 |
</para> |
2060 |
<para> |
2061 |
Thuban depends on the wxWindows library. If Thuban is compiled with an |
2062 |
incompatible version of the compiler than wxWindows was compiled with |
2063 |
this error may occur. Try compiling with a different version of the |
2064 |
compiler. |
2065 |
</para> |
2066 |
</listitem> |
2067 |
</itemizedlist> |
2068 |
</para> |
2069 |
<para> |
2070 |
If an error occurs Thuban will display a dialog indicating the error |
2071 |
before closing. The text should be copied and reported to the |
2072 |
<ulink url="http://thuban.intevation.org/bugtracker.html"> |
2073 |
Intevation bugtracker |
2074 |
</ulink>. |
2075 |
More information about the system is available from |
2076 |
<menuchoice><guimenu>Help</guimenu><guimenuitem>About</guimenuitem></menuchoice> box. |
2077 |
This should also be included in the bug report. |
2078 |
<figure> |
2079 |
<title>Error Dialog</title> |
2080 |
<mediaobject> |
2081 |
<imageobject><imagedata fileref="../images/8_int_error.png" format="PNG" scale="&imgscale;"/></imageobject> |
2082 |
<imageobject><imagedata fileref="./images/8_int_error.eps" format="EPS" scale="&imgscale;"/></imageobject> |
2083 |
</mediaobject> |
2084 |
</figure> |
2085 |
</para> |
2086 |
|
2087 |
</chapter> |
2088 |
|
2089 |
<appendix><title>Supported Data Sources</title> |
2090 |
<para> |
2091 |
</para> |
2092 |
<variablelist> |
2093 |
<varlistentry> |
2094 |
<term>Shapefile</term> |
2095 |
<listitem> |
2096 |
<para> |
2097 |
The Shapefile format has become a standard format for saving |
2098 |
geographic vector information. It supports polygons, lines, and |
2099 |
points. |
2100 |
|
2101 |
<ulink url="http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf"> |
2102 |
Technical Specification. |
2103 |
</ulink> |
2104 |
</para> |
2105 |
</listitem> |
2106 |
</varlistentry> |
2107 |
|
2108 |
<varlistentry> |
2109 |
<term>dBase file</term> |
2110 |
<listitem> |
2111 |
<para> |
2112 |
dBase files are used to store the attributes for each layer. This |
2113 |
is closely associated with the Shapefile format. For detailed |
2114 |
specifications on the correct format of a dBase file used with |
2115 |
Thuban please see the Technical Specification for the Shapefile |
2116 |
format above. |
2117 |
</para> |
2118 |
</listitem> |
2119 |
</varlistentry> |
2120 |
|
2121 |
<varlistentry> |
2122 |
<term>PostGIS</term> |
2123 |
<listitem> |
2124 |
<para> |
2125 |
PostGIS adds support for geographic objects to the PostgreSQL |
2126 |
object-relational database. Different layer types (as for Shapefiles) |
2127 |
are supported. <ulink url="http://postgis.refractions.net">PostGIS |
2128 |
Homepage</ulink> |
2129 |
</para> |
2130 |
</listitem> |
2131 |
</varlistentry> |
2132 |
|
2133 |
<varlistentry> |
2134 |
<term>Raster files</term> |
2135 |
<listitem> |
2136 |
<para> |
2137 |
Binding the GDAL library Thuban supports numerous raster file formats, |
2138 |
see <ulink url="http://www.remotesensing.org/gdal/formats_list.html"> |
2139 |
GDAL format list</ulink> for details.</para> |
2140 |
|
2141 |
<para>Most commonly used is the <emphasis>TIFF/GeoTIFF</emphasis> |
2142 |
format: Raster maps are provided as TIFF images, with an additional |
2143 |
"world file" storing the geographic reference (usually with an |
2144 |
extension ".tfw"). |
2145 |
</para> |
2146 |
</listitem> |
2147 |
</varlistentry> |
2148 |
|
2149 |
</variablelist> |
2150 |
</appendix> |
2151 |
|
2152 |
<appendix><title>Working with PostGIS</title> |
2153 |
<para> |
2154 |
This section focusses on the use of PostGIS in the Thuban framework. For |
2155 |
installation and maintenance of spatial databases we refer to the |
2156 |
<ulink url="http://postgis.refractions.net">PostGIS Homepage</ulink>. |
2157 |
The Thuban PostGIS support requires the |
2158 |
<ulink url="http://initd.org/software/psycopg">psycopg module</ulink>. |
2159 |
</para> |
2160 |
|
2161 |
<para> |
2162 |
Working with PostGIS Databases is seperated into two steps: |
2163 |
<itemizedlist> |
2164 |
<listitem><para>Opening a Database Connection</para></listitem> |
2165 |
<listitem><para>Loading a Data Layer</para></listitem> |
2166 |
</itemizedlist> |
2167 |
</para> |
2168 |
<section><title>Opening a Database Connection</title> |
2169 |
<para> |
2170 |
Before a data layer can be loaded from a PostGIS database a |
2171 |
connection with the database has to be established. |
2172 |
<menuchoice> |
2173 |
<guimenu>Session</guimenu> |
2174 |
<guimenuitem>Database Connections ...</guimenuitem> |
2175 |
</menuchoice> opens a dialog for database connection |
2176 |
management. In the dialog new connections can be added |
2177 |
and existing ones can be removed. Removing a database |
2178 |
connection is not possible if the map still displays a |
2179 |
layer provided by this database connection. |
2180 |
</para> |
2181 |
<figure> |
2182 |
<title>Database Management Dialog</title> |
2183 |
<mediaobject> |
2184 |
<imageobject><imagedata fileref="../images/app_postgis_db_management.png" format="PNG" scale="&imgscale;"/></imageobject> |
2185 |
<imageobject><imagedata fileref="./images/app_postgis_db_management.eps" format="EPS" scale="&imgscale;"/></imageobject> |
2186 |
</mediaobject> |
2187 |
</figure> |
2188 |
|
2189 |
<para> |
2190 |
To add a new database connection to the session a dialog is |
2191 |
opened to specify the relevant connection data. Enter all |
2192 |
data relevant for your connection. If the connection fails |
2193 |
the dialog remains open and provides some hints on the failure. |
2194 |
</para> |
2195 |
<figure> |
2196 |
<title>Add Database Dialog</title> |
2197 |
<mediaobject> |
2198 |
<imageobject><imagedata fileref="../images/app_postgis_db_add.png" format="PNG" scale="&imgscale;"/></imageobject> |
2199 |
<imageobject><imagedata fileref="./images/app_postgis_db_add.eps" format="EPS" scale="&imgscale;"/></imageobject> |
2200 |
</mediaobject> |
2201 |
</figure> |
2202 |
|
2203 |
<para> |
2204 |
It is important to note that information on database connections are |
2205 |
also stored with the session. Passwords are NOT stored. If you load a |
2206 |
session with database connections you are asked to enter these |
2207 |
passwords again where required. |
2208 |
</para> |
2209 |
|
2210 |
</section> |
2211 |
|
2212 |
<section><title>Loading a Data Layer</title> |
2213 |
<para> |
2214 |
Data layers as part of a map are loaded with the |
2215 |
<menuchoice> |
2216 |
<guimenu>Map</guimenu> |
2217 |
<guimenuitem>Add Database Layer ...</guimenuitem> |
2218 |
</menuchoice> menu item. A dialog is raised displaying two choice |
2219 |
lists. In the left list all connected databases are shown. |
2220 |
Highlighting |
2221 |
one of these and issuing a retrieval results in a list of available |
2222 |
layer tables from that database. After selection of a |
2223 |
layer the dialog is closed. |
2224 |
</para> |
2225 |
<figure> |
2226 |
<title>Add Database Dialog</title> |
2227 |
<mediaobject> |
2228 |
<imageobject><imagedata fileref="../images/app_postgis_add_layer.png" format="PNG" scale="&imgscale;"/></imageobject> |
2229 |
<imageobject><imagedata fileref="./images/app_postgis_add_layer.eps" format="EPS" scale="&imgscale;"/></imageobject> |
2230 |
</mediaobject> |
2231 |
</figure> |
2232 |
|
2233 |
</section> |
2234 |
|
2235 |
</appendix> |
2236 |
|
2237 |
<appendix><title>Supported Projections</title> |
2238 |
<para> |
2239 |
The following types of projections are directly support by |
2240 |
Thuban. The specific values for each are provided by the user |
2241 |
to create custom projections. Thuban comes with predefined |
2242 |
projections which are available through the Projections dialog. |
2243 |
</para> |
2244 |
<itemizedlist> |
2245 |
<listitem> |
2246 |
<para>Geographic</para> |
2247 |
<itemizedlist> |
2248 |
<listitem><para><literal>Ellipsoid</literal></para></listitem> |
2249 |
<listitem><para> |
2250 |
<literal>Source Data</literal>: either Degrees or Radians |
2251 |
</para></listitem> |
2252 |
</itemizedlist> |
2253 |
</listitem> |
2254 |
<listitem> |
2255 |
<para>Lambert Conic Conformal</para> |
2256 |
<itemizedlist> |
2257 |
<listitem><para><literal>Ellipsoid</literal></para></listitem> |
2258 |
<listitem><para><literal>Latitude of 1st standard parallel</literal></para></listitem> |
2259 |
<listitem><para><literal>Latitude of 2nd standard parallel</literal></para></listitem> |
2260 |
<listitem><para><literal>Central Meridian</literal></para></listitem> |
2261 |
<listitem><para><literal>Latitude of Origin</literal></para></listitem> |
2262 |
<listitem><para><literal>False Easting</literal> (meters)</para></listitem> |
2263 |
<listitem><para><literal>False Northing</literal> (meters)</para></listitem> |
2264 |
</itemizedlist> |
2265 |
</listitem> |
2266 |
<listitem> |
2267 |
<para>Transverse Mercator</para> |
2268 |
<itemizedlist> |
2269 |
<listitem><para><literal>Ellipsoid</literal></para></listitem> |
2270 |
<listitem><para><literal>Latitude</literal>of origin</para></listitem> |
2271 |
<listitem><para><literal>Longitude</literal>at central meridian</para></listitem> |
2272 |
<listitem><para><literal>Scale Factor</literal>at central meridian</para></listitem> |
2273 |
<listitem><para><literal>False Easting</literal> (meters)</para></listitem> |
2274 |
<listitem><para><literal>False Northing</literal> (meters)</para></listitem> |
2275 |
</itemizedlist> |
2276 |
</listitem> |
2277 |
<listitem> |
2278 |
<para>Universal Transverse Mercator</para> |
2279 |
<itemizedlist> |
2280 |
<listitem><para><literal>Ellipsoid</literal></para></listitem> |
2281 |
<listitem><para><literal>Zone</literal> |
2282 |
(can be guessed appling the Propose button)</para></listitem> |
2283 |
<listitem><para><literal>Southern Hemisphere</literal> flag</para></listitem> |
2284 |
</itemizedlist> |
2285 |
</listitem> |
2286 |
</itemizedlist> |
2287 |
|
2288 |
<para> |
2289 |
Thuban comes with a sample set of map projections for various |
2290 |
European countries. Apart from the basic projection they differ |
2291 |
especially in their parameterization: |
2292 |
</para> |
2293 |
<itemizedlist> |
2294 |
<listitem><para>Belgium Datum 1972 (Lambert Conic Conformal)</para> |
2295 |
</listitem> |
2296 |
|
2297 |
<listitem><para>Gauss-Boaga Zone 1 (Italy, Transverse Mercartor)</para> |
2298 |
</listitem> |
2299 |
|
2300 |
<listitem><para>Gauss-Krueger Zone 2 (Germany, Transverse Mercartor) |
2301 |
</para> |
2302 |
</listitem> |
2303 |
|
2304 |
<listitem><para>Reseau Geodesique Francaise |
2305 |
(France, Lambert Conic Conformal)</para> |
2306 |
</listitem> |
2307 |
|
2308 |
<listitem><para>UK National Grid (United Kingdom, Transverse Mercartor) |
2309 |
</para> |
2310 |
</listitem> |
2311 |
</itemizedlist> |
2312 |
|
2313 |
<para> |
2314 |
Thuban uses the comprehensive PROJ library for projections. PROJ provides |
2315 |
more than the four commonly used projections described above. If needed |
2316 |
Thuban can be easily extended to a new projection covered by PROJ. |
2317 |
</para> |
2318 |
</appendix> |
2319 |
|
2320 |
</book> |
2321 |
|