/[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 2412 by jan, Sat Nov 20 21:58:58 2004 UTC revision 2628 by jan, Mon Jun 27 15:52:44 2005 UTC
# Line 1  Line 1 
1    2005-06-27  Jan-Oliver Wagner <[email protected]>
2    
3            * Doc/manual/thuban-manual-de.xml: More translations.
4    
5    2005-05-12  Jonathan Coles <[email protected]>
6            
7            * Thuban/UI/projdialog.py: Add missing import, which led to an
8            exception when opening a layer's projection.
9    
10    2005-05-09  Bernhard Herzog  <[email protected]>
11    
12            * test/support.py (FileLoadTestCase.filename): Fix doc-string.
13    
14    2005-05-09  Bernhard Herzog  <[email protected]>
15    
16            * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
17            connection to autoconnect.  Fixes RT#3148.
18    
19            * test/test_postgis_db.py
20            (TestPostGISSpecialCases.test_simple_error_handling): New test
21            that attempts to reproduce RT#3148.
22    
23    2005-05-06  Jonathan Coles <[email protected]>
24    
25            Add support for saving and loading the opacity and mask type
26            properties of RasterLayers. Also add support for proper use
27            of alpha information while drawing images not in 'RAW' format.
28            If transparency in an image format (e.g, PNG) is supported by
29            wxWidgets then the image would previously have been draw with
30            transparent regions, but the opaque regions would have been
31            unaffected by a change in the layer's opacity. This patch
32            corrects the problem.
33    
34            * Thuban/Model/layer.py (RasterLayer): Added opacity and
35            masktype parameters to the constructor, and set the
36            appropriate variables to those values.
37    
38            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
39            code to read the opacity and mask type of the layer and construct
40            a new layer with the additional parameters.
41    
42            * Thuban/Model/save.py (SessionSaver.write_layer): Added code
43            to save the opacity and mask type of a layer.
44    
45            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
46            the opacity of the layer to draw_raster_data rather than the layer.
47            (BaseRenderer.draw_raster_data): Remove the layer parameter because
48            the function doesn't need to know about the layer. Add the optional
49            opacity parameter whose default is 1.0. Add 'PNG' as a supported
50            graphics format.
51    
52            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
53            signature to match that in BaseRenderer. Use the new opacity argument
54            in place of calling layer.Opacity(). In the case where the
55            format is not 'RAW', alpha_data is None and the loaded image has
56            alpha information, use the file's alpha information. This is
57            still subject to the layer's opacity setting.
58    
59            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
60            Fixed signature to match that in BaseRenderer.
61    
62            * test/test_load.py (TestRasterLayer): Change file_contents to
63            include opacity and masktype variables.
64            (TestRasterLayer.test): Include tests for opacity and masktype
65            changes.
66    
67            * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
68            test to cover a variety of combinations of masktype and opacity
69            settings.
70    
71    2005-05-02  Jan-Oliver Wagner <[email protected]>
72    
73            * debian/rules: add --use-wx-python-swig-hack
74            to the build command.
75            Thanks to Moritz Lennert for pointing this out.
76    
77    2005-04-28  Jan-Oliver Wagner <[email protected]>
78    
79            Introduce OGRFileShapeStore in ogr extension.
80            This allows at least that loaded shapefile shape stores
81            can be saved correctly in the thuban session file
82            and reloaded again (reload is via core shapefile
83            routine, not OGR). For other types, .thuban files
84            can not be reloaded for the time being.
85    
86            * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
87            class ist to be used for any file-based shape stores
88            accessed through OGR.
89    
90            * Extensions/ogr/ogrstart.py (open_with_ogr): Added
91            forgotten _ for i18n. Adapted call OpenFileShapestore
92            regarding new parameter.
93            (OpenFileShapestore): Use OGRFileShapeStore instead of
94            OGRShapeStore. Fix return value (None instead of null).
95            Add new parameter "mainwindow" to avoid accessing global
96            context.
97    
98    2005-04-27  Jan-Oliver Wagner <[email protected]>
99    
100            Introduce FileShapeStore as generalization for
101            file-based shape stores. In a first instance
102            this allows additional modules to handle shapefile
103            format as well, namely the OGR extension.
104    
105            * Thuban/Model/data.py: Various small fixes in doc-strings.
106            (FileShapeStore): New class.
107            (ShapefileStore): Derive from FileShapeStore.
108            (ShapefileStore.__init__): Call __init__ of FileShapeStore,
109            rename self.table to self._table, initialize self._bbox
110            (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
111            and self.FileName() instead of self.filename.
112            (ShapefileStore.Table): Use self._table instead of self.table.
113            (ShapefileStore.FileName): Removed (moved to FileShapeStore).
114            (ShapefileStore.BoundingBox):  Use self._bbox instead of self.bbox.
115    
116            * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
117            (SessionSaver.write_data_containers): Only use methods of the
118            base class FileShapeStore.
119    
120    2005-04-26  Martin Schulze  <[email protected]>
121    
122            * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
123            function to the modified render engine
124    
125    2005-04-25  Martin Schulze  <[email protected]>
126    
127            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
128            Added a description according to the CVS log message
129    
130    2005-04-23  Martin Schulze  <[email protected]>
131    
132            * Thuban/UI/renderer.py: Added a missing import
133    
134    2005-04-23  Russell Nelson  <[email protected]>
135    
136            * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
137            way the previous tool is remembered, so that middle-button
138            panning works even if you haven't selected a tool.
139    
140    2005-04-11  Bernhard Herzog  <[email protected]>
141    
142            * libraries/thuban/wxproj.cpp: Move the compatibility code that
143            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
144            branch that includes wxPython.h because it's only needed when
145            wxPython.h is used.  Also, it won't compile when
146            USE_WX_PYTHON_SWIG_HACK is set otherwise.
147    
148    2005-04-07  Bernhard Herzog  <[email protected]>
149    
150            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
151            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
152            ClassGrid.__init__ and it's value is outside of the valid
153            range (must be < 32768).  wxPython 2.5 complains about it with an
154            exception.
155    
156    2005-04-05  Jan-Oliver Wagner <[email protected]>
157    
158            * Doc/manual/thuban-manual-de.xml: More translations.
159    
160    2005-04-05  Bernhard Herzog  <[email protected]>
161    
162            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
163            wxPython 2.4 as well.  Also, remove a now obsolete comment.
164    
165    2005-04-05  Bernhard Herzog  <[email protected]>
166    
167            Use wxPython.h by default but provide a workaround when it isn't
168            available.
169    
170            * setup.py (wxproj_extension): New variable.  Assign the Extension
171            instance for Lib.wxproj to this variable instead of putting it
172            directly into the listso that it can be accessed by other code
173            later.
174            (thuban_build_ext.user_options): Added boolean option
175            --use-wx-python-swig-hack.
176            (thuban_build_ext.initialize_options): Initialize the new option
177            to False.
178            (thuban_build_ext.finalize_options): If the new option was given,
179            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
180            (thuban_build_ext): Update the doc-string
181    
182            * libraries/thuban/wxproj.cpp: Normally we use
183            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
184            defined, use swigPtrConvertHack.h instead.
185    
186            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
187            copied over from wxPython.h.
188            (decode_pointer_new): New.  Equivalent of decode_pointer for
189            wxPython 2.5.
190            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
191    
192            * README: Add section on potential build problems which explains
193            how the work-around for a missing wxPython.h is activated.
194    
195    2005-03-29  Bernhard Herzog  <[email protected]>
196    
197            * test/postgissupport.py (find_postgis_sql): Added yet another
198            potential location for (lw)postgis.sql because the file has moved
199            again in postgis 1.0.0 rc4.
200    
201    2005-03-29  Bernhard Herzog  <[email protected]>
202    
203            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
204            match the site of the legend_icon_layer icon.  Otherwise wxpython
205            2.5 complains when the legend is created with the error:
206    
207            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
208            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
209            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
210            in wxImageList: this might work on this platform but definitely
211            won't under Windows.
212    
213    2005-03-23  Jonathan Coles <[email protected]>
214    
215            These changes add support for adjusting the opacity of a raster layer.
216    
217            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
218            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
219            a LAYER_CHANGED event if the opacity actually changes.
220    
221            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
222            layer parameter needed in the implementation of this method in
223            renderer.py.
224    
225            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
226            typo 00 -> 0.
227    
228            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
229            control to adjust opacity.
230    
231            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
232            alpha data based on the opacity level of the layer.
233    
234            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
235            accepts a layer parameter.
236    
237            * test/test_layer.py (TestLayerModification.test_raster_layer):
238            Rename opacity method calls and add test for LAYER_CHANGED.
239    
240    2005-03-16  Bernhard Herzog  <[email protected]>
241    
242            * test/test_connector.py (DeletionTestMixin.check_deletions)
243            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
244            update the callers.
245    
246    2005-03-14  Jan-Oliver Wagner <[email protected]>
247    
248            * Doc/manual/thuban-manual-de.xml: More translations.
249    
250    2005-03-10  Jan-Oliver Wagner <[email protected]>
251    
252            Introducing initialization callbacks for extensions.
253    
254            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
255            optional parameter init_callback.
256            (ExtensionDesc.init_ext): New. Executes the callback and sets
257            a status.
258    
259            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
260            initialization of the extensions.
261            (ThubanApplication.init_extensions): Init all extensions.
262    
263            * Thuban/UI/about.py (About.__init__): Added status of the extensions
264            to the about text.
265    
266            * Extensions/gns2shp/__init__.py: Added init method for Extension
267            description.
268            (init): New. Contains the initialization of the module.
269    
270    2005-03-04  Nina H�ffmeyer <[email protected]>
271    
272            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
273            OGRConnection to open a datasource. Removed dialog to display all
274            available drivers. Added some doc strings.
275    
276            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
277            OGRDatasource with a string. Added two opening methods which return an
278            OGRDatasource (either data from file or from DB).
279    
280            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
281            represents a geometry reference of an OGRFeature. OGRShape now has a
282            list of referenced geometry objects (important for geometry
283            collections).
284            For OGRShapeStores loaded from a DB an ID column can be specified now.
285    
286    2005-02-22  Jan-Oliver Wagner <[email protected]>
287    
288            * test/test_map.py (TestMapWithContents.test_tree_info):
289            Added label layer for comparison.
290    
291    2005-02-18  Jonathan Coles <[email protected]>
292    
293            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
294            which builds a mask. Handle the majority of an image in a loop,
295            creating 8 bits at a time. Later, handle the edge case where less
296            than 8 bits are packed.
297    
298    2005-02-18  Bernhard Herzog  <[email protected]>
299    
300            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
301            doc-string
302    
303    2005-02-18  Jonathan Coles <[email protected]>
304    
305            * setup.py: Remove wx_cs_params from gdal compile options.
306    
307    2005-02-18  Jonathan Coles <[email protected]>
308    
309            Refactored baserenderer.py and renderer.py to remove baserenderer.py's
310            dependencies on wxPython. Added a new method projected_raster_layer()
311            that returns a raster layer image in projected space. This must be
312            implemented in classes derived from BaseRenderer. This also eliminates
313            the dependency on gdal in baserenderer.py.
314    
315            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
316            new projected_raster_layer() to get projected raster image instead
317            of directly calling ProjectRasterFile().
318            (BaseRenderer.projected_raster_layer): New. This must be implemented
319            by derived classes. It takes almost the same arguments as ProjectRasterFile
320            did and returns a projected image with mask and alpha data (if requested).
321            (BaseRenderer.render_map_incrementally): Remove the check for gdal since
322            that check will be done in MapRenderer.projected_raster_layer(). This
323            also allows other implementations to use different projection code.
324    
325            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
326            Implementation of BaseRenderer.projected_raster_layer. Checks for
327            gdal support and wxPython version. Also handles exceptions from
328            ProjectRasterFile.
329    
330            * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
331            and added a variable which can be set through the options argument
332            of ProjectRasterFile.
333    
334            * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
335            Calls ProjectRasterFile and returns the result.
336            (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
337            of calling projected_raster_layer() with different options.
338            (TestBaseRenderer.test_raster_no_projection): Removed tests based on
339            wxPython version and all tests of masks and alpha channels. These are
340            now in test_projected_raster_layer().
341    
342    2005-02-17  Jan-Oliver Wagner <[email protected]>
343    
344            * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
345            doc-strings to comply with coding_guidelines.
346    
347    2005-02-17  Jan-Oliver Wagner <[email protected]>
348    
349            Docstring improvements and minor fixes for labellayer.
350    
351            * Thuban/Model/map.py:
352            (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
353            Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
354            Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
355            Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
356            doc string.
357            (Map.BoundingBox): Removed superfluous test for label_layer
358            and improved doc string.
359            (Map.TreeInfo): Added label_layer and improved sdo string.
360    
361            * Thuban/Model/label.py: Added import of _.
362            (Label, Label.__init__): Improved/added doc string.
363            (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
364            LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
365            Improved/added doc string.
366            (LabelLayer.AddLabel): Use already defined names for
367            align strings and improved doc string.
368            (LabelLayer.TreeInfo): New. Return the object data for
369            the tree view.
370    
371    2005-02-16  Jonathan Coles <[email protected]>
372    
373            Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
374            so that that wxproj doesn't crash. Added GUI support for selecting
375            alpha channel (opacity can't be selected yet).
376    
377            NOTE: If wxPython.h is including in future distribution packages
378            then it will not be necessary to have the files swigPtrConvertHack.h
379            and wxPython_int.h included with Thuban. This is hopefully
380            a temporary workaround.
381    
382            * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
383            access to the macro wxCHECK_VERSION so that it will properly
384            generate a bit mask. There was a problem between wx2.4 and wx2.5
385            that this works around.
386    
387            * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
388            of RasterLayer.MaskType.
389            (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
390            (RasterLayer.MaskType): New. Returns the type of mask to use. Can
391            specify none, a bitmap, or an alpha channel.
392            (RasterLayer.SetMaskType): New. Set what kind of mask to use.
393    
394            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
395            Set the raster warping options for the mask based on the value
396            of RasterLayer.MaskType.
397    
398            * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
399            deprecated calls to SetItemSelectedImage in favor of SetItemImage
400            with wxTreeItemIcon_Selected.
401    
402            * Thuban/UI/rasterlayerproperties.py: Support selecting to use
403            an alpha channel for the mask.
404    
405            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
406            data if it is available and an alpha channel is supported under
407            the current version of wxPython.
408    
409            * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
410            to select whether 1's or 0's select the desired portion of an image
411            in the bit mask. wx2.4 has a bug where the documentation is the opposite
412            from behavior.
413            (ProjectRasterFile): Only generate an alpha channel if the version
414            of wxPython is >= 2.5.3.
415    
416            * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
417            When wxPython >= 2.5.3 use the special swig functions to decode an
418            object's address.
419    
420            * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
421            based on the version of wxPython. If >= 2.5.3 use the special swig
422            functions from wxPython to decode wxPython objects, otherwise use
423            the old method of retrieving the address from the object __repr__ string.
424    
425            * libraries/thuban/wxPython_int.h: Copied from wxPython source.
426            Unnecessary code was removed to make it smaller.
427    
428            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
429            Add tests for returning an alpha channel.
430    
431            * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
432            tests that used removed functions UseMask and SetUseMask
433    
434    
435    2005-02-08  Bernhard Herzog  <[email protected]>
436    
437            More wxPython 2.5 changes.  This time taken from a patch from
438            Daniel Calvelo Aros.
439    
440            * Thuban/UI/tableview.py (QueryTableFrame.__init__)
441            (QueryTableFrame.__init__): Pass the size of a spacer as a single
442            item.
443    
444            * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
445            (ProjFrame.build_dialog): Pass the size of a spacer as a single
446            item.
447    
448            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
449            size of a spacer as a single item.
450    
451            * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
452            size of a spacer as a single item.
453    
454    2005-02-08  Bernhard Herzog  <[email protected]>
455    
456            Compatibility with wxPython 2.5.  The changes should make it work
457            better with 2.5 while still keeping compatibility with 2.4.  There
458            are still problems with 2.5, though.
459    
460            * Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size
461            of a spacer as a single item.
462    
463            * Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only
464            from wxControl
465    
466            * Thuban/UI/legend.py (LegendTree): When running with wxPython <
467            2.5, add an implementation of the GetFirstChild method that does
468            not require the second parameter.
469            (LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded)
470            (LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems)
471            (LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not
472            pass the second parameter to GetFirstChild
473    
474    2005-02-08  Nina H�ffmeyer <[email protected]>
475    
476            * Extensions/ogr/ogrshapes.py: Removed some print commands.
477    
478            * Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an
479            additional menu but appears as a possibility in the menu Map.
480    
481    2005-02-07  Jonathan Coles <[email protected]>
482            * libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR
483            and PYTHON_ERRF since they were no longer necessary.
484    
485    2005-02-07  Bernhard Reiter <[email protected]>
486            * Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows):
487            Enable translation for message string.
488    
489    2005-02-06  Martin Schulze  <[email protected]>
490    
491            * Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted
492            the arguments of the contstructor to fit the global scheme
493    
494    2005-01-31  Nina H�ffmeyer <[email protected]>
495    
496            * Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides
497            some dialogs needed to start ogr.
498            
499            * Extensions/ogr/__init__.py: Changed comments to avoid encoding
500            warnings.
501    
502            * Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid
503            encoding warnings.
504    
505    2005-01-28  Jonathan Coles <[email protected]>
506    
507            * libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the
508            mask is packed into a bit array. It's now slightly faster.
509    
510    2005-01-28  Jonathan Coles <[email protected]>
511    
512            * Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask
513            default to true.
514    
515            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove
516            code that loads the state of the layer's use_mask flag. Its
517            usefulness is still being debated.
518    
519            * Thuban/Model/save.py (SessionSaver.write_layer): Remove
520            code that saves the state of the layer's use_mask flag. Its
521            usefulness is still being debated.
522    
523            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
524            options to ProjectRasterFile based on the state of layer.UseMask().
525            Catch more exceptions from ProjectRasterFile so that Thuban doesn't
526            quit is there is a problem projecting.
527            (BaseRenderer.draw_raster_data): Change the documentation to
528            describe the new format (XBM) that the mask data will be in.
529    
530            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask
531            data is in XBM format when format='RAW' which means it doesn't
532            need to be converted to a wxImage before being used as a mask
533            for a wxBitmap. Assume that if format != 'RAW' that the image
534            data and mask data are in the same format.
535    
536            * libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled
537            and a mask is requested, convert the alpha band to a bit array in
538            XBM format. if an alpha channel is requested, simply return the
539            data in the alpha band. Provide better error handling by returning
540            python error messages (also fixes RT #2947).
541            (ProjectRasterFile): Support multiple mask options, rather than simply
542            a flag indicating that a mask should or should not be used. Provide
543            better error handling by returning python error messages.
544    
545            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
546            Add mask data to test.
547    
548            * test/test_layer.py (TestLayer.test_raster_layer): Test that a layer
549            should use the mask by default.
550            (TestLayerModificaton.test_raster_layer): Test that a layer should use
551            the mask by default.
552    
553            * test/test_load.py (TestRasterLayer.test): Remove testing for
554            use_mask flag in file.
555    
556            * test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing
557            for use_mask in file.
558    
559            * test/test_load_1_0_1.py: Removed. Shouldn't have been checked in.
560            
561    2005-01-26  Jonathan Coles <[email protected]>
562    
563            Add a new dialog box for raster layers. The dialog box allows
564            the user to toggle a mask that is generated by ProjectRasterFile
565            and is used to only draw the real parts of the projected image.
566    
567            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
568            Instruct the warping code to generate a mask if the raster layer
569            requests one.
570            (BaseRenderer.draw_raster_data): Removed obsolete optional mask argument.
571    
572            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed
573            obsolete optional mask argument.
574    
575            * Thuban/UI/classifier.py (Classifier): Change the parent class
576            to LayerProperties and rework the code to support layout calls
577            from the parent.
578            (Classifier.dialog_layout): New. Layout the dialog box.
579            (Classifier.map_layers_removed): Removed. Moved to parent class.
580            (Classifier.map_replaced): Removed. Moved to parent class.
581            (Classifier._OnTry): Renamed to OnTry to support parent class.
582            (Classifier.OnClose): Removed. Supplied in parent class.
583            (Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn.
584            (Classifier._OnOK): Renamed to OnOK to support parent class.
585            (Classifier._OnRevert): Renamed to OnRevert to support parent class.
586    
587            * Thuban/UI/layerproperties.py: New. Base class for layer properties
588            dialog boxes.
589    
590            * Thuban/UI/rasterlayerproperties.py: New. Class for displaying
591            raster layer properties.
592    
593            * libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code
594            with the non-simple version supplied with gdal. This allows added
595            features such as creating an alpha band.
596            (GetImageData): Generate a mask array from the alpha band that is
597            generated by gdal if the user has selected it. Try to support images
598            that have more than three bands, such as images with RGB plus an
599            alpha band.
600            (ProjectRasterFile): Convert python argument for mask and tell
601            gdal to enable or disable an alpha band.
602    
603            * Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string
604            describing what kind of layer the class is. Defaults to "Unknown",
605            but should be overridden by subclasses.
606            (Layer.Type): New. Override base class method.
607            (RasterLayer.__init__): Create a flag for using a mask. Record extra
608            data from gdal for display in the properties dialog.
609            (RasterLayer.Type): New. Override base class method.
610            (RasterLayer.UseMask): New. Returns True if the mask should be used.
611            (RasterLayer.SetUseMask): New. Set if the mask should be used.
612            (RasterLayer.ImageInfo): New. Return extra information about the image.
613    
614            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load
615            the mask information.
616    
617            * Thuban/Model/save.py (SessionSaver.write_layer): Save mask information.
618    
619            * Thuban/UI/mainwindow.py: Register the RasterLayerProperties and
620            Classifier classes as dialogs to use with the proper layer types.
621    
622            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
623            Fix test.
624    
625            * test/test_layer.py (TestLayer.test_raster_layer): Test new methods.
626            (TestLayerModification.build_path): New. Support function.
627            (TestLayerModification.test_raster_layer): New. Test new methods.
628    
629            * test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask.
630    
631            * test/test_load.py (TestRasterLayer): Add tests for mask.
632    
633            * test/test_load_1_0_1.py: New. Copied from test_load.py.
634    
635            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed
636            obsolete optional mask argument.
637    
638    2005-01-26  Nina H�ffmeyer <[email protected]>
639    
640            * Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore
641            which maps the ids and the ordinals. Fixed RowIdToOrdinal(),
642            RowOrdinalToId() and ReadRowAsDict().
643    
644            * Extensions/ogr/ogrstart.py: Added menu item which opens database
645            layers for existing database connections.
646    
647            * Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string.
648    
649    
650    2005-01-26  Jan-Oliver Wagner <[email protected]>
651    
652            * Doc/manual/thuban-manual-de.xml: More translations.
653    
654    2005-01-24  Bernhard Herzog  <[email protected]>
655    
656            Rework the status bar updates a bit to make sure the message about
657            the projections is produced at the right times.
658    
659            * Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages):
660            New class variable with messages that may require a status bar
661            update.
662            (MainWindow.view_position_changed)
663            (MainWindow.update_status_bar): Rename from view_position_changed
664            to update_status_bar.  It's meaning has changed now that it may
665            also generate messages about problems with projection settings.
666            (MainWindow.__init__): Use the new update_status_bar_messages
667            class variable to subscribe update_status_bar
668            (MainWindow.set_position_text): Update doc-string.  This method
669            has to be renamed at some point.  See doc-string and comments.
670            (MainWindow.OnClose): Unsubscribe update_status_bar from all
671            messages in update_status_bar_messages
672    
673            * Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New
674            class attribute.  map messages to be forwarded by the viewport.
675            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe
676            the messages in forwarded_map_messages
677    
678    2005-01-21  Bernhard Herzog  <[email protected]>
679    
680            * test/postgissupport.py (PostGISDatabase.__init__): Tweak
681            doc-string
682            (find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a
683            different name for the initialization SQL file.
684    
685    2005-01-21  Jonathan Coles <[email protected]>
686    
687            * Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes
688            a projection and returns a formatted string representing the
689            parameters to feed to gdalwarp. This function eliminates
690            redundancy in draw_raster_layer().
691            (BaseRenderer.render_map_incrementally): Removed the optimization which
692            drew the top most raster layer first and then only those vector-
693            based layers that are above it. With the support for transparency
694            this optimization breaks correct behaviour.
695            (BaseRenderer.draw_raster_layer): Reorganize code to support possible
696            future enhancements to raster layer bounding box. The old behaviour has
697            not changed. Also, change calling parameters to draw_raster_data()
698            to specify new RAW data format and mask.
699            (BaseRenderer.draw_raster_data): Change signature to include an optional
700            parameter for mask information. Change documentation to mention
701            support for new parameter and added option for RAW data format.
702            The data argument is now a list of [width, height, data].
703    
704            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional
705            mask parameter. Add new condition for RAW format, which
706            significantly reduces rendering time. Add condition for
707            mask parameter.
708    
709            * libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a
710            data array of RGB values from the projected image returned from
711            the gdal warping functions. In the case of palette based images, it
712            converts the NO_DATA index to the mask color.
713            (ProjectRasterFile): Removed all custom memory driver references
714            and replaced it with the standard in-memory dataset provided
715            by gdal. The return data is no longer a BMP file, but an array
716            of RGB values, one set triple per pixel.
717    
718            * libraries/thuban/bmpdataset.cpp: Removed. Unnecessary.
719            * libraries/thuban/cpl_mfile.h: Removed. Unnecessary.
720            * libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary.
721    
722            * setup.py (thuban_build_ext.finalize_options): Removed mention
723            of cpl_mfile.cpp and bmpdataset.cpp files in the list of source
724            files. These are obsolete with the new version of gdalwarp.cpp
725    
726            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
727            Updated signature.
728            (TestBaseRenderer.test_raster_no_projection): Changed the test
729            data to be data in the uncompressed RAW format returned from
730            ProjectRasterFile.
731    
732    2005-01-21  Jan-Oliver Wagner <[email protected]>
733    
734            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made
735            string available for i18n.
736    
737    2005-01-20  Russell Nelson  <[email protected]>
738    
739            * Resources/Projections/defaults.proj: Ruin the speling of the
740            Lambert-93 projection so it doesn't run into the wx UTF-8 bug.
741            It's the wrong thing to do in the long run, but it's necessary for
742            those users until that bug is fixed.  Otherwise the projection
743            dialog segfaults.  Better to annoy some Lambert-93 users with a
744            spelling mistake than every Fedora Core 3 user of Thuban-CVS.
745    
746    2005-01-20  Bernhard Reiter <[email protected]>
747    
748            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added
749            docstring and comment that the warning code here is a hack.
750    
751    2005-01-20  Russell Nelson  <[email protected]>
752    
753            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn
754            user about misprojected layers when their lat/lon bounding
755            box exceeds rational lat/lon values.
756    
757    2005-01-20  Bernhard Reiter <[email protected]>
758    
759            * Thuban/UI/about.py (unicodeToLocale): Improved:
760            Use 'ascii' and then 'replace' for other characters
761            when getdefaultlocale returns None. Thanks to Bernhard H. .
762    
763    2005-01-20  Bernhard Reiter <[email protected]>
764    
765            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment
766            that OnRangeText might be called twice and using None as argument.
767    
768    2005-01-20  Bernhard Reiter <[email protected]>
769    
770            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a
771            OnRangeText(0) to work around a different in wx Behaviour noticed
772            on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
773    
774    2005-01-20  Bernhard Reiter <[email protected]>
775    
776            * Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns
777            None. (Fixes rt#2910.)
778            
779    2005-01-18  Frank Koormann <[email protected]>
780    
781            New Extension: mouseposition
782            Tool to collect mouse click positions (map coordinates) in a dialog.
783    
784            * Extensions/mouseposition/__init__.py: New, extension registration
785    
786            * Extensions/mouseposition/mouseposition.py: New, implements the
787            dialog and adds a tool to Thuban mainwindow.
788    
789            * Extensions/mouseposition/position.xpm: New, icon for tool.
790    
791    2005-01-14  Jan-Oliver Wagner <[email protected]>
792    
793            * Doc/manual/thuban-manual-de.xml: More translations.
794    
795    2005-01-11  Frank Koormann <[email protected]>
796    
797            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
798            Fix indention bug.
799    
800    2005-01-09  Frank Koormann <[email protected]>
801    
802            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
803            BugFix 2901: Explicitly copy layers ClassificationColumn since it
804            is not part of the layers Classification.
805    
806    2005-01-03  Frank Koormann <[email protected]>
807    
808            * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
809            BugFix 2883: Former implementation only worked on classified point
810            layers: KeyError was raised, now use the default size if field is None.
811    
812    2004-12-27  Bernhard Reiter <[email protected]>
813    
814            svgexport 1.0.0cvs: Fixed label export.
815    
816            * Extensions/svgexport/test/test_svgmapwriter.py:
817            class TestSVGRenderer(): New class; new test test_label_font().
818    
819            * Extensions/svgexport/svgmapwriter.py
820            (SVGRenderer.label_font()): initialised Font size with self.factor now,
821            makes test_label_font happy.
822    
823            * Extensions/svgexport/TODO: crossed out fixed label export item.
824            Added item for options.
825    
826            * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
827    
828    2004-12-27  Russell Nelson  <[email protected]>
829    
830            Middle mouse button pans.
831    
832            * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
833            OnMiddleDown and OnMiddleUp events.
834            (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
835            previously used tool.
836            (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
837            pressing the middle mouse button.
838    
839    2004-12-27  Jan-Oliver Wagner <[email protected]>
840    
841            * Doc/manual/thuban-manual-de.xml: More translations.
842    
843    2004-12-23  Jan-Oliver Wagner <[email protected]>
844    
845            * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
846            \n to stderr after the warnings. Thanks to Russell Nelson.
847    
848    2004-12-20  Nina Hueffmeyer <[email protected]>
849    
850            * Extensions/ogr/ogrshapes.py: Fixed some issues from
851            Bernhard (coding guidelines etc.). Additionally it is now possible to
852            display shapefiles containing feature collections (e.g.polygons
853            with holes). Works with gdal 1.2.1 now.
854    
855            * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
856            from Bernhard (coding guidelines etc.). If ogr can't be imported,
857            tests are skipped now.
858    
859            * Extensions/ogr/ogrstart.py: Fixed some typings.
860    
861    2004-12-20  Bernhard Reiter <[email protected]>
862    
863            * Extensions/svgexport/TODO: updated to add support for
864            raster layers and labels for 1.0.1.
865    
866            * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
867            Issue a warning now.
868    
869    2004-12-19  Bernhard Reiter <[email protected]>
870    
871            * Extensions/svgexport/TODO: Added idea to support triggering
872            the application down the pipe.
873    
874    2004-12-19  Bernhard Reiter <[email protected]>
875    
876            svgexport: Improved code quality, mainly by better naming.
877    
878            * Extensions/svgexport/svgmapwriter.py:
879            DrawPath() renamed to DrawPolygonPath(),
880            added documentation, improved comments and variable names.
881            
882            * Extensions/svgexport/svgmapwriter.py,
883              Extensions/svgexport/test/test_svgmapwriter.py:
884            All using DrawPolygonPath() now, the default parameter closed=True
885            omitted.
886    
887            * Extensions/svgexport/test/test_svgmapwriter.py:
888            renamed test_polygon_opened() to test_polyline()
889            renamed test_transparent_polygon() to test_transparent_polyline()
890    
891    2004-12-18  Jan-Oliver Wagner <[email protected]>
892    
893            Some fixes of gns2shp extension.
894    
895            * Extensions/gns2shp/test/__init__.py: New. Make this directory a
896            package.
897    
898            * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
899            dynamically.
900    
901            * Extensions/gns2shp/test/README: Simplified description how to test.
902    
903            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
904            fixed some dimensions of fields according to the GNS documentation
905            which seems to change undocumented.
906            Now killing trailing \n and/or \r from MODIFY_DATE.
907            This fixes RT#2453.
908    
909    2004-12-18  Bernhard Reiter <[email protected]>
910    
911            svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
912    
913            * Extensions/svgexport/test/test_svgmapwriter.py:
914            Added new tests: test_export_polygon_with_hole()
915            and test_polygon_with_hole().
916    
917            * Extensions/svgexport/svgmapwriter.py
918            (draw_polygon_shape()): Uses DrawPath correctly now.
919    
920            * Doc/manual/thuban-manual.xml: Added documentation for stable
921            extention svgexport.    
922            * Doc/manual/thuban-manual-de.xml: Copied English section about
923            svexport over.
924    
925            * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
926    
927            * Extensions/svgexport/svgsaver.py,maplegend.py:
928            Moved from experimental to stable extension menu.
929    
930            * Extensions/svgexport/TODO: updated.
931    
932    
933    2004-12-18  Bernhard Reiter <[email protected]>
934    
935            Added Extensions/svgexport/TODO
936    
937    2004-12-18  Bernhard Reiter <[email protected]>
938    
939            Refactored in svgexport:
940            DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
941    
942            * Extensions/svgexport/svgmapwriter.py
943            Added verbosity level 3 to print out polygon points.
944            (class Point): added __repr__
945            (class Brush, __str__()): Added space after ,.
946            (DrawPolygon): Renamed to DrawPath()
947            (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
948            (DrawLines): Using DrawPath now.
949    
950            * Extensions/svgexport/test/test_svgmapwriter.py:
951            Replaced DrawPolygon() calls with DrawPath() and put the first argument
952            inside another list. Adapted test data with a newline before "M".
953    
954    2004-12-18  Bernhard Reiter <[email protected]>
955            
956            Refactored svgexport tests: 9 double tests runs eliminated;
957            code size reduced by 8 lines.
958    
959            * Extensions/svgexport/test/test_svgmapwriter.py:
960            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
961            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
962            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
963            this fixed the double running of the nine tests of TestVirtualDC.
964            (class TestVirtualDC): Using self.dc and self.file from setUp().
965    
966    2004-12-17  Bernhard Herzog  <[email protected]>
967    
968            Two windows specific fixes ported from thuban-1�0-branch:
969    
970            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
971            instead of getlocale because getlocale doesn't return a usable
972            encoding name on a german windows 2000
973    
974            * setup.py: windows build: Removed the absolute path names and
975            made all prfixes relative to the directory containing setup.py.
976            Makes it a little easier to adapt to a different system.
977    
978    2004-12-16  Bernhard Herzog  <[email protected]>
979    
980            Add support for PostGIS tables with LINESTRING geometries.
981            Fixes RT#2299
982    
983            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
984    
985            * test/postgissupport.py
986            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
987            table to "roads-multi" because it now uses MULTILINESTRING
988            geometries and introduce a new "roads" table that uses LINESTRING
989            (coords_to_multilinestring): Make the doc string more precise
990            (coords_to_linestring): New.  Create a LINESTRING WKT
991            representatin
992            (wkt_converter): Add coords_to_linestring
993            (upload_shapefile): Rephrase the doc-string a bit.
994    
995            * test/test_postgis_db.py (TestPostGISShapestoreArc)
996            (LineStringTests)
997            (TestPostGISShapestoreLineString)
998            (TestPostGISShapestoreMultiLineString): Split
999            TestPostGISShapestoreArc into a base class LineStringTests and two
1000            derived classes TestPostGISShapestoreLineString for LINESTRING
1001            geometries and TestPostGISShapestoreMultiLineString for
1002            MULTILINESTRING geometries.  Most test methods are in the base
1003            class with the exception of tests that explicitly check the raw
1004            format.
1005    
1006    2004-12-16  Bernhard Herzog  <[email protected]>
1007    
1008            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
1009    
1010            * test/postgissupport.py (find_postgis_sql): Different postgis
1011            versions put the postgis.sql file into slightly different places
1012            so we have to look in both.  The updated doc string describes this
1013            is more detail.
1014    
1015            * test/test_postgis_db.py
1016            (TestPostGISSpecialCases.test_column_name_quoting): The return
1017            value of UniqueValues is unsorted, so it has to be sorted for
1018            comparison.
1019    
1020    2004-12-16  Bernhard Herzog  <[email protected]>
1021    
1022            Fix for RT#2237
1023    
1024            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
1025            panel to be shown is the UnknownProjPanel disable the OK and Try
1026            buttons.  Otherwise enable them.
1027            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
1028            the parameters.  In that case __GetProjection also returns None
1029            now.
1030    
1031    2004-12-15  Bernhard Herzog  <[email protected]>
1032    
1033            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
1034            minimum number of classes to 2.  The calculate_quantiles needs at
1035            least two and raises an exception otherwise.  
1036            Fixes RT#2549
1037    
1038    2004-12-15  Bernhard Herzog  <[email protected]>
1039    
1040            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
1041            so that it returns a result for select statements.
1042            (PostgreSQLServer.server_version): New.  Return the version of the
1043            server software.
1044            (PostgreSQLServer.require_authentication): The format of
1045            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
1046            server version and generate the file in the correct format
1047    
1048    2004-12-15  Bernhard Herzog  <[email protected]>
1049    
1050            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
1051            in the doc string and rephrase it a little.
1052    
1053    2004-12-15  Frank Koormann <[email protected]>
1054    
1055            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
1056            session has been loaded successfully. The check is called by the relevant
1057            tests after executing load_session().
1058    
1059    2004-12-13  Bernhard Herzog  <[email protected]>
1060    
1061            Make sure the region used to determine which shapes are visible
1062            actually matches the region on the printed page.  If this isn't
1063            done properly some shapes might not be printed.  
1064            Fixes RT #2692
1065    
1066            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
1067            renderer has to be at the same position as the mapregion
1068    
1069            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
1070            has to be moved by (self.shiftx, self.shifty) too.
1071    
1072    2004-12-13  Bernhard Herzog  <[email protected]>
1073    
1074            * libraries/pyprojection/Projection.i: Work around a bug in the
1075            generated python code which leads to exception in the __del__
1076            method when the constructor fails.  See the comments in the code
1077            for more details.
1078    
1079            * libraries/pyprojection/Projection.py: Updated from Projection.i
1080            with SWIG.
1081    
1082    2004-12-13  Bernhard Herzog  <[email protected]>
1083    
1084            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
1085            (TestAltPath.test_02_path_error_fix_from_list)
1086            (TestAltPath.test_05_path_error_fix_from_list_changed)
1087            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
1088            is destroyed in tearDown, so there's no need to do it in a test
1089            case.
1090    
1091            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
1092            debug print
1093    
1094    2004-12-13  Bernhard Herzog  <[email protected]>
1095    
1096            * Extensions/svgexport/test/test_svgmapwriter.py
1097            (TestDrawSplines.setUp): Do not use super with the unittest
1098            classes because in Python 2.2 they're still old-style classes.
1099    
1100    2004-12-13  Frank Koormann <[email protected]>
1101    
1102        Alternative Path feature: When loading a (moved) session where
1103            shapefiles cannot be found, ask the user. Use the specified path
1104            if further shapefiles are missing. However, ask the usr for confirmation
1105            in such cases.
1106    
1107            * test/test_load.py (TestAltPath): New, tests for alternative path feature
1108            in load_session()
1109            (Shapefile_CallBack): Helper, implements controllable callback.
1110    
1111            * Thuban/UI/application.py (ThubanApplication.OnInit):
1112            Added "alt_path" to self.path
1113            (ThubanApplication.OpenSession): Added shapefile_callback as second
1114            callback similar to db_connection_callback.
1115            (ThubanApplication.run_alt_path_dialog): New, implementaion of
1116            shapefile_callback. In addition to raising the dialog the control of
1117            self.path('alt_path') is implemented here.
1118    
1119            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
1120            (SessionLoader.open_shapefile): Open shapefile, eventually with
1121            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
1122            formerly used in start_fileshapesource()/start_layer().
1123            (SessionLoader.start_fileshapesource): Call open_shapefile().
1124            (SessionLoader.start_layer): Call open_shapefile().
1125            (load_session): Added shapefile_callback.
1126    
1127            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
1128            feature (search / check).
1129            
1130            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
1131    
1132    2004-12-11  Bernhard Reiter <[email protected]>
1133    
1134             svgexport 0.9.2: Point size supports for maps.
1135    
1136            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
1137            (def draw_point_shape): new parameter size defaults to 2 as before.
1138            (draw_shape_layer_incrementally): Moved draw_func log line higher.
1139            Added draw_func call with size when dealing with a point layer.
1140    
1141            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
1142            
1143    2004-12-11  Bernhard Reiter <[email protected]>
1144    
1145            Made sure that newlines are inserted in the svg path d attributes
1146            to raise the chance that the line length will be below 255 characters,
1147            as recommended by REC SVG 1.1 in section 8.3.1.
1148    
1149            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
1150            Adding \n before L's and changed whitespace handling.
1151    
1152            * Extensions/svgexport/test/test_svgmapwriter.py:
1153            Adapted tests to new whitespace handling of DrawPolygon.
1154    
1155    2004-12-11  Bernhard Reiter <[email protected]>
1156    
1157            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
1158    
1159            * Extensions/svgexport/test/test_svgmapwriter.py:
1160            Removed test_drawbezier in favour of new test_drawspline3 and
1161            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
1162            All only to test DrawSpline.
1163    
1164            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1165            New implementation now really using the strange algorithm of
1166            xfig 3.1's approximated splines and its conversion to postscript
1167            with one twist: SVG can do quadratic beziers, so skipped translation
1168            to cubic beziers.
1169            (TestWithDC): Typo in comment fixed.
1170    
1171    2004-12-09  Martin Schulze  <[email protected]>
1172    
1173            * Thuban/Model/classgen.py: Added missing character encoding
1174    
1175            * Extensions/wms/properties.py (OpenWMSProperties): removed
1176    
1177            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
1178            support for get_srs_discrepancies() since there are no
1179            discrepancies anymore (was a thinko)
1180    
1181            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
1182            format priority now that more formats are supported globally by
1183            the render engine.
1184    
1185    2004-12-08  Silke Reimer <[email protected]>
1186            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
1187            because it is not available in all versions of ogr
1188    
1189    2004-12-08  Bernhard Reiter <[email protected]>
1190            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
1191            global tests until a real one is commited.
1192    
1193    2004-12-07 Nina H�ffmeyer <[email protected]>
1194    
1195            * /Extensions/ogr/: Adding a new extension to read shapefiles with
1196            ogr. It is planned to add other vector formats.
1197    
1198            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
1199    
1200    2004-12-07  Jan-Oliver Wagner <[email protected]>
1201    
1202            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
1203            part of a (non-)fix to renable that the tests are always
1204            executed.
1205    
1206    2004-12-07  Bernhard Reiter <[email protected]>
1207    
1208            * Extensions/svgexport/test/test_svgmapwriter.py:
1209            Added test_drawbezier() to test DrawSpline().
1210    
1211            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1212            Really implemented bezier drawing.
1213    
1214            * Extensions/svgexport/__init__.py: Bumped version of svgexport
1215            to 0.9.1 because now the legend examples lines styles
1216            will be drawing with beziers.
1217    
1218    2004-12-05  Martin Schulze  <[email protected]>
1219    
1220            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
1221            GIF as supported bitmap image formats (helpful for the WMS extension)
1222    
1223    2004-11-30  Martin Schulze  <[email protected]>
1224    
1225            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
1226            Improved the test for the internal compare method
1227    
1228    2004-11-27  Jan-Oliver Wagner <[email protected]>
1229    
1230            * Thuban/UI/about.py (About.__init__): Added
1231            Norbert Solymosi for hungarian translation and Ole Rahn
1232            as contrbutor. Moved Bernhard Reiter from Contributor
1233            to Developer.
1234    
1235    2004-11-27  Bernhard Reiter <[email protected]>
1236    
1237            * Extensions/svgexport/test/test_svgmapwriter.py:
1238            Removed Jan from author list as he did not change enough significant
1239            lines yet.
1240    
1241            * Extensions/svgexport/__init__.py: Added Bernhard as author
1242            of the Extension.
1243    
1244    2004-11-27  Jan-Oliver Wagner <[email protected]>
1245    
1246            * po/hu.po: New. Hungarian translation. Contributed
1247            by Norbert Solymosi.
1248    
1249    2004-11-26  Bernhard Herzog  <[email protected]>
1250    
1251            * Extensions/svgexport/test/test_svgmapwriter.py
1252            (Testobjectexport.test_transparent_polygon): Commented out some
1253            debug prints
1254    
1255    2004-11-24  Jan-Oliver Wagner <[email protected]>
1256    
1257            Fix broken tests for svg extension and added svg legend
1258            to Experimental menu.
1259    
1260            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
1261            the test run correctly even if the extension is a package.
1262            Also removed the "import Thuban" which makes no sense.
1263    
1264            * Extensions/svgexport/__init__.py: Fix to have the extensions'
1265            test module also be executed from the global test routine.
1266            This is done by looking for the absense of the DISPLAY variable.
1267    
1268            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
1269            to Experimental menu since this module has yet not reached a stable
1270            status (ie. 1.0).
1271    
1272    2004-11-22  Bernhard Reiter <[email protected]>
1273    
1274            * Extensions/svgexport/svgmapwriter.py:
1275            Added verbose variable and some logging depending on it.
1276            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
1277            because counting i is not necessary.
1278            (class Pen, class Brush): Added simple __str__ methods.
1279            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
1280            not exported to svg file) Note: holes still unhandled.
1281    
1282            * Extensions/svgexport/test/test_svgmapwriter.py:
1283                    Made a baseclass TestWithDC for test needed a DC.
1284                    Added tests for bug #2698 (transparent polygons are not
1285                    exported to svg file):
1286                    Testobjectexport.test_transparent_polygon()
1287    
1288            * Thuban/Model/base.py (UnsetModified):
1289            Fixed some typos in docstring.
1290    
1291            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
1292            Added hints on the used algorithm for handling holes.
1293    
1294  2004-11-20  Jan-Oliver Wagner <[email protected]>  2004-11-20  Jan-Oliver Wagner <[email protected]>
1295    
1296          Some face lifting for the examples.          Some face lifting for the examples.

Legend:
Removed from v.2412  
changed lines
  Added in v.2628

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26