/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.2537  
changed lines
  Added in v.2590

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26