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

Legend:
Removed from v.2333  
changed lines
  Added in v.2591

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26