1 |
|
2005-04-23 Russell Nelson <[email protected]> |
2 |
|
|
3 |
|
* Changed the way the previous tool is remembered, so that |
4 |
|
middle-button panning works even if you haven't selected a tool. |
5 |
|
|
6 |
|
2005-04-11 Bernhard Herzog <[email protected]> |
7 |
|
|
8 |
|
* libraries/thuban/wxproj.cpp: Move the compatibility code that |
9 |
|
deals with the wxPython 2.4 version of wxPython.h into the #ifdef |
10 |
|
branch that includes wxPython.h because it's only needed when |
11 |
|
wxPython.h is used. Also, it won't compile when |
12 |
|
USE_WX_PYTHON_SWIG_HACK is set otherwise. |
13 |
|
|
14 |
|
2005-04-07 Bernhard Herzog <[email protected]> |
15 |
|
|
16 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID. |
17 |
|
(ID_CLASS_TABLE): Removed. It wasn't used anywhere except in |
18 |
|
ClassGrid.__init__ and it's value is outside of the valid |
19 |
|
range (must be < 32768). wxPython 2.5 complains about it with an |
20 |
|
exception. |
21 |
|
|
22 |
|
2005-04-05 Jan-Oliver Wagner <[email protected]> |
23 |
|
|
24 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
25 |
|
|
26 |
|
2005-04-05 Bernhard Herzog <[email protected]> |
27 |
|
|
28 |
|
* libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from |
29 |
|
wxPython 2.4 as well. Also, remove a now obsolete comment. |
30 |
|
|
31 |
|
2005-04-05 Bernhard Herzog <[email protected]> |
32 |
|
|
33 |
|
Use wxPython.h by default but provide a workaround when it isn't |
34 |
|
available. |
35 |
|
|
36 |
|
* setup.py (wxproj_extension): New variable. Assign the Extension |
37 |
|
instance for Lib.wxproj to this variable instead of putting it |
38 |
|
directly into the listso that it can be accessed by other code |
39 |
|
later. |
40 |
|
(thuban_build_ext.user_options): Added boolean option |
41 |
|
--use-wx-python-swig-hack. |
42 |
|
(thuban_build_ext.initialize_options): Initialize the new option |
43 |
|
to False. |
44 |
|
(thuban_build_ext.finalize_options): If the new option was given, |
45 |
|
define the preprocesser macro USE_WX_PYTHON_SWIG_HACK. |
46 |
|
(thuban_build_ext): Update the doc-string |
47 |
|
|
48 |
|
* libraries/thuban/wxproj.cpp: Normally we use |
49 |
|
wx/wxPython/wxPython.h now. Only if USE_WX_PYTHON_SWIG_HACK is |
50 |
|
defined, use swigPtrConvertHack.h instead. |
51 |
|
|
52 |
|
* libraries/thuban/swigPtrConvertHack.h: Remove the code that was |
53 |
|
copied over from wxPython.h. |
54 |
|
(decode_pointer_new): New. Equivalent of decode_pointer for |
55 |
|
wxPython 2.5. |
56 |
|
(wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well. |
57 |
|
|
58 |
|
* README: Add section on potential build problems which explains |
59 |
|
how the work-around for a missing wxPython.h is activated. |
60 |
|
|
61 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
62 |
|
|
63 |
|
* test/postgissupport.py (find_postgis_sql): Added yet another |
64 |
|
potential location for (lw)postgis.sql because the file has moved |
65 |
|
again in postgis 1.0.0 rc4. |
66 |
|
|
67 |
|
2005-03-29 Bernhard Herzog <[email protected]> |
68 |
|
|
69 |
|
* Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to |
70 |
|
match the site of the legend_icon_layer icon. Otherwise wxpython |
71 |
|
2.5 complains when the legend is created with the error: |
72 |
|
|
73 |
|
PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width && |
74 |
|
bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == |
75 |
|
0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size |
76 |
|
in wxImageList: this might work on this platform but definitely |
77 |
|
won't under Windows. |
78 |
|
|
79 |
|
2005-03-23 Jonathan Coles <[email protected]> |
80 |
|
|
81 |
|
These changes add support for adjusting the opacity of a raster layer. |
82 |
|
|
83 |
|
* Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity. |
84 |
|
(RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers |
85 |
|
a LAYER_CHANGED event if the opacity actually changes. |
86 |
|
|
87 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added |
88 |
|
layer parameter needed in the implementation of this method in |
89 |
|
renderer.py. |
90 |
|
|
91 |
|
* Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed |
92 |
|
typo 00 -> 0. |
93 |
|
|
94 |
|
* Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added |
95 |
|
control to adjust opacity. |
96 |
|
|
97 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the |
98 |
|
alpha data based on the opacity level of the layer. |
99 |
|
|
100 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now |
101 |
|
accepts a layer parameter. |
102 |
|
|
103 |
|
* test/test_layer.py (TestLayerModification.test_raster_layer): |
104 |
|
Rename opacity method calls and add test for LAYER_CHANGED. |
105 |
|
|
106 |
|
2005-03-16 Bernhard Herzog <[email protected]> |
107 |
|
|
108 |
|
* test/test_connector.py (DeletionTestMixin.check_deletions) |
109 |
|
(DeletionTestMixin.check_deletetions): renamed to check_deletions. |
110 |
|
update the callers. |
111 |
|
|
112 |
|
2005-03-14 Jan-Oliver Wagner <[email protected]> |
113 |
|
|
114 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
115 |
|
|
116 |
|
2005-03-10 Jan-Oliver Wagner <[email protected]> |
117 |
|
|
118 |
|
Introducing initialization callbacks for extensions. |
119 |
|
|
120 |
|
* Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added |
121 |
|
optional parameter init_callback. |
122 |
|
(ExtensionDesc.init_ext): New. Executes the callback and sets |
123 |
|
a status. |
124 |
|
|
125 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Add the |
126 |
|
initialization of the extensions. |
127 |
|
(ThubanApplication.init_extensions): Init all extensions. |
128 |
|
|
129 |
|
* Thuban/UI/about.py (About.__init__): Added status of the extensions |
130 |
|
to the about text. |
131 |
|
|
132 |
|
* Extensions/gns2shp/__init__.py: Added init method for Extension |
133 |
|
description. |
134 |
|
(init): New. Contains the initialization of the module. |
135 |
|
|
136 |
|
2005-03-04 Nina H�ffmeyer <[email protected]> |
137 |
|
|
138 |
|
* Extensions/ogr/ogrdialog.py: Added a dialog, which asks for |
139 |
|
OGRConnection to open a datasource. Removed dialog to display all |
140 |
|
available drivers. Added some doc strings. |
141 |
|
|
142 |
|
* Extensions/ogr/ogrstart.py: Added menu entry for opening an |
143 |
|
OGRDatasource with a string. Added two opening methods which return an |
144 |
|
OGRDatasource (either data from file or from DB). |
145 |
|
|
146 |
|
* Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which |
147 |
|
represents a geometry reference of an OGRFeature. OGRShape now has a |
148 |
|
list of referenced geometry objects (important for geometry |
149 |
|
collections). |
150 |
|
For OGRShapeStores loaded from a DB an ID column can be specified now. |
151 |
|
|
152 |
|
2005-02-22 Jan-Oliver Wagner <[email protected]> |
153 |
|
|
154 |
|
* test/test_map.py (TestMapWithContents.test_tree_info): |
155 |
|
Added label layer for comparison. |
156 |
|
|
157 |
|
2005-02-18 Jonathan Coles <[email protected]> |
158 |
|
|
159 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop |
160 |
|
which builds a mask. Handle the majority of an image in a loop, |
161 |
|
creating 8 bits at a time. Later, handle the edge case where less |
162 |
|
than 8 bits are packed. |
163 |
|
|
164 |
|
2005-02-18 Bernhard Herzog <[email protected]> |
165 |
|
|
166 |
|
* test/test_baserenderer.py (TestBaseRenderer.setUp): Fix |
167 |
|
doc-string |
168 |
|
|
169 |
|
2005-02-18 Jonathan Coles <[email protected]> |
170 |
|
|
171 |
|
* setup.py: Remove wx_cs_params from gdal compile options. |
172 |
|
|
173 |
|
2005-02-18 Jonathan Coles <[email protected]> |
174 |
|
|
175 |
|
Refactored baserenderer.py and renderer.py to remove baserenderer.py's |
176 |
|
dependencies on wxPython. Added a new method projected_raster_layer() |
177 |
|
that returns a raster layer image in projected space. This must be |
178 |
|
implemented in classes derived from BaseRenderer. This also eliminates |
179 |
|
the dependency on gdal in baserenderer.py. |
180 |
|
|
181 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call |
182 |
|
new projected_raster_layer() to get projected raster image instead |
183 |
|
of directly calling ProjectRasterFile(). |
184 |
|
(BaseRenderer.projected_raster_layer): New. This must be implemented |
185 |
|
by derived classes. It takes almost the same arguments as ProjectRasterFile |
186 |
|
did and returns a projected image with mask and alpha data (if requested). |
187 |
|
(BaseRenderer.render_map_incrementally): Remove the check for gdal since |
188 |
|
that check will be done in MapRenderer.projected_raster_layer(). This |
189 |
|
also allows other implementations to use different projection code. |
190 |
|
|
191 |
|
* Thuban/UI/renderer.py (MapRenderer.projected_raster_layer): |
192 |
|
Implementation of BaseRenderer.projected_raster_layer. Checks for |
193 |
|
gdal support and wxPython version. Also handles exceptions from |
194 |
|
ProjectRasterFile. |
195 |
|
|
196 |
|
* libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions |
197 |
|
and added a variable which can be set through the options argument |
198 |
|
of ProjectRasterFile. |
199 |
|
|
200 |
|
* test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New. |
201 |
|
Calls ProjectRasterFile and returns the result. |
202 |
|
(TestBaseRenderer.test_projected_raster_layer): New. Tests the results |
203 |
|
of calling projected_raster_layer() with different options. |
204 |
|
(TestBaseRenderer.test_raster_no_projection): Removed tests based on |
205 |
|
wxPython version and all tests of masks and alpha channels. These are |
206 |
|
now in test_projected_raster_layer(). |
207 |
|
|
208 |
|
2005-02-17 Jan-Oliver Wagner <[email protected]> |
209 |
|
|
210 |
|
* Thuban/Model/map.py, Thuban/Model/label.py: Fixed |
211 |
|
doc-strings to comply with coding_guidelines. |
212 |
|
|
213 |
|
2005-02-17 Jan-Oliver Wagner <[email protected]> |
214 |
|
|
215 |
|
Docstring improvements and minor fixes for labellayer. |
216 |
|
|
217 |
|
* Thuban/Model/map.py: |
218 |
|
(Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers, |
219 |
|
Map.Layers, Map.HasLayers, Map.MoveLayerToTop, |
220 |
|
Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom, |
221 |
|
Map.ProjectedBoundingBox, Map.GetProjection): Improved/added |
222 |
|
doc string. |
223 |
|
(Map.BoundingBox): Removed superfluous test for label_layer |
224 |
|
and improved doc string. |
225 |
|
(Map.TreeInfo): Added label_layer and improved sdo string. |
226 |
|
|
227 |
|
* Thuban/Model/label.py: Added import of _. |
228 |
|
(Label, Label.__init__): Improved/added doc string. |
229 |
|
(LabelLayer, LabelLayer.__init__, LabelLayer.Labels, |
230 |
|
LabelLayer.RemoveLabel, LabelLayer.ClearLabels): |
231 |
|
Improved/added doc string. |
232 |
|
(LabelLayer.AddLabel): Use already defined names for |
233 |
|
align strings and improved doc string. |
234 |
|
(LabelLayer.TreeInfo): New. Return the object data for |
235 |
|
the tree view. |
236 |
|
|
237 |
|
2005-02-16 Jonathan Coles <[email protected]> |
238 |
|
|
239 |
|
Further wxPython 2.5 changes using patches from Daniel Calvelo Aros |
240 |
|
so that that wxproj doesn't crash. Added GUI support for selecting |
241 |
|
alpha channel (opacity can't be selected yet). |
242 |
|
|
243 |
|
NOTE: If wxPython.h is including in future distribution packages |
244 |
|
then it will not be necessary to have the files swigPtrConvertHack.h |
245 |
|
and wxPython_int.h included with Thuban. This is hopefully |
246 |
|
a temporary workaround. |
247 |
|
|
248 |
|
* setup.py (thuban_build_ext.finalize_options): gdalwarp needs |
249 |
|
access to the macro wxCHECK_VERSION so that it will properly |
250 |
|
generate a bit mask. There was a problem between wx2.4 and wx2.5 |
251 |
|
that this works around. |
252 |
|
|
253 |
|
* Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor |
254 |
|
of RasterLayer.MaskType. |
255 |
|
(RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType |
256 |
|
(RasterLayer.MaskType): New. Returns the type of mask to use. Can |
257 |
|
specify none, a bitmap, or an alpha channel. |
258 |
|
(RasterLayer.SetMaskType): New. Set what kind of mask to use. |
259 |
|
|
260 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): |
261 |
|
Set the raster warping options for the mask based on the value |
262 |
|
of RasterLayer.MaskType. |
263 |
|
|
264 |
|
* Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove |
265 |
|
deprecated calls to SetItemSelectedImage in favor of SetItemImage |
266 |
|
with wxTreeItemIcon_Selected. |
267 |
|
|
268 |
|
* Thuban/UI/rasterlayerproperties.py: Support selecting to use |
269 |
|
an alpha channel for the mask. |
270 |
|
|
271 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha |
272 |
|
data if it is available and an alpha channel is supported under |
273 |
|
the current version of wxPython. |
274 |
|
|
275 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define |
276 |
|
to select whether 1's or 0's select the desired portion of an image |
277 |
|
in the bit mask. wx2.4 has a bug where the documentation is the opposite |
278 |
|
from behavior. |
279 |
|
(ProjectRasterFile): Only generate an alpha channel if the version |
280 |
|
of wxPython is >= 2.5.3. |
281 |
|
|
282 |
|
* libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros. |
283 |
|
When wxPython >= 2.5.3 use the special swig functions to decode an |
284 |
|
object's address. |
285 |
|
|
286 |
|
* libraries/thuban/swigPtrConvertHack.h: Includes conditional code |
287 |
|
based on the version of wxPython. If >= 2.5.3 use the special swig |
288 |
|
functions from wxPython to decode wxPython objects, otherwise use |
289 |
|
the old method of retrieving the address from the object __repr__ string. |
290 |
|
|
291 |
|
* libraries/thuban/wxPython_int.h: Copied from wxPython source. |
292 |
|
Unnecessary code was removed to make it smaller. |
293 |
|
|
294 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
295 |
|
Add tests for returning an alpha channel. |
296 |
|
|
297 |
|
* test/test_layer.py (TestLayerModification.test_raster_layer): Fix |
298 |
|
tests that used removed functions UseMask and SetUseMask |
299 |
|
|
300 |
|
|
301 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
302 |
|
|
303 |
|
More wxPython 2.5 changes. This time taken from a patch from |
304 |
|
Daniel Calvelo Aros. |
305 |
|
|
306 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__) |
307 |
|
(QueryTableFrame.__init__): Pass the size of a spacer as a single |
308 |
|
item. |
309 |
|
|
310 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog) |
311 |
|
(ProjFrame.build_dialog): Pass the size of a spacer as a single |
312 |
|
item. |
313 |
|
|
314 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the |
315 |
|
size of a spacer as a single item. |
316 |
|
|
317 |
|
* Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the |
318 |
|
size of a spacer as a single item. |
319 |
|
|
320 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
321 |
|
|
322 |
|
Compatibility with wxPython 2.5. The changes should make it work |
323 |
|
better with 2.5 while still keeping compatibility with 2.4. There |
324 |
|
are still problems with 2.5, though. |
325 |
|
|
326 |
|
* Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size |
327 |
|
of a spacer as a single item. |
328 |
|
|
329 |
|
* Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only |
330 |
|
from wxControl |
331 |
|
|
332 |
|
* Thuban/UI/legend.py (LegendTree): When running with wxPython < |
333 |
|
2.5, add an implementation of the GetFirstChild method that does |
334 |
|
not require the second parameter. |
335 |
|
(LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded) |
336 |
|
(LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems) |
337 |
|
(LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not |
338 |
|
pass the second parameter to GetFirstChild |
339 |
|
|
340 |
|
2005-02-08 Nina H�ffmeyer <[email protected]> |
341 |
|
|
342 |
|
* Extensions/ogr/ogrshapes.py: Removed some print commands. |
343 |
|
|
344 |
|
* Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an |
345 |
|
additional menu but appears as a possibility in the menu Map. |
346 |
|
|
347 |
|
2005-02-07 Jonathan Coles <[email protected]> |
348 |
|
* libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR |
349 |
|
and PYTHON_ERRF since they were no longer necessary. |
350 |
|
|
351 |
|
2005-02-07 Bernhard Reiter <[email protected]> |
352 |
|
* Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows): |
353 |
|
Enable translation for message string. |
354 |
|
|
355 |
|
2005-02-06 Martin Schulze <[email protected]> |
356 |
|
|
357 |
|
* Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted |
358 |
|
the arguments of the contstructor to fit the global scheme |
359 |
|
|
360 |
|
2005-01-31 Nina H�ffmeyer <[email protected]> |
361 |
|
|
362 |
|
* Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides |
363 |
|
some dialogs needed to start ogr. |
364 |
|
|
365 |
|
* Extensions/ogr/__init__.py: Changed comments to avoid encoding |
366 |
|
warnings. |
367 |
|
|
368 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid |
369 |
|
encoding warnings. |
370 |
|
|
371 |
|
2005-01-28 Jonathan Coles <[email protected]> |
372 |
|
|
373 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the |
374 |
|
mask is packed into a bit array. It's now slightly faster. |
375 |
|
|
376 |
|
2005-01-28 Jonathan Coles <[email protected]> |
377 |
|
|
378 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask |
379 |
|
default to true. |
380 |
|
|
381 |
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove |
382 |
|
code that loads the state of the layer's use_mask flag. Its |
383 |
|
usefulness is still being debated. |
384 |
|
|
385 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Remove |
386 |
|
code that saves the state of the layer's use_mask flag. Its |
387 |
|
usefulness is still being debated. |
388 |
|
|
389 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass |
390 |
|
options to ProjectRasterFile based on the state of layer.UseMask(). |
391 |
|
Catch more exceptions from ProjectRasterFile so that Thuban doesn't |
392 |
|
quit is there is a problem projecting. |
393 |
|
(BaseRenderer.draw_raster_data): Change the documentation to |
394 |
|
describe the new format (XBM) that the mask data will be in. |
395 |
|
|
396 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask |
397 |
|
data is in XBM format when format='RAW' which means it doesn't |
398 |
|
need to be converted to a wxImage before being used as a mask |
399 |
|
for a wxBitmap. Assume that if format != 'RAW' that the image |
400 |
|
data and mask data are in the same format. |
401 |
|
|
402 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled |
403 |
|
and a mask is requested, convert the alpha band to a bit array in |
404 |
|
XBM format. if an alpha channel is requested, simply return the |
405 |
|
data in the alpha band. Provide better error handling by returning |
406 |
|
python error messages (also fixes RT #2947). |
407 |
|
(ProjectRasterFile): Support multiple mask options, rather than simply |
408 |
|
a flag indicating that a mask should or should not be used. Provide |
409 |
|
better error handling by returning python error messages. |
410 |
|
|
411 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
412 |
|
Add mask data to test. |
413 |
|
|
414 |
|
* test/test_layer.py (TestLayer.test_raster_layer): Test that a layer |
415 |
|
should use the mask by default. |
416 |
|
(TestLayerModificaton.test_raster_layer): Test that a layer should use |
417 |
|
the mask by default. |
418 |
|
|
419 |
|
* test/test_load.py (TestRasterLayer.test): Remove testing for |
420 |
|
use_mask flag in file. |
421 |
|
|
422 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing |
423 |
|
for use_mask in file. |
424 |
|
|
425 |
|
* test/test_load_1_0_1.py: Removed. Shouldn't have been checked in. |
426 |
|
|
427 |
|
2005-01-26 Jonathan Coles <[email protected]> |
428 |
|
|
429 |
|
Add a new dialog box for raster layers. The dialog box allows |
430 |
|
the user to toggle a mask that is generated by ProjectRasterFile |
431 |
|
and is used to only draw the real parts of the projected image. |
432 |
|
|
433 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): |
434 |
|
Instruct the warping code to generate a mask if the raster layer |
435 |
|
requests one. |
436 |
|
(BaseRenderer.draw_raster_data): Removed obsolete optional mask argument. |
437 |
|
|
438 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed |
439 |
|
obsolete optional mask argument. |
440 |
|
|
441 |
|
* Thuban/UI/classifier.py (Classifier): Change the parent class |
442 |
|
to LayerProperties and rework the code to support layout calls |
443 |
|
from the parent. |
444 |
|
(Classifier.dialog_layout): New. Layout the dialog box. |
445 |
|
(Classifier.map_layers_removed): Removed. Moved to parent class. |
446 |
|
(Classifier.map_replaced): Removed. Moved to parent class. |
447 |
|
(Classifier._OnTry): Renamed to OnTry to support parent class. |
448 |
|
(Classifier.OnClose): Removed. Supplied in parent class. |
449 |
|
(Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn. |
450 |
|
(Classifier._OnOK): Renamed to OnOK to support parent class. |
451 |
|
(Classifier._OnRevert): Renamed to OnRevert to support parent class. |
452 |
|
|
453 |
|
* Thuban/UI/layerproperties.py: New. Base class for layer properties |
454 |
|
dialog boxes. |
455 |
|
|
456 |
|
* Thuban/UI/rasterlayerproperties.py: New. Class for displaying |
457 |
|
raster layer properties. |
458 |
|
|
459 |
|
* libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code |
460 |
|
with the non-simple version supplied with gdal. This allows added |
461 |
|
features such as creating an alpha band. |
462 |
|
(GetImageData): Generate a mask array from the alpha band that is |
463 |
|
generated by gdal if the user has selected it. Try to support images |
464 |
|
that have more than three bands, such as images with RGB plus an |
465 |
|
alpha band. |
466 |
|
(ProjectRasterFile): Convert python argument for mask and tell |
467 |
|
gdal to enable or disable an alpha band. |
468 |
|
|
469 |
|
* Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string |
470 |
|
describing what kind of layer the class is. Defaults to "Unknown", |
471 |
|
but should be overridden by subclasses. |
472 |
|
(Layer.Type): New. Override base class method. |
473 |
|
(RasterLayer.__init__): Create a flag for using a mask. Record extra |
474 |
|
data from gdal for display in the properties dialog. |
475 |
|
(RasterLayer.Type): New. Override base class method. |
476 |
|
(RasterLayer.UseMask): New. Returns True if the mask should be used. |
477 |
|
(RasterLayer.SetUseMask): New. Set if the mask should be used. |
478 |
|
(RasterLayer.ImageInfo): New. Return extra information about the image. |
479 |
|
|
480 |
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load |
481 |
|
the mask information. |
482 |
|
|
483 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Save mask information. |
484 |
|
|
485 |
|
* Thuban/UI/mainwindow.py: Register the RasterLayerProperties and |
486 |
|
Classifier classes as dialogs to use with the proper layer types. |
487 |
|
|
488 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
489 |
|
Fix test. |
490 |
|
|
491 |
|
* test/test_layer.py (TestLayer.test_raster_layer): Test new methods. |
492 |
|
(TestLayerModification.build_path): New. Support function. |
493 |
|
(TestLayerModification.test_raster_layer): New. Test new methods. |
494 |
|
|
495 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask. |
496 |
|
|
497 |
|
* test/test_load.py (TestRasterLayer): Add tests for mask. |
498 |
|
|
499 |
|
* test/test_load_1_0_1.py: New. Copied from test_load.py. |
500 |
|
|
501 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed |
502 |
|
obsolete optional mask argument. |
503 |
|
|
504 |
|
2005-01-26 Nina H�ffmeyer <[email protected]> |
505 |
|
|
506 |
|
* Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore |
507 |
|
which maps the ids and the ordinals. Fixed RowIdToOrdinal(), |
508 |
|
RowOrdinalToId() and ReadRowAsDict(). |
509 |
|
|
510 |
|
* Extensions/ogr/ogrstart.py: Added menu item which opens database |
511 |
|
layers for existing database connections. |
512 |
|
|
513 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string. |
514 |
|
|
515 |
|
|
516 |
|
2005-01-26 Jan-Oliver Wagner <[email protected]> |
517 |
|
|
518 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
519 |
|
|
520 |
|
2005-01-24 Bernhard Herzog <[email protected]> |
521 |
|
|
522 |
|
Rework the status bar updates a bit to make sure the message about |
523 |
|
the projections is produced at the right times. |
524 |
|
|
525 |
|
* Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages): |
526 |
|
New class variable with messages that may require a status bar |
527 |
|
update. |
528 |
|
(MainWindow.view_position_changed) |
529 |
|
(MainWindow.update_status_bar): Rename from view_position_changed |
530 |
|
to update_status_bar. It's meaning has changed now that it may |
531 |
|
also generate messages about problems with projection settings. |
532 |
|
(MainWindow.__init__): Use the new update_status_bar_messages |
533 |
|
class variable to subscribe update_status_bar |
534 |
|
(MainWindow.set_position_text): Update doc-string. This method |
535 |
|
has to be renamed at some point. See doc-string and comments. |
536 |
|
(MainWindow.OnClose): Unsubscribe update_status_bar from all |
537 |
|
messages in update_status_bar_messages |
538 |
|
|
539 |
|
* Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New |
540 |
|
class attribute. map messages to be forwarded by the viewport. |
541 |
|
(ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe |
542 |
|
the messages in forwarded_map_messages |
543 |
|
|
544 |
|
2005-01-21 Bernhard Herzog <[email protected]> |
545 |
|
|
546 |
|
* test/postgissupport.py (PostGISDatabase.__init__): Tweak |
547 |
|
doc-string |
548 |
|
(find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a |
549 |
|
different name for the initialization SQL file. |
550 |
|
|
551 |
|
2005-01-21 Jonathan Coles <[email protected]> |
552 |
|
|
553 |
|
* Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes |
554 |
|
a projection and returns a formatted string representing the |
555 |
|
parameters to feed to gdalwarp. This function eliminates |
556 |
|
redundancy in draw_raster_layer(). |
557 |
|
(BaseRenderer.render_map_incrementally): Removed the optimization which |
558 |
|
drew the top most raster layer first and then only those vector- |
559 |
|
based layers that are above it. With the support for transparency |
560 |
|
this optimization breaks correct behaviour. |
561 |
|
(BaseRenderer.draw_raster_layer): Reorganize code to support possible |
562 |
|
future enhancements to raster layer bounding box. The old behaviour has |
563 |
|
not changed. Also, change calling parameters to draw_raster_data() |
564 |
|
to specify new RAW data format and mask. |
565 |
|
(BaseRenderer.draw_raster_data): Change signature to include an optional |
566 |
|
parameter for mask information. Change documentation to mention |
567 |
|
support for new parameter and added option for RAW data format. |
568 |
|
The data argument is now a list of [width, height, data]. |
569 |
|
|
570 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional |
571 |
|
mask parameter. Add new condition for RAW format, which |
572 |
|
significantly reduces rendering time. Add condition for |
573 |
|
mask parameter. |
574 |
|
|
575 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a |
576 |
|
data array of RGB values from the projected image returned from |
577 |
|
the gdal warping functions. In the case of palette based images, it |
578 |
|
converts the NO_DATA index to the mask color. |
579 |
|
(ProjectRasterFile): Removed all custom memory driver references |
580 |
|
and replaced it with the standard in-memory dataset provided |
581 |
|
by gdal. The return data is no longer a BMP file, but an array |
582 |
|
of RGB values, one set triple per pixel. |
583 |
|
|
584 |
|
* libraries/thuban/bmpdataset.cpp: Removed. Unnecessary. |
585 |
|
* libraries/thuban/cpl_mfile.h: Removed. Unnecessary. |
586 |
|
* libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary. |
587 |
|
|
588 |
|
* setup.py (thuban_build_ext.finalize_options): Removed mention |
589 |
|
of cpl_mfile.cpp and bmpdataset.cpp files in the list of source |
590 |
|
files. These are obsolete with the new version of gdalwarp.cpp |
591 |
|
|
592 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): |
593 |
|
Updated signature. |
594 |
|
(TestBaseRenderer.test_raster_no_projection): Changed the test |
595 |
|
data to be data in the uncompressed RAW format returned from |
596 |
|
ProjectRasterFile. |
597 |
|
|
598 |
|
2005-01-21 Jan-Oliver Wagner <[email protected]> |
599 |
|
|
600 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made |
601 |
|
string available for i18n. |
602 |
|
|
603 |
|
2005-01-20 Russell Nelson <[email protected]> |
604 |
|
|
605 |
|
* Resources/Projections/defaults.proj: Ruin the speling of the |
606 |
|
Lambert-93 projection so it doesn't run into the wx UTF-8 bug. |
607 |
|
It's the wrong thing to do in the long run, but it's necessary for |
608 |
|
those users until that bug is fixed. Otherwise the projection |
609 |
|
dialog segfaults. Better to annoy some Lambert-93 users with a |
610 |
|
spelling mistake than every Fedora Core 3 user of Thuban-CVS. |
611 |
|
|
612 |
2005-01-20 Bernhard Reiter <[email protected]> |
2005-01-20 Bernhard Reiter <[email protected]> |
613 |
|
|
614 |
* Thuban/UI/mainwindow.py(view_position_changed): Added docstring |
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added |
615 |
and comment that the warning code here is a hack. |
docstring and comment that the warning code here is a hack. |
616 |
|
|
617 |
2005-01-20 Russell Nelson <[email protected]> |
2005-01-20 Russell Nelson <[email protected]> |
618 |
|
|
619 |
* Thuban/UI/mainwindow.py(view_position_changed): Warn user about |
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn |
620 |
misprojected layers when their lat/lon bounding |
user about misprojected layers when their lat/lon bounding |
621 |
box exceeds rational lat/lon values. |
box exceeds rational lat/lon values. |
622 |
|
|
623 |
2005-01-20 Bernhard Reiter <[email protected]> |
2005-01-20 Bernhard Reiter <[email protected]> |
624 |
|
|
625 |
* Thuban/UI/about.py (unicodeToLocale()): Improved: |
* Thuban/UI/about.py (unicodeToLocale): Improved: |
626 |
Use 'ascii' and then 'replace' for other characters |
Use 'ascii' and then 'replace' for other characters |
627 |
when getdefaultlocale returns None. Thanks to Bernhard H. . |
when getdefaultlocale returns None. Thanks to Bernhard H. . |
628 |
|
|
629 |
2005-01-20 Bernhard Reiter <[email protected]> |
2005-01-20 Bernhard Reiter <[email protected]> |
630 |
|
|
631 |
* Thuban/UI/classgen.py (OnRetrieve()): Added a comment |
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment |
632 |
that OnRangeText might be called twice and using None as argument. |
that OnRangeText might be called twice and using None as argument. |
633 |
|
|
634 |
2005-01-20 Bernhard Reiter <[email protected]> |
2005-01-20 Bernhard Reiter <[email protected]> |
635 |
|
|
636 |
* Thuban/UI/classgen.py (OnRetrieve()): Add a OnRangeText(0) |
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a |
637 |
to work around a different in wx Behaviour noticed on MacOSX, |
OnRangeText(0) to work around a different in wx Behaviour noticed |
638 |
thanks to Lorenzo Moretti and Daniel Calvelo for the fix. |
on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix. |
639 |
|
|
640 |
2005-01-20 Bernhard Reiter <[email protected]> |
2005-01-20 Bernhard Reiter <[email protected]> |
641 |
|
|
642 |
* Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns |
* Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns |