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 |
|
* Changed the way the previous tool is remembered, so that |
67 |
|
middle-button panning works even if you haven't selected a tool. |
68 |
|
|
69 |
|
2005-04-11 Bernhard Herzog <[email protected]> |
70 |
|
|
71 |
|
* libraries/thuban/wxproj.cpp: Move the compatibility code that |
72 |
|
deals with the wxPython 2.4 version of wxPython.h into the #ifdef |
73 |
|
branch that includes wxPython.h because it's only needed when |
74 |
|
wxPython.h is used. Also, it won't compile when |
75 |
|
USE_WX_PYTHON_SWIG_HACK is set otherwise. |
76 |
|
|
77 |
|
2005-04-07 Bernhard Herzog <[email protected]> |
78 |
|
|
79 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID. |
80 |
|
(ID_CLASS_TABLE): Removed. It wasn't used anywhere except in |
81 |
|
ClassGrid.__init__ and it's value is outside of the valid |
82 |
|
range (must be < 32768). wxPython 2.5 complains about it with an |
83 |
|
exception. |
84 |
|
|
85 |
|
2005-04-05 Jan-Oliver Wagner <[email protected]> |
86 |
|
|
87 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
88 |
|
|
89 |
|
2005-04-05 Bernhard Herzog <[email protected]> |
90 |
|
|
91 |
|
* libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from |
92 |
|
wxPython 2.4 as well. Also, remove a now obsolete comment. |
93 |
|
|
94 |
|
2005-04-05 Bernhard Herzog <[email protected]> |
95 |
|
|
96 |
|
Use wxPython.h by default but provide a workaround when it isn't |
97 |
|
available. |
98 |
|
|
99 |
|
* setup.py (wxproj_extension): New variable. Assign the Extension |
100 |
|
instance for Lib.wxproj to this variable instead of putting it |
101 |
|
directly into the listso that it can be accessed by other code |
102 |
|
later. |
103 |
|
(thuban_build_ext.user_options): Added boolean option |
104 |
|
--use-wx-python-swig-hack. |
105 |
|
(thuban_build_ext.initialize_options): Initialize the new option |
106 |
|
to False. |
107 |
|
(thuban_build_ext.finalize_options): If the new option was given, |
108 |
|
define the preprocesser macro USE_WX_PYTHON_SWIG_HACK. |
109 |
|
(thuban_build_ext): Update the doc-string |
110 |
|
|
111 |
|
* libraries/thuban/wxproj.cpp: Normally we use |
112 |
|
wx/wxPython/wxPython.h now. Only if USE_WX_PYTHON_SWIG_HACK is |
113 |
|
defined, use swigPtrConvertHack.h instead. |
114 |
|
|
115 |
|
* libraries/thuban/swigPtrConvertHack.h: Remove the code that was |
116 |
|
copied over from wxPython.h. |
117 |
|
(decode_pointer_new): New. Equivalent of decode_pointer for |
118 |
|
wxPython 2.5. |
119 |
|
(wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well. |
120 |
|
|
121 |
|
* README: Add section on potential build problems which explains |
122 |
|
how the work-around for a missing wxPython.h is activated. |
123 |
|
|
124 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
125 |
|
|
126 |
|
* test/postgissupport.py (find_postgis_sql): Added yet another |
127 |
|
potential location for (lw)postgis.sql because the file has moved |
128 |
|
again in postgis 1.0.0 rc4. |
129 |
|
|
130 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
131 |
|
|
132 |
|
* Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to |
133 |
|
match the site of the legend_icon_layer icon. Otherwise wxpython |
134 |
|
2.5 complains when the legend is created with the error: |
135 |
|
|
136 |
|
PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width && |
137 |
|
bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == |
138 |
|
0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size |
139 |
|
in wxImageList: this might work on this platform but definitely |
140 |
|
won't under Windows. |
141 |
|
|
142 |
|
2005-03-23 Jonathan Coles <[email protected]> |
143 |
|
|
144 |
|
These changes add support for adjusting the opacity of a raster layer. |
145 |
|
|
146 |
|
* Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity. |
147 |
|
(RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers |
148 |
|
a LAYER_CHANGED event if the opacity actually changes. |
149 |
|
|
150 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added |
151 |
|
layer parameter needed in the implementation of this method in |
152 |
|
renderer.py. |
153 |
|
|
154 |
|
* Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed |
155 |
|
typo 00 -> 0. |
156 |
|
|
157 |
|
* Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added |
158 |
|
control to adjust opacity. |
159 |
|
|
160 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the |
161 |
|
alpha data based on the opacity level of the layer. |
162 |
|
|
163 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now |
164 |
|
accepts a layer parameter. |
165 |
|
|
166 |
|
* test/test_layer.py (TestLayerModification.test_raster_layer): |
167 |
|
Rename opacity method calls and add test for LAYER_CHANGED. |
168 |
|
|
169 |
|
2005-03-16 Bernhard Herzog <[email protected]> |
170 |
|
|
171 |
|
* test/test_connector.py (DeletionTestMixin.check_deletions) |
172 |
|
(DeletionTestMixin.check_deletetions): renamed to check_deletions. |
173 |
|
update the callers. |
174 |
|
|
175 |
|
2005-03-14 Jan-Oliver Wagner <[email protected]> |
176 |
|
|
177 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
178 |
|
|
179 |
|
2005-03-10 Jan-Oliver Wagner <[email protected]> |
180 |
|
|
181 |
|
Introducing initialization callbacks for extensions. |
182 |
|
|
183 |
|
* Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added |
184 |
|
optional parameter init_callback. |
185 |
|
(ExtensionDesc.init_ext): New. Executes the callback and sets |
186 |
|
a status. |
187 |
|
|
188 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Add the |
189 |
|
initialization of the extensions. |
190 |
|
(ThubanApplication.init_extensions): Init all extensions. |
191 |
|
|
192 |
|
* Thuban/UI/about.py (About.__init__): Added status of the extensions |
193 |
|
to the about text. |
194 |
|
|
195 |
|
* Extensions/gns2shp/__init__.py: Added init method for Extension |
196 |
|
description. |
197 |
|
(init): New. Contains the initialization of the module. |
198 |
|
|
199 |
|
2005-03-04 Nina H�ffmeyer <[email protected]> |
200 |
|
|
201 |
|
* Extensions/ogr/ogrdialog.py: Added a dialog, which asks for |
202 |
|
OGRConnection to open a datasource. Removed dialog to display all |
203 |
|
available drivers. Added some doc strings. |
204 |
|
|
205 |
|
* Extensions/ogr/ogrstart.py: Added menu entry for opening an |
206 |
|
OGRDatasource with a string. Added two opening methods which return an |
207 |
|
OGRDatasource (either data from file or from DB). |
208 |
|
|
209 |
|
* Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which |
210 |
|
represents a geometry reference of an OGRFeature. OGRShape now has a |
211 |
|
list of referenced geometry objects (important for geometry |
212 |
|
collections). |
213 |
|
For OGRShapeStores loaded from a DB an ID column can be specified now. |
214 |
|
|
215 |
|
2005-02-22 Jan-Oliver Wagner <[email protected]> |
216 |
|
|
217 |
|
* test/test_map.py (TestMapWithContents.test_tree_info): |
218 |
|
Added label layer for comparison. |
219 |
|
|
220 |
|
2005-02-18 Jonathan Coles <[email protected]> |
221 |
|
|
222 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop |
223 |
|
which builds a mask. Handle the majority of an image in a loop, |
224 |
|
creating 8 bits at a time. Later, handle the edge case where less |
225 |
|
than 8 bits are packed. |
226 |
|
|
227 |
|
2005-02-18 Bernhard Herzog <[email protected]> |
228 |
|
|
229 |
|
* test/test_baserenderer.py (TestBaseRenderer.setUp): Fix |
230 |
|
doc-string |
231 |
|
|
232 |
2005-02-18 Jonathan Coles <[email protected]> |
2005-02-18 Jonathan Coles <[email protected]> |
233 |
|
|
234 |
* setup.py: Remove wx_cs_params from gdal compile options. |
* setup.py: Remove wx_cs_params from gdal compile options. |