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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26