/[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 2636 by jan, Tue Jun 28 06:49:59 2005 UTC
# Line 1  Line 1 
1    2005-06-28  Jan-Oliver Wagner <[email protected]>
2    
3            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
4            Use the default size for rendering selected items of default type.
5            Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149
6    
7    2005-06-28  Jan-Oliver Wagner <[email protected]>
8    
9            * Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'.
10            (APR_TClr.GetThubanColor): Fix bug in color interpretation.
11            Thanks to Frank Koormann who identified this problem.
12    
13            * Extensions/importAPR/importAPR.py (APR_VShSym): New. Just
14            another symbol identified.
15    
16    2005-06-27  Jan-Oliver Wagner <[email protected]>
17    
18            * Doc/manual/thuban-manual-de.xml: More translations.
19    
20    2005-05-12  Jonathan Coles <[email protected]>
21            
22            * Thuban/UI/projdialog.py: Add missing import, which led to an
23            exception when opening a layer's projection.
24    
25    2005-05-09  Bernhard Herzog  <[email protected]>
26    
27            * test/support.py (FileLoadTestCase.filename): Fix doc-string.
28    
29    2005-05-09  Bernhard Herzog  <[email protected]>
30    
31            * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
32            connection to autoconnect.  Fixes RT#3148.
33    
34            * test/test_postgis_db.py
35            (TestPostGISSpecialCases.test_simple_error_handling): New test
36            that attempts to reproduce RT#3148.
37    
38    2005-05-06  Jonathan Coles <[email protected]>
39    
40            Add support for saving and loading the opacity and mask type
41            properties of RasterLayers. Also add support for proper use
42            of alpha information while drawing images not in 'RAW' format.
43            If transparency in an image format (e.g, PNG) is supported by
44            wxWidgets then the image would previously have been draw with
45            transparent regions, but the opaque regions would have been
46            unaffected by a change in the layer's opacity. This patch
47            corrects the problem.
48    
49            * Thuban/Model/layer.py (RasterLayer): Added opacity and
50            masktype parameters to the constructor, and set the
51            appropriate variables to those values.
52    
53            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
54            code to read the opacity and mask type of the layer and construct
55            a new layer with the additional parameters.
56    
57            * Thuban/Model/save.py (SessionSaver.write_layer): Added code
58            to save the opacity and mask type of a layer.
59    
60            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
61            the opacity of the layer to draw_raster_data rather than the layer.
62            (BaseRenderer.draw_raster_data): Remove the layer parameter because
63            the function doesn't need to know about the layer. Add the optional
64            opacity parameter whose default is 1.0. Add 'PNG' as a supported
65            graphics format.
66    
67            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
68            signature to match that in BaseRenderer. Use the new opacity argument
69            in place of calling layer.Opacity(). In the case where the
70            format is not 'RAW', alpha_data is None and the loaded image has
71            alpha information, use the file's alpha information. This is
72            still subject to the layer's opacity setting.
73    
74            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
75            Fixed signature to match that in BaseRenderer.
76    
77            * test/test_load.py (TestRasterLayer): Change file_contents to
78            include opacity and masktype variables.
79            (TestRasterLayer.test): Include tests for opacity and masktype
80            changes.
81    
82            * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
83            test to cover a variety of combinations of masktype and opacity
84            settings.
85    
86    2005-05-02  Jan-Oliver Wagner <[email protected]>
87    
88            * debian/rules: add --use-wx-python-swig-hack
89            to the build command.
90            Thanks to Moritz Lennert for pointing this out.
91    
92    2005-04-28  Jan-Oliver Wagner <[email protected]>
93    
94            Introduce OGRFileShapeStore in ogr extension.
95            This allows at least that loaded shapefile shape stores
96            can be saved correctly in the thuban session file
97            and reloaded again (reload is via core shapefile
98            routine, not OGR). For other types, .thuban files
99            can not be reloaded for the time being.
100    
101            * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
102            class ist to be used for any file-based shape stores
103            accessed through OGR.
104    
105            * Extensions/ogr/ogrstart.py (open_with_ogr): Added
106            forgotten _ for i18n. Adapted call OpenFileShapestore
107            regarding new parameter.
108            (OpenFileShapestore): Use OGRFileShapeStore instead of
109            OGRShapeStore. Fix return value (None instead of null).
110            Add new parameter "mainwindow" to avoid accessing global
111            context.
112    
113    2005-04-27  Jan-Oliver Wagner <[email protected]>
114    
115            Introduce FileShapeStore as generalization for
116            file-based shape stores. In a first instance
117            this allows additional modules to handle shapefile
118            format as well, namely the OGR extension.
119    
120            * Thuban/Model/data.py: Various small fixes in doc-strings.
121            (FileShapeStore): New class.
122            (ShapefileStore): Derive from FileShapeStore.
123            (ShapefileStore.__init__): Call __init__ of FileShapeStore,
124            rename self.table to self._table, initialize self._bbox
125            (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
126            and self.FileName() instead of self.filename.
127            (ShapefileStore.Table): Use self._table instead of self.table.
128            (ShapefileStore.FileName): Removed (moved to FileShapeStore).
129            (ShapefileStore.BoundingBox):  Use self._bbox instead of self.bbox.
130    
131            * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
132            (SessionSaver.write_data_containers): Only use methods of the
133            base class FileShapeStore.
134    
135    2005-04-26  Martin Schulze  <[email protected]>
136    
137            * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
138            function to the modified render engine
139    
140    2005-04-25  Martin Schulze  <[email protected]>
141    
142            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
143            Added a description according to the CVS log message
144    
145    2005-04-23  Martin Schulze  <[email protected]>
146    
147            * Thuban/UI/renderer.py: Added a missing import
148    
149    2005-04-23  Russell Nelson  <[email protected]>
150    
151            * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
152            way the previous tool is remembered, so that middle-button
153            panning works even if you haven't selected a tool.
154    
155    2005-04-11  Bernhard Herzog  <[email protected]>
156    
157            * libraries/thuban/wxproj.cpp: Move the compatibility code that
158            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
159            branch that includes wxPython.h because it's only needed when
160            wxPython.h is used.  Also, it won't compile when
161            USE_WX_PYTHON_SWIG_HACK is set otherwise.
162    
163    2005-04-07  Bernhard Herzog  <[email protected]>
164    
165            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
166            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
167            ClassGrid.__init__ and it's value is outside of the valid
168            range (must be < 32768).  wxPython 2.5 complains about it with an
169            exception.
170    
171    2005-04-05  Jan-Oliver Wagner <[email protected]>
172    
173            * Doc/manual/thuban-manual-de.xml: More translations.
174    
175    2005-04-05  Bernhard Herzog  <[email protected]>
176    
177            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
178            wxPython 2.4 as well.  Also, remove a now obsolete comment.
179    
180    2005-04-05  Bernhard Herzog  <[email protected]>
181    
182            Use wxPython.h by default but provide a workaround when it isn't
183            available.
184    
185            * setup.py (wxproj_extension): New variable.  Assign the Extension
186            instance for Lib.wxproj to this variable instead of putting it
187            directly into the listso that it can be accessed by other code
188            later.
189            (thuban_build_ext.user_options): Added boolean option
190            --use-wx-python-swig-hack.
191            (thuban_build_ext.initialize_options): Initialize the new option
192            to False.
193            (thuban_build_ext.finalize_options): If the new option was given,
194            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
195            (thuban_build_ext): Update the doc-string
196    
197            * libraries/thuban/wxproj.cpp: Normally we use
198            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
199            defined, use swigPtrConvertHack.h instead.
200    
201            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
202            copied over from wxPython.h.
203            (decode_pointer_new): New.  Equivalent of decode_pointer for
204            wxPython 2.5.
205            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
206    
207            * README: Add section on potential build problems which explains
208            how the work-around for a missing wxPython.h is activated.
209    
210    2005-03-29  Bernhard Herzog  <[email protected]>
211    
212            * test/postgissupport.py (find_postgis_sql): Added yet another
213            potential location for (lw)postgis.sql because the file has moved
214            again in postgis 1.0.0 rc4.
215    
216    2005-03-29  Bernhard Herzog  <[email protected]>
217    
218            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
219            match the site of the legend_icon_layer icon.  Otherwise wxpython
220            2.5 complains when the legend is created with the error:
221    
222            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
223            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
224            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
225            in wxImageList: this might work on this platform but definitely
226            won't under Windows.
227    
228    2005-03-23  Jonathan Coles <[email protected]>
229    
230            These changes add support for adjusting the opacity of a raster layer.
231    
232            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
233            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
234            a LAYER_CHANGED event if the opacity actually changes.
235    
236            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
237            layer parameter needed in the implementation of this method in
238            renderer.py.
239    
240            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
241            typo 00 -> 0.
242    
243            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
244            control to adjust opacity.
245    
246            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
247            alpha data based on the opacity level of the layer.
248    
249            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
250            accepts a layer parameter.
251    
252            * test/test_layer.py (TestLayerModification.test_raster_layer):
253            Rename opacity method calls and add test for LAYER_CHANGED.
254    
255    2005-03-16  Bernhard Herzog  <[email protected]>
256    
257            * test/test_connector.py (DeletionTestMixin.check_deletions)
258            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
259            update the callers.
260    
261    2005-03-14  Jan-Oliver Wagner <[email protected]>
262    
263            * Doc/manual/thuban-manual-de.xml: More translations.
264    
265    2005-03-10  Jan-Oliver Wagner <[email protected]>
266    
267            Introducing initialization callbacks for extensions.
268    
269            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
270            optional parameter init_callback.
271            (ExtensionDesc.init_ext): New. Executes the callback and sets
272            a status.
273    
274            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
275            initialization of the extensions.
276            (ThubanApplication.init_extensions): Init all extensions.
277    
278            * Thuban/UI/about.py (About.__init__): Added status of the extensions
279            to the about text.
280    
281            * Extensions/gns2shp/__init__.py: Added init method for Extension
282            description.
283            (init): New. Contains the initialization of the module.
284    
285    2005-03-04  Nina H�ffmeyer <[email protected]>
286    
287            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
288            OGRConnection to open a datasource. Removed dialog to display all
289            available drivers. Added some doc strings.
290    
291            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
292            OGRDatasource with a string. Added two opening methods which return an
293            OGRDatasource (either data from file or from DB).
294    
295            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
296            represents a geometry reference of an OGRFeature. OGRShape now has a
297            list of referenced geometry objects (important for geometry
298            collections).
299            For OGRShapeStores loaded from a DB an ID column can be specified now.
300    
301    2005-02-22  Jan-Oliver Wagner <[email protected]>
302    
303            * test/test_map.py (TestMapWithContents.test_tree_info):
304            Added label layer for comparison.
305    
306    2005-02-18  Jonathan Coles <[email protected]>
307    
308            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
309            which builds a mask. Handle the majority of an image in a loop,
310            creating 8 bits at a time. Later, handle the edge case where less
311            than 8 bits are packed.
312    
313    2005-02-18  Bernhard Herzog  <[email protected]>
314    
315            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
316            doc-string
317    
318    2005-02-18  Jonathan Coles <[email protected]>
319    
320            * setup.py: Remove wx_cs_params from gdal compile options.
321    
322    2005-02-18  Jonathan Coles <[email protected]>
323    
324            Refactored baserenderer.py and renderer.py to remove baserenderer.py's
325            dependencies on wxPython. Added a new method projected_raster_layer()
326            that returns a raster layer image in projected space. This must be
327            implemented in classes derived from BaseRenderer. This also eliminates
328            the dependency on gdal in baserenderer.py.
329    
330            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
331            new projected_raster_layer() to get projected raster image instead
332            of directly calling ProjectRasterFile().
333            (BaseRenderer.projected_raster_layer): New. This must be implemented
334            by derived classes. It takes almost the same arguments as ProjectRasterFile
335            did and returns a projected image with mask and alpha data (if requested).
336            (BaseRenderer.render_map_incrementally): Remove the check for gdal since
337            that check will be done in MapRenderer.projected_raster_layer(). This
338            also allows other implementations to use different projection code.
339    
340            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
341            Implementation of BaseRenderer.projected_raster_layer. Checks for
342            gdal support and wxPython version. Also handles exceptions from
343            ProjectRasterFile.
344    
345            * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
346            and added a variable which can be set through the options argument
347            of ProjectRasterFile.
348    
349            * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
350            Calls ProjectRasterFile and returns the result.
351            (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
352            of calling projected_raster_layer() with different options.
353            (TestBaseRenderer.test_raster_no_projection): Removed tests based on
354            wxPython version and all tests of masks and alpha channels. These are
355            now in test_projected_raster_layer().
356    
357    2005-02-17  Jan-Oliver Wagner <[email protected]>
358    
359            * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
360            doc-strings to comply with coding_guidelines.
361    
362    2005-02-17  Jan-Oliver Wagner <[email protected]>
363    
364            Docstring improvements and minor fixes for labellayer.
365    
366            * Thuban/Model/map.py:
367            (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
368            Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
369            Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
370            Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
371            doc string.
372            (Map.BoundingBox): Removed superfluous test for label_layer
373            and improved doc string.
374            (Map.TreeInfo): Added label_layer and improved sdo string.
375    
376            * Thuban/Model/label.py: Added import of _.
377            (Label, Label.__init__): Improved/added doc string.
378            (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
379            LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
380            Improved/added doc string.
381            (LabelLayer.AddLabel): Use already defined names for
382            align strings and improved doc string.
383            (LabelLayer.TreeInfo): New. Return the object data for
384            the tree view.
385    
386    2005-02-16  Jonathan Coles <[email protected]>
387    
388            Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
389            so that that wxproj doesn't crash. Added GUI support for selecting
390            alpha channel (opacity can't be selected yet).
391    
392            NOTE: If wxPython.h is including in future distribution packages
393            then it will not be necessary to have the files swigPtrConvertHack.h
394            and wxPython_int.h included with Thuban. This is hopefully
395            a temporary workaround.
396    
397            * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
398            access to the macro wxCHECK_VERSION so that it will properly
399            generate a bit mask. There was a problem between wx2.4 and wx2.5
400            that this works around.
401    
402            * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
403            of RasterLayer.MaskType.
404            (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
405            (RasterLayer.MaskType): New. Returns the type of mask to use. Can
406            specify none, a bitmap, or an alpha channel.
407            (RasterLayer.SetMaskType): New. Set what kind of mask to use.
408    
409            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
410            Set the raster warping options for the mask based on the value
411            of RasterLayer.MaskType.
412    
413            * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
414            deprecated calls to SetItemSelectedImage in favor of SetItemImage
415            with wxTreeItemIcon_Selected.
416    
417            * Thuban/UI/rasterlayerproperties.py: Support selecting to use
418            an alpha channel for the mask.
419    
420            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
421            data if it is available and an alpha channel is supported under
422            the current version of wxPython.
423    
424            * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
425            to select whether 1's or 0's select the desired portion of an image
426            in the bit mask. wx2.4 has a bug where the documentation is the opposite
427            from behavior.
428            (ProjectRasterFile): Only generate an alpha channel if the version
429            of wxPython is >= 2.5.3.
430    
431            * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
432            When wxPython >= 2.5.3 use the special swig functions to decode an
433            object's address.
434    
435            * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
436            based on the version of wxPython. If >= 2.5.3 use the special swig
437            functions from wxPython to decode wxPython objects, otherwise use
438            the old method of retrieving the address from the object __repr__ string.
439    
440            * libraries/thuban/wxPython_int.h: Copied from wxPython source.
441            Unnecessary code was removed to make it smaller.
442    
443            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
444            Add tests for returning an alpha channel.
445    
446            * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
447            tests that used removed functions UseMask and SetUseMask
448    
449    
450    2005-02-08  Bernhard Herzog  <[email protected]>
451    
452            More wxPython 2.5 changes.  This time taken from a patch from
453            Daniel Calvelo Aros.
454    
455            * Thuban/UI/tableview.py (QueryTableFrame.__init__)
456            (QueryTableFrame.__init__): Pass the size of a spacer as a single
457            item.
458    
459            * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
460            (ProjFrame.build_dialog): Pass the size of a spacer as a single
461            item.
462    
463            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
464            size of a spacer as a single item.
465    
466            * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
467            size of a spacer as a single item.
468    
469    2005-02-08  Bernhard Herzog  <[email protected]>
470    
471            Compatibility with wxPython 2.5.  The changes should make it work
472            better with 2.5 while still keeping compatibility with 2.4.  There
473            are still problems with 2.5, though.
474    
475            * Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size
476            of a spacer as a single item.
477    
478            * Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only
479            from wxControl
480    
481            * Thuban/UI/legend.py (LegendTree): When running with wxPython <
482            2.5, add an implementation of the GetFirstChild method that does
483            not require the second parameter.
484            (LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded)
485            (LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems)
486            (LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not
487            pass the second parameter to GetFirstChild
488    
489    2005-02-08  Nina H�ffmeyer <[email protected]>
490    
491            * Extensions/ogr/ogrshapes.py: Removed some print commands.
492    
493            * Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an
494            additional menu but appears as a possibility in the menu Map.
495    
496    2005-02-07  Jonathan Coles <[email protected]>
497            * libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR
498            and PYTHON_ERRF since they were no longer necessary.
499    
500    2005-02-07  Bernhard Reiter <[email protected]>
501            * Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows):
502            Enable translation for message string.
503    
504    2005-02-06  Martin Schulze  <[email protected]>
505    
506            * Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted
507            the arguments of the contstructor to fit the global scheme
508    
509    2005-01-31  Nina H�ffmeyer <[email protected]>
510    
511            * Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides
512            some dialogs needed to start ogr.
513            
514            * Extensions/ogr/__init__.py: Changed comments to avoid encoding
515            warnings.
516    
517            * Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid
518            encoding warnings.
519    
520    2005-01-28  Jonathan Coles <[email protected]>
521    
522            * libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the
523            mask is packed into a bit array. It's now slightly faster.
524    
525    2005-01-28  Jonathan Coles <[email protected]>
526    
527            * Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask
528            default to true.
529    
530            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove
531            code that loads the state of the layer's use_mask flag. Its
532            usefulness is still being debated.
533    
534            * Thuban/Model/save.py (SessionSaver.write_layer): Remove
535            code that saves the state of the layer's use_mask flag. Its
536            usefulness is still being debated.
537    
538            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
539            options to ProjectRasterFile based on the state of layer.UseMask().
540            Catch more exceptions from ProjectRasterFile so that Thuban doesn't
541            quit is there is a problem projecting.
542            (BaseRenderer.draw_raster_data): Change the documentation to
543            describe the new format (XBM) that the mask data will be in.
544    
545            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask
546            data is in XBM format when format='RAW' which means it doesn't
547            need to be converted to a wxImage before being used as a mask
548            for a wxBitmap. Assume that if format != 'RAW' that the image
549            data and mask data are in the same format.
550    
551            * libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled
552            and a mask is requested, convert the alpha band to a bit array in
553            XBM format. if an alpha channel is requested, simply return the
554            data in the alpha band. Provide better error handling by returning
555            python error messages (also fixes RT #2947).
556            (ProjectRasterFile): Support multiple mask options, rather than simply
557            a flag indicating that a mask should or should not be used. Provide
558            better error handling by returning python error messages.
559    
560            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
561            Add mask data to test.
562    
563            * test/test_layer.py (TestLayer.test_raster_layer): Test that a layer
564            should use the mask by default.
565            (TestLayerModificaton.test_raster_layer): Test that a layer should use
566            the mask by default.
567    
568            * test/test_load.py (TestRasterLayer.test): Remove testing for
569            use_mask flag in file.
570    
571            * test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing
572            for use_mask in file.
573    
574            * test/test_load_1_0_1.py: Removed. Shouldn't have been checked in.
575            
576    2005-01-26  Jonathan Coles <[email protected]>
577    
578            Add a new dialog box for raster layers. The dialog box allows
579            the user to toggle a mask that is generated by ProjectRasterFile
580            and is used to only draw the real parts of the projected image.
581    
582            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
583            Instruct the warping code to generate a mask if the raster layer
584            requests one.
585            (BaseRenderer.draw_raster_data): Removed obsolete optional mask argument.
586    
587            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed
588            obsolete optional mask argument.
589    
590            * Thuban/UI/classifier.py (Classifier): Change the parent class
591            to LayerProperties and rework the code to support layout calls
592            from the parent.
593            (Classifier.dialog_layout): New. Layout the dialog box.
594            (Classifier.map_layers_removed): Removed. Moved to parent class.
595            (Classifier.map_replaced): Removed. Moved to parent class.
596            (Classifier._OnTry): Renamed to OnTry to support parent class.
597            (Classifier.OnClose): Removed. Supplied in parent class.
598            (Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn.
599            (Classifier._OnOK): Renamed to OnOK to support parent class.
600            (Classifier._OnRevert): Renamed to OnRevert to support parent class.
601    
602            * Thuban/UI/layerproperties.py: New. Base class for layer properties
603            dialog boxes.
604    
605            * Thuban/UI/rasterlayerproperties.py: New. Class for displaying
606            raster layer properties.
607    
608            * libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code
609            with the non-simple version supplied with gdal. This allows added
610            features such as creating an alpha band.
611            (GetImageData): Generate a mask array from the alpha band that is
612            generated by gdal if the user has selected it. Try to support images
613            that have more than three bands, such as images with RGB plus an
614            alpha band.
615            (ProjectRasterFile): Convert python argument for mask and tell
616            gdal to enable or disable an alpha band.
617    
618            * Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string
619            describing what kind of layer the class is. Defaults to "Unknown",
620            but should be overridden by subclasses.
621            (Layer.Type): New. Override base class method.
622            (RasterLayer.__init__): Create a flag for using a mask. Record extra
623            data from gdal for display in the properties dialog.
624            (RasterLayer.Type): New. Override base class method.
625            (RasterLayer.UseMask): New. Returns True if the mask should be used.
626            (RasterLayer.SetUseMask): New. Set if the mask should be used.
627            (RasterLayer.ImageInfo): New. Return extra information about the image.
628    
629            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load
630            the mask information.
631    
632            * Thuban/Model/save.py (SessionSaver.write_layer): Save mask information.
633    
634            * Thuban/UI/mainwindow.py: Register the RasterLayerProperties and
635            Classifier classes as dialogs to use with the proper layer types.
636    
637            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
638            Fix test.
639    
640            * test/test_layer.py (TestLayer.test_raster_layer): Test new methods.
641            (TestLayerModification.build_path): New. Support function.
642            (TestLayerModification.test_raster_layer): New. Test new methods.
643    
644            * test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask.
645    
646            * test/test_load.py (TestRasterLayer): Add tests for mask.
647    
648            * test/test_load_1_0_1.py: New. Copied from test_load.py.
649    
650            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed
651            obsolete optional mask argument.
652    
653    2005-01-26  Nina H�ffmeyer <[email protected]>
654    
655            * Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore
656            which maps the ids and the ordinals. Fixed RowIdToOrdinal(),
657            RowOrdinalToId() and ReadRowAsDict().
658    
659            * Extensions/ogr/ogrstart.py: Added menu item which opens database
660            layers for existing database connections.
661    
662            * Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string.
663    
664    
665    2005-01-26  Jan-Oliver Wagner <[email protected]>
666    
667            * Doc/manual/thuban-manual-de.xml: More translations.
668    
669    2005-01-24  Bernhard Herzog  <[email protected]>
670    
671            Rework the status bar updates a bit to make sure the message about
672            the projections is produced at the right times.
673    
674            * Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages):
675            New class variable with messages that may require a status bar
676            update.
677            (MainWindow.view_position_changed)
678            (MainWindow.update_status_bar): Rename from view_position_changed
679            to update_status_bar.  It's meaning has changed now that it may
680            also generate messages about problems with projection settings.
681            (MainWindow.__init__): Use the new update_status_bar_messages
682            class variable to subscribe update_status_bar
683            (MainWindow.set_position_text): Update doc-string.  This method
684            has to be renamed at some point.  See doc-string and comments.
685            (MainWindow.OnClose): Unsubscribe update_status_bar from all
686            messages in update_status_bar_messages
687    
688            * Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New
689            class attribute.  map messages to be forwarded by the viewport.
690            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe
691            the messages in forwarded_map_messages
692    
693    2005-01-21  Bernhard Herzog  <[email protected]>
694    
695            * test/postgissupport.py (PostGISDatabase.__init__): Tweak
696            doc-string
697            (find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a
698            different name for the initialization SQL file.
699    
700    2005-01-21  Jonathan Coles <[email protected]>
701    
702            * Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes
703            a projection and returns a formatted string representing the
704            parameters to feed to gdalwarp. This function eliminates
705            redundancy in draw_raster_layer().
706            (BaseRenderer.render_map_incrementally): Removed the optimization which
707            drew the top most raster layer first and then only those vector-
708            based layers that are above it. With the support for transparency
709            this optimization breaks correct behaviour.
710            (BaseRenderer.draw_raster_layer): Reorganize code to support possible
711            future enhancements to raster layer bounding box. The old behaviour has
712            not changed. Also, change calling parameters to draw_raster_data()
713            to specify new RAW data format and mask.
714            (BaseRenderer.draw_raster_data): Change signature to include an optional
715            parameter for mask information. Change documentation to mention
716            support for new parameter and added option for RAW data format.
717            The data argument is now a list of [width, height, data].
718    
719            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional
720            mask parameter. Add new condition for RAW format, which
721            significantly reduces rendering time. Add condition for
722            mask parameter.
723    
724            * libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a
725            data array of RGB values from the projected image returned from
726            the gdal warping functions. In the case of palette based images, it
727            converts the NO_DATA index to the mask color.
728            (ProjectRasterFile): Removed all custom memory driver references
729            and replaced it with the standard in-memory dataset provided
730            by gdal. The return data is no longer a BMP file, but an array
731            of RGB values, one set triple per pixel.
732    
733            * libraries/thuban/bmpdataset.cpp: Removed. Unnecessary.
734            * libraries/thuban/cpl_mfile.h: Removed. Unnecessary.
735            * libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary.
736    
737            * setup.py (thuban_build_ext.finalize_options): Removed mention
738            of cpl_mfile.cpp and bmpdataset.cpp files in the list of source
739            files. These are obsolete with the new version of gdalwarp.cpp
740    
741            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
742            Updated signature.
743            (TestBaseRenderer.test_raster_no_projection): Changed the test
744            data to be data in the uncompressed RAW format returned from
745            ProjectRasterFile.
746    
747    2005-01-21  Jan-Oliver Wagner <[email protected]>
748    
749            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made
750            string available for i18n.
751    
752    2005-01-20  Russell Nelson  <[email protected]>
753    
754            * Resources/Projections/defaults.proj: Ruin the speling of the
755            Lambert-93 projection so it doesn't run into the wx UTF-8 bug.
756            It's the wrong thing to do in the long run, but it's necessary for
757            those users until that bug is fixed.  Otherwise the projection
758            dialog segfaults.  Better to annoy some Lambert-93 users with a
759            spelling mistake than every Fedora Core 3 user of Thuban-CVS.
760    
761    2005-01-20  Bernhard Reiter <[email protected]>
762    
763            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added
764            docstring and comment that the warning code here is a hack.
765    
766    2005-01-20  Russell Nelson  <[email protected]>
767    
768            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn
769            user about misprojected layers when their lat/lon bounding
770            box exceeds rational lat/lon values.
771    
772    2005-01-20  Bernhard Reiter <[email protected]>
773    
774            * Thuban/UI/about.py (unicodeToLocale): Improved:
775            Use 'ascii' and then 'replace' for other characters
776            when getdefaultlocale returns None. Thanks to Bernhard H. .
777    
778    2005-01-20  Bernhard Reiter <[email protected]>
779    
780            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment
781            that OnRangeText might be called twice and using None as argument.
782    
783    2005-01-20  Bernhard Reiter <[email protected]>
784    
785            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a
786            OnRangeText(0) to work around a different in wx Behaviour noticed
787            on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
788    
789    2005-01-20  Bernhard Reiter <[email protected]>
790    
791            * Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns
792            None. (Fixes rt#2910.)
793            
794    2005-01-18  Frank Koormann <[email protected]>
795    
796            New Extension: mouseposition
797            Tool to collect mouse click positions (map coordinates) in a dialog.
798    
799            * Extensions/mouseposition/__init__.py: New, extension registration
800    
801            * Extensions/mouseposition/mouseposition.py: New, implements the
802            dialog and adds a tool to Thuban mainwindow.
803    
804            * Extensions/mouseposition/position.xpm: New, icon for tool.
805    
806    2005-01-14  Jan-Oliver Wagner <[email protected]>
807    
808            * Doc/manual/thuban-manual-de.xml: More translations.
809    
810    2005-01-11  Frank Koormann <[email protected]>
811    
812            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
813            Fix indention bug.
814    
815    2005-01-09  Frank Koormann <[email protected]>
816    
817            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
818            BugFix 2901: Explicitly copy layers ClassificationColumn since it
819            is not part of the layers Classification.
820    
821    2005-01-03  Frank Koormann <[email protected]>
822    
823            * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
824            BugFix 2883: Former implementation only worked on classified point
825            layers: KeyError was raised, now use the default size if field is None.
826    
827    2004-12-27  Bernhard Reiter <[email protected]>
828    
829            svgexport 1.0.0cvs: Fixed label export.
830    
831            * Extensions/svgexport/test/test_svgmapwriter.py:
832            class TestSVGRenderer(): New class; new test test_label_font().
833    
834            * Extensions/svgexport/svgmapwriter.py
835            (SVGRenderer.label_font()): initialised Font size with self.factor now,
836            makes test_label_font happy.
837    
838            * Extensions/svgexport/TODO: crossed out fixed label export item.
839            Added item for options.
840    
841            * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
842    
843    2004-12-27  Russell Nelson  <[email protected]>
844    
845            Middle mouse button pans.
846    
847            * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
848            OnMiddleDown and OnMiddleUp events.
849            (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
850            previously used tool.
851            (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
852            pressing the middle mouse button.
853    
854    2004-12-27  Jan-Oliver Wagner <[email protected]>
855    
856            * Doc/manual/thuban-manual-de.xml: More translations.
857    
858    2004-12-23  Jan-Oliver Wagner <[email protected]>
859    
860            * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
861            \n to stderr after the warnings. Thanks to Russell Nelson.
862    
863    2004-12-20  Nina Hueffmeyer <[email protected]>
864    
865            * Extensions/ogr/ogrshapes.py: Fixed some issues from
866            Bernhard (coding guidelines etc.). Additionally it is now possible to
867            display shapefiles containing feature collections (e.g.polygons
868            with holes). Works with gdal 1.2.1 now.
869    
870            * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
871            from Bernhard (coding guidelines etc.). If ogr can't be imported,
872            tests are skipped now.
873    
874            * Extensions/ogr/ogrstart.py: Fixed some typings.
875    
876    2004-12-20  Bernhard Reiter <[email protected]>
877    
878            * Extensions/svgexport/TODO: updated to add support for
879            raster layers and labels for 1.0.1.
880    
881            * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
882            Issue a warning now.
883    
884    2004-12-19  Bernhard Reiter <[email protected]>
885    
886            * Extensions/svgexport/TODO: Added idea to support triggering
887            the application down the pipe.
888    
889    2004-12-19  Bernhard Reiter <[email protected]>
890    
891            svgexport: Improved code quality, mainly by better naming.
892    
893            * Extensions/svgexport/svgmapwriter.py:
894            DrawPath() renamed to DrawPolygonPath(),
895            added documentation, improved comments and variable names.
896            
897            * Extensions/svgexport/svgmapwriter.py,
898              Extensions/svgexport/test/test_svgmapwriter.py:
899            All using DrawPolygonPath() now, the default parameter closed=True
900            omitted.
901    
902            * Extensions/svgexport/test/test_svgmapwriter.py:
903            renamed test_polygon_opened() to test_polyline()
904            renamed test_transparent_polygon() to test_transparent_polyline()
905    
906    2004-12-18  Jan-Oliver Wagner <[email protected]>
907    
908            Some fixes of gns2shp extension.
909    
910            * Extensions/gns2shp/test/__init__.py: New. Make this directory a
911            package.
912    
913            * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
914            dynamically.
915    
916            * Extensions/gns2shp/test/README: Simplified description how to test.
917    
918            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
919            fixed some dimensions of fields according to the GNS documentation
920            which seems to change undocumented.
921            Now killing trailing \n and/or \r from MODIFY_DATE.
922            This fixes RT#2453.
923    
924    2004-12-18  Bernhard Reiter <[email protected]>
925    
926            svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
927    
928            * Extensions/svgexport/test/test_svgmapwriter.py:
929            Added new tests: test_export_polygon_with_hole()
930            and test_polygon_with_hole().
931    
932            * Extensions/svgexport/svgmapwriter.py
933            (draw_polygon_shape()): Uses DrawPath correctly now.
934    
935            * Doc/manual/thuban-manual.xml: Added documentation for stable
936            extention svgexport.    
937            * Doc/manual/thuban-manual-de.xml: Copied English section about
938            svexport over.
939    
940            * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
941    
942            * Extensions/svgexport/svgsaver.py,maplegend.py:
943            Moved from experimental to stable extension menu.
944    
945            * Extensions/svgexport/TODO: updated.
946    
947    
948    2004-12-18  Bernhard Reiter <[email protected]>
949    
950            Added Extensions/svgexport/TODO
951    
952    2004-12-18  Bernhard Reiter <[email protected]>
953    
954            Refactored in svgexport:
955            DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
956    
957            * Extensions/svgexport/svgmapwriter.py
958            Added verbosity level 3 to print out polygon points.
959            (class Point): added __repr__
960            (class Brush, __str__()): Added space after ,.
961            (DrawPolygon): Renamed to DrawPath()
962            (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
963            (DrawLines): Using DrawPath now.
964    
965            * Extensions/svgexport/test/test_svgmapwriter.py:
966            Replaced DrawPolygon() calls with DrawPath() and put the first argument
967            inside another list. Adapted test data with a newline before "M".
968    
969    2004-12-18  Bernhard Reiter <[email protected]>
970            
971            Refactored svgexport tests: 9 double tests runs eliminated;
972            code size reduced by 8 lines.
973    
974            * Extensions/svgexport/test/test_svgmapwriter.py:
975            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
976            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
977            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
978            this fixed the double running of the nine tests of TestVirtualDC.
979            (class TestVirtualDC): Using self.dc and self.file from setUp().
980    
981    2004-12-17  Bernhard Herzog  <[email protected]>
982    
983            Two windows specific fixes ported from thuban-1�0-branch:
984    
985            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
986            instead of getlocale because getlocale doesn't return a usable
987            encoding name on a german windows 2000
988    
989            * setup.py: windows build: Removed the absolute path names and
990            made all prfixes relative to the directory containing setup.py.
991            Makes it a little easier to adapt to a different system.
992    
993    2004-12-16  Bernhard Herzog  <[email protected]>
994    
995            Add support for PostGIS tables with LINESTRING geometries.
996            Fixes RT#2299
997    
998            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
999    
1000            * test/postgissupport.py
1001            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
1002            table to "roads-multi" because it now uses MULTILINESTRING
1003            geometries and introduce a new "roads" table that uses LINESTRING
1004            (coords_to_multilinestring): Make the doc string more precise
1005            (coords_to_linestring): New.  Create a LINESTRING WKT
1006            representatin
1007            (wkt_converter): Add coords_to_linestring
1008            (upload_shapefile): Rephrase the doc-string a bit.
1009    
1010            * test/test_postgis_db.py (TestPostGISShapestoreArc)
1011            (LineStringTests)
1012            (TestPostGISShapestoreLineString)
1013            (TestPostGISShapestoreMultiLineString): Split
1014            TestPostGISShapestoreArc into a base class LineStringTests and two
1015            derived classes TestPostGISShapestoreLineString for LINESTRING
1016            geometries and TestPostGISShapestoreMultiLineString for
1017            MULTILINESTRING geometries.  Most test methods are in the base
1018            class with the exception of tests that explicitly check the raw
1019            format.
1020    
1021    2004-12-16  Bernhard Herzog  <[email protected]>
1022    
1023            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
1024    
1025            * test/postgissupport.py (find_postgis_sql): Different postgis
1026            versions put the postgis.sql file into slightly different places
1027            so we have to look in both.  The updated doc string describes this
1028            is more detail.
1029    
1030            * test/test_postgis_db.py
1031            (TestPostGISSpecialCases.test_column_name_quoting): The return
1032            value of UniqueValues is unsorted, so it has to be sorted for
1033            comparison.
1034    
1035    2004-12-16  Bernhard Herzog  <[email protected]>
1036    
1037            Fix for RT#2237
1038    
1039            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
1040            panel to be shown is the UnknownProjPanel disable the OK and Try
1041            buttons.  Otherwise enable them.
1042            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
1043            the parameters.  In that case __GetProjection also returns None
1044            now.
1045    
1046    2004-12-15  Bernhard Herzog  <[email protected]>
1047    
1048            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
1049            minimum number of classes to 2.  The calculate_quantiles needs at
1050            least two and raises an exception otherwise.  
1051            Fixes RT#2549
1052    
1053    2004-12-15  Bernhard Herzog  <[email protected]>
1054    
1055            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
1056            so that it returns a result for select statements.
1057            (PostgreSQLServer.server_version): New.  Return the version of the
1058            server software.
1059            (PostgreSQLServer.require_authentication): The format of
1060            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
1061            server version and generate the file in the correct format
1062    
1063    2004-12-15  Bernhard Herzog  <[email protected]>
1064    
1065            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
1066            in the doc string and rephrase it a little.
1067    
1068    2004-12-15  Frank Koormann <[email protected]>
1069    
1070            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
1071            session has been loaded successfully. The check is called by the relevant
1072            tests after executing load_session().
1073    
1074    2004-12-13  Bernhard Herzog  <[email protected]>
1075    
1076            Make sure the region used to determine which shapes are visible
1077            actually matches the region on the printed page.  If this isn't
1078            done properly some shapes might not be printed.  
1079            Fixes RT #2692
1080    
1081            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
1082            renderer has to be at the same position as the mapregion
1083    
1084            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
1085            has to be moved by (self.shiftx, self.shifty) too.
1086    
1087    2004-12-13  Bernhard Herzog  <[email protected]>
1088    
1089            * libraries/pyprojection/Projection.i: Work around a bug in the
1090            generated python code which leads to exception in the __del__
1091            method when the constructor fails.  See the comments in the code
1092            for more details.
1093    
1094            * libraries/pyprojection/Projection.py: Updated from Projection.i
1095            with SWIG.
1096    
1097    2004-12-13  Bernhard Herzog  <[email protected]>
1098    
1099            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
1100            (TestAltPath.test_02_path_error_fix_from_list)
1101            (TestAltPath.test_05_path_error_fix_from_list_changed)
1102            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
1103            is destroyed in tearDown, so there's no need to do it in a test
1104            case.
1105    
1106            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
1107            debug print
1108    
1109    2004-12-13  Bernhard Herzog  <[email protected]>
1110    
1111            * Extensions/svgexport/test/test_svgmapwriter.py
1112            (TestDrawSplines.setUp): Do not use super with the unittest
1113            classes because in Python 2.2 they're still old-style classes.
1114    
1115    2004-12-13  Frank Koormann <[email protected]>
1116    
1117        Alternative Path feature: When loading a (moved) session where
1118            shapefiles cannot be found, ask the user. Use the specified path
1119            if further shapefiles are missing. However, ask the usr for confirmation
1120            in such cases.
1121    
1122            * test/test_load.py (TestAltPath): New, tests for alternative path feature
1123            in load_session()
1124            (Shapefile_CallBack): Helper, implements controllable callback.
1125    
1126            * Thuban/UI/application.py (ThubanApplication.OnInit):
1127            Added "alt_path" to self.path
1128            (ThubanApplication.OpenSession): Added shapefile_callback as second
1129            callback similar to db_connection_callback.
1130            (ThubanApplication.run_alt_path_dialog): New, implementaion of
1131            shapefile_callback. In addition to raising the dialog the control of
1132            self.path('alt_path') is implemented here.
1133    
1134            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
1135            (SessionLoader.open_shapefile): Open shapefile, eventually with
1136            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
1137            formerly used in start_fileshapesource()/start_layer().
1138            (SessionLoader.start_fileshapesource): Call open_shapefile().
1139            (SessionLoader.start_layer): Call open_shapefile().
1140            (load_session): Added shapefile_callback.
1141    
1142            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
1143            feature (search / check).
1144            
1145            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
1146    
1147    2004-12-11  Bernhard Reiter <[email protected]>
1148    
1149             svgexport 0.9.2: Point size supports for maps.
1150    
1151            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
1152            (def draw_point_shape): new parameter size defaults to 2 as before.
1153            (draw_shape_layer_incrementally): Moved draw_func log line higher.
1154            Added draw_func call with size when dealing with a point layer.
1155    
1156            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
1157            
1158    2004-12-11  Bernhard Reiter <[email protected]>
1159    
1160            Made sure that newlines are inserted in the svg path d attributes
1161            to raise the chance that the line length will be below 255 characters,
1162            as recommended by REC SVG 1.1 in section 8.3.1.
1163    
1164            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
1165            Adding \n before L's and changed whitespace handling.
1166    
1167            * Extensions/svgexport/test/test_svgmapwriter.py:
1168            Adapted tests to new whitespace handling of DrawPolygon.
1169    
1170    2004-12-11  Bernhard Reiter <[email protected]>
1171    
1172            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
1173    
1174            * Extensions/svgexport/test/test_svgmapwriter.py:
1175            Removed test_drawbezier in favour of new test_drawspline3 and
1176            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
1177            All only to test DrawSpline.
1178    
1179            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1180            New implementation now really using the strange algorithm of
1181            xfig 3.1's approximated splines and its conversion to postscript
1182            with one twist: SVG can do quadratic beziers, so skipped translation
1183            to cubic beziers.
1184            (TestWithDC): Typo in comment fixed.
1185    
1186    2004-12-09  Martin Schulze  <[email protected]>
1187    
1188            * Thuban/Model/classgen.py: Added missing character encoding
1189    
1190            * Extensions/wms/properties.py (OpenWMSProperties): removed
1191    
1192            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
1193            support for get_srs_discrepancies() since there are no
1194            discrepancies anymore (was a thinko)
1195    
1196            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
1197            format priority now that more formats are supported globally by
1198            the render engine.
1199    
1200    2004-12-08  Silke Reimer <[email protected]>
1201            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
1202            because it is not available in all versions of ogr
1203    
1204    2004-12-08  Bernhard Reiter <[email protected]>
1205            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
1206            global tests until a real one is commited.
1207    
1208    2004-12-07 Nina H�ffmeyer <[email protected]>
1209    
1210            * /Extensions/ogr/: Adding a new extension to read shapefiles with
1211            ogr. It is planned to add other vector formats.
1212    
1213            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
1214    
1215    2004-12-07  Jan-Oliver Wagner <[email protected]>
1216    
1217            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
1218            part of a (non-)fix to renable that the tests are always
1219            executed.
1220    
1221    2004-12-07  Bernhard Reiter <[email protected]>
1222    
1223            * Extensions/svgexport/test/test_svgmapwriter.py:
1224            Added test_drawbezier() to test DrawSpline().
1225    
1226            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1227            Really implemented bezier drawing.
1228    
1229            * Extensions/svgexport/__init__.py: Bumped version of svgexport
1230            to 0.9.1 because now the legend examples lines styles
1231            will be drawing with beziers.
1232    
1233    2004-12-05  Martin Schulze  <[email protected]>
1234    
1235            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
1236            GIF as supported bitmap image formats (helpful for the WMS extension)
1237    
1238    2004-11-30  Martin Schulze  <[email protected]>
1239    
1240            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
1241            Improved the test for the internal compare method
1242    
1243    2004-11-27  Jan-Oliver Wagner <[email protected]>
1244    
1245            * Thuban/UI/about.py (About.__init__): Added
1246            Norbert Solymosi for hungarian translation and Ole Rahn
1247            as contrbutor. Moved Bernhard Reiter from Contributor
1248            to Developer.
1249    
1250    2004-11-27  Bernhard Reiter <[email protected]>
1251    
1252            * Extensions/svgexport/test/test_svgmapwriter.py:
1253            Removed Jan from author list as he did not change enough significant
1254            lines yet.
1255    
1256            * Extensions/svgexport/__init__.py: Added Bernhard as author
1257            of the Extension.
1258    
1259    2004-11-27  Jan-Oliver Wagner <[email protected]>
1260    
1261            * po/hu.po: New. Hungarian translation. Contributed
1262            by Norbert Solymosi.
1263    
1264    2004-11-26  Bernhard Herzog  <[email protected]>
1265    
1266            * Extensions/svgexport/test/test_svgmapwriter.py
1267            (Testobjectexport.test_transparent_polygon): Commented out some
1268            debug prints
1269    
1270    2004-11-24  Jan-Oliver Wagner <[email protected]>
1271    
1272            Fix broken tests for svg extension and added svg legend
1273            to Experimental menu.
1274    
1275            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
1276            the test run correctly even if the extension is a package.
1277            Also removed the "import Thuban" which makes no sense.
1278    
1279            * Extensions/svgexport/__init__.py: Fix to have the extensions'
1280            test module also be executed from the global test routine.
1281            This is done by looking for the absense of the DISPLAY variable.
1282    
1283            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
1284            to Experimental menu since this module has yet not reached a stable
1285            status (ie. 1.0).
1286    
1287    2004-11-22  Bernhard Reiter <[email protected]>
1288    
1289            * Extensions/svgexport/svgmapwriter.py:
1290            Added verbose variable and some logging depending on it.
1291            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
1292            because counting i is not necessary.
1293            (class Pen, class Brush): Added simple __str__ methods.
1294            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
1295            not exported to svg file) Note: holes still unhandled.
1296    
1297            * Extensions/svgexport/test/test_svgmapwriter.py:
1298                    Made a baseclass TestWithDC for test needed a DC.
1299                    Added tests for bug #2698 (transparent polygons are not
1300                    exported to svg file):
1301                    Testobjectexport.test_transparent_polygon()
1302    
1303            * Thuban/Model/base.py (UnsetModified):
1304            Fixed some typos in docstring.
1305    
1306            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
1307            Added hints on the used algorithm for handling holes.
1308    
1309    2004-11-20  Jan-Oliver Wagner <[email protected]>
1310    
1311            Some face lifting for the examples.
1312    
1313            * Examples/__init__.py: Make this directory a package.
1314    
1315            * Examples/simple_extensions/__init__.py: Make this directory a package.
1316    
1317            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
1318            menu to Examples menu.
1319    
1320            * Examples/simple_extensions/simple_command.py: Some more comments,
1321            minor changes.
1322    
1323            * Examples/simple_extensions/simple_tool.py: Minor changes.
1324    
1325    2004-11-20  Jan-Oliver Wagner <[email protected]>
1326    
1327            Changed way of extension registry for wms and added extension
1328            registry for umn_mapserver extension.
1329    
1330            * Extensions/wms/__init__.py: Added registry entry and the importing
1331            of the actual wms module. Included a test for the required PyOGCLib.
1332    
1333            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
1334    
1335            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
1336            importing of the actual umn mapserver management modules.
1337            Included a test for the required Python MapScript.
1338    
1339    2004-11-20  Jan-Oliver Wagner <[email protected]>
1340    
1341            Changed way of extension registry for importAPR, bboxdump
1342            and added extension registry for svgexport.extension registry for
1343            svgexport.
1344    
1345            * Extensions/importAPR/__init__.py: Added registry entry and the importing
1346            of the actual importAPR module.
1347    
1348            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
1349            __init__.py).
1350    
1351            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
1352            ����of the actual bboxdump module.
1353    
1354            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
1355            ����__init__.py).
1356    
1357            * Extensions/svgexport/__init__.py: Added registry entry and the importing
1358            of the svgsaver module.
1359    
1360            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
1361            to Experimental menu since this module has yet not reached a stable
1362            status (ie. 1.0).
1363    
1364    2004-11-18  Jan-Oliver Wagner <[email protected]>
1365    
1366            Now the hit test considers the size of point symbols.
1367    
1368            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
1369            'size' defaulting to the previously fixed value 5.
1370            Extended doc-string.
1371            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
1372            for symbols.
1373            Now the size of the largest point symbol is determined to find out
1374            about whether the point has been hit.
1375            This fixes the problem that only clicks inside a fixed distance of
1376            5 where found.
1377    
1378    2004-11-17  Jan-Oliver Wagner <[email protected]>
1379    
1380            Another open issue fixed regarding sizeable symbols: correct rendering of
1381            selected symbols.
1382    
1383            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
1384            Added consideration of the specific size of point symbols.
1385            The property for each point symbol is retrieved and the size applied
1386            for the rendering method.
1387            Added doc-string.
1388    
1389    2004-11-16  Jan-Oliver Wagner <[email protected]>
1390    
1391            Changed way of Extension Registry for gns2shp and profiling.
1392    
1393            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
1394            __init__.py).
1395    
1396            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
1397            of the actual gns2shp module.
1398    
1399            * Extensions/profiling/profiling.py: Removed registry entry (moved to
1400            __init__.py).
1401    
1402            * Extensions/profiling/__init__.py: Added registry entry and the importing
1403            of the actual profiling module.
1404    
1405    2004-10-28  Bernhard Reiter <[email protected]>
1406    
1407            * Extensions/svgexport/: Minor improvements to doc strings.
1408    
1409    2004-10-07  Jan-Oliver Wagner <[email protected]>
1410    
1411            Further elements for sizable point objects now
1412            making this feature usable though not yet complete.
1413    
1414            * Thuban/Model/save.py (SessionSaver.write_classification): Write
1415            attribute 'size' for cldata when the shape layer is of point type.
1416            This also now make the test_load.py tests happy.
1417    
1418            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
1419            gradient.
1420    
1421            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
1422            ID_SELPROP_SPINCTRL_LINEWIDTH.
1423            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
1424            (ID_SELPROP_SPINCTRL_SIZE): New Id.
1425            (SelectPropertiesDialog.__init__): Added a second spin control
1426            for the size in case the corresponding layer is of point type.
1427            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
1428            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
1429            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
1430            and refresh preview.
1431    
1432    
1433    
1434    2004-10-04  Martin Schulze  <[email protected]>
1435    
1436            * Extensions/wms/test/test_parser.py
1437            (TestWMSCapabilitiesParser.test_compareLists): Added missing
1438            self-test for compareLists()
1439            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
1440            self-test for compareDicts()
1441            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
1442            to verify the test routine fails with non-equal arguments
1443            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
1444            to verify the test routine fails with non-equal arguments
1445    
1446    2004-10-03  Jan-Oliver Wagner <[email protected]>
1447    
1448            First elements for sizeable point objects.
1449    
1450            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
1451    
1452            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
1453    
1454            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
1455            of a corresponding argument is given.
1456            (TestSymbolSize): New. Test the size attribute of cldata.
1457    
1458            * Thuban/Model/classification.py: Removed some trailing whitespaces.
1459            (ClassGroupProperties.__init__): Set default size.
1460            (ClassGroupProperties.SetProperties): Set the size.
1461            (ClassGroupProperties.GetSize): New. Return the size.
1462            (ClassGroupProperties.SetSize): New. Set the size.
1463            (ClassGroupProperties__eq__): Compare also size.
1464            (ClassGroupProperties__repr__): Print also size.
1465    
1466            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
1467            the size attribute.
1468    
1469            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
1470            Also, now there is a return value that indicates whether the drawing
1471            size exceeded the given rect extent and if so the new extent.
1472            Finally, point objects are drawn depending on the size. If either
1473            the width or height is exceeded, the new extent is returned.
1474            (ClassRenderer.Draw): Now when calling the previewer drawing function,
1475            evaluate the return value and, if not None, adapt the grid widget size
1476            accordingly and redraw again.
1477    
1478            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
1479            If the draw function is for points, call it with the size as additional
1480            parameter.
1481            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
1482            the size. Compute the radius using the size.
1483    
1484            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
1485            that Thuban supports size, apply this correctly.
1486    
1487            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
1488    
1489    2004-10-03  Jan-Oliver Wagner <[email protected]>
1490    
1491            * Doc/manual/thuban-manual-de.xml: Started translation of
1492            Map chapter.
1493    
1494    2004-10-01  Martin Schulze  <[email protected]>
1495    
1496            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
1497            argument for general use through properties-dialog selector
1498            
1499            * Thuban/UI/classifier.py: Register properties dialog classes for
1500            both provided layer classes/types.
1501    
1502            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
1503            map can be retrieved through the parent which is passed to the
1504            constructor anyway and doesn't require an argument of its own,
1505            required for the unification of arguments for general use through
1506            properties-dialog selector.
1507            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
1508            whether a dialog is already opened (and raising it to the users
1509            attention) and creating a new dialog into a function of its own
1510            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
1511            method
1512            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
1513            global registration of properties dialog classes (which are indeed
1514            layer-specific).
1515    
1516            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
1517            for general use through properties-dialog selector, the map can be
1518            retrieved through the parent and doesn't require an argument of
1519            its own.
1520    
1521            * Extensions/wms/wms.py: Register the properties dialog class for
1522            the provided WMS layer
1523    
1524    2004-09-28  Jan-Oliver Wagner <[email protected]>
1525    
1526            New feature: Registry for Extensions.
1527    
1528            * Thuban/UI/extensionregistry.py: This module defines a registry for
1529            Extensions.
1530    
1531            * Thuban/UI/about.py (About.__init__): Added description
1532            of the registered extensions with all of the information.
1533    
1534            * Thuban/Model/extension.py (Extension): Improved doc-string.
1535    
1536            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
1537            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
1538            Extensions/wms/wms.py: Added registration of the extension.
1539    
1540    2004-09-27  Bernhard Reiter <[email protected]>
1541    
1542            More fixes to svgexport to make used ids unique and
1543            conforming to XML's Name production.
1544    
1545            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
1546            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
1547            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
1548            Added Bernhard R. as author.
1549            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
1550            concatenation char now (makes test_make_ide_nosetbaseid() valid).
1551            Also transform second id part with "%d" and catch the TypeError
1552            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
1553            Corrected typo inBernhard's author line.
1554            (SetBaseID): Return the transformed base id. Transform characters
1555            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
1556            import binascii. If to be set string starts with "xml" or so, add "t".
1557            (draw_shape_layer_incrementally): use the returned value of SetBaseID
1558            for used_baseids checks.
1559    
1560    2004-09-25  Bernhard Herzog  <[email protected]>
1561    
1562            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1563            Remove a debug print and some tab characters.
1564    
1565    2004-09-25  Bernhard Reiter <[email protected]>
1566    
1567            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
1568            (SetBaseID, SetID, make_id): Improved docstring comments to explain
1569            the interaction of the three functions and the XML id contrains.
1570    
1571    
1572    2004-09-23  Jan-Oliver Wagner <[email protected]>
1573    
1574            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
1575            Module.
1576    
1577            * Doc/README: Added info on ThubanModel.xmi.
1578    
1579    2004-09-23  Jan-Oliver Wagner <[email protected]>
1580    
1581            * Doc/README: New. Some info about how to generate technical
1582            documentation from the source code.
1583            This text was send to the Thuban developer mailing list on
1584            September 21st 2004 by Bernhard Reiter.
1585    
1586    2004-09-21  Bernhard Reiter <[email protected]>
1587    
1588            Improved the svgexport to only use unique ids. Will issues
1589            an error message dialoge when two layer names are the same.
1590            ShapeIDs are now added with a dash within the svg ids.
1591    
1592            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
1593            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
1594            (TestSVGRenderer): New test class with test_make_in() and
1595            test_check_for_layer_name_clash()
1596            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
1597            and draw_shape_layer_incrementally() to not use a baseid twice,
1598            satisfying test_check_for_layer_name_clash()
1599            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
1600            test_make_in().
1601            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
1602            and wxICON_HAND.
1603            (write_to_svg): Put dc and rendering in a try statement and on
1604            catching SVGmapWriterError notify the user and delete the target file.
1605    
1606    2004-09-20  Bernhard Reiter <[email protected]>
1607    
1608            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
1609    
1610    2004-09-03  Jan Sch�ngel  <[email protected]>
1611    
1612            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
1613            small bug with the line color. Now the line color will now only set
1614            if it is set in Thuban an not Transparent.
1615            
1616            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
1617            deleting the layers from mapfile. Now all layers will delete backwards
1618            from the last.
1619    
1620    2004-08-20  Silke Reimer <[email protected]>
1621    
1622            * Thuban/Model/layer.py:
1623            Fixes bug in projection handling: Otherwise very large region might not
1624            have valid values in the layer's projection.
1625    
1626    2004-08-20  Silke Reimer <[email protected]>
1627    
1628            * Thuban/UI/about.py:
1629            small changes to be consistent with coding style.
1630              
1631    2004-08-13  Martin Schulze  <[email protected]>
1632    
1633            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
1634            Adjusted a comment
1635    
1636    2004-08-11  Silke Reimer <[email protected]>
1637    
1638            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
1639                    too many and too enhanced imports of locale
1640    
1641    2004-08-10  Silke Reimer <[email protected]>
1642    
1643            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
1644                    function unicodeToLocale() to convert special characters to users
1645                    locale encoding
1646    
1647    2004-08-10  Jan-Oliver Wagner <[email protected]>
1648    
1649            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
1650            lower case letter'
1651    
1652    2004-08-09  Jan Sch�ngel  <[email protected]>
1653    
1654            * ChangeLog: Rewrite the last ChangeLog entry to follow
1655            the standard way.
1656    
1657            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
1658            the function where it is needed, because it don't works if it stands
1659            at the beginning.
1660            (MF_Layer.__init__): Removed the extra numclassed variable. Now
1661            numclasses from the mapscript will be used.
1662            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
1663            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
1664            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
1665            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
1666            (MF_Map.create_new_layer): New. A new Layer is created and associated
1667            with the mapscript object.
1668            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
1669            the mapscript.
1670            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
1671            linked to the layer in thuban, else the layerobject linked to the
1672            thubanlayer will be used.
1673            AnnotationLayer will now store the filename of the shapefile.
1674            (MF_Map.remove_layer): If a layer is removed the associated object
1675            must be set new.
1676            
1677            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
1678            layers which are exists in thuban to the mapobj. All removed Layers
1679            will be removed from the mapobj.
1680            Added comments to all functions.
1681            (thuban_to_map): No layer will be removed here.
1682            
1683            * Extensions/umn_mapserver/mf_handle.py
1684            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
1685            Layersettings for the mapserver kann be edited.
1686    
1687            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
1688            imported, will be linked with the associated MF_Layer.
1689            (import_mapfile): All layers, which are not selected, will be removed.
1690            Disable the "import layer from mapfile" menu option.
1691    
1692            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
1693            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
1694            layer on permanently.
1695    
1696    2004-08-03  Jan Sch�ngel  <[email protected]>
1697    
1698            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
1699            New. This function removes all metadata
1700            (MF_Layer.set_group): New. Set the group setting.
1701            (MF_Layer.get_group): New. Get the group setting.
1702            (MF_Map): Removed the extra numlayers variable, used the mapscript
1703            parameter instead.
1704            (MF_Map.get_numlayers): New. This get numlayers.
1705            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
1706            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
1707            if the object is an instance. Also added the annotation layer here to
1708            export, but only the layer is created in the mapfile.
1709    
1710            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
1711            the check if a mapobj exist, because its not needed anymore. The
1712            export function is only available if a mapobj exist.
1713            Use the new function to remove all layers.
1714            
1715            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
1716            option and the metadata button. The layer dialog is temporary disabled.
1717            (Metadata_CustomDataTable): Added some functions to show the grid
1718            correct.
1719    
1720            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
1721            the number of layer from import_mapfile to this function.
1722            (AnnotationLayer): New. This Class shows the Annotation layer in
1723            thuban. The layer don't do anything. It's only to show the layer
1724            and to save the layer order.
1725            (add_annotationlayer): New. Import an annotation layer to thuban.
1726            (select_layer2import): New. Import only layers to thuban and not
1727            the other settings like projection or scalebar.
1728            (create_new_mapfile): Moved the _has_umn_mapobj function and the
1729            create_new_mapfile functions from mf_handle.py to mf_import.py.
1730            
1731            * Extensions/umn_mapserver/sample/iceland.map: Added the group
1732            parameter to the roads and cultural layers. Also added a new
1733            Annotation Layer for the cultural points.
1734    
1735            * Extensions/umn_mapserver/sample/iceland.html: Added the select
1736            option for the annotation layer.
1737    
1738            * Extensions/umn_mapserver/sample/index.html: Added the start
1739            parameter for the annotation layer.
1740    
1741    2004-08-01  Jan-Oliver Wagner <[email protected]>
1742    
1743            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
1744            translation completed.
1745    
1746            * Doc/manual/thuban-manual.xml (Chapter Session Management):
1747            Fixed unprecise description for Save Session.
1748    
1749    2004-07-31  Jan-Oliver Wagner <[email protected]>
1750    
1751            Started translation of Users Manual into german.
1752    
1753            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
1754    
1755            * Doc/manual/Makefile: Added build instructions for german
1756            users manual.
1757    
1758            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
1759    
1760    2004-07-28  Jan Sch�ngel  <[email protected]>
1761    
1762            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
1763            functions. Now all metadata will handle by the function and its not
1764            needed to initialize it from outside. Therefor the associated mapobj
1765            will be stored in the Metadata Object. So we can use the special
1766            functions from the associated mapobj to get the Metadata.
1767            Therefor all initialization code for the metadata is removed from the
1768            other classes.
1769            (MF_Layer): Added a function to get the metadata object.
1770            (MF_Map): Added a function to set the mappath, the path where
1771            the mapfile ist stored.
1772    
1773            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
1774            to set the extent in the mapfile. Now the code is set by the displayed
1775            data in the Thuban-view.
1776            (export_mapfile): The shapepath is now set empty, until relative
1777            pathnames are supported.
1778    
1779            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
1780            metadata. Yet only mapfile metadata are supported. Layer and class
1781            supported are not implemented.
1782            Added a dialog to handle layer informations. The dialog only shows the
1783            selected layer at the moment.
1784    
1785            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
1786            code for setting the extent in thuban. Now the extent is set to the
1787            given extent from the mapfile.
1788            Fixed a logical mistake. Now the extent is set when realy a layer is
1789            loaded, and not if one is selected to load.
1790    
1791            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
1792            move the shown map in the browser.
1793    
1794            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
1795            line to the mapobj and added metadata to the political layer.
1796    
1797            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
1798            for Metadata.
1799    
1800    2004-07-26  Martin Schulze  <[email protected]>
1801    
1802            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
1803            ClassMapper
1804    
1805            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
1806            case for the new ClassMapper
1807    
1808    
1809    2004-07-22  Bernhard Herzog  <[email protected]>
1810    
1811            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
1812            visible extent of the map in projected coordinates
1813    
1814            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
1815            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
1816            tests.
1817            (SimpleViewPortTest.test_visible_extent): New. The real test for
1818            VisibleExtent()
1819    
1820    2004-07-22  Bernhard Herzog  <[email protected]>
1821    
1822            * test/test_viewport.py: Use support.run_tests as the main
1823            function when running asa script.
1824    
1825    2004-07-22  Jan Sch�ngel <[email protected]>
1826    
1827            * Extensions/umn_mapserver/mf_export.py: Added "import os"
1828            Removed the old "import Thuban.UI.mainwindow" code.
1829            (tbextent_to_map): Removed the extra function and at the code direct
1830            to "thuban_to_map" function.
1831            (write_creatorcomment): Added. Now a short comment is added to the
1832            beginning of an generated mapfile.
1833            (export_mapfile): Now the Path and filename are saved in to variables,
1834            and not together in one variable. This is needed for the new
1835            write_creatorcomment function.
1836                    
1837            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
1838            import module "re". Also added Range and the ClassGroupRange import
1839            from Thuban. Both are needed for the new range expression import.
1840            (create_rangeexpression): Added. Creates a Range Expression in Thuban
1841            style from a given mapfile expression.
1842            (added_rasterlayer): Make some small code changes. The shapepath is
1843            now stored in an extra variable and the clazz_name is set empty if no
1844            class name set in the mapfile.
1845            Changed the Error message for Range Expressions, becaus the new
1846            function create a error string which will be shown in the dialog.
1847    
1848            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
1849            range expression import.
1850    
1851    2004-07-21  Jan-Oliver Wagner <[email protected]>
1852    
1853            * Extensions/umn_mapserver/README: Added hint that
1854            installation as root can be avoided. Removed all tabs.
1855    
1856    2004-07-16  Bernhard Herzog  <[email protected]>
1857    
1858            * test/test_viewport.py
1859            (ViewPortTest.test_changing_map_projection): Check that changing
1860            the projection of an empty map shown in a viewport doesn't lead to
1861            exceptions in the viewport's handler for the
1862            MAP_PROJECTION_CHANGED messages
1863    
1864            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
1865            try to keep the same region visible when the map actually contains
1866            something
1867    
1868    2004-07-15  Jan Sch�ngel <[email protected]>
1869    
1870            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
1871            mappath directly from the mapobj. Is needed because of the changes
1872            in mf_import.py.
1873            (MF_Layer.add_thubanclass): Added a new comment.
1874            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
1875            mapobj is empty there is no extent get from thuban an so no one can
1876            set to th mapobj.
1877            
1878            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
1879            the discription.
1880            Split the funktion in to three smaller ones. The new functions are
1881            add_rasterlayer, add_polygonlayer and select_layer2import.
1882            Removed the mapfilepath and filepath initialisation, because its know
1883            include in the new functions.
1884            Now nothing will be imported if cancel is pressed in the
1885            layer choice dialog.
1886    
1887    2004-07-14  Jan Sch�ngel <[email protected]>
1888    
1889            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
1890            import.
1891            (MF_Symbolset): Removed the extra variable for numsymbols.
1892            (MF_Class.__init__): Added a comment to the exception clause.
1893            Removed the extent init, because it was not needed anymore.
1894            (MF_Layer.add_thubanclass): Added the code to set the class name to
1895            the expression value from thuban if no label is defined.
1896            Added the code to export Range expressions from thuban to the mapfile.
1897            (MF_Map.set_extent): Removed the exception and replace it by some if
1898            code. If the size of a map is not defined the size will be set to 1,1.
1899            This is necessary because if the extent is set, mapscript checks if
1900            the size is greater than zero.
1901            (MF_Web): Added the get and set function for the template.
1902    
1903            * Extensions/umn_mapserver/mf_export.py: Added the function to check
1904            if a mapobject exists and used it to set the status of the menu items.
1905            If no mapfile exists the settings could not be edditied.
1906            Define after which menuitem the exportitem will include.
1907            
1908            * Extensions/umn_mapserver/mf_handle.py: Removed the import
1909            Thuban.UI.mainwindow clause, because it is not needed.
1910            Added the command Refresh() to all "OnChangeColor()" functions,
1911            because the color preview window was not updated on a color change.
1912            Added the function to check if a mapobject exists and used it to set the
1913            status of the menu items. If no mapobject exists the settings could not
1914            be edditied.
1915            (Map_Dialog): Moved the imagetype selector from the
1916            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
1917            (Web_Dialog): Removed the name label and added the template textbox.
1918    
1919            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
1920            the exception handling on loading the layers by an if statement. It
1921            is not necessary to us the exception there.
1922            The Filepath creation now use os.path.join to build the path.
1923    
1924            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
1925            definition from global to the setUp function. Now the testMap will
1926            initialize new on each test.
1927    
1928            * Extensions/umn_mapserver/sample/iceland.map: Include three new
1929            classes in the Line Layer, to test logical Expressions.
1930            Set the status of the class "Point9" in the Point Layer to off
1931            
1932    2004-07-13  Bernhard Herzog  <[email protected]>
1933    
1934            * Thuban/UI/baserenderer.py
1935            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
1936            optimization that tries not to draw layers under a raster layer.
1937            The bug was harmless.  All it effectively did was to produce The a
1938            strange messages about not being able to draw Layer instances for
1939            all vector layers below a raster layer which would be invisible
1940            anyway because the raster layer currently always covers the entire
1941            window
1942    
1943    2004-07-08  Jan Sch�ngel <[email protected]>
1944    
1945            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
1946            a list of supported outputformats. This formats are not alle supported
1947            because there is no possibility to get the outputformat without the
1948            name known. Make some formal changes to the code.
1949            (MF_Map.set_name()): Fixed a bug if the name is None.
1950    
1951            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
1952            statement, because its not needed anymore. The Outputformat is now
1953            given as string from the object. Make some formal changes to the code.
1954    
1955            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
1956            most of the new setting which were added during the last changes.
1957            Removed the MF_Size Test.
1958            
1959            * Extensions/umn_mapserver/test/test.map: Added a new class to the
1960            cultural Layer to test expressions and the the status of that layer
1961            from on to default.
1962            Changed the data path the the correct Thuban Data
1963            Added the Outputformat Object and Symbol Object
1964            
1965    2004-07-07  Jan Sch�ngel <[email protected]>
1966    
1967            * Extensions/umn_mapserver/mapfile.py: Added some new
1968            settings to edit (outputformat, label, imagetype)
1969    
1970            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
1971            the Label Dialog and add the OutputDialog.
1972            Make some changes to the code order.
1973    
1974    2004-07-06  Jan Sch�ngel <[email protected]>
1975    
1976            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
1977            and line Obj and add the scalebar_status_type, scalebar_style_type and
1978            scalebar_position_type.
1979            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
1980            are only used to create a Symbol like the circle in Thuban.
1981            Added the scalebarObject (MF_Scalebar)
1982            (MF_Class): Added set_status and get_status.
1983            (MF_Layer.add_thubanclass): Added code to set the class status
1984            (MF_Map): Added code to handle the symbols and scalebar
1985            (MF_Label): Added the set_partials and get_partials functions
1986            
1987            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
1988            from mapfile. Added a function to create a circle object like the one
1989            from thuban if no one exists.
1990            
1991            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
1992            press ok in the assosiated dialog and not at the end of the
1993            colordialog.
1994            Added the Dialog for the Scalebar.
1995            (Label_Dialog): Added the offset option
1996    
1997            * Extensions/umn_mapserver/mf_import.py: Added code to import the
1998            status of the Classes.
1999            Fixed a bug with the projection. Now the to_meter parameter will be
2000            added to the Projection only if it doesn't exists.
2001    
2002    2004-07-01  Jan Sch�ngel <[email protected]>
2003    
2004            Added the functionality to handle the content thuban is not
2005            able to handle directly.
2006    
2007            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
2008            Thuban with the possibility to edit the mapfile content.        
2009            
2010            * Extensions/umn_mapserver/mf_import.py: Added the possibility
2011            to import mapfiles without any layer selected. So it is possible
2012            to edit the other settings in a mapfile.
2013            (import_mapfile): Added code to use the editing functions.
2014            Added the possibility to import the projection to a layer if one
2015            is defined.
2016            Status settings (On,Off) will now set in thuban (visible, invisible).
2017            fixed a bug with with classnames. If no classname is set in mapfile
2018            the value in Thuban will set to the expression.
2019            
2020            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
2021            possibility to save a new mapfile or use the old one which is
2022            imported or new created.
2023            Added code to use the editing functions.
2024            Remove some not needed import statements
2025    
2026            * Extensions/umn_mapserver/mapfile.py: Added new types which are
2027            need for the editing functions.
2028            Added needed set-functions for the editing functions.
2029            Added the possibility to export rasterimages.
2030            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
2031            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
2032            moment.
2033            (MF_Class.set_thubanstyle): Now point layers will set to a default
2034            symbol to show a circle in mapserver and not only a 1px dot.
2035            (MF_Style.__init__): Fixed a bug with the color. Color was not set
2036            correct before.
2037            (MF_Size): Removed, because it is not needed.
2038            
2039            * Extensions/umn_mapserver/README: Added the hints to use the
2040            export and editing functions, too.
2041    
2042            * Extensions/umn_mapserver/sample/iceland.map: Added the
2043            new parameter "UNITS METERS".
2044            Change the political layer to status OFF.
2045    
2046            * Extensions/umn_mapserver/sample/README: Added some
2047            more details to setup the sample in the MapServer.
2048            
2049    2004-06-26  Bernhard Reiter <[email protected]>
2050    
2051            * Extensions/svgexport/test/test_svgmapwriter.py:
2052            Removed class VFile and used standard StringIO instead.
2053    
2054    2004-06-23  Jan Sch�ngel  <[email protected]>
2055    
2056            Add the export function to the umn_mapserver extension.
2057    
2058            * Extension/umn_mapserver/mf_export.py: New. This module extents
2059            Thuban with the possibility to export the Thuban content.
2060    
2061            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
2062            with the export module. Especially added the possibility to
2063            add thuban objects directly to the map objects.
2064    
2065            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
2066            because of the hint from Bernhard Herzog.
2067            Corrected the handling of absolute pathnames.
2068            Changed the Text of the Menu-Item, now the beginning is upper case.
2069    
2070            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
2071    
2072  2004-06-16  Jan Sch�ngel  <[email protected]>  2004-06-16  Jan Sch�ngel  <[email protected]>
2073    
2074          Add a sample and make some changes.          Add a sample and make some changes.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26