1 |
|
2005-07-05 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* setup.py (setup call): Version 1.1.0 |
4 |
|
|
5 |
|
* NEWS: Update for 1.1.0 |
6 |
|
|
7 |
|
* MANIFEST.in: Add *.txt to files taken from Doc. Otherwise the |
8 |
|
technores won't be included |
9 |
|
|
10 |
|
* Thuban/UI/about.py (About.__init__): Extend copyright notice to |
11 |
|
2005 |
12 |
|
|
13 |
|
* po/de.po: Updated. |
14 |
|
|
15 |
|
2005-07-05 Bernhard Herzog <[email protected]> |
16 |
|
|
17 |
|
* README: gdal 1.1.8 is too old. 1.2.5 works. |
18 |
|
|
19 |
|
2005-07-05 Bernhard Herzog <[email protected]> |
20 |
|
|
21 |
|
* Resources/XML/thuban-1.1.dtd (rasterlayer): Add the opacity and |
22 |
|
masktype attributes. |
23 |
|
|
24 |
|
2005-07-05 Bernhard Herzog <[email protected]> |
25 |
|
|
26 |
|
* Thuban/Model/layer.py (Layer.__mangle_bounding_box) |
27 |
|
(Layer.ClipBoundingBox): Rename ClipBoundingBox to |
28 |
|
__mangle_bounding_box. See the comments in the code and RT #2845 |
29 |
|
|
30 |
|
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
31 |
|
Remove the explicit test of ClipBoundingBox. The method isn't |
32 |
|
public anymore and the direct call in the test wasn't necessary in |
33 |
|
the first place. If ClipBoundingBox (now __mangle_bounding_box) |
34 |
|
isn't called, the return value of ShapesInRegion will be |
35 |
|
different. |
36 |
|
|
37 |
|
2005-07-05 Bernhard Herzog <[email protected]> |
38 |
|
|
39 |
|
* Thuban/UI/viewport.py (ViewPort.set_view_transform): Handle |
40 |
|
ZeroDivisionError exceptions. I don't know when they happen |
41 |
|
exactly. It probably happens when the projections aren't set |
42 |
|
properly. |
43 |
|
|
44 |
|
2005-07-01 Bernhard Herzog <[email protected]> |
45 |
|
|
46 |
|
First step towards unicode. With this roughly we're at step 1 |
47 |
|
string_representation.txt |
48 |
|
|
49 |
|
* Doc/technotes/string_representation.txt: New. Document how |
50 |
|
strings are represented in Thuban and how to get to a Unicode |
51 |
|
Thuban. |
52 |
|
|
53 |
|
* Thuban/__init__.py (set_internal_encoding) |
54 |
|
(unicode_from_internal, internal_from_unicode): New. The first few |
55 |
|
functions for the internal string representation |
56 |
|
|
57 |
|
* Thuban/UI/about.py (unicodeToLocale): Removed. Use |
58 |
|
internal_from_unicode instead. |
59 |
|
|
60 |
|
* Thuban/UI/__init__.py (install_wx_translation): Determine the |
61 |
|
encoding to use for the internal string representation. Also, |
62 |
|
change the translation function to return strings in internal |
63 |
|
representation even on unicode builds of wxPython |
64 |
|
|
65 |
|
* Thuban/Model/load.py (SessionLoader.check_attrs): Decode |
66 |
|
filenames too. |
67 |
|
(SessionLoader.start_clrange): Use check_attrs to decode and check |
68 |
|
the attributes. |
69 |
|
|
70 |
|
* Thuban/Model/xmlreader.py (XMLReader.encode): Use |
71 |
|
internal_from_unicode to convert unicode strings. |
72 |
|
|
73 |
|
* Thuban/Model/xmlwriter.py (XMLWriter.encode): Use |
74 |
|
unicode_from_internal when applicable |
75 |
|
|
76 |
|
* test/runtests.py (main): New command line option: |
77 |
|
internal-encoding to specify the internal string encoding to use |
78 |
|
in the tests. |
79 |
|
|
80 |
|
* test/support.py (initthuban): Set the internal encoding to |
81 |
|
latin-1 |
82 |
|
|
83 |
|
* test/test_load.py (TestSingleLayer.test, TestClassification.test) |
84 |
|
(TestLabelLayer.test): Use the internal string representation when |
85 |
|
dealing with non-ascii characters |
86 |
|
|
87 |
|
* test/test_load_1_0.py (TestSingleLayer.test) |
88 |
|
(TestClassification.test, TestLabelLayer.test): Use the internal |
89 |
|
string representation when dealing with non-ascii characters |
90 |
|
|
91 |
|
* test/test_load_0_9.py (TestSingleLayer.test) |
92 |
|
(TestClassification.test): Use the internal string representation |
93 |
|
when dealing with non-ascii characters |
94 |
|
|
95 |
|
* test/test_load_0_8.py (TestUnicodeStrings.test): Use the |
96 |
|
internal string representation when dealing with non-ascii |
97 |
|
characters |
98 |
|
|
99 |
|
* test/test_save.py (XMLWriterTest.testEncode) |
100 |
|
(SaveSessionTest.testClassifiedLayer): Use the internal string |
101 |
|
representation when dealing with non-ascii characters where |
102 |
|
applicable |
103 |
|
|
104 |
|
2005-06-30 Bernhard Herzog <[email protected]> |
105 |
|
|
106 |
|
* test/runtests.py: Untabify. |
107 |
|
|
108 |
|
2005-06-30 Bernhard Herzog <[email protected]> |
109 |
|
|
110 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally): |
111 |
|
untabify. |
112 |
|
|
113 |
|
2005-06-30 Bernhard Herzog <[email protected]> |
114 |
|
|
115 |
|
* Extensions/ogr/test/__init__.py: Add missing coding directive |
116 |
|
|
117 |
|
2005-06-28 Jan-Oliver Wagner <[email protected]> |
118 |
|
|
119 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally): |
120 |
|
Use the default size for rendering selected items of default type. |
121 |
|
Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149 |
122 |
|
|
123 |
|
2005-06-28 Jan-Oliver Wagner <[email protected]> |
124 |
|
|
125 |
|
* Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'. |
126 |
|
(APR_TClr.GetThubanColor): Fix bug in color interpretation. |
127 |
|
Thanks to Frank Koormann who identified this problem. |
128 |
|
|
129 |
|
* Extensions/importAPR/importAPR.py (APR_VShSym): New. Just |
130 |
|
another symbol identified. |
131 |
|
|
132 |
|
2005-06-27 Jan-Oliver Wagner <[email protected]> |
133 |
|
|
134 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
135 |
|
|
136 |
|
2005-05-12 Jonathan Coles <[email protected]> |
137 |
|
|
138 |
|
* Thuban/UI/projdialog.py: Add missing import, which led to an |
139 |
|
exception when opening a layer's projection. |
140 |
|
|
141 |
|
2005-05-09 Bernhard Herzog <[email protected]> |
142 |
|
|
143 |
|
* test/support.py (FileLoadTestCase.filename): Fix doc-string. |
144 |
|
|
145 |
|
2005-05-09 Bernhard Herzog <[email protected]> |
146 |
|
|
147 |
|
* Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the |
148 |
|
connection to autoconnect. Fixes RT#3148. |
149 |
|
|
150 |
|
* test/test_postgis_db.py |
151 |
|
(TestPostGISSpecialCases.test_simple_error_handling): New test |
152 |
|
that attempts to reproduce RT#3148. |
153 |
|
|
154 |
|
2005-05-06 Jonathan Coles <[email protected]> |
155 |
|
|
156 |
|
Add support for saving and loading the opacity and mask type |
157 |
|
properties of RasterLayers. Also add support for proper use |
158 |
|
of alpha information while drawing images not in 'RAW' format. |
159 |
|
If transparency in an image format (e.g, PNG) is supported by |
160 |
|
wxWidgets then the image would previously have been draw with |
161 |
|
transparent regions, but the opaque regions would have been |
162 |
|
unaffected by a change in the layer's opacity. This patch |
163 |
|
corrects the problem. |
164 |
|
|
165 |
|
* Thuban/Model/layer.py (RasterLayer): Added opacity and |
166 |
|
masktype parameters to the constructor, and set the |
167 |
|
appropriate variables to those values. |
168 |
|
|
169 |
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added |
170 |
|
code to read the opacity and mask type of the layer and construct |
171 |
|
a new layer with the additional parameters. |
172 |
|
|
173 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Added code |
174 |
|
to save the opacity and mask type of a layer. |
175 |
|
|
176 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass |
177 |
|
the opacity of the layer to draw_raster_data rather than the layer. |
178 |
|
(BaseRenderer.draw_raster_data): Remove the layer parameter because |
179 |
|
the function doesn't need to know about the layer. Add the optional |
180 |
|
opacity parameter whose default is 1.0. Add 'PNG' as a supported |
181 |
|
graphics format. |
182 |
|
|
183 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed |
184 |
|
signature to match that in BaseRenderer. Use the new opacity argument |
185 |
|
in place of calling layer.Opacity(). In the case where the |
186 |
|
format is not 'RAW', alpha_data is None and the loaded image has |
187 |
|
alpha information, use the file's alpha information. This is |
188 |
|
still subject to the layer's opacity setting. |
189 |
|
|
190 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): |
191 |
|
Fixed signature to match that in BaseRenderer. |
192 |
|
|
193 |
|
* test/test_load.py (TestRasterLayer): Change file_contents to |
194 |
|
include opacity and masktype variables. |
195 |
|
(TestRasterLayer.test): Include tests for opacity and masktype |
196 |
|
changes. |
197 |
|
|
198 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Restructure |
199 |
|
test to cover a variety of combinations of masktype and opacity |
200 |
|
settings. |
201 |
|
|
202 |
|
2005-05-02 Jan-Oliver Wagner <[email protected]> |
203 |
|
|
204 |
|
* debian/rules: add --use-wx-python-swig-hack |
205 |
|
to the build command. |
206 |
|
Thanks to Moritz Lennert for pointing this out. |
207 |
|
|
208 |
|
2005-04-28 Jan-Oliver Wagner <[email protected]> |
209 |
|
|
210 |
|
Introduce OGRFileShapeStore in ogr extension. |
211 |
|
This allows at least that loaded shapefile shape stores |
212 |
|
can be saved correctly in the thuban session file |
213 |
|
and reloaded again (reload is via core shapefile |
214 |
|
routine, not OGR). For other types, .thuban files |
215 |
|
can not be reloaded for the time being. |
216 |
|
|
217 |
|
* Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This |
218 |
|
class ist to be used for any file-based shape stores |
219 |
|
accessed through OGR. |
220 |
|
|
221 |
|
* Extensions/ogr/ogrstart.py (open_with_ogr): Added |
222 |
|
forgotten _ for i18n. Adapted call OpenFileShapestore |
223 |
|
regarding new parameter. |
224 |
|
(OpenFileShapestore): Use OGRFileShapeStore instead of |
225 |
|
OGRShapeStore. Fix return value (None instead of null). |
226 |
|
Add new parameter "mainwindow" to avoid accessing global |
227 |
|
context. |
228 |
|
|
229 |
|
2005-04-27 Jan-Oliver Wagner <[email protected]> |
230 |
|
|
231 |
|
Introduce FileShapeStore as generalization for |
232 |
|
file-based shape stores. In a first instance |
233 |
|
this allows additional modules to handle shapefile |
234 |
|
format as well, namely the OGR extension. |
235 |
|
|
236 |
|
* Thuban/Model/data.py: Various small fixes in doc-strings. |
237 |
|
(FileShapeStore): New class. |
238 |
|
(ShapefileStore): Derive from FileShapeStore. |
239 |
|
(ShapefileStore.__init__): Call __init__ of FileShapeStore, |
240 |
|
rename self.table to self._table, initialize self._bbox |
241 |
|
(ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox |
242 |
|
and self.FileName() instead of self.filename. |
243 |
|
(ShapefileStore.Table): Use self._table instead of self.table. |
244 |
|
(ShapefileStore.FileName): Removed (moved to FileShapeStore). |
245 |
|
(ShapefileStore.BoundingBox): Use self._bbox instead of self.bbox. |
246 |
|
|
247 |
|
* Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore. |
248 |
|
(SessionSaver.write_data_containers): Only use methods of the |
249 |
|
base class FileShapeStore. |
250 |
|
|
251 |
|
2005-04-26 Martin Schulze <[email protected]> |
252 |
|
|
253 |
|
* Extensions/wms/wms.py (render_wms_layer): Adjusted the render |
254 |
|
function to the modified render engine |
255 |
|
|
256 |
|
2005-04-25 Martin Schulze <[email protected]> |
257 |
|
|
258 |
|
* Thuban/UI/renderer.py (MapRenderer.projected_raster_layer): |
259 |
|
Added a description according to the CVS log message |
260 |
|
|
261 |
|
2005-04-23 Martin Schulze <[email protected]> |
262 |
|
|
263 |
|
* Thuban/UI/renderer.py: Added a missing import |
264 |
|
|
265 |
|
2005-04-23 Russell Nelson <[email protected]> |
266 |
|
|
267 |
|
* Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the |
268 |
|
way the previous tool is remembered, so that middle-button |
269 |
|
panning works even if you haven't selected a tool. |
270 |
|
|
271 |
|
2005-04-11 Bernhard Herzog <[email protected]> |
272 |
|
|
273 |
|
* libraries/thuban/wxproj.cpp: Move the compatibility code that |
274 |
|
deals with the wxPython 2.4 version of wxPython.h into the #ifdef |
275 |
|
branch that includes wxPython.h because it's only needed when |
276 |
|
wxPython.h is used. Also, it won't compile when |
277 |
|
USE_WX_PYTHON_SWIG_HACK is set otherwise. |
278 |
|
|
279 |
|
2005-04-07 Bernhard Herzog <[email protected]> |
280 |
|
|
281 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID. |
282 |
|
(ID_CLASS_TABLE): Removed. It wasn't used anywhere except in |
283 |
|
ClassGrid.__init__ and it's value is outside of the valid |
284 |
|
range (must be < 32768). wxPython 2.5 complains about it with an |
285 |
|
exception. |
286 |
|
|
287 |
|
2005-04-05 Jan-Oliver Wagner <[email protected]> |
288 |
|
|
289 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
290 |
|
|
291 |
|
2005-04-05 Bernhard Herzog <[email protected]> |
292 |
|
|
293 |
|
* libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from |
294 |
|
wxPython 2.4 as well. Also, remove a now obsolete comment. |
295 |
|
|
296 |
|
2005-04-05 Bernhard Herzog <[email protected]> |
297 |
|
|
298 |
|
Use wxPython.h by default but provide a workaround when it isn't |
299 |
|
available. |
300 |
|
|
301 |
|
* setup.py (wxproj_extension): New variable. Assign the Extension |
302 |
|
instance for Lib.wxproj to this variable instead of putting it |
303 |
|
directly into the listso that it can be accessed by other code |
304 |
|
later. |
305 |
|
(thuban_build_ext.user_options): Added boolean option |
306 |
|
--use-wx-python-swig-hack. |
307 |
|
(thuban_build_ext.initialize_options): Initialize the new option |
308 |
|
to False. |
309 |
|
(thuban_build_ext.finalize_options): If the new option was given, |
310 |
|
define the preprocesser macro USE_WX_PYTHON_SWIG_HACK. |
311 |
|
(thuban_build_ext): Update the doc-string |
312 |
|
|
313 |
|
* libraries/thuban/wxproj.cpp: Normally we use |
314 |
|
wx/wxPython/wxPython.h now. Only if USE_WX_PYTHON_SWIG_HACK is |
315 |
|
defined, use swigPtrConvertHack.h instead. |
316 |
|
|
317 |
|
* libraries/thuban/swigPtrConvertHack.h: Remove the code that was |
318 |
|
copied over from wxPython.h. |
319 |
|
(decode_pointer_new): New. Equivalent of decode_pointer for |
320 |
|
wxPython 2.5. |
321 |
|
(wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well. |
322 |
|
|
323 |
|
* README: Add section on potential build problems which explains |
324 |
|
how the work-around for a missing wxPython.h is activated. |
325 |
|
|
326 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
327 |
|
|
328 |
|
* test/postgissupport.py (find_postgis_sql): Added yet another |
329 |
|
potential location for (lw)postgis.sql because the file has moved |
330 |
|
again in postgis 1.0.0 rc4. |
331 |
|
|
332 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
333 |
|
|
334 |
|
* Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to |
335 |
|
match the site of the legend_icon_layer icon. Otherwise wxpython |
336 |
|
2.5 complains when the legend is created with the error: |
337 |
|
|
338 |
|
PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width && |
339 |
|
bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == |
340 |
|
0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size |
341 |
|
in wxImageList: this might work on this platform but definitely |
342 |
|
won't under Windows. |
343 |
|
|
344 |
|
2005-03-23 Jonathan Coles <[email protected]> |
345 |
|
|
346 |
|
These changes add support for adjusting the opacity of a raster layer. |
347 |
|
|
348 |
|
* Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity. |
349 |
|
(RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers |
350 |
|
a LAYER_CHANGED event if the opacity actually changes. |
351 |
|
|
352 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added |
353 |
|
layer parameter needed in the implementation of this method in |
354 |
|
renderer.py. |
355 |
|
|
356 |
|
* Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed |
357 |
|
typo 00 -> 0. |
358 |
|
|
359 |
|
* Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added |
360 |
|
control to adjust opacity. |
361 |
|
|
362 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the |
363 |
|
alpha data based on the opacity level of the layer. |
364 |
|
|
365 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now |
366 |
|
accepts a layer parameter. |
367 |
|
|
368 |
|
* test/test_layer.py (TestLayerModification.test_raster_layer): |
369 |
|
Rename opacity method calls and add test for LAYER_CHANGED. |
370 |
|
|
371 |
|
2005-03-16 Bernhard Herzog <[email protected]> |
372 |
|
|
373 |
|
* test/test_connector.py (DeletionTestMixin.check_deletions) |
374 |
|
(DeletionTestMixin.check_deletetions): renamed to check_deletions. |
375 |
|
update the callers. |
376 |
|
|
377 |
|
2005-03-14 Jan-Oliver Wagner <[email protected]> |
378 |
|
|
379 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
380 |
|
|
381 |
|
2005-03-10 Jan-Oliver Wagner <[email protected]> |
382 |
|
|
383 |
|
Introducing initialization callbacks for extensions. |
384 |
|
|
385 |
|
* Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added |
386 |
|
optional parameter init_callback. |
387 |
|
(ExtensionDesc.init_ext): New. Executes the callback and sets |
388 |
|
a status. |
389 |
|
|
390 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Add the |
391 |
|
initialization of the extensions. |
392 |
|
(ThubanApplication.init_extensions): Init all extensions. |
393 |
|
|
394 |
|
* Thuban/UI/about.py (About.__init__): Added status of the extensions |
395 |
|
to the about text. |
396 |
|
|
397 |
|
* Extensions/gns2shp/__init__.py: Added init method for Extension |
398 |
|
description. |
399 |
|
(init): New. Contains the initialization of the module. |
400 |
|
|
401 |
|
2005-03-04 Nina H�ffmeyer <[email protected]> |
402 |
|
|
403 |
|
* Extensions/ogr/ogrdialog.py: Added a dialog, which asks for |
404 |
|
OGRConnection to open a datasource. Removed dialog to display all |
405 |
|
available drivers. Added some doc strings. |
406 |
|
|
407 |
|
* Extensions/ogr/ogrstart.py: Added menu entry for opening an |
408 |
|
OGRDatasource with a string. Added two opening methods which return an |
409 |
|
OGRDatasource (either data from file or from DB). |
410 |
|
|
411 |
|
* Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which |
412 |
|
represents a geometry reference of an OGRFeature. OGRShape now has a |
413 |
|
list of referenced geometry objects (important for geometry |
414 |
|
collections). |
415 |
|
For OGRShapeStores loaded from a DB an ID column can be specified now. |
416 |
|
|
417 |
|
2005-02-22 Jan-Oliver Wagner <[email protected]> |
418 |
|
|
419 |
|
* test/test_map.py (TestMapWithContents.test_tree_info): |
420 |
|
Added label layer for comparison. |
421 |
|
|
422 |
|
2005-02-18 Jonathan Coles <[email protected]> |
423 |
|
|
424 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop |
425 |
|
which builds a mask. Handle the majority of an image in a loop, |
426 |
|
creating 8 bits at a time. Later, handle the edge case where less |
427 |
|
than 8 bits are packed. |
428 |
|
|
429 |
|
2005-02-18 Bernhard Herzog <[email protected]> |
430 |
|
|
431 |
|
* test/test_baserenderer.py (TestBaseRenderer.setUp): Fix |
432 |
|
doc-string |
433 |
|
|
434 |
|
2005-02-18 Jonathan Coles <[email protected]> |
435 |
|
|
436 |
|
* setup.py: Remove wx_cs_params from gdal compile options. |
437 |
|
|
438 |
|
2005-02-18 Jonathan Coles <[email protected]> |
439 |
|
|
440 |
|
Refactored baserenderer.py and renderer.py to remove baserenderer.py's |
441 |
|
dependencies on wxPython. Added a new method projected_raster_layer() |
442 |
|
that returns a raster layer image in projected space. This must be |
443 |
|
implemented in classes derived from BaseRenderer. This also eliminates |
444 |
|
the dependency on gdal in baserenderer.py. |
445 |
|
|
446 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call |
447 |
|
new projected_raster_layer() to get projected raster image instead |
448 |
|
of directly calling ProjectRasterFile(). |
449 |
|
(BaseRenderer.projected_raster_layer): New. This must be implemented |
450 |
|
by derived classes. It takes almost the same arguments as ProjectRasterFile |
451 |
|
did and returns a projected image with mask and alpha data (if requested). |
452 |
|
(BaseRenderer.render_map_incrementally): Remove the check for gdal since |
453 |
|
that check will be done in MapRenderer.projected_raster_layer(). This |
454 |
|
also allows other implementations to use different projection code. |
455 |
|
|
456 |
|
* Thuban/UI/renderer.py (MapRenderer.projected_raster_layer): |
457 |
|
Implementation of BaseRenderer.projected_raster_layer. Checks for |
458 |
|
gdal support and wxPython version. Also handles exceptions from |
459 |
|
ProjectRasterFile. |
460 |
|
|
461 |
|
* libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions |
462 |
|
and added a variable which can be set through the options argument |
463 |
|
of ProjectRasterFile. |
464 |
|
|
465 |
|
* test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New. |
466 |
|
Calls ProjectRasterFile and returns the result. |
467 |
|
(TestBaseRenderer.test_projected_raster_layer): New. Tests the results |
468 |
|
of calling projected_raster_layer() with different options. |
469 |
|
(TestBaseRenderer.test_raster_no_projection): Removed tests based on |
470 |
|
wxPython version and all tests of masks and alpha channels. These are |
471 |
|
now in test_projected_raster_layer(). |
472 |
|
|
473 |
|
2005-02-17 Jan-Oliver Wagner <[email protected]> |
474 |
|
|
475 |
|
* Thuban/Model/map.py, Thuban/Model/label.py: Fixed |
476 |
|
doc-strings to comply with coding_guidelines. |
477 |
|
|
478 |
|
2005-02-17 Jan-Oliver Wagner <[email protected]> |
479 |
|
|
480 |
|
Docstring improvements and minor fixes for labellayer. |
481 |
|
|
482 |
|
* Thuban/Model/map.py: |
483 |
|
(Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers, |
484 |
|
Map.Layers, Map.HasLayers, Map.MoveLayerToTop, |
485 |
|
Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom, |
486 |
|
Map.ProjectedBoundingBox, Map.GetProjection): Improved/added |
487 |
|
doc string. |
488 |
|
(Map.BoundingBox): Removed superfluous test for label_layer |
489 |
|
and improved doc string. |
490 |
|
(Map.TreeInfo): Added label_layer and improved sdo string. |
491 |
|
|
492 |
|
* Thuban/Model/label.py: Added import of _. |
493 |
|
(Label, Label.__init__): Improved/added doc string. |
494 |
|
(LabelLayer, LabelLayer.__init__, LabelLayer.Labels, |
495 |
|
LabelLayer.RemoveLabel, LabelLayer.ClearLabels): |
496 |
|
Improved/added doc string. |
497 |
|
(LabelLayer.AddLabel): Use already defined names for |
498 |
|
align strings and improved doc string. |
499 |
|
(LabelLayer.TreeInfo): New. Return the object data for |
500 |
|
the tree view. |
501 |
|
|
502 |
|
2005-02-16 Jonathan Coles <[email protected]> |
503 |
|
|
504 |
|
Further wxPython 2.5 changes using patches from Daniel Calvelo Aros |
505 |
|
so that that wxproj doesn't crash. Added GUI support for selecting |
506 |
|
alpha channel (opacity can't be selected yet). |
507 |
|
|
508 |
|
NOTE: If wxPython.h is including in future distribution packages |
509 |
|
then it will not be necessary to have the files swigPtrConvertHack.h |
510 |
|
and wxPython_int.h included with Thuban. This is hopefully |
511 |
|
a temporary workaround. |
512 |
|
|
513 |
|
* setup.py (thuban_build_ext.finalize_options): gdalwarp needs |
514 |
|
access to the macro wxCHECK_VERSION so that it will properly |
515 |
|
generate a bit mask. There was a problem between wx2.4 and wx2.5 |
516 |
|
that this works around. |
517 |
|
|
518 |
|
* Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor |
519 |
|
of RasterLayer.MaskType. |
520 |
|
(RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType |
521 |
|
(RasterLayer.MaskType): New. Returns the type of mask to use. Can |
522 |
|
specify none, a bitmap, or an alpha channel. |
523 |
|
(RasterLayer.SetMaskType): New. Set what kind of mask to use. |
524 |
|
|
525 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): |
526 |
|
Set the raster warping options for the mask based on the value |
527 |
|
of RasterLayer.MaskType. |
528 |
|
|
529 |
|
* Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove |
530 |
|
deprecated calls to SetItemSelectedImage in favor of SetItemImage |
531 |
|
with wxTreeItemIcon_Selected. |
532 |
|
|
533 |
|
* Thuban/UI/rasterlayerproperties.py: Support selecting to use |
534 |
|
an alpha channel for the mask. |
535 |
|
|
536 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha |
537 |
|
data if it is available and an alpha channel is supported under |
538 |
|
the current version of wxPython. |
539 |
|
|
540 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define |
541 |
|
to select whether 1's or 0's select the desired portion of an image |
542 |
|
in the bit mask. wx2.4 has a bug where the documentation is the opposite |
543 |
|
from behavior. |
544 |
|
(ProjectRasterFile): Only generate an alpha channel if the version |
545 |
|
of wxPython is >= 2.5.3. |
546 |
|
|
547 |
|
* libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros. |
548 |
|
When wxPython >= 2.5.3 use the special swig functions to decode an |
549 |
|
object's address. |
550 |
|
|
551 |
|
* libraries/thuban/swigPtrConvertHack.h: Includes conditional code |
552 |
|
based on the version of wxPython. If >= 2.5.3 use the special swig |
553 |
|
functions from wxPython to decode wxPython objects, otherwise use |
554 |
|
the old method of retrieving the address from the object __repr__ string. |
555 |
|
|
556 |
|
* libraries/thuban/wxPython_int.h: Copied from wxPython source. |
557 |
|
Unnecessary code was removed to make it smaller. |
558 |
|
|
559 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
560 |
|
Add tests for returning an alpha channel. |
561 |
|
|
562 |
|
* test/test_layer.py (TestLayerModification.test_raster_layer): Fix |
563 |
|
tests that used removed functions UseMask and SetUseMask |
564 |
|
|
565 |
|
|
566 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
567 |
|
|
568 |
|
More wxPython 2.5 changes. This time taken from a patch from |
569 |
|
Daniel Calvelo Aros. |
570 |
|
|
571 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__) |
572 |
|
(QueryTableFrame.__init__): Pass the size of a spacer as a single |
573 |
|
item. |
574 |
|
|
575 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog) |
576 |
|
(ProjFrame.build_dialog): Pass the size of a spacer as a single |
577 |
|
item. |
578 |
|
|
579 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the |
580 |
|
size of a spacer as a single item. |
581 |
|
|
582 |
|
* Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the |
583 |
|
size of a spacer as a single item. |
584 |
|
|
585 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
586 |
|
|
587 |
|
Compatibility with wxPython 2.5. The changes should make it work |
588 |
|
better with 2.5 while still keeping compatibility with 2.4. There |
589 |
|
are still problems with 2.5, though. |
590 |
|
|
591 |
|
* Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size |
592 |
|
of a spacer as a single item. |
593 |
|
|
594 |
|
* Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only |
595 |
|
from wxControl |
596 |
|
|
597 |
|
* Thuban/UI/legend.py (LegendTree): When running with wxPython < |
598 |
|
2.5, add an implementation of the GetFirstChild method that does |
599 |
|
not require the second parameter. |
600 |
|
(LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded) |
601 |
|
(LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems) |
602 |
|
(LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not |
603 |
|
pass the second parameter to GetFirstChild |
604 |
|
|
605 |
|
2005-02-08 Nina H�ffmeyer <[email protected]> |
606 |
|
|
607 |
|
* Extensions/ogr/ogrshapes.py: Removed some print commands. |
608 |
|
|
609 |
|
* Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an |
610 |
|
additional menu but appears as a possibility in the menu Map. |
611 |
|
|
612 |
|
2005-02-07 Jonathan Coles <[email protected]> |
613 |
|
* libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR |
614 |
|
and PYTHON_ERRF since they were no longer necessary. |
615 |
|
|
616 |
|
2005-02-07 Bernhard Reiter <[email protected]> |
617 |
|
* Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows): |
618 |
|
Enable translation for message string. |
619 |
|
|
620 |
2005-02-06 Martin Schulze <[email protected]> |
2005-02-06 Martin Schulze <[email protected]> |
621 |
|
|
622 |
* Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted |
* Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted |