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