1 |
|
2005-01-28 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask |
4 |
|
default to true. |
5 |
|
|
6 |
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove |
7 |
|
code that loads the state of the layer's use_mask flag. Its |
8 |
|
usefulness is still being debated. |
9 |
|
|
10 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Remove |
11 |
|
code that saves the state of the layer's use_mask flag. Its |
12 |
|
usefulness is still being debated. |
13 |
|
|
14 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass |
15 |
|
options to ProjectRasterFile based on the state of layer.UseMask(). |
16 |
|
Catch more exceptions from ProjectRasterFile so that Thuban doesn't |
17 |
|
quit is there is a problem projecting. |
18 |
|
(BaseRenderer.draw_raster_data): Change the documentation to |
19 |
|
describe the new format (XBM) that the mask data will be in. |
20 |
|
|
21 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask |
22 |
|
data is in XBM format when format='RAW' which means it doesn't |
23 |
|
need to be converted to a wxImage before being used as a mask |
24 |
|
for a wxBitmap. Assume that if format != 'RAW' that the image |
25 |
|
data and mask data are in the same format. |
26 |
|
|
27 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled |
28 |
|
and a mask is requested, convert the alpha band to a bit array in |
29 |
|
XBM format. if an alpha channel is requested, simply return the |
30 |
|
data in the alpha band. Provide better error handling by returning |
31 |
|
python error messages (also fixes RT #2947). |
32 |
|
(ProjectRasterFile): Support multiple mask options, rather than simply |
33 |
|
a flag indicating that a mask should or should not be used. Provide |
34 |
|
better error handling by returning python error messages. |
35 |
|
|
36 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
37 |
|
Add mask data to test. |
38 |
|
|
39 |
|
* test/test_layer.py (TestLayer.test_raster_layer): Test that a layer |
40 |
|
should use the mask by default. |
41 |
|
(TestLayerModificaton.test_raster_layer): Test that a layer should use |
42 |
|
the mask by default. |
43 |
|
|
44 |
|
* test/test_load.py (TestRasterLayer.test): Remove testing for |
45 |
|
use_mask flag in file. |
46 |
|
|
47 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing |
48 |
|
for use_mask in file. |
49 |
|
|
50 |
|
* test/test_load_1_0_1.py: Removed. Shouldn't have been checked in. |
51 |
|
|
52 |
2005-01-26 Jonathan Coles <[email protected]> |
2005-01-26 Jonathan Coles <[email protected]> |
53 |
|
|
54 |
Add a new dialog box for raster layers. The dialog box allows |
Add a new dialog box for raster layers. The dialog box allows |