1 |
|
2005-04-27 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
Introduce FileShapeStore as generalization for |
4 |
|
file-based shape stores. In a first instance |
5 |
|
this allows additional modules to handle shapefile |
6 |
|
format as well, namely the OGR extension. |
7 |
|
|
8 |
|
* Thuban/Model/data.py: Various small fixes in doc-strings. |
9 |
|
(FileShapeStore): New class. |
10 |
|
(ShapefileStore): Derive from FileShapeStore. |
11 |
|
(ShapefileStore.__init__): Call __init__ of FileShapeStore, |
12 |
|
rename self.table to self._table, initialize self._bbox |
13 |
|
(ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox |
14 |
|
and self.FileName() instead of self.filename. |
15 |
|
(ShapefileStore.Table): Use self._table instead of self.table. |
16 |
|
(ShapefileStore.FileName): Removed (moved to FileShapeStore). |
17 |
|
(ShapefileStore.BoundingBox): Use self._bbox instead of self.bbox. |
18 |
|
|
19 |
|
* Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore. |
20 |
|
(SessionSaver.write_data_containers): Only use methods of the |
21 |
|
base class FileShapeStore. |
22 |
|
|
23 |
|
2005-04-26 Martin Schulze <[email protected]> |
24 |
|
|
25 |
|
* Extensions/wms/wms.py (render_wms_layer): Adjusted the render |
26 |
|
function to the modified render engine |
27 |
|
|
28 |
|
2005-04-25 Martin Schulze <[email protected]> |
29 |
|
|
30 |
|
* Thuban/UI/renderer.py (MapRenderer.projected_raster_layer): |
31 |
|
Added a description according to the CVS log message |
32 |
|
|
33 |
|
2005-04-23 Martin Schulze <[email protected]> |
34 |
|
|
35 |
|
* Thuban/UI/renderer.py: Added a missing import |
36 |
|
|
37 |
|
2005-04-23 Russell Nelson <[email protected]> |
38 |
|
|
39 |
|
* Changed the way the previous tool is remembered, so that |
40 |
|
middle-button panning works even if you haven't selected a tool. |
41 |
|
|
42 |
|
2005-04-11 Bernhard Herzog <[email protected]> |
43 |
|
|
44 |
|
* libraries/thuban/wxproj.cpp: Move the compatibility code that |
45 |
|
deals with the wxPython 2.4 version of wxPython.h into the #ifdef |
46 |
|
branch that includes wxPython.h because it's only needed when |
47 |
|
wxPython.h is used. Also, it won't compile when |
48 |
|
USE_WX_PYTHON_SWIG_HACK is set otherwise. |
49 |
|
|
50 |
|
2005-04-07 Bernhard Herzog <[email protected]> |
51 |
|
|
52 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID. |
53 |
|
(ID_CLASS_TABLE): Removed. It wasn't used anywhere except in |
54 |
|
ClassGrid.__init__ and it's value is outside of the valid |
55 |
|
range (must be < 32768). wxPython 2.5 complains about it with an |
56 |
|
exception. |
57 |
|
|
58 |
|
2005-04-05 Jan-Oliver Wagner <[email protected]> |
59 |
|
|
60 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
61 |
|
|
62 |
|
2005-04-05 Bernhard Herzog <[email protected]> |
63 |
|
|
64 |
|
* libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from |
65 |
|
wxPython 2.4 as well. Also, remove a now obsolete comment. |
66 |
|
|
67 |
|
2005-04-05 Bernhard Herzog <[email protected]> |
68 |
|
|
69 |
|
Use wxPython.h by default but provide a workaround when it isn't |
70 |
|
available. |
71 |
|
|
72 |
|
* setup.py (wxproj_extension): New variable. Assign the Extension |
73 |
|
instance for Lib.wxproj to this variable instead of putting it |
74 |
|
directly into the listso that it can be accessed by other code |
75 |
|
later. |
76 |
|
(thuban_build_ext.user_options): Added boolean option |
77 |
|
--use-wx-python-swig-hack. |
78 |
|
(thuban_build_ext.initialize_options): Initialize the new option |
79 |
|
to False. |
80 |
|
(thuban_build_ext.finalize_options): If the new option was given, |
81 |
|
define the preprocesser macro USE_WX_PYTHON_SWIG_HACK. |
82 |
|
(thuban_build_ext): Update the doc-string |
83 |
|
|
84 |
|
* libraries/thuban/wxproj.cpp: Normally we use |
85 |
|
wx/wxPython/wxPython.h now. Only if USE_WX_PYTHON_SWIG_HACK is |
86 |
|
defined, use swigPtrConvertHack.h instead. |
87 |
|
|
88 |
|
* libraries/thuban/swigPtrConvertHack.h: Remove the code that was |
89 |
|
copied over from wxPython.h. |
90 |
|
(decode_pointer_new): New. Equivalent of decode_pointer for |
91 |
|
wxPython 2.5. |
92 |
|
(wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well. |
93 |
|
|
94 |
|
* README: Add section on potential build problems which explains |
95 |
|
how the work-around for a missing wxPython.h is activated. |
96 |
|
|
97 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
98 |
|
|
99 |
|
* test/postgissupport.py (find_postgis_sql): Added yet another |
100 |
|
potential location for (lw)postgis.sql because the file has moved |
101 |
|
again in postgis 1.0.0 rc4. |
102 |
|
|
103 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
104 |
|
|
105 |
|
* Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to |
106 |
|
match the site of the legend_icon_layer icon. Otherwise wxpython |
107 |
|
2.5 complains when the legend is created with the error: |
108 |
|
|
109 |
|
PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width && |
110 |
|
bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == |
111 |
|
0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size |
112 |
|
in wxImageList: this might work on this platform but definitely |
113 |
|
won't under Windows. |
114 |
|
|
115 |
|
2005-03-23 Jonathan Coles <[email protected]> |
116 |
|
|
117 |
|
These changes add support for adjusting the opacity of a raster layer. |
118 |
|
|
119 |
|
* Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity. |
120 |
|
(RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers |
121 |
|
a LAYER_CHANGED event if the opacity actually changes. |
122 |
|
|
123 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added |
124 |
|
layer parameter needed in the implementation of this method in |
125 |
|
renderer.py. |
126 |
|
|
127 |
|
* Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed |
128 |
|
typo 00 -> 0. |
129 |
|
|
130 |
|
* Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added |
131 |
|
control to adjust opacity. |
132 |
|
|
133 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the |
134 |
|
alpha data based on the opacity level of the layer. |
135 |
|
|
136 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now |
137 |
|
accepts a layer parameter. |
138 |
|
|
139 |
|
* test/test_layer.py (TestLayerModification.test_raster_layer): |
140 |
|
Rename opacity method calls and add test for LAYER_CHANGED. |
141 |
|
|
142 |
|
2005-03-16 Bernhard Herzog <[email protected]> |
143 |
|
|
144 |
|
* test/test_connector.py (DeletionTestMixin.check_deletions) |
145 |
|
(DeletionTestMixin.check_deletetions): renamed to check_deletions. |
146 |
|
update the callers. |
147 |
|
|
148 |
|
2005-03-14 Jan-Oliver Wagner <[email protected]> |
149 |
|
|
150 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
151 |
|
|
152 |
2005-03-10 Jan-Oliver Wagner <[email protected]> |
2005-03-10 Jan-Oliver Wagner <[email protected]> |
153 |
|
|
154 |
Introducing initialization callbacks for extensions. |
Introducing initialization callbacks for extensions. |