1 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/postgissupport.py (find_postgis_sql): Added yet another |
4 |
|
potential location for (lw)postgis.sql because the file has moved |
5 |
|
again in postgis 1.0.0 rc4. |
6 |
|
|
7 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
8 |
|
|
9 |
|
* Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to |
10 |
|
match the site of the legend_icon_layer icon. Otherwise wxpython |
11 |
|
2.5 complains when the legend is created with the error: |
12 |
|
|
13 |
|
PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width && |
14 |
|
bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == |
15 |
|
0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size |
16 |
|
in wxImageList: this might work on this platform but definitely |
17 |
|
won't under Windows. |
18 |
|
|
19 |
|
2005-03-23 Jonathan Coles <[email protected]> |
20 |
|
|
21 |
|
These changes add support for adjusting the opacity of a raster layer. |
22 |
|
|
23 |
|
* Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity. |
24 |
|
(RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers |
25 |
|
a LAYER_CHANGED event if the opacity actually changes. |
26 |
|
|
27 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added |
28 |
|
layer parameter needed in the implementation of this method in |
29 |
|
renderer.py. |
30 |
|
|
31 |
|
* Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed |
32 |
|
typo 00 -> 0. |
33 |
|
|
34 |
|
* Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added |
35 |
|
control to adjust opacity. |
36 |
|
|
37 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the |
38 |
|
alpha data based on the opacity level of the layer. |
39 |
|
|
40 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now |
41 |
|
accepts a layer parameter. |
42 |
|
|
43 |
|
* test/test_layer.py (TestLayerModification.test_raster_layer): |
44 |
|
Rename opacity method calls and add test for LAYER_CHANGED. |
45 |
|
|
46 |
|
2005-03-16 Bernhard Herzog <[email protected]> |
47 |
|
|
48 |
|
* test/test_connector.py (DeletionTestMixin.check_deletions) |
49 |
|
(DeletionTestMixin.check_deletetions): renamed to check_deletions. |
50 |
|
update the callers. |
51 |
|
|
52 |
|
2005-03-14 Jan-Oliver Wagner <[email protected]> |
53 |
|
|
54 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
55 |
|
|
56 |
|
2005-03-10 Jan-Oliver Wagner <[email protected]> |
57 |
|
|
58 |
|
Introducing initialization callbacks for extensions. |
59 |
|
|
60 |
|
* Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added |
61 |
|
optional parameter init_callback. |
62 |
|
(ExtensionDesc.init_ext): New. Executes the callback and sets |
63 |
|
a status. |
64 |
|
|
65 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Add the |
66 |
|
initialization of the extensions. |
67 |
|
(ThubanApplication.init_extensions): Init all extensions. |
68 |
|
|
69 |
|
* Thuban/UI/about.py (About.__init__): Added status of the extensions |
70 |
|
to the about text. |
71 |
|
|
72 |
|
* Extensions/gns2shp/__init__.py: Added init method for Extension |
73 |
|
description. |
74 |
|
(init): New. Contains the initialization of the module. |
75 |
|
|
76 |
|
2005-03-04 Nina H�ffmeyer <[email protected]> |
77 |
|
|
78 |
|
* Extensions/ogr/ogrdialog.py: Added a dialog, which asks for |
79 |
|
OGRConnection to open a datasource. Removed dialog to display all |
80 |
|
available drivers. Added some doc strings. |
81 |
|
|
82 |
|
* Extensions/ogr/ogrstart.py: Added menu entry for opening an |
83 |
|
OGRDatasource with a string. Added two opening methods which return an |
84 |
|
OGRDatasource (either data from file or from DB). |
85 |
|
|
86 |
|
* Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which |
87 |
|
represents a geometry reference of an OGRFeature. OGRShape now has a |
88 |
|
list of referenced geometry objects (important for geometry |
89 |
|
collections). |
90 |
|
For OGRShapeStores loaded from a DB an ID column can be specified now. |
91 |
|
|
92 |
|
2005-02-22 Jan-Oliver Wagner <[email protected]> |
93 |
|
|
94 |
|
* test/test_map.py (TestMapWithContents.test_tree_info): |
95 |
|
Added label layer for comparison. |
96 |
|
|
97 |
|
2005-02-18 Jonathan Coles <[email protected]> |
98 |
|
|
99 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop |
100 |
|
which builds a mask. Handle the majority of an image in a loop, |
101 |
|
creating 8 bits at a time. Later, handle the edge case where less |
102 |
|
than 8 bits are packed. |
103 |
|
|
104 |
|
2005-02-18 Bernhard Herzog <[email protected]> |
105 |
|
|
106 |
|
* test/test_baserenderer.py (TestBaseRenderer.setUp): Fix |
107 |
|
doc-string |
108 |
|
|
109 |
|
2005-02-18 Jonathan Coles <[email protected]> |
110 |
|
|
111 |
|
* setup.py: Remove wx_cs_params from gdal compile options. |
112 |
|
|
113 |
|
2005-02-18 Jonathan Coles <[email protected]> |
114 |
|
|
115 |
|
Refactored baserenderer.py and renderer.py to remove baserenderer.py's |
116 |
|
dependencies on wxPython. Added a new method projected_raster_layer() |
117 |
|
that returns a raster layer image in projected space. This must be |
118 |
|
implemented in classes derived from BaseRenderer. This also eliminates |
119 |
|
the dependency on gdal in baserenderer.py. |
120 |
|
|
121 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call |
122 |
|
new projected_raster_layer() to get projected raster image instead |
123 |
|
of directly calling ProjectRasterFile(). |
124 |
|
(BaseRenderer.projected_raster_layer): New. This must be implemented |
125 |
|
by derived classes. It takes almost the same arguments as ProjectRasterFile |
126 |
|
did and returns a projected image with mask and alpha data (if requested). |
127 |
|
(BaseRenderer.render_map_incrementally): Remove the check for gdal since |
128 |
|
that check will be done in MapRenderer.projected_raster_layer(). This |
129 |
|
also allows other implementations to use different projection code. |
130 |
|
|
131 |
|
* Thuban/UI/renderer.py (MapRenderer.projected_raster_layer): |
132 |
|
Implementation of BaseRenderer.projected_raster_layer. Checks for |
133 |
|
gdal support and wxPython version. Also handles exceptions from |
134 |
|
ProjectRasterFile. |
135 |
|
|
136 |
|
* libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions |
137 |
|
and added a variable which can be set through the options argument |
138 |
|
of ProjectRasterFile. |
139 |
|
|
140 |
|
* test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New. |
141 |
|
Calls ProjectRasterFile and returns the result. |
142 |
|
(TestBaseRenderer.test_projected_raster_layer): New. Tests the results |
143 |
|
of calling projected_raster_layer() with different options. |
144 |
|
(TestBaseRenderer.test_raster_no_projection): Removed tests based on |
145 |
|
wxPython version and all tests of masks and alpha channels. These are |
146 |
|
now in test_projected_raster_layer(). |
147 |
|
|
148 |
|
2005-02-17 Jan-Oliver Wagner <[email protected]> |
149 |
|
|
150 |
|
* Thuban/Model/map.py, Thuban/Model/label.py: Fixed |
151 |
|
doc-strings to comply with coding_guidelines. |
152 |
|
|
153 |
|
2005-02-17 Jan-Oliver Wagner <[email protected]> |
154 |
|
|
155 |
|
Docstring improvements and minor fixes for labellayer. |
156 |
|
|
157 |
|
* Thuban/Model/map.py: |
158 |
|
(Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers, |
159 |
|
Map.Layers, Map.HasLayers, Map.MoveLayerToTop, |
160 |
|
Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom, |
161 |
|
Map.ProjectedBoundingBox, Map.GetProjection): Improved/added |
162 |
|
doc string. |
163 |
|
(Map.BoundingBox): Removed superfluous test for label_layer |
164 |
|
and improved doc string. |
165 |
|
(Map.TreeInfo): Added label_layer and improved sdo string. |
166 |
|
|
167 |
|
* Thuban/Model/label.py: Added import of _. |
168 |
|
(Label, Label.__init__): Improved/added doc string. |
169 |
|
(LabelLayer, LabelLayer.__init__, LabelLayer.Labels, |
170 |
|
LabelLayer.RemoveLabel, LabelLayer.ClearLabels): |
171 |
|
Improved/added doc string. |
172 |
|
(LabelLayer.AddLabel): Use already defined names for |
173 |
|
align strings and improved doc string. |
174 |
|
(LabelLayer.TreeInfo): New. Return the object data for |
175 |
|
the tree view. |
176 |
|
|
177 |
|
2005-02-16 Jonathan Coles <[email protected]> |
178 |
|
|
179 |
|
Further wxPython 2.5 changes using patches from Daniel Calvelo Aros |
180 |
|
so that that wxproj doesn't crash. Added GUI support for selecting |
181 |
|
alpha channel (opacity can't be selected yet). |
182 |
|
|
183 |
|
NOTE: If wxPython.h is including in future distribution packages |
184 |
|
then it will not be necessary to have the files swigPtrConvertHack.h |
185 |
|
and wxPython_int.h included with Thuban. This is hopefully |
186 |
|
a temporary workaround. |
187 |
|
|
188 |
|
* setup.py (thuban_build_ext.finalize_options): gdalwarp needs |
189 |
|
access to the macro wxCHECK_VERSION so that it will properly |
190 |
|
generate a bit mask. There was a problem between wx2.4 and wx2.5 |
191 |
|
that this works around. |
192 |
|
|
193 |
|
* Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor |
194 |
|
of RasterLayer.MaskType. |
195 |
|
(RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType |
196 |
|
(RasterLayer.MaskType): New. Returns the type of mask to use. Can |
197 |
|
specify none, a bitmap, or an alpha channel. |
198 |
|
(RasterLayer.SetMaskType): New. Set what kind of mask to use. |
199 |
|
|
200 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): |
201 |
|
Set the raster warping options for the mask based on the value |
202 |
|
of RasterLayer.MaskType. |
203 |
|
|
204 |
|
* Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove |
205 |
|
deprecated calls to SetItemSelectedImage in favor of SetItemImage |
206 |
|
with wxTreeItemIcon_Selected. |
207 |
|
|
208 |
|
* Thuban/UI/rasterlayerproperties.py: Support selecting to use |
209 |
|
an alpha channel for the mask. |
210 |
|
|
211 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha |
212 |
|
data if it is available and an alpha channel is supported under |
213 |
|
the current version of wxPython. |
214 |
|
|
215 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define |
216 |
|
to select whether 1's or 0's select the desired portion of an image |
217 |
|
in the bit mask. wx2.4 has a bug where the documentation is the opposite |
218 |
|
from behavior. |
219 |
|
(ProjectRasterFile): Only generate an alpha channel if the version |
220 |
|
of wxPython is >= 2.5.3. |
221 |
|
|
222 |
|
* libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros. |
223 |
|
When wxPython >= 2.5.3 use the special swig functions to decode an |
224 |
|
object's address. |
225 |
|
|
226 |
|
* libraries/thuban/swigPtrConvertHack.h: Includes conditional code |
227 |
|
based on the version of wxPython. If >= 2.5.3 use the special swig |
228 |
|
functions from wxPython to decode wxPython objects, otherwise use |
229 |
|
the old method of retrieving the address from the object __repr__ string. |
230 |
|
|
231 |
|
* libraries/thuban/wxPython_int.h: Copied from wxPython source. |
232 |
|
Unnecessary code was removed to make it smaller. |
233 |
|
|
234 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
235 |
|
Add tests for returning an alpha channel. |
236 |
|
|
237 |
|
* test/test_layer.py (TestLayerModification.test_raster_layer): Fix |
238 |
|
tests that used removed functions UseMask and SetUseMask |
239 |
|
|
240 |
|
|
241 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
242 |
|
|
243 |
|
More wxPython 2.5 changes. This time taken from a patch from |
244 |
|
Daniel Calvelo Aros. |
245 |
|
|
246 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__) |
247 |
|
(QueryTableFrame.__init__): Pass the size of a spacer as a single |
248 |
|
item. |
249 |
|
|
250 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog) |
251 |
|
(ProjFrame.build_dialog): Pass the size of a spacer as a single |
252 |
|
item. |
253 |
|
|
254 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the |
255 |
|
size of a spacer as a single item. |
256 |
|
|
257 |
|
* Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the |
258 |
|
size of a spacer as a single item. |
259 |
|
|
260 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
261 |
|
|
262 |
|
Compatibility with wxPython 2.5. The changes should make it work |
263 |
|
better with 2.5 while still keeping compatibility with 2.4. There |
264 |
|
are still problems with 2.5, though. |
265 |
|
|
266 |
|
* Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size |
267 |
|
of a spacer as a single item. |
268 |
|
|
269 |
|
* Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only |
270 |
|
from wxControl |
271 |
|
|
272 |
|
* Thuban/UI/legend.py (LegendTree): When running with wxPython < |
273 |
|
2.5, add an implementation of the GetFirstChild method that does |
274 |
|
not require the second parameter. |
275 |
|
(LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded) |
276 |
|
(LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems) |
277 |
|
(LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not |
278 |
|
pass the second parameter to GetFirstChild |
279 |
|
|
280 |
2005-02-08 Nina H�ffmeyer <[email protected]> |
2005-02-08 Nina H�ffmeyer <[email protected]> |
281 |
|
|
282 |
* Extensions/ogr/ogrshapes.py: Removed some print commands. |
* Extensions/ogr/ogrshapes.py: Removed some print commands. |