1410 |
</para> |
</para> |
1411 |
</section> |
</section> |
1412 |
|
|
1413 |
|
<section><title>Extensions included in Thuban package</title> |
1414 |
|
<para> |
1415 |
|
The extensions described in this section are part of the |
1416 |
|
Thuban package, but not activated by default. |
1417 |
|
You will find them in the Thuban installation directory |
1418 |
|
under <literal>Extensions/</literal>. Activate them as personal |
1419 |
|
extensions via PYTHONPATH as described in the previous section. |
1420 |
|
Stable extensions will appear under the menu |
1421 |
|
<menuchoice><guimenu>Extensions</guimenu></menuchoice> and |
1422 |
|
extensions which are in experimental state and therefore |
1423 |
|
not fully functional under |
1424 |
|
<menuchoice><guimenu>Experimental</guimenu></menuchoice>. |
1425 |
|
</para> |
1426 |
|
|
1427 |
|
<section><title>Stable extensions</title> |
1428 |
|
<para> |
1429 |
|
These extensions provide extra-functionality to Thuban |
1430 |
|
that has not (yet) been integrated in the main application. |
1431 |
|
They are considered to be free of bugs, but may be |
1432 |
|
further polished with helpful user interactions. |
1433 |
|
</para> |
1434 |
|
<section><title>gns2shp</title> |
1435 |
|
<para> |
1436 |
|
This tool converts data of the Geospatial Names Server |
1437 |
|
(GNS, see <ulink url="http://www.nima.mil/gns"/>) |
1438 |
|
into Shapefile format. |
1439 |
|
The above web-site offer to download named places |
1440 |
|
information grouped by countries for all of the world |
1441 |
|
except USA for which other data are provided. |
1442 |
|
</para> |
1443 |
|
<para> |
1444 |
|
If you download and unpack a package, you will have |
1445 |
|
a text-file with suffix .txt. |
1446 |
|
Selecting such a file via gns2shp will create the |
1447 |
|
corresponding Shapefile with the same basename and |
1448 |
|
place it in the same direcory. Afterwards it |
1449 |
|
is automatically loaded into Thuban. |
1450 |
|
The Shapefile will not automatically be delete afterwards. |
1451 |
|
</para> |
1452 |
|
<para> |
1453 |
|
The gns2shp.py module can also be executed on the |
1454 |
|
command line for batch processing purposes. |
1455 |
|
</para> |
1456 |
|
<para> |
1457 |
|
A sample (<literal>ls.txt</literal> for Liechtenstein) |
1458 |
|
is included in the directory |
1459 |
|
<literal>Extensions/gns2shp/test</literal>. |
1460 |
|
</para> |
1461 |
|
</section> |
1462 |
|
</section> |
1463 |
|
<section><title>Experimental extensions</title> |
1464 |
|
<para> |
1465 |
|
All all of these functions have to be handled with care, |
1466 |
|
since they are neither complete nor well tested. |
1467 |
|
They are to be seen as a proof-of-concept and may |
1468 |
|
additionally in some cases of practical help. |
1469 |
|
</para> |
1470 |
|
<para> |
1471 |
|
Any interest on further improvement of these extensions |
1472 |
|
should be communicated towards the developer and user |
1473 |
|
community. |
1474 |
|
</para> |
1475 |
|
|
1476 |
|
<section><title>importAPR</title> |
1477 |
|
<para> |
1478 |
|
This command offer to load an ESRI� ArcView� project |
1479 |
|
file (suffix .apr) and convert it for use within Thuban. |
1480 |
|
After selecting a apr-file to load, a list |
1481 |
|
will be presented that offers to select one of the views |
1482 |
|
of the apr-file, provided there is more than one. |
1483 |
|
Furthermore, the Session Info-Tree is extended with |
1484 |
|
a complete representation of the parsed apr-file. |
1485 |
|
</para> |
1486 |
|
<para> |
1487 |
|
The legend of Thuban does not yet cover all of the elements as |
1488 |
|
supported by the legend of ArcView�. Therefore, the Thuban |
1489 |
|
map will look different. Furthermore, the apr-format is |
1490 |
|
a proprietary format, not openly documented. |
1491 |
|
Therefore, the interpretation is |
1492 |
|
partly based on reverse engeneering and good guessing. |
1493 |
|
</para> |
1494 |
|
<para> |
1495 |
|
The file-paths within the apr-file may not fit and potentially |
1496 |
|
are subject to fix in the apr-file. You can do this |
1497 |
|
applying any text editor. The paths are either absolute |
1498 |
|
or relative from where Thuban has been started. |
1499 |
|
</para> |
1500 |
|
<para> |
1501 |
|
A sample for the Iceland data is included as |
1502 |
|
<literal>Extensions/importAPR/samples/iceland.apr</literal>. |
1503 |
|
The file-paths are relative from the Thuban main directory. |
1504 |
|
</para> |
1505 |
|
</section> |
1506 |
|
</section> |
1507 |
|
</section> |
1508 |
|
|
1509 |
<section><title>Writing simple extensions</title> |
<section><title>Writing simple extensions</title> |
1510 |
<para> |
<para> |
1511 |
Writing an extension for Thuban basically means to |
Writing an extension for Thuban basically means to |