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