1 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Call |
4 |
|
self.selected_shape with the current selection to make sure the |
5 |
|
contents of the dialog are up to date when it's shown for the |
6 |
|
first time. |
7 |
|
The dialog used to work without this by luck. The recent fix to |
8 |
|
the connector module 'broke' a 'feature' the identify view was |
9 |
|
relying on, i.e that subscribing to a message in response to |
10 |
|
receiving a message of that type would mean that the new |
11 |
|
subscriber would also be called for the same message. |
12 |
|
|
13 |
|
2003-06-12 Jonathan Coles <[email protected]> |
14 |
|
|
15 |
|
* extensions/thuban/gdalwarp.cpp: Removed debug printing as |
16 |
|
the image is rendered. Fixes RTbug #1937. |
17 |
|
|
18 |
|
2003-06-12 Jonathan Coles <[email protected]> |
19 |
|
|
20 |
|
* Thuban/Lib/fileutil.py: As is done under Windows, create the |
21 |
|
user directory if it doesn't exist on a posix system. |
22 |
|
Fixes RTbug #1815. |
23 |
|
|
24 |
|
* Thuban/Model/resource.py (get_user_proj_files): Moved the |
25 |
|
called to get_application_dir here, so that the directory |
26 |
|
will only be called if this method is invoked. |
27 |
|
|
28 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear |
29 |
|
the projfilepath if no projection is selected. |
30 |
|
|
31 |
|
2003-06-12 Jonathan Coles <[email protected]> |
32 |
|
|
33 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw |
34 |
|
the scalebar if the current map has no projection set. |
35 |
|
|
36 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the |
37 |
|
projfilepath label to just the basename of the projection file |
38 |
|
rather than include the entire path. |
39 |
|
|
40 |
|
* Thuban/Model/resource.py: Fix missed proj functions that |
41 |
|
needed to be renamed. |
42 |
|
|
43 |
|
2003-06-12 Jonathan Coles <[email protected]> |
44 |
|
|
45 |
|
* Thuban/Model/classification.py: Removed assert statements that |
46 |
|
tested if the variable was an instance of Color. |
47 |
|
|
48 |
|
* Thuban/Model/color.py (Color): Remove commented code that isn't |
49 |
|
used. |
50 |
|
(Transparent): Renamed from NoColor. Doesn't inherit from Color. |
51 |
|
Fixes RTbug #1835. |
52 |
|
(Transparent.__eq__, Transparent.__ne, Transparent.__repr): New. |
53 |
|
Needed now that the class doesn't inherit from Color. |
54 |
|
|
55 |
|
2003-06-12 Jonathan Coles <[email protected]> |
56 |
|
|
57 |
|
* test/test_save.py (XMLWriterTest.testEncode): Explicitly |
58 |
|
check unicode strings. |
59 |
|
|
60 |
|
* test/test_layer.py: Check for existence of gdal. |
61 |
|
|
62 |
|
2003-06-12 Jonathan Coles <[email protected]> |
63 |
|
|
64 |
|
* Thuban/Model/xmlreader.py: New. Contains the XMLReader class |
65 |
|
that was in load.py |
66 |
|
|
67 |
|
* Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class |
68 |
|
that was in save.py |
69 |
|
|
70 |
|
2003-06-12 Jonathan Coles <[email protected]> |
71 |
|
|
72 |
|
This is largely a collection of bug fixes. We also handle the |
73 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
74 |
|
classes were moved into there own files to resolve some circular |
75 |
|
import references and because they shouldn't really be in the |
76 |
|
file that is dediciated to reading/writing session files since |
77 |
|
they are also used elsewhere. |
78 |
|
|
79 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
80 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
81 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
82 |
|
|
83 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
84 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
85 |
|
Addresses RTbug #1877. |
86 |
|
|
87 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
88 |
|
xmlreader.py. |
89 |
|
|
90 |
|
2003-06-12 Jonathan Coles <[email protected]> |
91 |
|
|
92 |
|
This is largely a collection of bug fixes. We also handle the |
93 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
94 |
|
classes were moved into there own files to resolve some circular |
95 |
|
import references and because they shouldn't really be in the |
96 |
|
file that is dediciated to reading/writing session files since |
97 |
|
they are also used elsewhere. |
98 |
|
|
99 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
100 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
101 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
102 |
|
|
103 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
104 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
105 |
|
Addresses RTbug #1877. |
106 |
|
|
107 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
108 |
|
xmlreader.py. |
109 |
|
|
110 |
|
* Thuban/Model/save.py (escape, XMLWriter): Moved into seperate |
111 |
|
file xmlwriter.py. |
112 |
|
|
113 |
|
* Thuban/Model/resource.py: Renamed functions to following the |
114 |
|
function_names_with_underscores style. |
115 |
|
(has_gdal_support): New function that returns true if the gdal |
116 |
|
library is available. Addresses RTbug #1877. |
117 |
|
|
118 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): |
119 |
|
Display a message box if the gdal library is not available, but |
120 |
|
only if there are any layers that would use it. Addresses RTbug #1877. |
121 |
|
|
122 |
|
* Thuban/UI/classgen.py: Use renamed projection resource functions. |
123 |
|
(GenUniformPanel.__CalcStepping): Fix a slight discrepency |
124 |
|
when using integers versus floats. |
125 |
|
|
126 |
|
* Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to |
127 |
|
determine if the "Add Image Layer" menu option should be |
128 |
|
greyed out or not. Addresses RTbug #1877. |
129 |
|
|
130 |
|
* Thuban/UI/projdialog.py: Use renamed projection resource functions. |
131 |
|
|
132 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Only try to |
133 |
|
optimize if a raster layer is visible. Fixes RTbug #1931. |
134 |
|
Only draw the raster layer if the gdal library is available. |
135 |
|
Addresses RTbug #1877. |
136 |
|
|
137 |
|
* test/test_classgen.py: Add tests for generate_singletons, |
138 |
|
generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903. |
139 |
|
(test_calculate_quantiles): Fix some tests to catch the new |
140 |
|
ValueError that is raised. |
141 |
|
|
142 |
|
* test/test_proj.py: Use renamed projection resource functions. |
143 |
|
|
144 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): New |
145 |
|
test for saving classified layers. Fixes RTbug #1902. |
146 |
|
(XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851. |
147 |
|
|
148 |
2003-06-12 Jan-Oliver Wagner <[email protected]> |
2003-06-12 Jan-Oliver Wagner <[email protected]> |
149 |
|
|
150 |
Fix for http://intevation.de/rt/webrt?serial_num=1900. |
Fix for http://intevation.de/rt/webrt?serial_num=1900. |