1 |
|
2005-06-30 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Extensions/ogr/test/__init__.py: Add missing coding directive |
4 |
|
|
5 |
|
2005-06-28 Jan-Oliver Wagner <[email protected]> |
6 |
|
|
7 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally): |
8 |
|
Use the default size for rendering selected items of default type. |
9 |
|
Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149 |
10 |
|
|
11 |
|
2005-06-28 Jan-Oliver Wagner <[email protected]> |
12 |
|
|
13 |
|
* Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'. |
14 |
|
(APR_TClr.GetThubanColor): Fix bug in color interpretation. |
15 |
|
Thanks to Frank Koormann who identified this problem. |
16 |
|
|
17 |
|
* Extensions/importAPR/importAPR.py (APR_VShSym): New. Just |
18 |
|
another symbol identified. |
19 |
|
|
20 |
|
2005-06-27 Jan-Oliver Wagner <[email protected]> |
21 |
|
|
22 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
23 |
|
|
24 |
|
2005-05-12 Jonathan Coles <[email protected]> |
25 |
|
|
26 |
|
* Thuban/UI/projdialog.py: Add missing import, which led to an |
27 |
|
exception when opening a layer's projection. |
28 |
|
|
29 |
|
2005-05-09 Bernhard Herzog <[email protected]> |
30 |
|
|
31 |
|
* test/support.py (FileLoadTestCase.filename): Fix doc-string. |
32 |
|
|
33 |
|
2005-05-09 Bernhard Herzog <[email protected]> |
34 |
|
|
35 |
|
* Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the |
36 |
|
connection to autoconnect. Fixes RT#3148. |
37 |
|
|
38 |
|
* test/test_postgis_db.py |
39 |
|
(TestPostGISSpecialCases.test_simple_error_handling): New test |
40 |
|
that attempts to reproduce RT#3148. |
41 |
|
|
42 |
|
2005-05-06 Jonathan Coles <[email protected]> |
43 |
|
|
44 |
|
Add support for saving and loading the opacity and mask type |
45 |
|
properties of RasterLayers. Also add support for proper use |
46 |
|
of alpha information while drawing images not in 'RAW' format. |
47 |
|
If transparency in an image format (e.g, PNG) is supported by |
48 |
|
wxWidgets then the image would previously have been draw with |
49 |
|
transparent regions, but the opaque regions would have been |
50 |
|
unaffected by a change in the layer's opacity. This patch |
51 |
|
corrects the problem. |
52 |
|
|
53 |
|
* Thuban/Model/layer.py (RasterLayer): Added opacity and |
54 |
|
masktype parameters to the constructor, and set the |
55 |
|
appropriate variables to those values. |
56 |
|
|
57 |
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added |
58 |
|
code to read the opacity and mask type of the layer and construct |
59 |
|
a new layer with the additional parameters. |
60 |
|
|
61 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Added code |
62 |
|
to save the opacity and mask type of a layer. |
63 |
|
|
64 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass |
65 |
|
the opacity of the layer to draw_raster_data rather than the layer. |
66 |
|
(BaseRenderer.draw_raster_data): Remove the layer parameter because |
67 |
|
the function doesn't need to know about the layer. Add the optional |
68 |
|
opacity parameter whose default is 1.0. Add 'PNG' as a supported |
69 |
|
graphics format. |
70 |
|
|
71 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed |
72 |
|
signature to match that in BaseRenderer. Use the new opacity argument |
73 |
|
in place of calling layer.Opacity(). In the case where the |
74 |
|
format is not 'RAW', alpha_data is None and the loaded image has |
75 |
|
alpha information, use the file's alpha information. This is |
76 |
|
still subject to the layer's opacity setting. |
77 |
|
|
78 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): |
79 |
|
Fixed signature to match that in BaseRenderer. |
80 |
|
|
81 |
|
* test/test_load.py (TestRasterLayer): Change file_contents to |
82 |
|
include opacity and masktype variables. |
83 |
|
(TestRasterLayer.test): Include tests for opacity and masktype |
84 |
|
changes. |
85 |
|
|
86 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Restructure |
87 |
|
test to cover a variety of combinations of masktype and opacity |
88 |
|
settings. |
89 |
|
|
90 |
|
2005-05-02 Jan-Oliver Wagner <[email protected]> |
91 |
|
|
92 |
|
* debian/rules: add --use-wx-python-swig-hack |
93 |
|
to the build command. |
94 |
|
Thanks to Moritz Lennert for pointing this out. |
95 |
|
|
96 |
|
2005-04-28 Jan-Oliver Wagner <[email protected]> |
97 |
|
|
98 |
|
Introduce OGRFileShapeStore in ogr extension. |
99 |
|
This allows at least that loaded shapefile shape stores |
100 |
|
can be saved correctly in the thuban session file |
101 |
|
and reloaded again (reload is via core shapefile |
102 |
|
routine, not OGR). For other types, .thuban files |
103 |
|
can not be reloaded for the time being. |
104 |
|
|
105 |
|
* Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This |
106 |
|
class ist to be used for any file-based shape stores |
107 |
|
accessed through OGR. |
108 |
|
|
109 |
|
* Extensions/ogr/ogrstart.py (open_with_ogr): Added |
110 |
|
forgotten _ for i18n. Adapted call OpenFileShapestore |
111 |
|
regarding new parameter. |
112 |
|
(OpenFileShapestore): Use OGRFileShapeStore instead of |
113 |
|
OGRShapeStore. Fix return value (None instead of null). |
114 |
|
Add new parameter "mainwindow" to avoid accessing global |
115 |
|
context. |
116 |
|
|
117 |
|
2005-04-27 Jan-Oliver Wagner <[email protected]> |
118 |
|
|
119 |
|
Introduce FileShapeStore as generalization for |
120 |
|
file-based shape stores. In a first instance |
121 |
|
this allows additional modules to handle shapefile |
122 |
|
format as well, namely the OGR extension. |
123 |
|
|
124 |
|
* Thuban/Model/data.py: Various small fixes in doc-strings. |
125 |
|
(FileShapeStore): New class. |
126 |
|
(ShapefileStore): Derive from FileShapeStore. |
127 |
|
(ShapefileStore.__init__): Call __init__ of FileShapeStore, |
128 |
|
rename self.table to self._table, initialize self._bbox |
129 |
|
(ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox |
130 |
|
and self.FileName() instead of self.filename. |
131 |
|
(ShapefileStore.Table): Use self._table instead of self.table. |
132 |
|
(ShapefileStore.FileName): Removed (moved to FileShapeStore). |
133 |
|
(ShapefileStore.BoundingBox): Use self._bbox instead of self.bbox. |
134 |
|
|
135 |
|
* Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore. |
136 |
|
(SessionSaver.write_data_containers): Only use methods of the |
137 |
|
base class FileShapeStore. |
138 |
|
|
139 |
|
2005-04-26 Martin Schulze <[email protected]> |
140 |
|
|
141 |
|
* Extensions/wms/wms.py (render_wms_layer): Adjusted the render |
142 |
|
function to the modified render engine |
143 |
|
|
144 |
|
2005-04-25 Martin Schulze <[email protected]> |
145 |
|
|
146 |
|
* Thuban/UI/renderer.py (MapRenderer.projected_raster_layer): |
147 |
|
Added a description according to the CVS log message |
148 |
|
|
149 |
|
2005-04-23 Martin Schulze <[email protected]> |
150 |
|
|
151 |
|
* Thuban/UI/renderer.py: Added a missing import |
152 |
|
|
153 |
|
2005-04-23 Russell Nelson <[email protected]> |
154 |
|
|
155 |
|
* Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the |
156 |
|
way the previous tool is remembered, so that middle-button |
157 |
|
panning works even if you haven't selected a tool. |
158 |
|
|
159 |
|
2005-04-11 Bernhard Herzog <[email protected]> |
160 |
|
|
161 |
|
* libraries/thuban/wxproj.cpp: Move the compatibility code that |
162 |
|
deals with the wxPython 2.4 version of wxPython.h into the #ifdef |
163 |
|
branch that includes wxPython.h because it's only needed when |
164 |
|
wxPython.h is used. Also, it won't compile when |
165 |
|
USE_WX_PYTHON_SWIG_HACK is set otherwise. |
166 |
|
|
167 |
|
2005-04-07 Bernhard Herzog <[email protected]> |
168 |
|
|
169 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID. |
170 |
|
(ID_CLASS_TABLE): Removed. It wasn't used anywhere except in |
171 |
|
ClassGrid.__init__ and it's value is outside of the valid |
172 |
|
range (must be < 32768). wxPython 2.5 complains about it with an |
173 |
|
exception. |
174 |
|
|
175 |
|
2005-04-05 Jan-Oliver Wagner <[email protected]> |
176 |
|
|
177 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
178 |
|
|
179 |
|
2005-04-05 Bernhard Herzog <[email protected]> |
180 |
|
|
181 |
|
* libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from |
182 |
|
wxPython 2.4 as well. Also, remove a now obsolete comment. |
183 |
|
|
184 |
|
2005-04-05 Bernhard Herzog <[email protected]> |
185 |
|
|
186 |
|
Use wxPython.h by default but provide a workaround when it isn't |
187 |
|
available. |
188 |
|
|
189 |
|
* setup.py (wxproj_extension): New variable. Assign the Extension |
190 |
|
instance for Lib.wxproj to this variable instead of putting it |
191 |
|
directly into the listso that it can be accessed by other code |
192 |
|
later. |
193 |
|
(thuban_build_ext.user_options): Added boolean option |
194 |
|
--use-wx-python-swig-hack. |
195 |
|
(thuban_build_ext.initialize_options): Initialize the new option |
196 |
|
to False. |
197 |
|
(thuban_build_ext.finalize_options): If the new option was given, |
198 |
|
define the preprocesser macro USE_WX_PYTHON_SWIG_HACK. |
199 |
|
(thuban_build_ext): Update the doc-string |
200 |
|
|
201 |
|
* libraries/thuban/wxproj.cpp: Normally we use |
202 |
|
wx/wxPython/wxPython.h now. Only if USE_WX_PYTHON_SWIG_HACK is |
203 |
|
defined, use swigPtrConvertHack.h instead. |
204 |
|
|
205 |
|
* libraries/thuban/swigPtrConvertHack.h: Remove the code that was |
206 |
|
copied over from wxPython.h. |
207 |
|
(decode_pointer_new): New. Equivalent of decode_pointer for |
208 |
|
wxPython 2.5. |
209 |
|
(wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well. |
210 |
|
|
211 |
|
* README: Add section on potential build problems which explains |
212 |
|
how the work-around for a missing wxPython.h is activated. |
213 |
|
|
214 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
215 |
|
|
216 |
|
* test/postgissupport.py (find_postgis_sql): Added yet another |
217 |
|
potential location for (lw)postgis.sql because the file has moved |
218 |
|
again in postgis 1.0.0 rc4. |
219 |
|
|
220 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
221 |
|
|
222 |
|
* Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to |
223 |
|
match the site of the legend_icon_layer icon. Otherwise wxpython |
224 |
|
2.5 complains when the legend is created with the error: |
225 |
|
|
226 |
|
PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width && |
227 |
|
bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == |
228 |
|
0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size |
229 |
|
in wxImageList: this might work on this platform but definitely |
230 |
|
won't under Windows. |
231 |
|
|
232 |
|
2005-03-23 Jonathan Coles <[email protected]> |
233 |
|
|
234 |
|
These changes add support for adjusting the opacity of a raster layer. |
235 |
|
|
236 |
|
* Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity. |
237 |
|
(RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers |
238 |
|
a LAYER_CHANGED event if the opacity actually changes. |
239 |
|
|
240 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added |
241 |
|
layer parameter needed in the implementation of this method in |
242 |
|
renderer.py. |
243 |
|
|
244 |
|
* Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed |
245 |
|
typo 00 -> 0. |
246 |
|
|
247 |
|
* Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added |
248 |
|
control to adjust opacity. |
249 |
|
|
250 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the |
251 |
|
alpha data based on the opacity level of the layer. |
252 |
|
|
253 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now |
254 |
|
accepts a layer parameter. |
255 |
|
|
256 |
|
* test/test_layer.py (TestLayerModification.test_raster_layer): |
257 |
|
Rename opacity method calls and add test for LAYER_CHANGED. |
258 |
|
|
259 |
2005-03-16 Bernhard Herzog <[email protected]> |
2005-03-16 Bernhard Herzog <[email protected]> |
260 |
|
|
261 |
* test/test_connector.py (DeletionTestMixin.check_deletions) |
* test/test_connector.py (DeletionTestMixin.check_deletions) |