1 |
|
2003-06-12 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
This is largely a collection of bug fixes. We also handle the |
4 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
5 |
|
classes were moved into there own files to resolve some circular |
6 |
|
import references and because they shouldn't really be in the |
7 |
|
file that is dediciated to reading/writing session files since |
8 |
|
they are also used elsewhere. |
9 |
|
|
10 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
11 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
12 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
13 |
|
|
14 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
15 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
16 |
|
Addresses RTbug #1877. |
17 |
|
|
18 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
19 |
|
xmlreader.py. |
20 |
|
|
21 |
|
* Thuban/Model/save.py (escape, XMLWriter): Moved into seperate |
22 |
|
file xmlwriter.py. |
23 |
|
|
24 |
|
* Thuban/Model/resource.py: Renamed functions to following the |
25 |
|
function_names_with_underscores style. |
26 |
|
(has_gdal_support): New function that returns true if the gdal |
27 |
|
library is available. Addresses RTbug #1877. |
28 |
|
|
29 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): |
30 |
|
Display a message box if the gdal library is not available, but |
31 |
|
only if there are any layers that would use it. Addresses RTbug #1877. |
32 |
|
|
33 |
|
* Thuban/UI/classgen.py: Use renamed projection resource functions. |
34 |
|
(GenUniformPanel.__CalcStepping): Fix a slight discrepency |
35 |
|
when using integers versus floats. |
36 |
|
|
37 |
|
* Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to |
38 |
|
determine if the "Add Image Layer" menu option should be |
39 |
|
greyed out or not. Addresses RTbug #1877. |
40 |
|
|
41 |
|
* Thuban/UI/projdialog.py: Use renamed projection resource functions. |
42 |
|
|
43 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Only try to |
44 |
|
optimize if a raster layer is visible. Fixes RTbug #1931. |
45 |
|
Only draw the raster layer if the gdal library is available. |
46 |
|
Addresses RTbug #1877. |
47 |
|
|
48 |
|
* test/test_classgen.py: Add tests for generate_singletons, |
49 |
|
generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903. |
50 |
|
(test_calculate_quantiles): Fix some tests to catch the new |
51 |
|
ValueError that is raised. |
52 |
|
|
53 |
|
* test/test_proj.py: Use renamed projection resource functions. |
54 |
|
|
55 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): New |
56 |
|
test for saving classified layers. Fixes RTbug #1902. |
57 |
|
(XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851. |
58 |
|
|
59 |
2003-06-12 Jan-Oliver Wagner <[email protected]> |
2003-06-12 Jan-Oliver Wagner <[email protected]> |
60 |
|
|
61 |
Fix for http://intevation.de/rt/webrt?serial_num=1900. |
Fix for http://intevation.de/rt/webrt?serial_num=1900. |