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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26