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]> |
233 |
|
|
234 |
|
* setup.py: Remove wx_cs_params from gdal compile options. |
235 |
|
|
236 |
|
2005-02-18 Jonathan Coles <[email protected]> |
237 |
|
|
238 |
|
Refactored baserenderer.py and renderer.py to remove baserenderer.py's |
239 |
|
dependencies on wxPython. Added a new method projected_raster_layer() |
240 |
|
that returns a raster layer image in projected space. This must be |
241 |
|
implemented in classes derived from BaseRenderer. This also eliminates |
242 |
|
the dependency on gdal in baserenderer.py. |
243 |
|
|
244 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call |
245 |
|
new projected_raster_layer() to get projected raster image instead |
246 |
|
of directly calling ProjectRasterFile(). |
247 |
|
(BaseRenderer.projected_raster_layer): New. This must be implemented |
248 |
|
by derived classes. It takes almost the same arguments as ProjectRasterFile |
249 |
|
did and returns a projected image with mask and alpha data (if requested). |
250 |
|
(BaseRenderer.render_map_incrementally): Remove the check for gdal since |
251 |
|
that check will be done in MapRenderer.projected_raster_layer(). This |
252 |
|
also allows other implementations to use different projection code. |
253 |
|
|
254 |
|
* Thuban/UI/renderer.py (MapRenderer.projected_raster_layer): |
255 |
|
Implementation of BaseRenderer.projected_raster_layer. Checks for |
256 |
|
gdal support and wxPython version. Also handles exceptions from |
257 |
|
ProjectRasterFile. |
258 |
|
|
259 |
|
* libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions |
260 |
|
and added a variable which can be set through the options argument |
261 |
|
of ProjectRasterFile. |
262 |
|
|
263 |
|
* test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New. |
264 |
|
Calls ProjectRasterFile and returns the result. |
265 |
|
(TestBaseRenderer.test_projected_raster_layer): New. Tests the results |
266 |
|
of calling projected_raster_layer() with different options. |
267 |
|
(TestBaseRenderer.test_raster_no_projection): Removed tests based on |
268 |
|
wxPython version and all tests of masks and alpha channels. These are |
269 |
|
now in test_projected_raster_layer(). |
270 |
|
|
271 |
|
2005-02-17 Jan-Oliver Wagner <[email protected]> |
272 |
|
|
273 |
|
* Thuban/Model/map.py, Thuban/Model/label.py: Fixed |
274 |
|
doc-strings to comply with coding_guidelines. |
275 |
|
|
276 |
|
2005-02-17 Jan-Oliver Wagner <[email protected]> |
277 |
|
|
278 |
|
Docstring improvements and minor fixes for labellayer. |
279 |
|
|
280 |
|
* Thuban/Model/map.py: |
281 |
|
(Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers, |
282 |
|
Map.Layers, Map.HasLayers, Map.MoveLayerToTop, |
283 |
|
Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom, |
284 |
|
Map.ProjectedBoundingBox, Map.GetProjection): Improved/added |
285 |
|
doc string. |
286 |
|
(Map.BoundingBox): Removed superfluous test for label_layer |
287 |
|
and improved doc string. |
288 |
|
(Map.TreeInfo): Added label_layer and improved sdo string. |
289 |
|
|
290 |
|
* Thuban/Model/label.py: Added import of _. |
291 |
|
(Label, Label.__init__): Improved/added doc string. |
292 |
|
(LabelLayer, LabelLayer.__init__, LabelLayer.Labels, |
293 |
|
LabelLayer.RemoveLabel, LabelLayer.ClearLabels): |
294 |
|
Improved/added doc string. |
295 |
|
(LabelLayer.AddLabel): Use already defined names for |
296 |
|
align strings and improved doc string. |
297 |
|
(LabelLayer.TreeInfo): New. Return the object data for |
298 |
|
the tree view. |
299 |
|
|
300 |
|
2005-02-16 Jonathan Coles <[email protected]> |
301 |
|
|
302 |
|
Further wxPython 2.5 changes using patches from Daniel Calvelo Aros |
303 |
|
so that that wxproj doesn't crash. Added GUI support for selecting |
304 |
|
alpha channel (opacity can't be selected yet). |
305 |
|
|
306 |
|
NOTE: If wxPython.h is including in future distribution packages |
307 |
|
then it will not be necessary to have the files swigPtrConvertHack.h |
308 |
|
and wxPython_int.h included with Thuban. This is hopefully |
309 |
|
a temporary workaround. |
310 |
|
|
311 |
|
* setup.py (thuban_build_ext.finalize_options): gdalwarp needs |
312 |
|
access to the macro wxCHECK_VERSION so that it will properly |
313 |
|
generate a bit mask. There was a problem between wx2.4 and wx2.5 |
314 |
|
that this works around. |
315 |
|
|
316 |
|
* Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor |
317 |
|
of RasterLayer.MaskType. |
318 |
|
(RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType |
319 |
|
(RasterLayer.MaskType): New. Returns the type of mask to use. Can |
320 |
|
specify none, a bitmap, or an alpha channel. |
321 |
|
(RasterLayer.SetMaskType): New. Set what kind of mask to use. |
322 |
|
|
323 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): |
324 |
|
Set the raster warping options for the mask based on the value |
325 |
|
of RasterLayer.MaskType. |
326 |
|
|
327 |
|
* Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove |
328 |
|
deprecated calls to SetItemSelectedImage in favor of SetItemImage |
329 |
|
with wxTreeItemIcon_Selected. |
330 |
|
|
331 |
|
* Thuban/UI/rasterlayerproperties.py: Support selecting to use |
332 |
|
an alpha channel for the mask. |
333 |
|
|
334 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha |
335 |
|
data if it is available and an alpha channel is supported under |
336 |
|
the current version of wxPython. |
337 |
|
|
338 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define |
339 |
|
to select whether 1's or 0's select the desired portion of an image |
340 |
|
in the bit mask. wx2.4 has a bug where the documentation is the opposite |
341 |
|
from behavior. |
342 |
|
(ProjectRasterFile): Only generate an alpha channel if the version |
343 |
|
of wxPython is >= 2.5.3. |
344 |
|
|
345 |
|
* libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros. |
346 |
|
When wxPython >= 2.5.3 use the special swig functions to decode an |
347 |
|
object's address. |
348 |
|
|
349 |
|
* libraries/thuban/swigPtrConvertHack.h: Includes conditional code |
350 |
|
based on the version of wxPython. If >= 2.5.3 use the special swig |
351 |
|
functions from wxPython to decode wxPython objects, otherwise use |
352 |
|
the old method of retrieving the address from the object __repr__ string. |
353 |
|
|
354 |
|
* libraries/thuban/wxPython_int.h: Copied from wxPython source. |
355 |
|
Unnecessary code was removed to make it smaller. |
356 |
|
|
357 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
358 |
|
Add tests for returning an alpha channel. |
359 |
|
|
360 |
|
* test/test_layer.py (TestLayerModification.test_raster_layer): Fix |
361 |
|
tests that used removed functions UseMask and SetUseMask |
362 |
|
|
363 |
|
|
364 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
365 |
|
|
366 |
|
More wxPython 2.5 changes. This time taken from a patch from |
367 |
|
Daniel Calvelo Aros. |
368 |
|
|
369 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__) |
370 |
|
(QueryTableFrame.__init__): Pass the size of a spacer as a single |
371 |
|
item. |
372 |
|
|
373 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog) |
374 |
|
(ProjFrame.build_dialog): Pass the size of a spacer as a single |
375 |
|
item. |
376 |
|
|
377 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the |
378 |
|
size of a spacer as a single item. |
379 |
|
|
380 |
|
* Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the |
381 |
|
size of a spacer as a single item. |
382 |
|
|
383 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
384 |
|
|
385 |
|
Compatibility with wxPython 2.5. The changes should make it work |
386 |
|
better with 2.5 while still keeping compatibility with 2.4. There |
387 |
|
are still problems with 2.5, though. |
388 |
|
|
389 |
|
* Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size |
390 |
|
of a spacer as a single item. |
391 |
|
|
392 |
|
* Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only |
393 |
|
from wxControl |
394 |
|
|
395 |
|
* Thuban/UI/legend.py (LegendTree): When running with wxPython < |
396 |
|
2.5, add an implementation of the GetFirstChild method that does |
397 |
|
not require the second parameter. |
398 |
|
(LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded) |
399 |
|
(LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems) |
400 |
|
(LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not |
401 |
|
pass the second parameter to GetFirstChild |
402 |
|
|
403 |
|
2005-02-08 Nina H�ffmeyer <[email protected]> |
404 |
|
|
405 |
|
* Extensions/ogr/ogrshapes.py: Removed some print commands. |
406 |
|
|
407 |
|
* Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an |
408 |
|
additional menu but appears as a possibility in the menu Map. |
409 |
|
|
410 |
|
2005-02-07 Jonathan Coles <[email protected]> |
411 |
|
* libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR |
412 |
|
and PYTHON_ERRF since they were no longer necessary. |
413 |
|
|
414 |
|
2005-02-07 Bernhard Reiter <[email protected]> |
415 |
|
* Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows): |
416 |
|
Enable translation for message string. |
417 |
|
|
418 |
|
2005-02-06 Martin Schulze <[email protected]> |
419 |
|
|
420 |
|
* Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted |
421 |
|
the arguments of the contstructor to fit the global scheme |
422 |
|
|
423 |
|
2005-01-31 Nina H�ffmeyer <[email protected]> |
424 |
|
|
425 |
|
* Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides |
426 |
|
some dialogs needed to start ogr. |
427 |
|
|
428 |
|
* Extensions/ogr/__init__.py: Changed comments to avoid encoding |
429 |
|
warnings. |
430 |
|
|
431 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid |
432 |
|
encoding warnings. |
433 |
|
|
434 |
|
2005-01-28 Jonathan Coles <[email protected]> |
435 |
|
|
436 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the |
437 |
|
mask is packed into a bit array. It's now slightly faster. |
438 |
|
|
439 |
|
2005-01-28 Jonathan Coles <[email protected]> |
440 |
|
|
441 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask |
442 |
|
default to true. |
443 |
|
|
444 |
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove |
445 |
|
code that loads the state of the layer's use_mask flag. Its |
446 |
|
usefulness is still being debated. |
447 |
|
|
448 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Remove |
449 |
|
code that saves the state of the layer's use_mask flag. Its |
450 |
|
usefulness is still being debated. |
451 |
|
|
452 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass |
453 |
|
options to ProjectRasterFile based on the state of layer.UseMask(). |
454 |
|
Catch more exceptions from ProjectRasterFile so that Thuban doesn't |
455 |
|
quit is there is a problem projecting. |
456 |
|
(BaseRenderer.draw_raster_data): Change the documentation to |
457 |
|
describe the new format (XBM) that the mask data will be in. |
458 |
|
|
459 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask |
460 |
|
data is in XBM format when format='RAW' which means it doesn't |
461 |
|
need to be converted to a wxImage before being used as a mask |
462 |
|
for a wxBitmap. Assume that if format != 'RAW' that the image |
463 |
|
data and mask data are in the same format. |
464 |
|
|
465 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled |
466 |
|
and a mask is requested, convert the alpha band to a bit array in |
467 |
|
XBM format. if an alpha channel is requested, simply return the |
468 |
|
data in the alpha band. Provide better error handling by returning |
469 |
|
python error messages (also fixes RT #2947). |
470 |
|
(ProjectRasterFile): Support multiple mask options, rather than simply |
471 |
|
a flag indicating that a mask should or should not be used. Provide |
472 |
|
better error handling by returning python error messages. |
473 |
|
|
474 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
475 |
|
Add mask data to test. |
476 |
|
|
477 |
|
* test/test_layer.py (TestLayer.test_raster_layer): Test that a layer |
478 |
|
should use the mask by default. |
479 |
|
(TestLayerModificaton.test_raster_layer): Test that a layer should use |
480 |
|
the mask by default. |
481 |
|
|
482 |
|
* test/test_load.py (TestRasterLayer.test): Remove testing for |
483 |
|
use_mask flag in file. |
484 |
|
|
485 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing |
486 |
|
for use_mask in file. |
487 |
|
|
488 |
|
* test/test_load_1_0_1.py: Removed. Shouldn't have been checked in. |
489 |
|
|
490 |
|
2005-01-26 Jonathan Coles <[email protected]> |
491 |
|
|
492 |
|
Add a new dialog box for raster layers. The dialog box allows |
493 |
|
the user to toggle a mask that is generated by ProjectRasterFile |
494 |
|
and is used to only draw the real parts of the projected image. |
495 |
|
|
496 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): |
497 |
|
Instruct the warping code to generate a mask if the raster layer |
498 |
|
requests one. |
499 |
|
(BaseRenderer.draw_raster_data): Removed obsolete optional mask argument. |
500 |
|
|
501 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed |
502 |
|
obsolete optional mask argument. |
503 |
|
|
504 |
|
* Thuban/UI/classifier.py (Classifier): Change the parent class |
505 |
|
to LayerProperties and rework the code to support layout calls |
506 |
|
from the parent. |
507 |
|
(Classifier.dialog_layout): New. Layout the dialog box. |
508 |
|
(Classifier.map_layers_removed): Removed. Moved to parent class. |
509 |
|
(Classifier.map_replaced): Removed. Moved to parent class. |
510 |
|
(Classifier._OnTry): Renamed to OnTry to support parent class. |
511 |
|
(Classifier.OnClose): Removed. Supplied in parent class. |
512 |
|
(Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn. |
513 |
|
(Classifier._OnOK): Renamed to OnOK to support parent class. |
514 |
|
(Classifier._OnRevert): Renamed to OnRevert to support parent class. |
515 |
|
|
516 |
|
* Thuban/UI/layerproperties.py: New. Base class for layer properties |
517 |
|
dialog boxes. |
518 |
|
|
519 |
|
* Thuban/UI/rasterlayerproperties.py: New. Class for displaying |
520 |
|
raster layer properties. |
521 |
|
|
522 |
|
* libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code |
523 |
|
with the non-simple version supplied with gdal. This allows added |
524 |
|
features such as creating an alpha band. |
525 |
|
(GetImageData): Generate a mask array from the alpha band that is |
526 |
|
generated by gdal if the user has selected it. Try to support images |
527 |
|
that have more than three bands, such as images with RGB plus an |
528 |
|
alpha band. |
529 |
|
(ProjectRasterFile): Convert python argument for mask and tell |
530 |
|
gdal to enable or disable an alpha band. |
531 |
|
|
532 |
|
* Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string |
533 |
|
describing what kind of layer the class is. Defaults to "Unknown", |
534 |
|
but should be overridden by subclasses. |
535 |
|
(Layer.Type): New. Override base class method. |
536 |
|
(RasterLayer.__init__): Create a flag for using a mask. Record extra |
537 |
|
data from gdal for display in the properties dialog. |
538 |
|
(RasterLayer.Type): New. Override base class method. |
539 |
|
(RasterLayer.UseMask): New. Returns True if the mask should be used. |
540 |
|
(RasterLayer.SetUseMask): New. Set if the mask should be used. |
541 |
|
(RasterLayer.ImageInfo): New. Return extra information about the image. |
542 |
|
|
543 |
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load |
544 |
|
the mask information. |
545 |
|
|
546 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Save mask information. |
547 |
|
|
548 |
|
* Thuban/UI/mainwindow.py: Register the RasterLayerProperties and |
549 |
|
Classifier classes as dialogs to use with the proper layer types. |
550 |
|
|
551 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
552 |
|
Fix test. |
553 |
|
|
554 |
|
* test/test_layer.py (TestLayer.test_raster_layer): Test new methods. |
555 |
|
(TestLayerModification.build_path): New. Support function. |
556 |
|
(TestLayerModification.test_raster_layer): New. Test new methods. |
557 |
|
|
558 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask. |
559 |
|
|
560 |
|
* test/test_load.py (TestRasterLayer): Add tests for mask. |
561 |
|
|
562 |
|
* test/test_load_1_0_1.py: New. Copied from test_load.py. |
563 |
|
|
564 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed |
565 |
|
obsolete optional mask argument. |
566 |
|
|
567 |
|
2005-01-26 Nina H�ffmeyer <[email protected]> |
568 |
|
|
569 |
|
* Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore |
570 |
|
which maps the ids and the ordinals. Fixed RowIdToOrdinal(), |
571 |
|
RowOrdinalToId() and ReadRowAsDict(). |
572 |
|
|
573 |
|
* Extensions/ogr/ogrstart.py: Added menu item which opens database |
574 |
|
layers for existing database connections. |
575 |
|
|
576 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string. |
577 |
|
|
578 |
|
|
579 |
|
2005-01-26 Jan-Oliver Wagner <[email protected]> |
580 |
|
|
581 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
582 |
|
|
583 |
|
2005-01-24 Bernhard Herzog <[email protected]> |
584 |
|
|
585 |
|
Rework the status bar updates a bit to make sure the message about |
586 |
|
the projections is produced at the right times. |
587 |
|
|
588 |
|
* Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages): |
589 |
|
New class variable with messages that may require a status bar |
590 |
|
update. |
591 |
|
(MainWindow.view_position_changed) |
592 |
|
(MainWindow.update_status_bar): Rename from view_position_changed |
593 |
|
to update_status_bar. It's meaning has changed now that it may |
594 |
|
also generate messages about problems with projection settings. |
595 |
|
(MainWindow.__init__): Use the new update_status_bar_messages |
596 |
|
class variable to subscribe update_status_bar |
597 |
|
(MainWindow.set_position_text): Update doc-string. This method |
598 |
|
has to be renamed at some point. See doc-string and comments. |
599 |
|
(MainWindow.OnClose): Unsubscribe update_status_bar from all |
600 |
|
messages in update_status_bar_messages |
601 |
|
|
602 |
|
* Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New |
603 |
|
class attribute. map messages to be forwarded by the viewport. |
604 |
|
(ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe |
605 |
|
the messages in forwarded_map_messages |
606 |
|
|
607 |
|
2005-01-21 Bernhard Herzog <[email protected]> |
608 |
|
|
609 |
|
* test/postgissupport.py (PostGISDatabase.__init__): Tweak |
610 |
|
doc-string |
611 |
|
(find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a |
612 |
|
different name for the initialization SQL file. |
613 |
|
|
614 |
|
2005-01-21 Jonathan Coles <[email protected]> |
615 |
|
|
616 |
|
* Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes |
617 |
|
a projection and returns a formatted string representing the |
618 |
|
parameters to feed to gdalwarp. This function eliminates |
619 |
|
redundancy in draw_raster_layer(). |
620 |
|
(BaseRenderer.render_map_incrementally): Removed the optimization which |
621 |
|
drew the top most raster layer first and then only those vector- |
622 |
|
based layers that are above it. With the support for transparency |
623 |
|
this optimization breaks correct behaviour. |
624 |
|
(BaseRenderer.draw_raster_layer): Reorganize code to support possible |
625 |
|
future enhancements to raster layer bounding box. The old behaviour has |
626 |
|
not changed. Also, change calling parameters to draw_raster_data() |
627 |
|
to specify new RAW data format and mask. |
628 |
|
(BaseRenderer.draw_raster_data): Change signature to include an optional |
629 |
|
parameter for mask information. Change documentation to mention |
630 |
|
support for new parameter and added option for RAW data format. |
631 |
|
The data argument is now a list of [width, height, data]. |
632 |
|
|
633 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional |
634 |
|
mask parameter. Add new condition for RAW format, which |
635 |
|
significantly reduces rendering time. Add condition for |
636 |
|
mask parameter. |
637 |
|
|
638 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a |
639 |
|
data array of RGB values from the projected image returned from |
640 |
|
the gdal warping functions. In the case of palette based images, it |
641 |
|
converts the NO_DATA index to the mask color. |
642 |
|
(ProjectRasterFile): Removed all custom memory driver references |
643 |
|
and replaced it with the standard in-memory dataset provided |
644 |
|
by gdal. The return data is no longer a BMP file, but an array |
645 |
|
of RGB values, one set triple per pixel. |
646 |
|
|
647 |
|
* libraries/thuban/bmpdataset.cpp: Removed. Unnecessary. |
648 |
|
* libraries/thuban/cpl_mfile.h: Removed. Unnecessary. |
649 |
|
* libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary. |
650 |
|
|
651 |
|
* setup.py (thuban_build_ext.finalize_options): Removed mention |
652 |
|
of cpl_mfile.cpp and bmpdataset.cpp files in the list of source |
653 |
|
files. These are obsolete with the new version of gdalwarp.cpp |
654 |
|
|
655 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): |
656 |
|
Updated signature. |
657 |
|
(TestBaseRenderer.test_raster_no_projection): Changed the test |
658 |
|
data to be data in the uncompressed RAW format returned from |
659 |
|
ProjectRasterFile. |
660 |
|
|
661 |
|
2005-01-21 Jan-Oliver Wagner <[email protected]> |
662 |
|
|
663 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made |
664 |
|
string available for i18n. |
665 |
|
|
666 |
|
2005-01-20 Russell Nelson <[email protected]> |
667 |
|
|
668 |
|
* Resources/Projections/defaults.proj: Ruin the speling of the |
669 |
|
Lambert-93 projection so it doesn't run into the wx UTF-8 bug. |
670 |
|
It's the wrong thing to do in the long run, but it's necessary for |
671 |
|
those users until that bug is fixed. Otherwise the projection |
672 |
|
dialog segfaults. Better to annoy some Lambert-93 users with a |
673 |
|
spelling mistake than every Fedora Core 3 user of Thuban-CVS. |
674 |
|
|
675 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
676 |
|
|
677 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added |
678 |
|
docstring and comment that the warning code here is a hack. |
679 |
|
|
680 |
|
2005-01-20 Russell Nelson <[email protected]> |
681 |
|
|
682 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn |
683 |
|
user about misprojected layers when their lat/lon bounding |
684 |
|
box exceeds rational lat/lon values. |
685 |
|
|
686 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
687 |
|
|
688 |
|
* Thuban/UI/about.py (unicodeToLocale): Improved: |
689 |
|
Use 'ascii' and then 'replace' for other characters |
690 |
|
when getdefaultlocale returns None. Thanks to Bernhard H. . |
691 |
|
|
692 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
693 |
|
|
694 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment |
695 |
|
that OnRangeText might be called twice and using None as argument. |
696 |
|
|
697 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
698 |
|
|
699 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a |
700 |
|
OnRangeText(0) to work around a different in wx Behaviour noticed |
701 |
|
on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix. |
702 |
|
|
703 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
704 |
|
|
705 |
|
* Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns |
706 |
|
None. (Fixes rt#2910.) |
707 |
|
|
708 |
|
2005-01-18 Frank Koormann <[email protected]> |
709 |
|
|
710 |
|
New Extension: mouseposition |
711 |
|
Tool to collect mouse click positions (map coordinates) in a dialog. |
712 |
|
|
713 |
|
* Extensions/mouseposition/__init__.py: New, extension registration |
714 |
|
|
715 |
|
* Extensions/mouseposition/mouseposition.py: New, implements the |
716 |
|
dialog and adds a tool to Thuban mainwindow. |
717 |
|
|
718 |
|
* Extensions/mouseposition/position.xpm: New, icon for tool. |
719 |
|
|
720 |
|
2005-01-14 Jan-Oliver Wagner <[email protected]> |
721 |
|
|
722 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
723 |
|
|
724 |
|
2005-01-11 Frank Koormann <[email protected]> |
725 |
|
|
726 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
727 |
|
Fix indention bug. |
728 |
|
|
729 |
|
2005-01-09 Frank Koormann <[email protected]> |
730 |
|
|
731 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
732 |
|
BugFix 2901: Explicitly copy layers ClassificationColumn since it |
733 |
|
is not part of the layers Classification. |
734 |
|
|
735 |
|
2005-01-03 Frank Koormann <[email protected]> |
736 |
|
|
737 |
|
* Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally): |
738 |
|
BugFix 2883: Former implementation only worked on classified point |
739 |
|
layers: KeyError was raised, now use the default size if field is None. |
740 |
|
|
741 |
|
2004-12-27 Bernhard Reiter <[email protected]> |
742 |
|
|
743 |
|
svgexport 1.0.0cvs: Fixed label export. |
744 |
|
|
745 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
746 |
|
class TestSVGRenderer(): New class; new test test_label_font(). |
747 |
|
|
748 |
|
* Extensions/svgexport/svgmapwriter.py |
749 |
|
(SVGRenderer.label_font()): initialised Font size with self.factor now, |
750 |
|
makes test_label_font happy. |
751 |
|
|
752 |
|
* Extensions/svgexport/TODO: crossed out fixed label export item. |
753 |
|
Added item for options. |
754 |
|
|
755 |
|
* Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs. |
756 |
|
|
757 |
2004-12-27 Russell Nelson <[email protected]> |
2004-12-27 Russell Nelson <[email protected]> |
758 |
|
|
759 |
Middle mouse button pans. |
Middle mouse button pans. |