/[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 2250 by jschuengel, Wed Jun 16 11:01:42 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]>
1295    
1296            Some face lifting for the examples.
1297    
1298            * Examples/__init__.py: Make this directory a package.
1299    
1300            * Examples/simple_extensions/__init__.py: Make this directory a package.
1301    
1302            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
1303            menu to Examples menu.
1304    
1305            * Examples/simple_extensions/simple_command.py: Some more comments,
1306            minor changes.
1307    
1308            * Examples/simple_extensions/simple_tool.py: Minor changes.
1309    
1310    2004-11-20  Jan-Oliver Wagner <[email protected]>
1311    
1312            Changed way of extension registry for wms and added extension
1313            registry for umn_mapserver extension.
1314    
1315            * Extensions/wms/__init__.py: Added registry entry and the importing
1316            of the actual wms module. Included a test for the required PyOGCLib.
1317    
1318            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
1319    
1320            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
1321            importing of the actual umn mapserver management modules.
1322            Included a test for the required Python MapScript.
1323    
1324    2004-11-20  Jan-Oliver Wagner <[email protected]>
1325    
1326            Changed way of extension registry for importAPR, bboxdump
1327            and added extension registry for svgexport.extension registry for
1328            svgexport.
1329    
1330            * Extensions/importAPR/__init__.py: Added registry entry and the importing
1331            of the actual importAPR module.
1332    
1333            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
1334            __init__.py).
1335    
1336            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
1337            ����of the actual bboxdump module.
1338    
1339            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
1340            ����__init__.py).
1341    
1342            * Extensions/svgexport/__init__.py: Added registry entry and the importing
1343            of the svgsaver module.
1344    
1345            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
1346            to Experimental menu since this module has yet not reached a stable
1347            status (ie. 1.0).
1348    
1349    2004-11-18  Jan-Oliver Wagner <[email protected]>
1350    
1351            Now the hit test considers the size of point symbols.
1352    
1353            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
1354            'size' defaulting to the previously fixed value 5.
1355            Extended doc-string.
1356            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
1357            for symbols.
1358            Now the size of the largest point symbol is determined to find out
1359            about whether the point has been hit.
1360            This fixes the problem that only clicks inside a fixed distance of
1361            5 where found.
1362    
1363    2004-11-17  Jan-Oliver Wagner <[email protected]>
1364    
1365            Another open issue fixed regarding sizeable symbols: correct rendering of
1366            selected symbols.
1367    
1368            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
1369            Added consideration of the specific size of point symbols.
1370            The property for each point symbol is retrieved and the size applied
1371            for the rendering method.
1372            Added doc-string.
1373    
1374    2004-11-16  Jan-Oliver Wagner <[email protected]>
1375    
1376            Changed way of Extension Registry for gns2shp and profiling.
1377    
1378            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
1379            __init__.py).
1380    
1381            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
1382            of the actual gns2shp module.
1383    
1384            * Extensions/profiling/profiling.py: Removed registry entry (moved to
1385            __init__.py).
1386    
1387            * Extensions/profiling/__init__.py: Added registry entry and the importing
1388            of the actual profiling module.
1389    
1390    2004-10-28  Bernhard Reiter <[email protected]>
1391    
1392            * Extensions/svgexport/: Minor improvements to doc strings.
1393    
1394    2004-10-07  Jan-Oliver Wagner <[email protected]>
1395    
1396            Further elements for sizable point objects now
1397            making this feature usable though not yet complete.
1398    
1399            * Thuban/Model/save.py (SessionSaver.write_classification): Write
1400            attribute 'size' for cldata when the shape layer is of point type.
1401            This also now make the test_load.py tests happy.
1402    
1403            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
1404            gradient.
1405    
1406            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
1407            ID_SELPROP_SPINCTRL_LINEWIDTH.
1408            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
1409            (ID_SELPROP_SPINCTRL_SIZE): New Id.
1410            (SelectPropertiesDialog.__init__): Added a second spin control
1411            for the size in case the corresponding layer is of point type.
1412            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
1413            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
1414            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
1415            and refresh preview.
1416    
1417    
1418    
1419    2004-10-04  Martin Schulze  <[email protected]>
1420    
1421            * Extensions/wms/test/test_parser.py
1422            (TestWMSCapabilitiesParser.test_compareLists): Added missing
1423            self-test for compareLists()
1424            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
1425            self-test for compareDicts()
1426            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
1427            to verify the test routine fails with non-equal arguments
1428            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
1429            to verify the test routine fails with non-equal arguments
1430    
1431    2004-10-03  Jan-Oliver Wagner <[email protected]>
1432    
1433            First elements for sizeable point objects.
1434    
1435            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
1436    
1437            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
1438    
1439            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
1440            of a corresponding argument is given.
1441            (TestSymbolSize): New. Test the size attribute of cldata.
1442    
1443            * Thuban/Model/classification.py: Removed some trailing whitespaces.
1444            (ClassGroupProperties.__init__): Set default size.
1445            (ClassGroupProperties.SetProperties): Set the size.
1446            (ClassGroupProperties.GetSize): New. Return the size.
1447            (ClassGroupProperties.SetSize): New. Set the size.
1448            (ClassGroupProperties__eq__): Compare also size.
1449            (ClassGroupProperties__repr__): Print also size.
1450    
1451            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
1452            the size attribute.
1453    
1454            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
1455            Also, now there is a return value that indicates whether the drawing
1456            size exceeded the given rect extent and if so the new extent.
1457            Finally, point objects are drawn depending on the size. If either
1458            the width or height is exceeded, the new extent is returned.
1459            (ClassRenderer.Draw): Now when calling the previewer drawing function,
1460            evaluate the return value and, if not None, adapt the grid widget size
1461            accordingly and redraw again.
1462    
1463            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
1464            If the draw function is for points, call it with the size as additional
1465            parameter.
1466            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
1467            the size. Compute the radius using the size.
1468    
1469            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
1470            that Thuban supports size, apply this correctly.
1471    
1472            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
1473    
1474    2004-10-03  Jan-Oliver Wagner <[email protected]>
1475    
1476            * Doc/manual/thuban-manual-de.xml: Started translation of
1477            Map chapter.
1478    
1479    2004-10-01  Martin Schulze  <[email protected]>
1480    
1481            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
1482            argument for general use through properties-dialog selector
1483            
1484            * Thuban/UI/classifier.py: Register properties dialog classes for
1485            both provided layer classes/types.
1486    
1487            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
1488            map can be retrieved through the parent which is passed to the
1489            constructor anyway and doesn't require an argument of its own,
1490            required for the unification of arguments for general use through
1491            properties-dialog selector.
1492            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
1493            whether a dialog is already opened (and raising it to the users
1494            attention) and creating a new dialog into a function of its own
1495            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
1496            method
1497            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
1498            global registration of properties dialog classes (which are indeed
1499            layer-specific).
1500    
1501            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
1502            for general use through properties-dialog selector, the map can be
1503            retrieved through the parent and doesn't require an argument of
1504            its own.
1505    
1506            * Extensions/wms/wms.py: Register the properties dialog class for
1507            the provided WMS layer
1508    
1509    2004-09-28  Jan-Oliver Wagner <[email protected]>
1510    
1511            New feature: Registry for Extensions.
1512    
1513            * Thuban/UI/extensionregistry.py: This module defines a registry for
1514            Extensions.
1515    
1516            * Thuban/UI/about.py (About.__init__): Added description
1517            of the registered extensions with all of the information.
1518    
1519            * Thuban/Model/extension.py (Extension): Improved doc-string.
1520    
1521            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
1522            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
1523            Extensions/wms/wms.py: Added registration of the extension.
1524    
1525    2004-09-27  Bernhard Reiter <[email protected]>
1526    
1527            More fixes to svgexport to make used ids unique and
1528            conforming to XML's Name production.
1529    
1530            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
1531            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
1532            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
1533            Added Bernhard R. as author.
1534            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
1535            concatenation char now (makes test_make_ide_nosetbaseid() valid).
1536            Also transform second id part with "%d" and catch the TypeError
1537            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
1538            Corrected typo inBernhard's author line.
1539            (SetBaseID): Return the transformed base id. Transform characters
1540            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
1541            import binascii. If to be set string starts with "xml" or so, add "t".
1542            (draw_shape_layer_incrementally): use the returned value of SetBaseID
1543            for used_baseids checks.
1544    
1545    2004-09-25  Bernhard Herzog  <[email protected]>
1546    
1547            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1548            Remove a debug print and some tab characters.
1549    
1550    2004-09-25  Bernhard Reiter <[email protected]>
1551    
1552            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
1553            (SetBaseID, SetID, make_id): Improved docstring comments to explain
1554            the interaction of the three functions and the XML id contrains.
1555    
1556    
1557    2004-09-23  Jan-Oliver Wagner <[email protected]>
1558    
1559            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
1560            Module.
1561    
1562            * Doc/README: Added info on ThubanModel.xmi.
1563    
1564    2004-09-23  Jan-Oliver Wagner <[email protected]>
1565    
1566            * Doc/README: New. Some info about how to generate technical
1567            documentation from the source code.
1568            This text was send to the Thuban developer mailing list on
1569            September 21st 2004 by Bernhard Reiter.
1570    
1571    2004-09-21  Bernhard Reiter <[email protected]>
1572    
1573            Improved the svgexport to only use unique ids. Will issues
1574            an error message dialoge when two layer names are the same.
1575            ShapeIDs are now added with a dash within the svg ids.
1576    
1577            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
1578            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
1579            (TestSVGRenderer): New test class with test_make_in() and
1580            test_check_for_layer_name_clash()
1581            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
1582            and draw_shape_layer_incrementally() to not use a baseid twice,
1583            satisfying test_check_for_layer_name_clash()
1584            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
1585            test_make_in().
1586            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
1587            and wxICON_HAND.
1588            (write_to_svg): Put dc and rendering in a try statement and on
1589            catching SVGmapWriterError notify the user and delete the target file.
1590    
1591    2004-09-20  Bernhard Reiter <[email protected]>
1592    
1593            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
1594    
1595    2004-09-03  Jan Sch�ngel  <[email protected]>
1596    
1597            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
1598            small bug with the line color. Now the line color will now only set
1599            if it is set in Thuban an not Transparent.
1600            
1601            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
1602            deleting the layers from mapfile. Now all layers will delete backwards
1603            from the last.
1604    
1605    2004-08-20  Silke Reimer <[email protected]>
1606    
1607            * Thuban/Model/layer.py:
1608            Fixes bug in projection handling: Otherwise very large region might not
1609            have valid values in the layer's projection.
1610    
1611    2004-08-20  Silke Reimer <[email protected]>
1612    
1613            * Thuban/UI/about.py:
1614            small changes to be consistent with coding style.
1615              
1616    2004-08-13  Martin Schulze  <[email protected]>
1617    
1618            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
1619            Adjusted a comment
1620    
1621    2004-08-11  Silke Reimer <[email protected]>
1622    
1623            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
1624                    too many and too enhanced imports of locale
1625    
1626    2004-08-10  Silke Reimer <[email protected]>
1627    
1628            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
1629                    function unicodeToLocale() to convert special characters to users
1630                    locale encoding
1631    
1632    2004-08-10  Jan-Oliver Wagner <[email protected]>
1633    
1634            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
1635            lower case letter'
1636    
1637    2004-08-09  Jan Sch�ngel  <[email protected]>
1638    
1639            * ChangeLog: Rewrite the last ChangeLog entry to follow
1640            the standard way.
1641    
1642            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
1643            the function where it is needed, because it don't works if it stands
1644            at the beginning.
1645            (MF_Layer.__init__): Removed the extra numclassed variable. Now
1646            numclasses from the mapscript will be used.
1647            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
1648            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
1649            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
1650            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
1651            (MF_Map.create_new_layer): New. A new Layer is created and associated
1652            with the mapscript object.
1653            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
1654            the mapscript.
1655            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
1656            linked to the layer in thuban, else the layerobject linked to the
1657            thubanlayer will be used.
1658            AnnotationLayer will now store the filename of the shapefile.
1659            (MF_Map.remove_layer): If a layer is removed the associated object
1660            must be set new.
1661            
1662            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
1663            layers which are exists in thuban to the mapobj. All removed Layers
1664            will be removed from the mapobj.
1665            Added comments to all functions.
1666            (thuban_to_map): No layer will be removed here.
1667            
1668            * Extensions/umn_mapserver/mf_handle.py
1669            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
1670            Layersettings for the mapserver kann be edited.
1671    
1672            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
1673            imported, will be linked with the associated MF_Layer.
1674            (import_mapfile): All layers, which are not selected, will be removed.
1675            Disable the "import layer from mapfile" menu option.
1676    
1677            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
1678            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
1679            layer on permanently.
1680    
1681    2004-08-03  Jan Sch�ngel  <[email protected]>
1682    
1683            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
1684            New. This function removes all metadata
1685            (MF_Layer.set_group): New. Set the group setting.
1686            (MF_Layer.get_group): New. Get the group setting.
1687            (MF_Map): Removed the extra numlayers variable, used the mapscript
1688            parameter instead.
1689            (MF_Map.get_numlayers): New. This get numlayers.
1690            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
1691            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
1692            if the object is an instance. Also added the annotation layer here to
1693            export, but only the layer is created in the mapfile.
1694    
1695            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
1696            the check if a mapobj exist, because its not needed anymore. The
1697            export function is only available if a mapobj exist.
1698            Use the new function to remove all layers.
1699            
1700            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
1701            option and the metadata button. The layer dialog is temporary disabled.
1702            (Metadata_CustomDataTable): Added some functions to show the grid
1703            correct.
1704    
1705            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
1706            the number of layer from import_mapfile to this function.
1707            (AnnotationLayer): New. This Class shows the Annotation layer in
1708            thuban. The layer don't do anything. It's only to show the layer
1709            and to save the layer order.
1710            (add_annotationlayer): New. Import an annotation layer to thuban.
1711            (select_layer2import): New. Import only layers to thuban and not
1712            the other settings like projection or scalebar.
1713            (create_new_mapfile): Moved the _has_umn_mapobj function and the
1714            create_new_mapfile functions from mf_handle.py to mf_import.py.
1715            
1716            * Extensions/umn_mapserver/sample/iceland.map: Added the group
1717            parameter to the roads and cultural layers. Also added a new
1718            Annotation Layer for the cultural points.
1719    
1720            * Extensions/umn_mapserver/sample/iceland.html: Added the select
1721            option for the annotation layer.
1722    
1723            * Extensions/umn_mapserver/sample/index.html: Added the start
1724            parameter for the annotation layer.
1725    
1726    2004-08-01  Jan-Oliver Wagner <[email protected]>
1727    
1728            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
1729            translation completed.
1730    
1731            * Doc/manual/thuban-manual.xml (Chapter Session Management):
1732            Fixed unprecise description for Save Session.
1733    
1734    2004-07-31  Jan-Oliver Wagner <[email protected]>
1735    
1736            Started translation of Users Manual into german.
1737    
1738            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
1739    
1740            * Doc/manual/Makefile: Added build instructions for german
1741            users manual.
1742    
1743            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
1744    
1745    2004-07-28  Jan Sch�ngel  <[email protected]>
1746    
1747            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
1748            functions. Now all metadata will handle by the function and its not
1749            needed to initialize it from outside. Therefor the associated mapobj
1750            will be stored in the Metadata Object. So we can use the special
1751            functions from the associated mapobj to get the Metadata.
1752            Therefor all initialization code for the metadata is removed from the
1753            other classes.
1754            (MF_Layer): Added a function to get the metadata object.
1755            (MF_Map): Added a function to set the mappath, the path where
1756            the mapfile ist stored.
1757    
1758            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
1759            to set the extent in the mapfile. Now the code is set by the displayed
1760            data in the Thuban-view.
1761            (export_mapfile): The shapepath is now set empty, until relative
1762            pathnames are supported.
1763    
1764            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
1765            metadata. Yet only mapfile metadata are supported. Layer and class
1766            supported are not implemented.
1767            Added a dialog to handle layer informations. The dialog only shows the
1768            selected layer at the moment.
1769    
1770            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
1771            code for setting the extent in thuban. Now the extent is set to the
1772            given extent from the mapfile.
1773            Fixed a logical mistake. Now the extent is set when realy a layer is
1774            loaded, and not if one is selected to load.
1775    
1776            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
1777            move the shown map in the browser.
1778    
1779            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
1780            line to the mapobj and added metadata to the political layer.
1781    
1782            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
1783            for Metadata.
1784    
1785    2004-07-26  Martin Schulze  <[email protected]>
1786    
1787            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
1788            ClassMapper
1789    
1790            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
1791            case for the new ClassMapper
1792    
1793    
1794    2004-07-22  Bernhard Herzog  <[email protected]>
1795    
1796            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
1797            visible extent of the map in projected coordinates
1798    
1799            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
1800            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
1801            tests.
1802            (SimpleViewPortTest.test_visible_extent): New. The real test for
1803            VisibleExtent()
1804    
1805    2004-07-22  Bernhard Herzog  <[email protected]>
1806    
1807            * test/test_viewport.py: Use support.run_tests as the main
1808            function when running asa script.
1809    
1810    2004-07-22  Jan Sch�ngel <[email protected]>
1811    
1812            * Extensions/umn_mapserver/mf_export.py: Added "import os"
1813            Removed the old "import Thuban.UI.mainwindow" code.
1814            (tbextent_to_map): Removed the extra function and at the code direct
1815            to "thuban_to_map" function.
1816            (write_creatorcomment): Added. Now a short comment is added to the
1817            beginning of an generated mapfile.
1818            (export_mapfile): Now the Path and filename are saved in to variables,
1819            and not together in one variable. This is needed for the new
1820            write_creatorcomment function.
1821                    
1822            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
1823            import module "re". Also added Range and the ClassGroupRange import
1824            from Thuban. Both are needed for the new range expression import.
1825            (create_rangeexpression): Added. Creates a Range Expression in Thuban
1826            style from a given mapfile expression.
1827            (added_rasterlayer): Make some small code changes. The shapepath is
1828            now stored in an extra variable and the clazz_name is set empty if no
1829            class name set in the mapfile.
1830            Changed the Error message for Range Expressions, becaus the new
1831            function create a error string which will be shown in the dialog.
1832    
1833            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
1834            range expression import.
1835    
1836    2004-07-21  Jan-Oliver Wagner <[email protected]>
1837    
1838            * Extensions/umn_mapserver/README: Added hint that
1839            installation as root can be avoided. Removed all tabs.
1840    
1841    2004-07-16  Bernhard Herzog  <[email protected]>
1842    
1843            * test/test_viewport.py
1844            (ViewPortTest.test_changing_map_projection): Check that changing
1845            the projection of an empty map shown in a viewport doesn't lead to
1846            exceptions in the viewport's handler for the
1847            MAP_PROJECTION_CHANGED messages
1848    
1849            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
1850            try to keep the same region visible when the map actually contains
1851            something
1852    
1853    2004-07-15  Jan Sch�ngel <[email protected]>
1854    
1855            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
1856            mappath directly from the mapobj. Is needed because of the changes
1857            in mf_import.py.
1858            (MF_Layer.add_thubanclass): Added a new comment.
1859            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
1860            mapobj is empty there is no extent get from thuban an so no one can
1861            set to th mapobj.
1862            
1863            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
1864            the discription.
1865            Split the funktion in to three smaller ones. The new functions are
1866            add_rasterlayer, add_polygonlayer and select_layer2import.
1867            Removed the mapfilepath and filepath initialisation, because its know
1868            include in the new functions.
1869            Now nothing will be imported if cancel is pressed in the
1870            layer choice dialog.
1871    
1872    2004-07-14  Jan Sch�ngel <[email protected]>
1873    
1874            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
1875            import.
1876            (MF_Symbolset): Removed the extra variable for numsymbols.
1877            (MF_Class.__init__): Added a comment to the exception clause.
1878            Removed the extent init, because it was not needed anymore.
1879            (MF_Layer.add_thubanclass): Added the code to set the class name to
1880            the expression value from thuban if no label is defined.
1881            Added the code to export Range expressions from thuban to the mapfile.
1882            (MF_Map.set_extent): Removed the exception and replace it by some if
1883            code. If the size of a map is not defined the size will be set to 1,1.
1884            This is necessary because if the extent is set, mapscript checks if
1885            the size is greater than zero.
1886            (MF_Web): Added the get and set function for the template.
1887    
1888            * Extensions/umn_mapserver/mf_export.py: Added the function to check
1889            if a mapobject exists and used it to set the status of the menu items.
1890            If no mapfile exists the settings could not be edditied.
1891            Define after which menuitem the exportitem will include.
1892            
1893            * Extensions/umn_mapserver/mf_handle.py: Removed the import
1894            Thuban.UI.mainwindow clause, because it is not needed.
1895            Added the command Refresh() to all "OnChangeColor()" functions,
1896            because the color preview window was not updated on a color change.
1897            Added the function to check if a mapobject exists and used it to set the
1898            status of the menu items. If no mapobject exists the settings could not
1899            be edditied.
1900            (Map_Dialog): Moved the imagetype selector from the
1901            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
1902            (Web_Dialog): Removed the name label and added the template textbox.
1903    
1904            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
1905            the exception handling on loading the layers by an if statement. It
1906            is not necessary to us the exception there.
1907            The Filepath creation now use os.path.join to build the path.
1908    
1909            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
1910            definition from global to the setUp function. Now the testMap will
1911            initialize new on each test.
1912    
1913            * Extensions/umn_mapserver/sample/iceland.map: Include three new
1914            classes in the Line Layer, to test logical Expressions.
1915            Set the status of the class "Point9" in the Point Layer to off
1916            
1917    2004-07-13  Bernhard Herzog  <[email protected]>
1918    
1919            * Thuban/UI/baserenderer.py
1920            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
1921            optimization that tries not to draw layers under a raster layer.
1922            The bug was harmless.  All it effectively did was to produce The a
1923            strange messages about not being able to draw Layer instances for
1924            all vector layers below a raster layer which would be invisible
1925            anyway because the raster layer currently always covers the entire
1926            window
1927    
1928    2004-07-08  Jan Sch�ngel <[email protected]>
1929    
1930            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
1931            a list of supported outputformats. This formats are not alle supported
1932            because there is no possibility to get the outputformat without the
1933            name known. Make some formal changes to the code.
1934            (MF_Map.set_name()): Fixed a bug if the name is None.
1935    
1936            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
1937            statement, because its not needed anymore. The Outputformat is now
1938            given as string from the object. Make some formal changes to the code.
1939    
1940            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
1941            most of the new setting which were added during the last changes.
1942            Removed the MF_Size Test.
1943            
1944            * Extensions/umn_mapserver/test/test.map: Added a new class to the
1945            cultural Layer to test expressions and the the status of that layer
1946            from on to default.
1947            Changed the data path the the correct Thuban Data
1948            Added the Outputformat Object and Symbol Object
1949            
1950    2004-07-07  Jan Sch�ngel <[email protected]>
1951    
1952            * Extensions/umn_mapserver/mapfile.py: Added some new
1953            settings to edit (outputformat, label, imagetype)
1954    
1955            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
1956            the Label Dialog and add the OutputDialog.
1957            Make some changes to the code order.
1958    
1959    2004-07-06  Jan Sch�ngel <[email protected]>
1960    
1961            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
1962            and line Obj and add the scalebar_status_type, scalebar_style_type and
1963            scalebar_position_type.
1964            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
1965            are only used to create a Symbol like the circle in Thuban.
1966            Added the scalebarObject (MF_Scalebar)
1967            (MF_Class): Added set_status and get_status.
1968            (MF_Layer.add_thubanclass): Added code to set the class status
1969            (MF_Map): Added code to handle the symbols and scalebar
1970            (MF_Label): Added the set_partials and get_partials functions
1971            
1972            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
1973            from mapfile. Added a function to create a circle object like the one
1974            from thuban if no one exists.
1975            
1976            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
1977            press ok in the assosiated dialog and not at the end of the
1978            colordialog.
1979            Added the Dialog for the Scalebar.
1980            (Label_Dialog): Added the offset option
1981    
1982            * Extensions/umn_mapserver/mf_import.py: Added code to import the
1983            status of the Classes.
1984            Fixed a bug with the projection. Now the to_meter parameter will be
1985            added to the Projection only if it doesn't exists.
1986    
1987    2004-07-01  Jan Sch�ngel <[email protected]>
1988    
1989            Added the functionality to handle the content thuban is not
1990            able to handle directly.
1991    
1992            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
1993            Thuban with the possibility to edit the mapfile content.        
1994            
1995            * Extensions/umn_mapserver/mf_import.py: Added the possibility
1996            to import mapfiles without any layer selected. So it is possible
1997            to edit the other settings in a mapfile.
1998            (import_mapfile): Added code to use the editing functions.
1999            Added the possibility to import the projection to a layer if one
2000            is defined.
2001            Status settings (On,Off) will now set in thuban (visible, invisible).
2002            fixed a bug with with classnames. If no classname is set in mapfile
2003            the value in Thuban will set to the expression.
2004            
2005            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
2006            possibility to save a new mapfile or use the old one which is
2007            imported or new created.
2008            Added code to use the editing functions.
2009            Remove some not needed import statements
2010    
2011            * Extensions/umn_mapserver/mapfile.py: Added new types which are
2012            need for the editing functions.
2013            Added needed set-functions for the editing functions.
2014            Added the possibility to export rasterimages.
2015            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
2016            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
2017            moment.
2018            (MF_Class.set_thubanstyle): Now point layers will set to a default
2019            symbol to show a circle in mapserver and not only a 1px dot.
2020            (MF_Style.__init__): Fixed a bug with the color. Color was not set
2021            correct before.
2022            (MF_Size): Removed, because it is not needed.
2023            
2024            * Extensions/umn_mapserver/README: Added the hints to use the
2025            export and editing functions, too.
2026    
2027            * Extensions/umn_mapserver/sample/iceland.map: Added the
2028            new parameter "UNITS METERS".
2029            Change the political layer to status OFF.
2030    
2031            * Extensions/umn_mapserver/sample/README: Added some
2032            more details to setup the sample in the MapServer.
2033            
2034    2004-06-26  Bernhard Reiter <[email protected]>
2035    
2036            * Extensions/svgexport/test/test_svgmapwriter.py:
2037            Removed class VFile and used standard StringIO instead.
2038    
2039    2004-06-23  Jan Sch�ngel  <[email protected]>
2040    
2041            Add the export function to the umn_mapserver extension.
2042    
2043            * Extension/umn_mapserver/mf_export.py: New. This module extents
2044            Thuban with the possibility to export the Thuban content.
2045    
2046            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
2047            with the export module. Especially added the possibility to
2048            add thuban objects directly to the map objects.
2049    
2050            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
2051            because of the hint from Bernhard Herzog.
2052            Corrected the handling of absolute pathnames.
2053            Changed the Text of the Menu-Item, now the beginning is upper case.
2054    
2055            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
2056    
2057  2004-06-16  Jan Sch�ngel  <[email protected]>  2004-06-16  Jan Sch�ngel  <[email protected]>
2058    
2059          Add a sample and make some changes.          Add a sample and make some changes.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26