/[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 2067 by bh, Mon Feb 16 19:39:48 2004 UTC revision 2598 by bh, Mon Apr 11 18:18:08 2005 UTC
# Line 1  Line 1 
1    2005-04-11  Bernhard Herzog  <[email protected]>
2    
3            * libraries/thuban/wxproj.cpp: Move the compatibility code that
4            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
5            branch that includes wxPython.h because it's only needed when
6            wxPython.h is used.  Also, it won't compile when
7            USE_WX_PYTHON_SWIG_HACK is set otherwise.
8    
9    2005-04-07  Bernhard Herzog  <[email protected]>
10    
11            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
12            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
13            ClassGrid.__init__ and it's value is outside of the valid
14            range (must be < 32768).  wxPython 2.5 complains about it with an
15            exception.
16    
17    2005-04-05  Jan-Oliver Wagner <[email protected]>
18    
19            * Doc/manual/thuban-manual-de.xml: More translations.
20    
21    2005-04-05  Bernhard Herzog  <[email protected]>
22    
23            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
24            wxPython 2.4 as well.  Also, remove a now obsolete comment.
25    
26    2005-04-05  Bernhard Herzog  <[email protected]>
27    
28            Use wxPython.h by default but provide a workaround when it isn't
29            available.
30    
31            * setup.py (wxproj_extension): New variable.  Assign the Extension
32            instance for Lib.wxproj to this variable instead of putting it
33            directly into the listso that it can be accessed by other code
34            later.
35            (thuban_build_ext.user_options): Added boolean option
36            --use-wx-python-swig-hack.
37            (thuban_build_ext.initialize_options): Initialize the new option
38            to False.
39            (thuban_build_ext.finalize_options): If the new option was given,
40            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
41            (thuban_build_ext): Update the doc-string
42    
43            * libraries/thuban/wxproj.cpp: Normally we use
44            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
45            defined, use swigPtrConvertHack.h instead.
46    
47            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
48            copied over from wxPython.h.
49            (decode_pointer_new): New.  Equivalent of decode_pointer for
50            wxPython 2.5.
51            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
52    
53            * README: Add section on potential build problems which explains
54            how the work-around for a missing wxPython.h is activated.
55    
56    2005-03-29  Bernhard Herzog  <[email protected]>
57    
58            * test/postgissupport.py (find_postgis_sql): Added yet another
59            potential location for (lw)postgis.sql because the file has moved
60            again in postgis 1.0.0 rc4.
61    
62    2005-03-29  Bernhard Herzog  <[email protected]>
63    
64            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
65            match the site of the legend_icon_layer icon.  Otherwise wxpython
66            2.5 complains when the legend is created with the error:
67    
68            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
69            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
70            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
71            in wxImageList: this might work on this platform but definitely
72            won't under Windows.
73    
74    2005-03-23  Jonathan Coles <[email protected]>
75    
76            These changes add support for adjusting the opacity of a raster layer.
77    
78            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
79            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
80            a LAYER_CHANGED event if the opacity actually changes.
81    
82            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
83            layer parameter needed in the implementation of this method in
84            renderer.py.
85    
86            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
87            typo 00 -> 0.
88    
89            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
90            control to adjust opacity.
91    
92            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
93            alpha data based on the opacity level of the layer.
94    
95            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
96            accepts a layer parameter.
97    
98            * test/test_layer.py (TestLayerModification.test_raster_layer):
99            Rename opacity method calls and add test for LAYER_CHANGED.
100    
101    2005-03-16  Bernhard Herzog  <[email protected]>
102    
103            * test/test_connector.py (DeletionTestMixin.check_deletions)
104            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
105            update the callers.
106    
107    2005-03-14  Jan-Oliver Wagner <[email protected]>
108    
109            * Doc/manual/thuban-manual-de.xml: More translations.
110    
111    2005-03-10  Jan-Oliver Wagner <[email protected]>
112    
113            Introducing initialization callbacks for extensions.
114    
115            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
116            optional parameter init_callback.
117            (ExtensionDesc.init_ext): New. Executes the callback and sets
118            a status.
119    
120            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
121            initialization of the extensions.
122            (ThubanApplication.init_extensions): Init all extensions.
123    
124            * Thuban/UI/about.py (About.__init__): Added status of the extensions
125            to the about text.
126    
127            * Extensions/gns2shp/__init__.py: Added init method for Extension
128            description.
129            (init): New. Contains the initialization of the module.
130    
131    2005-03-04  Nina H�ffmeyer <[email protected]>
132    
133            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
134            OGRConnection to open a datasource. Removed dialog to display all
135            available drivers. Added some doc strings.
136    
137            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
138            OGRDatasource with a string. Added two opening methods which return an
139            OGRDatasource (either data from file or from DB).
140    
141            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
142            represents a geometry reference of an OGRFeature. OGRShape now has a
143            list of referenced geometry objects (important for geometry
144            collections).
145            For OGRShapeStores loaded from a DB an ID column can be specified now.
146    
147    2005-02-22  Jan-Oliver Wagner <[email protected]>
148    
149            * test/test_map.py (TestMapWithContents.test_tree_info):
150            Added label layer for comparison.
151    
152    2005-02-18  Jonathan Coles <[email protected]>
153    
154            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
155            which builds a mask. Handle the majority of an image in a loop,
156            creating 8 bits at a time. Later, handle the edge case where less
157            than 8 bits are packed.
158    
159    2005-02-18  Bernhard Herzog  <[email protected]>
160    
161            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
162            doc-string
163    
164    2005-02-18  Jonathan Coles <[email protected]>
165    
166            * setup.py: Remove wx_cs_params from gdal compile options.
167    
168    2005-02-18  Jonathan Coles <[email protected]>
169    
170            Refactored baserenderer.py and renderer.py to remove baserenderer.py's
171            dependencies on wxPython. Added a new method projected_raster_layer()
172            that returns a raster layer image in projected space. This must be
173            implemented in classes derived from BaseRenderer. This also eliminates
174            the dependency on gdal in baserenderer.py.
175    
176            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
177            new projected_raster_layer() to get projected raster image instead
178            of directly calling ProjectRasterFile().
179            (BaseRenderer.projected_raster_layer): New. This must be implemented
180            by derived classes. It takes almost the same arguments as ProjectRasterFile
181            did and returns a projected image with mask and alpha data (if requested).
182            (BaseRenderer.render_map_incrementally): Remove the check for gdal since
183            that check will be done in MapRenderer.projected_raster_layer(). This
184            also allows other implementations to use different projection code.
185    
186            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
187            Implementation of BaseRenderer.projected_raster_layer. Checks for
188            gdal support and wxPython version. Also handles exceptions from
189            ProjectRasterFile.
190    
191            * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
192            and added a variable which can be set through the options argument
193            of ProjectRasterFile.
194    
195            * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
196            Calls ProjectRasterFile and returns the result.
197            (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
198            of calling projected_raster_layer() with different options.
199            (TestBaseRenderer.test_raster_no_projection): Removed tests based on
200            wxPython version and all tests of masks and alpha channels. These are
201            now in test_projected_raster_layer().
202    
203    2005-02-17  Jan-Oliver Wagner <[email protected]>
204    
205            * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
206            doc-strings to comply with coding_guidelines.
207    
208    2005-02-17  Jan-Oliver Wagner <[email protected]>
209    
210            Docstring improvements and minor fixes for labellayer.
211    
212            * Thuban/Model/map.py:
213            (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
214            Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
215            Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
216            Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
217            doc string.
218            (Map.BoundingBox): Removed superfluous test for label_layer
219            and improved doc string.
220            (Map.TreeInfo): Added label_layer and improved sdo string.
221    
222            * Thuban/Model/label.py: Added import of _.
223            (Label, Label.__init__): Improved/added doc string.
224            (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
225            LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
226            Improved/added doc string.
227            (LabelLayer.AddLabel): Use already defined names for
228            align strings and improved doc string.
229            (LabelLayer.TreeInfo): New. Return the object data for
230            the tree view.
231    
232    2005-02-16  Jonathan Coles <[email protected]>
233    
234            Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
235            so that that wxproj doesn't crash. Added GUI support for selecting
236            alpha channel (opacity can't be selected yet).
237    
238            NOTE: If wxPython.h is including in future distribution packages
239            then it will not be necessary to have the files swigPtrConvertHack.h
240            and wxPython_int.h included with Thuban. This is hopefully
241            a temporary workaround.
242    
243            * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
244            access to the macro wxCHECK_VERSION so that it will properly
245            generate a bit mask. There was a problem between wx2.4 and wx2.5
246            that this works around.
247    
248            * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
249            of RasterLayer.MaskType.
250            (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
251            (RasterLayer.MaskType): New. Returns the type of mask to use. Can
252            specify none, a bitmap, or an alpha channel.
253            (RasterLayer.SetMaskType): New. Set what kind of mask to use.
254    
255            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
256            Set the raster warping options for the mask based on the value
257            of RasterLayer.MaskType.
258    
259            * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
260            deprecated calls to SetItemSelectedImage in favor of SetItemImage
261            with wxTreeItemIcon_Selected.
262    
263            * Thuban/UI/rasterlayerproperties.py: Support selecting to use
264            an alpha channel for the mask.
265    
266            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
267            data if it is available and an alpha channel is supported under
268            the current version of wxPython.
269    
270            * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
271            to select whether 1's or 0's select the desired portion of an image
272            in the bit mask. wx2.4 has a bug where the documentation is the opposite
273            from behavior.
274            (ProjectRasterFile): Only generate an alpha channel if the version
275            of wxPython is >= 2.5.3.
276    
277            * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
278            When wxPython >= 2.5.3 use the special swig functions to decode an
279            object's address.
280    
281            * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
282            based on the version of wxPython. If >= 2.5.3 use the special swig
283            functions from wxPython to decode wxPython objects, otherwise use
284            the old method of retrieving the address from the object __repr__ string.
285    
286            * libraries/thuban/wxPython_int.h: Copied from wxPython source.
287            Unnecessary code was removed to make it smaller.
288    
289            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
290            Add tests for returning an alpha channel.
291    
292            * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
293            tests that used removed functions UseMask and SetUseMask
294    
295    
296    2005-02-08  Bernhard Herzog  <[email protected]>
297    
298            More wxPython 2.5 changes.  This time taken from a patch from
299            Daniel Calvelo Aros.
300    
301            * Thuban/UI/tableview.py (QueryTableFrame.__init__)
302            (QueryTableFrame.__init__): Pass the size of a spacer as a single
303            item.
304    
305            * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
306            (ProjFrame.build_dialog): Pass the size of a spacer as a single
307            item.
308    
309            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
310            size of a spacer as a single item.
311    
312            * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
313            size of a spacer as a single item.
314    
315    2005-02-08  Bernhard Herzog  <[email protected]>
316    
317            Compatibility with wxPython 2.5.  The changes should make it work
318            better with 2.5 while still keeping compatibility with 2.4.  There
319            are still problems with 2.5, though.
320    
321            * Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size
322            of a spacer as a single item.
323    
324            * Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only
325            from wxControl
326    
327            * Thuban/UI/legend.py (LegendTree): When running with wxPython <
328            2.5, add an implementation of the GetFirstChild method that does
329            not require the second parameter.
330            (LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded)
331            (LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems)
332            (LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not
333            pass the second parameter to GetFirstChild
334    
335    2005-02-08  Nina H�ffmeyer <[email protected]>
336    
337            * Extensions/ogr/ogrshapes.py: Removed some print commands.
338    
339            * Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an
340            additional menu but appears as a possibility in the menu Map.
341    
342    2005-02-07  Jonathan Coles <[email protected]>
343            * libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR
344            and PYTHON_ERRF since they were no longer necessary.
345    
346    2005-02-07  Bernhard Reiter <[email protected]>
347            * Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows):
348            Enable translation for message string.
349    
350    2005-02-06  Martin Schulze  <[email protected]>
351    
352            * Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted
353            the arguments of the contstructor to fit the global scheme
354    
355    2005-01-31  Nina H�ffmeyer <[email protected]>
356    
357            * Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides
358            some dialogs needed to start ogr.
359            
360            * Extensions/ogr/__init__.py: Changed comments to avoid encoding
361            warnings.
362    
363            * Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid
364            encoding warnings.
365    
366    2005-01-28  Jonathan Coles <[email protected]>
367    
368            * libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the
369            mask is packed into a bit array. It's now slightly faster.
370    
371    2005-01-28  Jonathan Coles <[email protected]>
372    
373            * Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask
374            default to true.
375    
376            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove
377            code that loads the state of the layer's use_mask flag. Its
378            usefulness is still being debated.
379    
380            * Thuban/Model/save.py (SessionSaver.write_layer): Remove
381            code that saves the state of the layer's use_mask flag. Its
382            usefulness is still being debated.
383    
384            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
385            options to ProjectRasterFile based on the state of layer.UseMask().
386            Catch more exceptions from ProjectRasterFile so that Thuban doesn't
387            quit is there is a problem projecting.
388            (BaseRenderer.draw_raster_data): Change the documentation to
389            describe the new format (XBM) that the mask data will be in.
390    
391            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask
392            data is in XBM format when format='RAW' which means it doesn't
393            need to be converted to a wxImage before being used as a mask
394            for a wxBitmap. Assume that if format != 'RAW' that the image
395            data and mask data are in the same format.
396    
397            * libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled
398            and a mask is requested, convert the alpha band to a bit array in
399            XBM format. if an alpha channel is requested, simply return the
400            data in the alpha band. Provide better error handling by returning
401            python error messages (also fixes RT #2947).
402            (ProjectRasterFile): Support multiple mask options, rather than simply
403            a flag indicating that a mask should or should not be used. Provide
404            better error handling by returning python error messages.
405    
406            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
407            Add mask data to test.
408    
409            * test/test_layer.py (TestLayer.test_raster_layer): Test that a layer
410            should use the mask by default.
411            (TestLayerModificaton.test_raster_layer): Test that a layer should use
412            the mask by default.
413    
414            * test/test_load.py (TestRasterLayer.test): Remove testing for
415            use_mask flag in file.
416    
417            * test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing
418            for use_mask in file.
419    
420            * test/test_load_1_0_1.py: Removed. Shouldn't have been checked in.
421            
422    2005-01-26  Jonathan Coles <[email protected]>
423    
424            Add a new dialog box for raster layers. The dialog box allows
425            the user to toggle a mask that is generated by ProjectRasterFile
426            and is used to only draw the real parts of the projected image.
427    
428            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
429            Instruct the warping code to generate a mask if the raster layer
430            requests one.
431            (BaseRenderer.draw_raster_data): Removed obsolete optional mask argument.
432    
433            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed
434            obsolete optional mask argument.
435    
436            * Thuban/UI/classifier.py (Classifier): Change the parent class
437            to LayerProperties and rework the code to support layout calls
438            from the parent.
439            (Classifier.dialog_layout): New. Layout the dialog box.
440            (Classifier.map_layers_removed): Removed. Moved to parent class.
441            (Classifier.map_replaced): Removed. Moved to parent class.
442            (Classifier._OnTry): Renamed to OnTry to support parent class.
443            (Classifier.OnClose): Removed. Supplied in parent class.
444            (Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn.
445            (Classifier._OnOK): Renamed to OnOK to support parent class.
446            (Classifier._OnRevert): Renamed to OnRevert to support parent class.
447    
448            * Thuban/UI/layerproperties.py: New. Base class for layer properties
449            dialog boxes.
450    
451            * Thuban/UI/rasterlayerproperties.py: New. Class for displaying
452            raster layer properties.
453    
454            * libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code
455            with the non-simple version supplied with gdal. This allows added
456            features such as creating an alpha band.
457            (GetImageData): Generate a mask array from the alpha band that is
458            generated by gdal if the user has selected it. Try to support images
459            that have more than three bands, such as images with RGB plus an
460            alpha band.
461            (ProjectRasterFile): Convert python argument for mask and tell
462            gdal to enable or disable an alpha band.
463    
464            * Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string
465            describing what kind of layer the class is. Defaults to "Unknown",
466            but should be overridden by subclasses.
467            (Layer.Type): New. Override base class method.
468            (RasterLayer.__init__): Create a flag for using a mask. Record extra
469            data from gdal for display in the properties dialog.
470            (RasterLayer.Type): New. Override base class method.
471            (RasterLayer.UseMask): New. Returns True if the mask should be used.
472            (RasterLayer.SetUseMask): New. Set if the mask should be used.
473            (RasterLayer.ImageInfo): New. Return extra information about the image.
474    
475            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load
476            the mask information.
477    
478            * Thuban/Model/save.py (SessionSaver.write_layer): Save mask information.
479    
480            * Thuban/UI/mainwindow.py: Register the RasterLayerProperties and
481            Classifier classes as dialogs to use with the proper layer types.
482    
483            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
484            Fix test.
485    
486            * test/test_layer.py (TestLayer.test_raster_layer): Test new methods.
487            (TestLayerModification.build_path): New. Support function.
488            (TestLayerModification.test_raster_layer): New. Test new methods.
489    
490            * test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask.
491    
492            * test/test_load.py (TestRasterLayer): Add tests for mask.
493    
494            * test/test_load_1_0_1.py: New. Copied from test_load.py.
495    
496            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed
497            obsolete optional mask argument.
498    
499    2005-01-26  Nina H�ffmeyer <[email protected]>
500    
501            * Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore
502            which maps the ids and the ordinals. Fixed RowIdToOrdinal(),
503            RowOrdinalToId() and ReadRowAsDict().
504    
505            * Extensions/ogr/ogrstart.py: Added menu item which opens database
506            layers for existing database connections.
507    
508            * Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string.
509    
510    
511    2005-01-26  Jan-Oliver Wagner <[email protected]>
512    
513            * Doc/manual/thuban-manual-de.xml: More translations.
514    
515    2005-01-24  Bernhard Herzog  <[email protected]>
516    
517            Rework the status bar updates a bit to make sure the message about
518            the projections is produced at the right times.
519    
520            * Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages):
521            New class variable with messages that may require a status bar
522            update.
523            (MainWindow.view_position_changed)
524            (MainWindow.update_status_bar): Rename from view_position_changed
525            to update_status_bar.  It's meaning has changed now that it may
526            also generate messages about problems with projection settings.
527            (MainWindow.__init__): Use the new update_status_bar_messages
528            class variable to subscribe update_status_bar
529            (MainWindow.set_position_text): Update doc-string.  This method
530            has to be renamed at some point.  See doc-string and comments.
531            (MainWindow.OnClose): Unsubscribe update_status_bar from all
532            messages in update_status_bar_messages
533    
534            * Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New
535            class attribute.  map messages to be forwarded by the viewport.
536            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe
537            the messages in forwarded_map_messages
538    
539    2005-01-21  Bernhard Herzog  <[email protected]>
540    
541            * test/postgissupport.py (PostGISDatabase.__init__): Tweak
542            doc-string
543            (find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a
544            different name for the initialization SQL file.
545    
546    2005-01-21  Jonathan Coles <[email protected]>
547    
548            * Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes
549            a projection and returns a formatted string representing the
550            parameters to feed to gdalwarp. This function eliminates
551            redundancy in draw_raster_layer().
552            (BaseRenderer.render_map_incrementally): Removed the optimization which
553            drew the top most raster layer first and then only those vector-
554            based layers that are above it. With the support for transparency
555            this optimization breaks correct behaviour.
556            (BaseRenderer.draw_raster_layer): Reorganize code to support possible
557            future enhancements to raster layer bounding box. The old behaviour has
558            not changed. Also, change calling parameters to draw_raster_data()
559            to specify new RAW data format and mask.
560            (BaseRenderer.draw_raster_data): Change signature to include an optional
561            parameter for mask information. Change documentation to mention
562            support for new parameter and added option for RAW data format.
563            The data argument is now a list of [width, height, data].
564    
565            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional
566            mask parameter. Add new condition for RAW format, which
567            significantly reduces rendering time. Add condition for
568            mask parameter.
569    
570            * libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a
571            data array of RGB values from the projected image returned from
572            the gdal warping functions. In the case of palette based images, it
573            converts the NO_DATA index to the mask color.
574            (ProjectRasterFile): Removed all custom memory driver references
575            and replaced it with the standard in-memory dataset provided
576            by gdal. The return data is no longer a BMP file, but an array
577            of RGB values, one set triple per pixel.
578    
579            * libraries/thuban/bmpdataset.cpp: Removed. Unnecessary.
580            * libraries/thuban/cpl_mfile.h: Removed. Unnecessary.
581            * libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary.
582    
583            * setup.py (thuban_build_ext.finalize_options): Removed mention
584            of cpl_mfile.cpp and bmpdataset.cpp files in the list of source
585            files. These are obsolete with the new version of gdalwarp.cpp
586    
587            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
588            Updated signature.
589            (TestBaseRenderer.test_raster_no_projection): Changed the test
590            data to be data in the uncompressed RAW format returned from
591            ProjectRasterFile.
592    
593    2005-01-21  Jan-Oliver Wagner <[email protected]>
594    
595            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made
596            string available for i18n.
597    
598    2005-01-20  Russell Nelson  <[email protected]>
599    
600            * Resources/Projections/defaults.proj: Ruin the speling of the
601            Lambert-93 projection so it doesn't run into the wx UTF-8 bug.
602            It's the wrong thing to do in the long run, but it's necessary for
603            those users until that bug is fixed.  Otherwise the projection
604            dialog segfaults.  Better to annoy some Lambert-93 users with a
605            spelling mistake than every Fedora Core 3 user of Thuban-CVS.
606    
607    2005-01-20  Bernhard Reiter <[email protected]>
608    
609            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added
610            docstring and comment that the warning code here is a hack.
611    
612    2005-01-20  Russell Nelson  <[email protected]>
613    
614            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn
615            user about misprojected layers when their lat/lon bounding
616            box exceeds rational lat/lon values.
617    
618    2005-01-20  Bernhard Reiter <[email protected]>
619    
620            * Thuban/UI/about.py (unicodeToLocale): Improved:
621            Use 'ascii' and then 'replace' for other characters
622            when getdefaultlocale returns None. Thanks to Bernhard H. .
623    
624    2005-01-20  Bernhard Reiter <[email protected]>
625    
626            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment
627            that OnRangeText might be called twice and using None as argument.
628    
629    2005-01-20  Bernhard Reiter <[email protected]>
630    
631            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a
632            OnRangeText(0) to work around a different in wx Behaviour noticed
633            on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
634    
635    2005-01-20  Bernhard Reiter <[email protected]>
636    
637            * Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns
638            None. (Fixes rt#2910.)
639            
640    2005-01-18  Frank Koormann <[email protected]>
641    
642            New Extension: mouseposition
643            Tool to collect mouse click positions (map coordinates) in a dialog.
644    
645            * Extensions/mouseposition/__init__.py: New, extension registration
646    
647            * Extensions/mouseposition/mouseposition.py: New, implements the
648            dialog and adds a tool to Thuban mainwindow.
649    
650            * Extensions/mouseposition/position.xpm: New, icon for tool.
651    
652    2005-01-14  Jan-Oliver Wagner <[email protected]>
653    
654            * Doc/manual/thuban-manual-de.xml: More translations.
655    
656    2005-01-11  Frank Koormann <[email protected]>
657    
658            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
659            Fix indention bug.
660    
661    2005-01-09  Frank Koormann <[email protected]>
662    
663            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
664            BugFix 2901: Explicitly copy layers ClassificationColumn since it
665            is not part of the layers Classification.
666    
667    2005-01-03  Frank Koormann <[email protected]>
668    
669            * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
670            BugFix 2883: Former implementation only worked on classified point
671            layers: KeyError was raised, now use the default size if field is None.
672    
673    2004-12-27  Bernhard Reiter <[email protected]>
674    
675            svgexport 1.0.0cvs: Fixed label export.
676    
677            * Extensions/svgexport/test/test_svgmapwriter.py:
678            class TestSVGRenderer(): New class; new test test_label_font().
679    
680            * Extensions/svgexport/svgmapwriter.py
681            (SVGRenderer.label_font()): initialised Font size with self.factor now,
682            makes test_label_font happy.
683    
684            * Extensions/svgexport/TODO: crossed out fixed label export item.
685            Added item for options.
686    
687            * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
688    
689    2004-12-27  Russell Nelson  <[email protected]>
690    
691            Middle mouse button pans.
692    
693            * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
694            OnMiddleDown and OnMiddleUp events.
695            (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
696            previously used tool.
697            (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
698            pressing the middle mouse button.
699    
700    2004-12-27  Jan-Oliver Wagner <[email protected]>
701    
702            * Doc/manual/thuban-manual-de.xml: More translations.
703    
704    2004-12-23  Jan-Oliver Wagner <[email protected]>
705    
706            * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
707            \n to stderr after the warnings. Thanks to Russell Nelson.
708    
709    2004-12-20  Nina Hueffmeyer <[email protected]>
710    
711            * Extensions/ogr/ogrshapes.py: Fixed some issues from
712            Bernhard (coding guidelines etc.). Additionally it is now possible to
713            display shapefiles containing feature collections (e.g.polygons
714            with holes). Works with gdal 1.2.1 now.
715    
716            * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
717            from Bernhard (coding guidelines etc.). If ogr can't be imported,
718            tests are skipped now.
719    
720            * Extensions/ogr/ogrstart.py: Fixed some typings.
721    
722    2004-12-20  Bernhard Reiter <[email protected]>
723    
724            * Extensions/svgexport/TODO: updated to add support for
725            raster layers and labels for 1.0.1.
726    
727            * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
728            Issue a warning now.
729    
730    2004-12-19  Bernhard Reiter <[email protected]>
731    
732            * Extensions/svgexport/TODO: Added idea to support triggering
733            the application down the pipe.
734    
735    2004-12-19  Bernhard Reiter <[email protected]>
736    
737            svgexport: Improved code quality, mainly by better naming.
738    
739            * Extensions/svgexport/svgmapwriter.py:
740            DrawPath() renamed to DrawPolygonPath(),
741            added documentation, improved comments and variable names.
742            
743            * Extensions/svgexport/svgmapwriter.py,
744              Extensions/svgexport/test/test_svgmapwriter.py:
745            All using DrawPolygonPath() now, the default parameter closed=True
746            omitted.
747    
748            * Extensions/svgexport/test/test_svgmapwriter.py:
749            renamed test_polygon_opened() to test_polyline()
750            renamed test_transparent_polygon() to test_transparent_polyline()
751    
752    2004-12-18  Jan-Oliver Wagner <[email protected]>
753    
754            Some fixes of gns2shp extension.
755    
756            * Extensions/gns2shp/test/__init__.py: New. Make this directory a
757            package.
758    
759            * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
760            dynamically.
761    
762            * Extensions/gns2shp/test/README: Simplified description how to test.
763    
764            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
765            fixed some dimensions of fields according to the GNS documentation
766            which seems to change undocumented.
767            Now killing trailing \n and/or \r from MODIFY_DATE.
768            This fixes RT#2453.
769    
770    2004-12-18  Bernhard Reiter <[email protected]>
771    
772            svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
773    
774            * Extensions/svgexport/test/test_svgmapwriter.py:
775            Added new tests: test_export_polygon_with_hole()
776            and test_polygon_with_hole().
777    
778            * Extensions/svgexport/svgmapwriter.py
779            (draw_polygon_shape()): Uses DrawPath correctly now.
780    
781            * Doc/manual/thuban-manual.xml: Added documentation for stable
782            extention svgexport.    
783            * Doc/manual/thuban-manual-de.xml: Copied English section about
784            svexport over.
785    
786            * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
787    
788            * Extensions/svgexport/svgsaver.py,maplegend.py:
789            Moved from experimental to stable extension menu.
790    
791            * Extensions/svgexport/TODO: updated.
792    
793    
794    2004-12-18  Bernhard Reiter <[email protected]>
795    
796            Added Extensions/svgexport/TODO
797    
798    2004-12-18  Bernhard Reiter <[email protected]>
799    
800            Refactored in svgexport:
801            DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
802    
803            * Extensions/svgexport/svgmapwriter.py
804            Added verbosity level 3 to print out polygon points.
805            (class Point): added __repr__
806            (class Brush, __str__()): Added space after ,.
807            (DrawPolygon): Renamed to DrawPath()
808            (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
809            (DrawLines): Using DrawPath now.
810    
811            * Extensions/svgexport/test/test_svgmapwriter.py:
812            Replaced DrawPolygon() calls with DrawPath() and put the first argument
813            inside another list. Adapted test data with a newline before "M".
814    
815    2004-12-18  Bernhard Reiter <[email protected]>
816            
817            Refactored svgexport tests: 9 double tests runs eliminated;
818            code size reduced by 8 lines.
819    
820            * Extensions/svgexport/test/test_svgmapwriter.py:
821            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
822            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
823            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
824            this fixed the double running of the nine tests of TestVirtualDC.
825            (class TestVirtualDC): Using self.dc and self.file from setUp().
826    
827    2004-12-17  Bernhard Herzog  <[email protected]>
828    
829            Two windows specific fixes ported from thuban-1�0-branch:
830    
831            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
832            instead of getlocale because getlocale doesn't return a usable
833            encoding name on a german windows 2000
834    
835            * setup.py: windows build: Removed the absolute path names and
836            made all prfixes relative to the directory containing setup.py.
837            Makes it a little easier to adapt to a different system.
838    
839    2004-12-16  Bernhard Herzog  <[email protected]>
840    
841            Add support for PostGIS tables with LINESTRING geometries.
842            Fixes RT#2299
843    
844            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
845    
846            * test/postgissupport.py
847            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
848            table to "roads-multi" because it now uses MULTILINESTRING
849            geometries and introduce a new "roads" table that uses LINESTRING
850            (coords_to_multilinestring): Make the doc string more precise
851            (coords_to_linestring): New.  Create a LINESTRING WKT
852            representatin
853            (wkt_converter): Add coords_to_linestring
854            (upload_shapefile): Rephrase the doc-string a bit.
855    
856            * test/test_postgis_db.py (TestPostGISShapestoreArc)
857            (LineStringTests)
858            (TestPostGISShapestoreLineString)
859            (TestPostGISShapestoreMultiLineString): Split
860            TestPostGISShapestoreArc into a base class LineStringTests and two
861            derived classes TestPostGISShapestoreLineString for LINESTRING
862            geometries and TestPostGISShapestoreMultiLineString for
863            MULTILINESTRING geometries.  Most test methods are in the base
864            class with the exception of tests that explicitly check the raw
865            format.
866    
867    2004-12-16  Bernhard Herzog  <[email protected]>
868    
869            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
870    
871            * test/postgissupport.py (find_postgis_sql): Different postgis
872            versions put the postgis.sql file into slightly different places
873            so we have to look in both.  The updated doc string describes this
874            is more detail.
875    
876            * test/test_postgis_db.py
877            (TestPostGISSpecialCases.test_column_name_quoting): The return
878            value of UniqueValues is unsorted, so it has to be sorted for
879            comparison.
880    
881    2004-12-16  Bernhard Herzog  <[email protected]>
882    
883            Fix for RT#2237
884    
885            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
886            panel to be shown is the UnknownProjPanel disable the OK and Try
887            buttons.  Otherwise enable them.
888            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
889            the parameters.  In that case __GetProjection also returns None
890            now.
891    
892    2004-12-15  Bernhard Herzog  <[email protected]>
893    
894            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
895            minimum number of classes to 2.  The calculate_quantiles needs at
896            least two and raises an exception otherwise.  
897            Fixes RT#2549
898    
899    2004-12-15  Bernhard Herzog  <[email protected]>
900    
901            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
902            so that it returns a result for select statements.
903            (PostgreSQLServer.server_version): New.  Return the version of the
904            server software.
905            (PostgreSQLServer.require_authentication): The format of
906            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
907            server version and generate the file in the correct format
908    
909    2004-12-15  Bernhard Herzog  <[email protected]>
910    
911            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
912            in the doc string and rephrase it a little.
913    
914    2004-12-15  Frank Koormann <[email protected]>
915    
916            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
917            session has been loaded successfully. The check is called by the relevant
918            tests after executing load_session().
919    
920    2004-12-13  Bernhard Herzog  <[email protected]>
921    
922            Make sure the region used to determine which shapes are visible
923            actually matches the region on the printed page.  If this isn't
924            done properly some shapes might not be printed.  
925            Fixes RT #2692
926    
927            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
928            renderer has to be at the same position as the mapregion
929    
930            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
931            has to be moved by (self.shiftx, self.shifty) too.
932    
933    2004-12-13  Bernhard Herzog  <[email protected]>
934    
935            * libraries/pyprojection/Projection.i: Work around a bug in the
936            generated python code which leads to exception in the __del__
937            method when the constructor fails.  See the comments in the code
938            for more details.
939    
940            * libraries/pyprojection/Projection.py: Updated from Projection.i
941            with SWIG.
942    
943    2004-12-13  Bernhard Herzog  <[email protected]>
944    
945            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
946            (TestAltPath.test_02_path_error_fix_from_list)
947            (TestAltPath.test_05_path_error_fix_from_list_changed)
948            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
949            is destroyed in tearDown, so there's no need to do it in a test
950            case.
951    
952            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
953            debug print
954    
955    2004-12-13  Bernhard Herzog  <[email protected]>
956    
957            * Extensions/svgexport/test/test_svgmapwriter.py
958            (TestDrawSplines.setUp): Do not use super with the unittest
959            classes because in Python 2.2 they're still old-style classes.
960    
961    2004-12-13  Frank Koormann <[email protected]>
962    
963        Alternative Path feature: When loading a (moved) session where
964            shapefiles cannot be found, ask the user. Use the specified path
965            if further shapefiles are missing. However, ask the usr for confirmation
966            in such cases.
967    
968            * test/test_load.py (TestAltPath): New, tests for alternative path feature
969            in load_session()
970            (Shapefile_CallBack): Helper, implements controllable callback.
971    
972            * Thuban/UI/application.py (ThubanApplication.OnInit):
973            Added "alt_path" to self.path
974            (ThubanApplication.OpenSession): Added shapefile_callback as second
975            callback similar to db_connection_callback.
976            (ThubanApplication.run_alt_path_dialog): New, implementaion of
977            shapefile_callback. In addition to raising the dialog the control of
978            self.path('alt_path') is implemented here.
979    
980            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
981            (SessionLoader.open_shapefile): Open shapefile, eventually with
982            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
983            formerly used in start_fileshapesource()/start_layer().
984            (SessionLoader.start_fileshapesource): Call open_shapefile().
985            (SessionLoader.start_layer): Call open_shapefile().
986            (load_session): Added shapefile_callback.
987    
988            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
989            feature (search / check).
990            
991            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
992    
993    2004-12-11  Bernhard Reiter <[email protected]>
994    
995             svgexport 0.9.2: Point size supports for maps.
996    
997            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
998            (def draw_point_shape): new parameter size defaults to 2 as before.
999            (draw_shape_layer_incrementally): Moved draw_func log line higher.
1000            Added draw_func call with size when dealing with a point layer.
1001    
1002            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
1003            
1004    2004-12-11  Bernhard Reiter <[email protected]>
1005    
1006            Made sure that newlines are inserted in the svg path d attributes
1007            to raise the chance that the line length will be below 255 characters,
1008            as recommended by REC SVG 1.1 in section 8.3.1.
1009    
1010            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
1011            Adding \n before L's and changed whitespace handling.
1012    
1013            * Extensions/svgexport/test/test_svgmapwriter.py:
1014            Adapted tests to new whitespace handling of DrawPolygon.
1015    
1016    2004-12-11  Bernhard Reiter <[email protected]>
1017    
1018            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
1019    
1020            * Extensions/svgexport/test/test_svgmapwriter.py:
1021            Removed test_drawbezier in favour of new test_drawspline3 and
1022            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
1023            All only to test DrawSpline.
1024    
1025            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1026            New implementation now really using the strange algorithm of
1027            xfig 3.1's approximated splines and its conversion to postscript
1028            with one twist: SVG can do quadratic beziers, so skipped translation
1029            to cubic beziers.
1030            (TestWithDC): Typo in comment fixed.
1031    
1032    2004-12-09  Martin Schulze  <[email protected]>
1033    
1034            * Thuban/Model/classgen.py: Added missing character encoding
1035    
1036            * Extensions/wms/properties.py (OpenWMSProperties): removed
1037    
1038            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
1039            support for get_srs_discrepancies() since there are no
1040            discrepancies anymore (was a thinko)
1041    
1042            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
1043            format priority now that more formats are supported globally by
1044            the render engine.
1045    
1046    2004-12-08  Silke Reimer <[email protected]>
1047            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
1048            because it is not available in all versions of ogr
1049    
1050    2004-12-08  Bernhard Reiter <[email protected]>
1051            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
1052            global tests until a real one is commited.
1053    
1054    2004-12-07 Nina H�ffmeyer <[email protected]>
1055    
1056            * /Extensions/ogr/: Adding a new extension to read shapefiles with
1057            ogr. It is planned to add other vector formats.
1058    
1059            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
1060    
1061    2004-12-07  Jan-Oliver Wagner <[email protected]>
1062    
1063            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
1064            part of a (non-)fix to renable that the tests are always
1065            executed.
1066    
1067    2004-12-07  Bernhard Reiter <[email protected]>
1068    
1069            * Extensions/svgexport/test/test_svgmapwriter.py:
1070            Added test_drawbezier() to test DrawSpline().
1071    
1072            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1073            Really implemented bezier drawing.
1074    
1075            * Extensions/svgexport/__init__.py: Bumped version of svgexport
1076            to 0.9.1 because now the legend examples lines styles
1077            will be drawing with beziers.
1078    
1079    2004-12-05  Martin Schulze  <[email protected]>
1080    
1081            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
1082            GIF as supported bitmap image formats (helpful for the WMS extension)
1083    
1084    2004-11-30  Martin Schulze  <[email protected]>
1085    
1086            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
1087            Improved the test for the internal compare method
1088    
1089    2004-11-27  Jan-Oliver Wagner <[email protected]>
1090    
1091            * Thuban/UI/about.py (About.__init__): Added
1092            Norbert Solymosi for hungarian translation and Ole Rahn
1093            as contrbutor. Moved Bernhard Reiter from Contributor
1094            to Developer.
1095    
1096    2004-11-27  Bernhard Reiter <[email protected]>
1097    
1098            * Extensions/svgexport/test/test_svgmapwriter.py:
1099            Removed Jan from author list as he did not change enough significant
1100            lines yet.
1101    
1102            * Extensions/svgexport/__init__.py: Added Bernhard as author
1103            of the Extension.
1104    
1105    2004-11-27  Jan-Oliver Wagner <[email protected]>
1106    
1107            * po/hu.po: New. Hungarian translation. Contributed
1108            by Norbert Solymosi.
1109    
1110    2004-11-26  Bernhard Herzog  <[email protected]>
1111    
1112            * Extensions/svgexport/test/test_svgmapwriter.py
1113            (Testobjectexport.test_transparent_polygon): Commented out some
1114            debug prints
1115    
1116    2004-11-24  Jan-Oliver Wagner <[email protected]>
1117    
1118            Fix broken tests for svg extension and added svg legend
1119            to Experimental menu.
1120    
1121            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
1122            the test run correctly even if the extension is a package.
1123            Also removed the "import Thuban" which makes no sense.
1124    
1125            * Extensions/svgexport/__init__.py: Fix to have the extensions'
1126            test module also be executed from the global test routine.
1127            This is done by looking for the absense of the DISPLAY variable.
1128    
1129            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
1130            to Experimental menu since this module has yet not reached a stable
1131            status (ie. 1.0).
1132    
1133    2004-11-22  Bernhard Reiter <[email protected]>
1134    
1135            * Extensions/svgexport/svgmapwriter.py:
1136            Added verbose variable and some logging depending on it.
1137            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
1138            because counting i is not necessary.
1139            (class Pen, class Brush): Added simple __str__ methods.
1140            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
1141            not exported to svg file) Note: holes still unhandled.
1142    
1143            * Extensions/svgexport/test/test_svgmapwriter.py:
1144                    Made a baseclass TestWithDC for test needed a DC.
1145                    Added tests for bug #2698 (transparent polygons are not
1146                    exported to svg file):
1147                    Testobjectexport.test_transparent_polygon()
1148    
1149            * Thuban/Model/base.py (UnsetModified):
1150            Fixed some typos in docstring.
1151    
1152            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
1153            Added hints on the used algorithm for handling holes.
1154    
1155    2004-11-20  Jan-Oliver Wagner <[email protected]>
1156    
1157            Some face lifting for the examples.
1158    
1159            * Examples/__init__.py: Make this directory a package.
1160    
1161            * Examples/simple_extensions/__init__.py: Make this directory a package.
1162    
1163            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
1164            menu to Examples menu.
1165    
1166            * Examples/simple_extensions/simple_command.py: Some more comments,
1167            minor changes.
1168    
1169            * Examples/simple_extensions/simple_tool.py: Minor changes.
1170    
1171    2004-11-20  Jan-Oliver Wagner <[email protected]>
1172    
1173            Changed way of extension registry for wms and added extension
1174            registry for umn_mapserver extension.
1175    
1176            * Extensions/wms/__init__.py: Added registry entry and the importing
1177            of the actual wms module. Included a test for the required PyOGCLib.
1178    
1179            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
1180    
1181            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
1182            importing of the actual umn mapserver management modules.
1183            Included a test for the required Python MapScript.
1184    
1185    2004-11-20  Jan-Oliver Wagner <[email protected]>
1186    
1187            Changed way of extension registry for importAPR, bboxdump
1188            and added extension registry for svgexport.extension registry for
1189            svgexport.
1190    
1191            * Extensions/importAPR/__init__.py: Added registry entry and the importing
1192            of the actual importAPR module.
1193    
1194            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
1195            __init__.py).
1196    
1197            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
1198            ï¿½ï¿½ï¿½ï¿½of the actual bboxdump module.
1199    
1200            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
1201            ï¿½ï¿½ï¿½ï¿½__init__.py).
1202    
1203            * Extensions/svgexport/__init__.py: Added registry entry and the importing
1204            of the svgsaver module.
1205    
1206            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
1207            to Experimental menu since this module has yet not reached a stable
1208            status (ie. 1.0).
1209    
1210    2004-11-18  Jan-Oliver Wagner <[email protected]>
1211    
1212            Now the hit test considers the size of point symbols.
1213    
1214            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
1215            'size' defaulting to the previously fixed value 5.
1216            Extended doc-string.
1217            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
1218            for symbols.
1219            Now the size of the largest point symbol is determined to find out
1220            about whether the point has been hit.
1221            This fixes the problem that only clicks inside a fixed distance of
1222            5 where found.
1223    
1224    2004-11-17  Jan-Oliver Wagner <[email protected]>
1225    
1226            Another open issue fixed regarding sizeable symbols: correct rendering of
1227            selected symbols.
1228    
1229            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
1230            Added consideration of the specific size of point symbols.
1231            The property for each point symbol is retrieved and the size applied
1232            for the rendering method.
1233            Added doc-string.
1234    
1235    2004-11-16  Jan-Oliver Wagner <[email protected]>
1236    
1237            Changed way of Extension Registry for gns2shp and profiling.
1238    
1239            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
1240            __init__.py).
1241    
1242            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
1243            of the actual gns2shp module.
1244    
1245            * Extensions/profiling/profiling.py: Removed registry entry (moved to
1246            __init__.py).
1247    
1248            * Extensions/profiling/__init__.py: Added registry entry and the importing
1249            of the actual profiling module.
1250    
1251    2004-10-28  Bernhard Reiter <[email protected]>
1252    
1253            * Extensions/svgexport/: Minor improvements to doc strings.
1254    
1255    2004-10-07  Jan-Oliver Wagner <[email protected]>
1256    
1257            Further elements for sizable point objects now
1258            making this feature usable though not yet complete.
1259    
1260            * Thuban/Model/save.py (SessionSaver.write_classification): Write
1261            attribute 'size' for cldata when the shape layer is of point type.
1262            This also now make the test_load.py tests happy.
1263    
1264            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
1265            gradient.
1266    
1267            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
1268            ID_SELPROP_SPINCTRL_LINEWIDTH.
1269            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
1270            (ID_SELPROP_SPINCTRL_SIZE): New Id.
1271            (SelectPropertiesDialog.__init__): Added a second spin control
1272            for the size in case the corresponding layer is of point type.
1273            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
1274            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
1275            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
1276            and refresh preview.
1277    
1278    
1279    
1280    2004-10-04  Martin Schulze  <[email protected]>
1281    
1282            * Extensions/wms/test/test_parser.py
1283            (TestWMSCapabilitiesParser.test_compareLists): Added missing
1284            self-test for compareLists()
1285            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
1286            self-test for compareDicts()
1287            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
1288            to verify the test routine fails with non-equal arguments
1289            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
1290            to verify the test routine fails with non-equal arguments
1291    
1292    2004-10-03  Jan-Oliver Wagner <[email protected]>
1293    
1294            First elements for sizeable point objects.
1295    
1296            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
1297    
1298            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
1299    
1300            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
1301            of a corresponding argument is given.
1302            (TestSymbolSize): New. Test the size attribute of cldata.
1303    
1304            * Thuban/Model/classification.py: Removed some trailing whitespaces.
1305            (ClassGroupProperties.__init__): Set default size.
1306            (ClassGroupProperties.SetProperties): Set the size.
1307            (ClassGroupProperties.GetSize): New. Return the size.
1308            (ClassGroupProperties.SetSize): New. Set the size.
1309            (ClassGroupProperties__eq__): Compare also size.
1310            (ClassGroupProperties__repr__): Print also size.
1311    
1312            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
1313            the size attribute.
1314    
1315            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
1316            Also, now there is a return value that indicates whether the drawing
1317            size exceeded the given rect extent and if so the new extent.
1318            Finally, point objects are drawn depending on the size. If either
1319            the width or height is exceeded, the new extent is returned.
1320            (ClassRenderer.Draw): Now when calling the previewer drawing function,
1321            evaluate the return value and, if not None, adapt the grid widget size
1322            accordingly and redraw again.
1323    
1324            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
1325            If the draw function is for points, call it with the size as additional
1326            parameter.
1327            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
1328            the size. Compute the radius using the size.
1329    
1330            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
1331            that Thuban supports size, apply this correctly.
1332    
1333            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
1334    
1335    2004-10-03  Jan-Oliver Wagner <[email protected]>
1336    
1337            * Doc/manual/thuban-manual-de.xml: Started translation of
1338            Map chapter.
1339    
1340    2004-10-01  Martin Schulze  <[email protected]>
1341    
1342            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
1343            argument for general use through properties-dialog selector
1344            
1345            * Thuban/UI/classifier.py: Register properties dialog classes for
1346            both provided layer classes/types.
1347    
1348            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
1349            map can be retrieved through the parent which is passed to the
1350            constructor anyway and doesn't require an argument of its own,
1351            required for the unification of arguments for general use through
1352            properties-dialog selector.
1353            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
1354            whether a dialog is already opened (and raising it to the users
1355            attention) and creating a new dialog into a function of its own
1356            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
1357            method
1358            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
1359            global registration of properties dialog classes (which are indeed
1360            layer-specific).
1361    
1362            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
1363            for general use through properties-dialog selector, the map can be
1364            retrieved through the parent and doesn't require an argument of
1365            its own.
1366    
1367            * Extensions/wms/wms.py: Register the properties dialog class for
1368            the provided WMS layer
1369    
1370    2004-09-28  Jan-Oliver Wagner <[email protected]>
1371    
1372            New feature: Registry for Extensions.
1373    
1374            * Thuban/UI/extensionregistry.py: This module defines a registry for
1375            Extensions.
1376    
1377            * Thuban/UI/about.py (About.__init__): Added description
1378            of the registered extensions with all of the information.
1379    
1380            * Thuban/Model/extension.py (Extension): Improved doc-string.
1381    
1382            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
1383            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
1384            Extensions/wms/wms.py: Added registration of the extension.
1385    
1386    2004-09-27  Bernhard Reiter <[email protected]>
1387    
1388            More fixes to svgexport to make used ids unique and
1389            conforming to XML's Name production.
1390    
1391            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
1392            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
1393            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
1394            Added Bernhard R. as author.
1395            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
1396            concatenation char now (makes test_make_ide_nosetbaseid() valid).
1397            Also transform second id part with "%d" and catch the TypeError
1398            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
1399            Corrected typo inBernhard's author line.
1400            (SetBaseID): Return the transformed base id. Transform characters
1401            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
1402            import binascii. If to be set string starts with "xml" or so, add "t".
1403            (draw_shape_layer_incrementally): use the returned value of SetBaseID
1404            for used_baseids checks.
1405    
1406    2004-09-25  Bernhard Herzog  <[email protected]>
1407    
1408            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1409            Remove a debug print and some tab characters.
1410    
1411    2004-09-25  Bernhard Reiter <[email protected]>
1412    
1413            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
1414            (SetBaseID, SetID, make_id): Improved docstring comments to explain
1415            the interaction of the three functions and the XML id contrains.
1416    
1417    
1418    2004-09-23  Jan-Oliver Wagner <[email protected]>
1419    
1420            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
1421            Module.
1422    
1423            * Doc/README: Added info on ThubanModel.xmi.
1424    
1425    2004-09-23  Jan-Oliver Wagner <[email protected]>
1426    
1427            * Doc/README: New. Some info about how to generate technical
1428            documentation from the source code.
1429            This text was send to the Thuban developer mailing list on
1430            September 21st 2004 by Bernhard Reiter.
1431    
1432    2004-09-21  Bernhard Reiter <[email protected]>
1433    
1434            Improved the svgexport to only use unique ids. Will issues
1435            an error message dialoge when two layer names are the same.
1436            ShapeIDs are now added with a dash within the svg ids.
1437    
1438            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
1439            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
1440            (TestSVGRenderer): New test class with test_make_in() and
1441            test_check_for_layer_name_clash()
1442            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
1443            and draw_shape_layer_incrementally() to not use a baseid twice,
1444            satisfying test_check_for_layer_name_clash()
1445            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
1446            test_make_in().
1447            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
1448            and wxICON_HAND.
1449            (write_to_svg): Put dc and rendering in a try statement and on
1450            catching SVGmapWriterError notify the user and delete the target file.
1451    
1452    2004-09-20  Bernhard Reiter <[email protected]>
1453    
1454            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
1455    
1456    2004-09-03  Jan Sch�ngel  <[email protected]>
1457    
1458            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
1459            small bug with the line color. Now the line color will now only set
1460            if it is set in Thuban an not Transparent.
1461            
1462            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
1463            deleting the layers from mapfile. Now all layers will delete backwards
1464            from the last.
1465    
1466    2004-08-20  Silke Reimer <[email protected]>
1467    
1468            * Thuban/Model/layer.py:
1469            Fixes bug in projection handling: Otherwise very large region might not
1470            have valid values in the layer's projection.
1471    
1472    2004-08-20  Silke Reimer <[email protected]>
1473    
1474            * Thuban/UI/about.py:
1475            small changes to be consistent with coding style.
1476              
1477    2004-08-13  Martin Schulze  <[email protected]>
1478    
1479            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
1480            Adjusted a comment
1481    
1482    2004-08-11  Silke Reimer <[email protected]>
1483    
1484            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
1485                    too many and too enhanced imports of locale
1486    
1487    2004-08-10  Silke Reimer <[email protected]>
1488    
1489            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
1490                    function unicodeToLocale() to convert special characters to users
1491                    locale encoding
1492    
1493    2004-08-10  Jan-Oliver Wagner <[email protected]>
1494    
1495            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
1496            lower case letter'
1497    
1498    2004-08-09  Jan Sch�ngel  <[email protected]>
1499    
1500            * ChangeLog: Rewrite the last ChangeLog entry to follow
1501            the standard way.
1502    
1503            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
1504            the function where it is needed, because it don't works if it stands
1505            at the beginning.
1506            (MF_Layer.__init__): Removed the extra numclassed variable. Now
1507            numclasses from the mapscript will be used.
1508            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
1509            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
1510            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
1511            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
1512            (MF_Map.create_new_layer): New. A new Layer is created and associated
1513            with the mapscript object.
1514            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
1515            the mapscript.
1516            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
1517            linked to the layer in thuban, else the layerobject linked to the
1518            thubanlayer will be used.
1519            AnnotationLayer will now store the filename of the shapefile.
1520            (MF_Map.remove_layer): If a layer is removed the associated object
1521            must be set new.
1522            
1523            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
1524            layers which are exists in thuban to the mapobj. All removed Layers
1525            will be removed from the mapobj.
1526            Added comments to all functions.
1527            (thuban_to_map): No layer will be removed here.
1528            
1529            * Extensions/umn_mapserver/mf_handle.py
1530            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
1531            Layersettings for the mapserver kann be edited.
1532    
1533            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
1534            imported, will be linked with the associated MF_Layer.
1535            (import_mapfile): All layers, which are not selected, will be removed.
1536            Disable the "import layer from mapfile" menu option.
1537    
1538            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
1539            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
1540            layer on permanently.
1541    
1542    2004-08-03  Jan Sch�ngel  <[email protected]>
1543    
1544            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
1545            New. This function removes all metadata
1546            (MF_Layer.set_group): New. Set the group setting.
1547            (MF_Layer.get_group): New. Get the group setting.
1548            (MF_Map): Removed the extra numlayers variable, used the mapscript
1549            parameter instead.
1550            (MF_Map.get_numlayers): New. This get numlayers.
1551            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
1552            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
1553            if the object is an instance. Also added the annotation layer here to
1554            export, but only the layer is created in the mapfile.
1555    
1556            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
1557            the check if a mapobj exist, because its not needed anymore. The
1558            export function is only available if a mapobj exist.
1559            Use the new function to remove all layers.
1560            
1561            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
1562            option and the metadata button. The layer dialog is temporary disabled.
1563            (Metadata_CustomDataTable): Added some functions to show the grid
1564            correct.
1565    
1566            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
1567            the number of layer from import_mapfile to this function.
1568            (AnnotationLayer): New. This Class shows the Annotation layer in
1569            thuban. The layer don't do anything. It's only to show the layer
1570            and to save the layer order.
1571            (add_annotationlayer): New. Import an annotation layer to thuban.
1572            (select_layer2import): New. Import only layers to thuban and not
1573            the other settings like projection or scalebar.
1574            (create_new_mapfile): Moved the _has_umn_mapobj function and the
1575            create_new_mapfile functions from mf_handle.py to mf_import.py.
1576            
1577            * Extensions/umn_mapserver/sample/iceland.map: Added the group
1578            parameter to the roads and cultural layers. Also added a new
1579            Annotation Layer for the cultural points.
1580    
1581            * Extensions/umn_mapserver/sample/iceland.html: Added the select
1582            option for the annotation layer.
1583    
1584            * Extensions/umn_mapserver/sample/index.html: Added the start
1585            parameter for the annotation layer.
1586    
1587    2004-08-01  Jan-Oliver Wagner <[email protected]>
1588    
1589            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
1590            translation completed.
1591    
1592            * Doc/manual/thuban-manual.xml (Chapter Session Management):
1593            Fixed unprecise description for Save Session.
1594    
1595    2004-07-31  Jan-Oliver Wagner <[email protected]>
1596    
1597            Started translation of Users Manual into german.
1598    
1599            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
1600    
1601            * Doc/manual/Makefile: Added build instructions for german
1602            users manual.
1603    
1604            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
1605    
1606    2004-07-28  Jan Sch�ngel  <[email protected]>
1607    
1608            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
1609            functions. Now all metadata will handle by the function and its not
1610            needed to initialize it from outside. Therefor the associated mapobj
1611            will be stored in the Metadata Object. So we can use the special
1612            functions from the associated mapobj to get the Metadata.
1613            Therefor all initialization code for the metadata is removed from the
1614            other classes.
1615            (MF_Layer): Added a function to get the metadata object.
1616            (MF_Map): Added a function to set the mappath, the path where
1617            the mapfile ist stored.
1618    
1619            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
1620            to set the extent in the mapfile. Now the code is set by the displayed
1621            data in the Thuban-view.
1622            (export_mapfile): The shapepath is now set empty, until relative
1623            pathnames are supported.
1624    
1625            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
1626            metadata. Yet only mapfile metadata are supported. Layer and class
1627            supported are not implemented.
1628            Added a dialog to handle layer informations. The dialog only shows the
1629            selected layer at the moment.
1630    
1631            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
1632            code for setting the extent in thuban. Now the extent is set to the
1633            given extent from the mapfile.
1634            Fixed a logical mistake. Now the extent is set when realy a layer is
1635            loaded, and not if one is selected to load.
1636    
1637            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
1638            move the shown map in the browser.
1639    
1640            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
1641            line to the mapobj and added metadata to the political layer.
1642    
1643            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
1644            for Metadata.
1645    
1646    2004-07-26  Martin Schulze  <[email protected]>
1647    
1648            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
1649            ClassMapper
1650    
1651            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
1652            case for the new ClassMapper
1653    
1654    
1655    2004-07-22  Bernhard Herzog  <[email protected]>
1656    
1657            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
1658            visible extent of the map in projected coordinates
1659    
1660            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
1661            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
1662            tests.
1663            (SimpleViewPortTest.test_visible_extent): New. The real test for
1664            VisibleExtent()
1665    
1666    2004-07-22  Bernhard Herzog  <[email protected]>
1667    
1668            * test/test_viewport.py: Use support.run_tests as the main
1669            function when running asa script.
1670    
1671    2004-07-22  Jan Sch�ngel <[email protected]>
1672    
1673            * Extensions/umn_mapserver/mf_export.py: Added "import os"
1674            Removed the old "import Thuban.UI.mainwindow" code.
1675            (tbextent_to_map): Removed the extra function and at the code direct
1676            to "thuban_to_map" function.
1677            (write_creatorcomment): Added. Now a short comment is added to the
1678            beginning of an generated mapfile.
1679            (export_mapfile): Now the Path and filename are saved in to variables,
1680            and not together in one variable. This is needed for the new
1681            write_creatorcomment function.
1682                    
1683            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
1684            import module "re". Also added Range and the ClassGroupRange import
1685            from Thuban. Both are needed for the new range expression import.
1686            (create_rangeexpression): Added. Creates a Range Expression in Thuban
1687            style from a given mapfile expression.
1688            (added_rasterlayer): Make some small code changes. The shapepath is
1689            now stored in an extra variable and the clazz_name is set empty if no
1690            class name set in the mapfile.
1691            Changed the Error message for Range Expressions, becaus the new
1692            function create a error string which will be shown in the dialog.
1693    
1694            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
1695            range expression import.
1696    
1697    2004-07-21  Jan-Oliver Wagner <[email protected]>
1698    
1699            * Extensions/umn_mapserver/README: Added hint that
1700            installation as root can be avoided. Removed all tabs.
1701    
1702    2004-07-16  Bernhard Herzog  <[email protected]>
1703    
1704            * test/test_viewport.py
1705            (ViewPortTest.test_changing_map_projection): Check that changing
1706            the projection of an empty map shown in a viewport doesn't lead to
1707            exceptions in the viewport's handler for the
1708            MAP_PROJECTION_CHANGED messages
1709    
1710            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
1711            try to keep the same region visible when the map actually contains
1712            something
1713    
1714    2004-07-15  Jan Sch�ngel <[email protected]>
1715    
1716            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
1717            mappath directly from the mapobj. Is needed because of the changes
1718            in mf_import.py.
1719            (MF_Layer.add_thubanclass): Added a new comment.
1720            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
1721            mapobj is empty there is no extent get from thuban an so no one can
1722            set to th mapobj.
1723            
1724            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
1725            the discription.
1726            Split the funktion in to three smaller ones. The new functions are
1727            add_rasterlayer, add_polygonlayer and select_layer2import.
1728            Removed the mapfilepath and filepath initialisation, because its know
1729            include in the new functions.
1730            Now nothing will be imported if cancel is pressed in the
1731            layer choice dialog.
1732    
1733    2004-07-14  Jan Sch�ngel <[email protected]>
1734    
1735            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
1736            import.
1737            (MF_Symbolset): Removed the extra variable for numsymbols.
1738            (MF_Class.__init__): Added a comment to the exception clause.
1739            Removed the extent init, because it was not needed anymore.
1740            (MF_Layer.add_thubanclass): Added the code to set the class name to
1741            the expression value from thuban if no label is defined.
1742            Added the code to export Range expressions from thuban to the mapfile.
1743            (MF_Map.set_extent): Removed the exception and replace it by some if
1744            code. If the size of a map is not defined the size will be set to 1,1.
1745            This is necessary because if the extent is set, mapscript checks if
1746            the size is greater than zero.
1747            (MF_Web): Added the get and set function for the template.
1748    
1749            * Extensions/umn_mapserver/mf_export.py: Added the function to check
1750            if a mapobject exists and used it to set the status of the menu items.
1751            If no mapfile exists the settings could not be edditied.
1752            Define after which menuitem the exportitem will include.
1753            
1754            * Extensions/umn_mapserver/mf_handle.py: Removed the import
1755            Thuban.UI.mainwindow clause, because it is not needed.
1756            Added the command Refresh() to all "OnChangeColor()" functions,
1757            because the color preview window was not updated on a color change.
1758            Added the function to check if a mapobject exists and used it to set the
1759            status of the menu items. If no mapobject exists the settings could not
1760            be edditied.
1761            (Map_Dialog): Moved the imagetype selector from the
1762            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
1763            (Web_Dialog): Removed the name label and added the template textbox.
1764    
1765            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
1766            the exception handling on loading the layers by an if statement. It
1767            is not necessary to us the exception there.
1768            The Filepath creation now use os.path.join to build the path.
1769    
1770            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
1771            definition from global to the setUp function. Now the testMap will
1772            initialize new on each test.
1773    
1774            * Extensions/umn_mapserver/sample/iceland.map: Include three new
1775            classes in the Line Layer, to test logical Expressions.
1776            Set the status of the class "Point9" in the Point Layer to off
1777            
1778    2004-07-13  Bernhard Herzog  <[email protected]>
1779    
1780            * Thuban/UI/baserenderer.py
1781            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
1782            optimization that tries not to draw layers under a raster layer.
1783            The bug was harmless.  All it effectively did was to produce The a
1784            strange messages about not being able to draw Layer instances for
1785            all vector layers below a raster layer which would be invisible
1786            anyway because the raster layer currently always covers the entire
1787            window
1788    
1789    2004-07-08  Jan Sch�ngel <[email protected]>
1790    
1791            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
1792            a list of supported outputformats. This formats are not alle supported
1793            because there is no possibility to get the outputformat without the
1794            name known. Make some formal changes to the code.
1795            (MF_Map.set_name()): Fixed a bug if the name is None.
1796    
1797            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
1798            statement, because its not needed anymore. The Outputformat is now
1799            given as string from the object. Make some formal changes to the code.
1800    
1801            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
1802            most of the new setting which were added during the last changes.
1803            Removed the MF_Size Test.
1804            
1805            * Extensions/umn_mapserver/test/test.map: Added a new class to the
1806            cultural Layer to test expressions and the the status of that layer
1807            from on to default.
1808            Changed the data path the the correct Thuban Data
1809            Added the Outputformat Object and Symbol Object
1810            
1811    2004-07-07  Jan Sch�ngel <[email protected]>
1812    
1813            * Extensions/umn_mapserver/mapfile.py: Added some new
1814            settings to edit (outputformat, label, imagetype)
1815    
1816            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
1817            the Label Dialog and add the OutputDialog.
1818            Make some changes to the code order.
1819    
1820    2004-07-06  Jan Sch�ngel <[email protected]>
1821    
1822            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
1823            and line Obj and add the scalebar_status_type, scalebar_style_type and
1824            scalebar_position_type.
1825            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
1826            are only used to create a Symbol like the circle in Thuban.
1827            Added the scalebarObject (MF_Scalebar)
1828            (MF_Class): Added set_status and get_status.
1829            (MF_Layer.add_thubanclass): Added code to set the class status
1830            (MF_Map): Added code to handle the symbols and scalebar
1831            (MF_Label): Added the set_partials and get_partials functions
1832            
1833            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
1834            from mapfile. Added a function to create a circle object like the one
1835            from thuban if no one exists.
1836            
1837            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
1838            press ok in the assosiated dialog and not at the end of the
1839            colordialog.
1840            Added the Dialog for the Scalebar.
1841            (Label_Dialog): Added the offset option
1842    
1843            * Extensions/umn_mapserver/mf_import.py: Added code to import the
1844            status of the Classes.
1845            Fixed a bug with the projection. Now the to_meter parameter will be
1846            added to the Projection only if it doesn't exists.
1847    
1848    2004-07-01  Jan Sch�ngel <[email protected]>
1849    
1850            Added the functionality to handle the content thuban is not
1851            able to handle directly.
1852    
1853            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
1854            Thuban with the possibility to edit the mapfile content.        
1855            
1856            * Extensions/umn_mapserver/mf_import.py: Added the possibility
1857            to import mapfiles without any layer selected. So it is possible
1858            to edit the other settings in a mapfile.
1859            (import_mapfile): Added code to use the editing functions.
1860            Added the possibility to import the projection to a layer if one
1861            is defined.
1862            Status settings (On,Off) will now set in thuban (visible, invisible).
1863            fixed a bug with with classnames. If no classname is set in mapfile
1864            the value in Thuban will set to the expression.
1865            
1866            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
1867            possibility to save a new mapfile or use the old one which is
1868            imported or new created.
1869            Added code to use the editing functions.
1870            Remove some not needed import statements
1871    
1872            * Extensions/umn_mapserver/mapfile.py: Added new types which are
1873            need for the editing functions.
1874            Added needed set-functions for the editing functions.
1875            Added the possibility to export rasterimages.
1876            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
1877            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
1878            moment.
1879            (MF_Class.set_thubanstyle): Now point layers will set to a default
1880            symbol to show a circle in mapserver and not only a 1px dot.
1881            (MF_Style.__init__): Fixed a bug with the color. Color was not set
1882            correct before.
1883            (MF_Size): Removed, because it is not needed.
1884            
1885            * Extensions/umn_mapserver/README: Added the hints to use the
1886            export and editing functions, too.
1887    
1888            * Extensions/umn_mapserver/sample/iceland.map: Added the
1889            new parameter "UNITS METERS".
1890            Change the political layer to status OFF.
1891    
1892            * Extensions/umn_mapserver/sample/README: Added some
1893            more details to setup the sample in the MapServer.
1894            
1895    2004-06-26  Bernhard Reiter <[email protected]>
1896    
1897            * Extensions/svgexport/test/test_svgmapwriter.py:
1898            Removed class VFile and used standard StringIO instead.
1899    
1900    2004-06-23  Jan Sch�ngel  <[email protected]>
1901    
1902            Add the export function to the umn_mapserver extension.
1903    
1904            * Extension/umn_mapserver/mf_export.py: New. This module extents
1905            Thuban with the possibility to export the Thuban content.
1906    
1907            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
1908            with the export module. Especially added the possibility to
1909            add thuban objects directly to the map objects.
1910    
1911            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
1912            because of the hint from Bernhard Herzog.
1913            Corrected the handling of absolute pathnames.
1914            Changed the Text of the Menu-Item, now the beginning is upper case.
1915    
1916            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
1917    
1918    2004-06-16  Jan Sch�ngel  <[email protected]>
1919    
1920            Add a sample and make some changes.
1921    
1922            * Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx
1923            import from * to explicit used statements. Changed the
1924            Thuban.UI.mainwindow import phrase, too.
1925            (import_mapfile):Corrected a clerical mistake.
1926            Added wxCHANGE_DIR in OpenFile Dialog.
1927            Added a MultipleChoiceDialog, to select the layers to load from
1928            mapfile into thuban. Thereby the projection is only set if one layer
1929            is selected.
1930            Added the possibility to handle relative pathnames which uses
1931            up-level references.
1932            Removed some doubled code.
1933            Corrected an error with integer values used as label in thuban
1934            ClassGroup.
1935            
1936            * Extensions/umn_mapserver/sample: New.
1937    
1938            * Extensions/umn_mapserver/sample/README: New. Describes the
1939            usage of the sample files.
1940    
1941            * Extensions/umn_mapserver/sample/iceland.map: New. This is
1942            a suitable .map-file for the iceland data.
1943    
1944            * Extensions/umn_mapserver/sample/index.html: New. The template
1945            for the mapfile.  
1946    
1947            * Extensions/umn_mapserver/sample/iceland.html: New. Initialisation
1948            file for the Iceland Application on web.
1949    
1950            * Extensions/umn_mapserver/README: Corrected a inaccuracy and added
1951            some details.
1952    
1953            * Extensions/umn_mapserver/test/test_mapserver
1954            (mapserver_import_Test_generalClasses.test_MF_Color):
1955            Corrected the thubancolor test.
1956    
1957    2004-06-15  Jan Sch�ngel  <[email protected]>
1958    
1959            * Extensions/umn_mapserver/README: New. Install instruction.
1960    
1961    2004-06-14  Bernhard Reiter <[email protected]>
1962    
1963            * libraries/thuban/cpl_mfile.h: Added copyright header.
1964    
1965            * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
1966            Free Software License so that it is most useful with gdalwarp
1967            and bmpdataset.
1968    
1969    2004-06-14  Bernhard Herzog  <[email protected]>
1970    
1971            * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
1972            import of wxPython.wx itself (as opposed to the contents of
1973            wxPython.wx).  For some reason wxPython.wx is available as
1974            wxPython.wx.wx in at least some 2.4 releases.  Fixes RT#2482
1975            wrt. wxPython 2.4.
1976    
1977    2004-06-10  Jan Sch�ngel  <[email protected]>
1978    
1979            Initial version of new extension "umn_mapserver".  This extension aims
1980            to manage configuration for the UMN MapServer application.  This
1981            inital version just imports the .map-files and displays all, Thuban is
1982            capable of.
1983    
1984            * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
1985    
1986            * Extensions/umn_mapserver/test/README: New. Describes how to run the
1987            tests.
1988    
1989            * Extensions/umn_mapserver/test/test.map: New. This is a test
1990            .map-file for automated tests of the umn_mapserver extension of
1991            Thuban.
1992    
1993            * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
1994            UMN Mapserver classes.
1995    
1996            * Extensions/umn_mapserver/__init__.py: New. Init to make this
1997            directory a package.
1998    
1999            * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
2000            '.map'-file objects.
2001    
2002            * Extensions/umn_mapserver/mf_import.py: New. This module extends
2003            Thuban with the possibility to handle UMN MapServer mapfiles.
2004    
2005    2004-06-03  Bernhard Herzog  <[email protected]>
2006    
2007            * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
2008            to a tuple before using it as arguments to the % operator.  This
2009            fixes the formatting issue filed in RT#2239 on 2004-01-13 and
2010            reported today on thuban-list by Jan Sch�ngel
2011    
2012            * test/test_layer.py (TestLayerModification.setUp): Save the
2013            filename as an instance variable so we can refer to it in tests
2014            (TestLayerModification.test_tree_info): Uncomment this method
2015            again and make it work.  This tests for the formatting issue
2016            filed in RT#2239 on 2004-01-13
2017    
2018    2004-05-28  Bernhard Herzog  <[email protected]>
2019    
2020            * Thuban/UI/baserenderer.py: Fix some typos.
2021    
2022    2004-05-18  Jan-Oliver Wagner <[email protected]>
2023    
2024            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
2025            by increasing a field size.
2026    
2027    2004-05-17  Bernhard Herzog  <[email protected]>
2028    
2029            Update to newest shapelib and get rid of Thuban specific
2030            extensions, i.e. use the new DBFUpdateHeader instead of our
2031            DBFCommit kludge
2032    
2033            * libraries/shapelib/shpopen.c: Update to version from current
2034            shapelib CVS.
2035    
2036            * libraries/shapelib/shapefil.h: Update to version from current
2037            shapelib CVS.
2038    
2039            * libraries/shapelib/dbfopen.c: Update to version from current
2040            shapelib CVS.
2041            (DBFCommit): Effectively removed since shapelib itself has
2042            DBFUpdateHeader now which is better for what DBFCommit wanted to
2043            achieve.  
2044            We're now using an unmodified version of dbfopen.
2045    
2046            * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
2047            value '1' to the Lib.dbflibc extension.  This simply reflects the
2048            shapelib and pyshapelib updates
2049    
2050    2004-05-16  Jan-Oliver Wagner <[email protected]>
2051    
2052            Finished introduction of Menu.FindOrInsertMenu.
2053    
2054            * Extensions/drawshape/drawshape.py: Add the command
2055            to the experimental menu additionally to the toolbar.
2056    
2057            * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
2058            finding menu on its own.
2059    
2060            * Doc/manual/thuban-manual.xml: updated sample file
2061            to use FindOrInsertMenu().
2062    
2063            * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
2064            instead of finding menu on its own.
2065    
2066    2004-05-11  Jan-Oliver Wagner <[email protected]>
2067    
2068            * test/test_menu.py (MenuTest.test): Added testing
2069            of method Menu.FindOrInsertMenu.
2070    
2071    2004-05-10  Jan-Oliver Wagner <[email protected]>
2072    
2073            Introduce and use Menu.FindOrInsertMenu.
2074    
2075            * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
2076              given menu or, if not found, insert it.
2077    
2078            * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
2079            /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
2080            /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
2081            menu on its own.
2082    
2083    2004-05-06  Jan-Oliver Wagner <[email protected]>
2084    
2085            Introduce a abstract ColorDialog class and remove
2086            and outdated file.
2087    
2088            * Thuban/UI/proj4dialog.py: Removed. It is has been
2089            replaced by projdialog for quite a while and is not used
2090            anymore.
2091    
2092            * Thuban/UI/colordialog.py: New. Abstraction for color selection
2093            dialog(s).
2094    
2095            * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
2096            Now calls the abstract ColorDialog instead of wxColourDialog.
2097            This also removed the dependency to Color class conversion
2098            from this function.
2099    
2100    2004-05-04  Frank Koormann  <[email protected]>
2101    
2102            * Extensions/bboxdump/__init__.py: Fixed string left over from
2103            copying.
2104    
2105            * Extensions/bboxdump/bboxdump.py (bboxdump):
2106            Use layer.ShapeStore().AllShapes() to loop over shapes instead of
2107            xrange(layer.NumShapes()). Compile the bboxmessage from a list
2108            of formatted outputs (string.join) instead of appending to the
2109            message. Two progress bar dialogs to report progress on the sometimes
2110            lenghty processing.
2111    
2112    2004-04-22  Frank Koormann  <[email protected]>
2113    
2114            New Extension to dump bounding boxes of all shapes of the selected
2115            layer. An optional column can be specified to group the objects,
2116            in this case the bounding box is a union of the separate boxes.
2117            Dump can be displayed in a ScrolledMessageDialog or written to file.
2118            The Extension is simply a combination of available and well tested
2119            Thuban functionality.
2120    
2121            * Extensions/bboxdump/__init__.py: New: Init to make this
2122            directory a package.
2123    
2124            * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
2125            all shapes of the selected layer.
2126    
2127    2004-04-22  Jan-Oliver Wagner <[email protected]>
2128    
2129            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
2130            strings to be i18n now.
2131    
2132    2004-04-18  Jan-Oliver Wagner <[email protected]>
2133    
2134            Changing popup menu of legend from direct building
2135            to using the Menu construction as used for the mainwindow.
2136    
2137            * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
2138            layer_to_bottom, layer_visibility
2139            (MainWindow.LayerToTop): New. Put current layer to the top.
2140            (MainWindow.LayerToBottom): New. Put current layer to bottom.
2141            (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
2142            Replace 1,0 by True, False.
2143            (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
2144            current layer.
2145            (MainWindow.LayerShowTable): Removed raising of dialog.
2146            (_has_selected_layer_visible): New. Support function.
2147    
2148            * Thuban/UI/legend.py: ID_POP_xxx: removed.
2149            (LegendPanel.__init__): Removed EVT_MENU bindings.
2150            (LegendTree._OnRightClick): Replace direct creation of
2151            menu via wx Classes by applying the menu definition
2152            as of Menu class of menu.py.
2153            
2154    2004-04-16  Jan-Oliver Wagner <[email protected]>
2155    
2156            * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
2157        button string to stronger clearify that Thuban will be closed when hitting
2158            the button.
2159    
2160            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
2161            Now for layers without a ShapeStore a corresponding message is given
2162            to the user, that this layer has no table to show.
2163    
2164    2004-04-15  Martin Schulze  <[email protected]>
2165    
2166            * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
2167            recalculate the format for the internal render engine as well.
2168    
2169            * Extensions/wms/properties.py (wmsProperties): First start for a
2170            properties dialog.  It's functional for a first selection of
2171            layers, but still has some weired wxWidgets/GTK problems but
2172            beautification can be done later.
2173    
2174            * Extensions/wms/layer.py: Added more documentation
2175            (WMSLayer.getFormats): New: Return list of supported image formats
2176            by the WMS server
2177            (WMSLayer.getLayers): New: Return the list of layer names
2178            supported by the WMS server
2179            (WMSLayer.getLayerTitle): New: Return the title of the named layer
2180            (WMSLayer.getWMSFormat): New: Return the image format that is used
2181            for WMS GetMap requests
2182            (WMSLayer.setWMSFormat): New: Set the image format that is used
2183            for WMS GetMap requests
2184            (WMSLayer.__init__): Move away from using only one layer to using
2185            a list of layers (unsorted at the moment, though).
2186            (WMSLayer.getVisibleLayers): New: Return the list of names for all
2187            visible layers
2188            (WMSLayer.setVisibleLayers): New: Set the list of names for all
2189            visible layers
2190    
2191            * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
2192            order to establish a clean structure.
2193    
2194            * Extensions/wms/layer.py: Moved the WMS layer into a file on its
2195            own in order to establish a clean structure.
2196    
2197    2004-04-13  Martin Schulze  <[email protected]>
2198    
2199            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
2200            support for oldstyle (WMS 1.0 apparently) image format
2201            specification.
2202    
2203            * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
2204            supported graphic formats back to JPEG and BMP, PNG and others are
2205            too *cough* experimental...  Sorry, I meant to filter this out
2206            before I committed this part.  This should make the WMS extension
2207            run from CVS again.
2208            (wms_dialog): Reset an empty URL to None so that the subsequent
2209            program can depend on this, since the dialog will indeed return an
2210            empty URL, causing another declaration of love by Python.
2211    
2212            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
2213            Whenever a native BoundingBox request cannot be fulfilled, check
2214            whether the requested SRS is EPSG:3426, in which case return the
2215            LatLonBoundingBox values.
2216    
2217            * Extensions/wms/test/test_parser.py
2218            (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
2219            ignoring AUTO:* SRS.
2220            (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
2221            Added another test method to test whether the LatLonBoundingBox
2222            values will be returned if BoundingBox values are requested with
2223            SRS set to EPSG:3426.
2224    
2225            * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
2226            Added rudimentary support for non-EPSG SRS, i.e. ignore them for
2227            the moment by placing them into a variable which is currently
2228            unused.  Also test whether the EPSG SRS is numerical as it should
2229            be and add an error message if it is not.
2230    
2231            * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
2232            appear in the real world as well.  Since we cannot handle them yet
2233            (OGCLib can't either), we will ignore them for the moment.
2234    
2235            * Extensions/wms/parser.py: Use a variable for denoting the sample
2236            filename
2237            (WMSCapabilitiesParser.peekLayers): Added support for error
2238            messages during grok().  They will be aggregated in an array and
2239            may be displayed later.  We may have to add a classification
2240            "Warning" and "Error" to this.  That requires more experience,
2241            though, since not every error may be lethal.
2242    
2243            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
2244            ShowTable() dialog/frame when the user attempts to display it
2245            while it has been opened before already and not closed again.
2246    
2247    2004-04-11  Martin Schulze  <[email protected]>
2248    
2249            * Extensions/wms/infodialog.py: Adjusted the class documentation
2250    
2251            * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
2252            Switch to using Thuban{Begin,End}BusyCursor instead of the pure
2253            wxWidgets variants.
2254            (WMSLayer.__init__): The epsg_id variable is named top_srs now.
2255    
2256            * Extensions/wms/infodialog.py: Added an information dialog that
2257            will display various information about the WMS current resource,
2258            so that additional information such as the title, the abstract,
2259            fees and access constraints can be displayed for the user if they
2260            are documented in the WMS XML.
2261    
2262    2004-04-10  Martin Schulze  <[email protected]>
2263    
2264            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
2265            string handling.  It's "foo".lower() and not lower(foo) without
2266            lower imported from strings or something.
2267    
2268            * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
2269            from capabilities.py and parser.py.  Implement priority list for
2270            supported graphics formats, take care of wbmp != bmp.  PNG, TIFF
2271            and GIF are supported here, but not yet by main Thuban.  Hence,
2272            support for them may be removed later.  Special contribution to
2273            usability: get wxWidgets to change the cursor when we're waiting
2274            for data from the network so the user won't start to worry.  This
2275            causes a redrawing error/warning, though.
2276    
2277            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
2278            the DOM object.
2279    
2280    2004-04-01  Martin Schulze  <[email protected]>
2281    
2282            * Extensions/wms/capabilities.py: Adjusted documentation
2283            (WMSCapabilities.__init__): Improved documentation, fixed syntax
2284            (WMSCapabilities.saveCapabilities): Only catch IOError when
2285            handling files
2286            (WMSCapabilities.loadCapabilities): Only catch IOError when
2287            handling files
2288            __main__: corrected variable naming
2289            (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
2290            class a specialisation of WMSCapabilitiesParser as well.  Also
2291            execute grok() after loading or fetching capabilities, if that
2292            went well, so that subsequent calls can already access the data.
2293            (WMSCapabilities.getVersion): Export the used version of the
2294            GetCapabilities request, so we can use it for subsequent calls,
2295            i.e. for GetMap requests.
2296            (WMSCapabilities.fetchCapabilities): Added proper error handling
2297            when the GetCapabilities request failed, so that the surrounding
2298            program can act accordingly.
2299    
2300    2004-03-30  Martin Schulze  <[email protected]>
2301    
2302            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
2303            Adjusted the getLayerSRS method to return the list of SRSes
2304            extracted from <SRS> elements instead of <BoundingBox> elements.
2305            Added a bit of documentation as well.
2306            (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
2307            since it was only implemented due to a misunderstanding.
2308    
2309            * Extensions/wms/test/test_parser.py
2310            (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
2311            reflect the corrected interpretation of the standard: i.e. a layer
2312            does not have to define a BoundingBox for all SRSes it supports.
2313            Hence the <SRS></SRS> specification is authoritative, not the list
2314            of BoundingBoxes.
2315            (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
2316            to ensure None is returned for a non-existing SRS.
2317            (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
2318            since it is not applicable anymore.  Listing more SRSes in <SRS>
2319            elements is valid according to the specs.
2320    
2321    2004-03-26  Bernhard Reiter <[email protected]>
2322    
2323            * README: Nicer formatting of text. Improved descriptions.
2324            Reflected wxWidgets name change.
2325            
2326            * Thuban/UI/about.py: Extended copyright to 2004 and added
2327            information about the thuban-devel mailinglist.
2328    
2329    2004-03-24  Martin Schulze  <[email protected]>
2330    
2331            * Extensions/wms/capabilities.py: Renamed the class to contain
2332            'WMS', also added a linebreak where required
2333    
2334            * Extensions/wms/parser.py: Finally added the XML parser for the
2335            GetCapabilities response.
2336    
2337            * Extensions/wms/test/sample.xml: Adjusted the sample file so that
2338            <SRS> elements match the <BoundingBox> elements, except for the
2339            layer 'beschriftung'.
2340    
2341            * Extensions/wms/test/test_parser.py: Encode non-ascii strings
2342            since Python uses unicode strings internally, otherwise
2343            comparisons will fail.  Removed tests for getLayerBBoxSRS() since
2344            the SRS will be calculated anyway and this method is obsoleted by
2345            getLayerSRS().  Denote SRS as strings and not as cardinal numbers.
2346            Move loading the sample file into the setUp method.  Added a test
2347            for finding the integrity problem in the sample response.
2348            Improved formatting.
2349    
2350            * Extensions/wms/domutils.py: Added convenience routines for
2351            handling of Document Object Model (DOM) nodes.
2352    
2353            * Extensions/wms/test/test_domutils.py: Added a test for the
2354            domutils module
2355    
2356    2004-03-19  Martin Schulze  <[email protected]>
2357    
2358            * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
2359            Moved path detection and adding into a module of its own,
2360            adjustpath, which exports thubandir as main Thuban directory.
2361    
2362            * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
2363            detection and adding into a module of its own, adjustpath, which
2364            exports thubandir as main Thuban directory.  Reorganised the
2365            module in order to support the SkipTest feature for Thuban test
2366            cases.
2367    
2368            * Extensions/wms/test/adjustpath.py: Moved path detection and
2369            adding into a module of its own.
2370    
2371    2004-03-18  Martin Schulze  <[email protected]>
2372    
2373            * Extensions/wms/test/test_parser.py: Added another test for
2374            checking whether the WMS XML parser (to be implemented) returns
2375            the information we expect.  This requires a sample WMS WML file
2376            (sample.xml) which has been extracted from the frida server and
2377            "improved" manually.
2378    
2379            * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
2380            main Thuban directory to the path in order to be able to import
2381            random modules.  Adjusted the PyOGCLib detection to reuse the
2382            information gathered.  Also added a note about the PYTHONPATH
2383            environment variable.
2384    
2385            * Extensions/wms/test/test_ogclib.py: The format specification is
2386            a mime-type, not a graphic format, hence image/jpeg wou ld be the
2387            proper format and not JPEG.  We'll also have to take care of the
2388            encoding of / as %2F.
2389    
2390    2004-03-16  Martin Schulze  <[email protected]>
2391    
2392            * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
2393            comprehensive test for the getMapURL method, built compare URLs
2394            according to the documentation in OGC 01-068r3
2395    
2396            * Extensions/wms/capabilities.py (WMSCapabilities): Added the
2397            class WMSCapabilities to manage capabilites, will incorporate
2398            parsing the capabilities response and provide details for other
2399            classes.
2400    
2401    2004-03-12  Bernhard Herzog  <[email protected]>
2402    
2403            Support views in addition to normal tables in the postgis
2404            shapestore
2405    
2406            * Thuban/Model/postgisdb.py
2407            (PostGISShapeStore._fetch_table_information): Add a fallback for
2408            the case where the table name is not in the geometry_columns
2409            table.  This is usually the case for views.  Also, set
2410            self.shapestore here.
2411            (PostGISShapeStore.ShapeType): No need to query the database all
2412            the time.  The shape type is now determined in
2413            _fetch_table_information
2414    
2415            * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
2416            (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
2417            New parameter to specify views.
2418            (PostGISDatabase.has_data): Also compare the views.  New views
2419            parameter
2420            (PostGISDatabase.initdb): Create the views.
2421            (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
2422            view
2423    
2424            * test/test_postgis_db.py
2425            (TestPostGISShapestorePointFromViews): New.  Test a
2426            PostGISShapeStore with a view
2427            (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
2428            the geometry_column explicitly to test whether that works
2429    
2430    2004-03-12  Bernhard Herzog  <[email protected]>
2431    
2432            Final step for explicit id/geometry columns: Loading and saving
2433    
2434            * Resources/XML/thuban-1.1.dtd: New.  Derived from thuban-1.0.dtd
2435            with the following changes:
2436            (dbshapesource): Two new attributes id_column and geometry_column
2437    
2438            * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
2439            (SessionSaver.write_session): Use the new namespace
2440            (SessionSaver.write_data_containers): Write the new dbshapesource
2441            parameters
2442    
2443            * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
2444            the new file format version
2445            (SessionLoader.start_dbshapesource): Handle the new db parameters
2446    
2447            * test/test_save.py: Update to the new dtd and namespace
2448            (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
2449            mock object to provide a working IDColumn method.
2450    
2451            * test/test_load_1_0.py: New.  Copy of the test_load.py before
2452            today's changes but with the round-trip tests removed.
2453    
2454            * test/test_load_0_9.py: Update doc-string.
2455    
2456            * test/test_load.py: Update all .thuban files to the new dtd and
2457            namespace.
2458            (TestPostGISLayer.file_contents): Add the new dbshapesource
2459            paramters
2460    
2461    2004-03-11  Bernhard Herzog  <[email protected]>
2462    
2463            Next step for explicit id/geometry columns: User interaction
2464    
2465            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
2466            the dialog is constructed. Add combo boxes to select id and
2467            geometry column.  Rename some instance variables.
2468            (ChooseDBTableDialog.GetTable): Return id and geometry column
2469            names
2470            (ChooseDBTableDialog.OnTableSelect): New. Event handler for
2471            selections in the table list
2472    
2473            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
2474            and geometry_column
2475    
2476            * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
2477            parameters for id_column and geometry column of PostGISShapeStore
2478            here as well.
2479    
2480            * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
2481            (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
2482            (PostGISConnection.GeometryTables): Use a better query to
2483            determine which relations in the database might be usable for
2484            shapestores.  Now supports views as well but is more PostgreSQL
2485            specific
2486            (PostGISConnection.table_columns): New. Somewhat experimental
2487            method to let the db dialogs provide lists of columns to users so
2488            that they can select id and geometry columns.
2489            (PostGISTable.__init__): The default value of the id_column
2490            parameter is now None it still means "gid" effectively, though.
2491            (PostGISTable.IDColumn): New introspection method to return a
2492            column object for the id column
2493            (PostGISShapeStore.GeometryColumn): New introspection method to
2494            return a column object for the geometry column
2495    
2496            * test/test_postgis_db.py
2497            (TestPostGISConnection.test_gis_tables_non_empty):
2498            Removed. Subsumed by the new:
2499            (TestPostGISConnection.test_gis_tables_with_views_and_tables):
2500            New. Tes the GeometryTables and table_columns methods with actual
2501            tables and views.
2502            (PointTests.test_id_column, PointTests.test_geometry_column):
2503            New. tests for the new methods.
2504            (TestPostGISShapestorePoint.setUp)
2505            (TestPostGISShapestorePointSRID.setUp)
2506            (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
2507            instance variables needed by the new tests
2508    
2509    2004-03-11  Bernhard Herzog  <[email protected]>
2510    
2511            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
2512            numbers given to ReadValue are ordinals.
2513    
2514    2004-03-11  Bernhard Herzog  <[email protected]>
2515    
2516            Elimiate the requirement for PostGIS tables to have a column
2517            called "gid".
2518    
2519            * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
2520            id_column to specify which column to use to identify rows.  Also
2521            new instance variables id_column and quoted_id_column
2522            (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
2523            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
2524            (PostGISTable.SimpleQuery): Use the id column name provided to the
2525            constructor instead of "gid"
2526            (PostGISShapeStore.__init__): New parameter id_column analogously
2527            to PostGISTable.__init__.  This parameter is simply passed through
2528            to the base class constructor
2529            (PostGISShapeStore._create_col_from_description): Fix typo in
2530            doc-string
2531            (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
2532            (PostGISShapeStore.ShapesInRegion): Use the id column name
2533            provided to the constructor instead of "gid"
2534    
2535            * test/postgissupport.py
2536            (PostgreSQLServer.get_default_static_data_db): New static table
2537            landmarks_point_id with an id column != "gid.  Update the comments
2538            a bit.
2539            (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
2540            doc-
2541            (upload_shapefile): New parameter gid_column to use a name other
2542            than "gid" for the column to store the shape ids
2543    
2544            * test/test_postgis_db.py (TableTests): New.  Mixin-class
2545            containing all tests previously in TestPostGISTable.  The actual
2546            tests are the same but the code is a bit more configurable to
2547            allow for different id columns etc.
2548            (TestPostGISTable): Derive from TableTests now for the actual
2549            tests.
2550            (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
2551            except that it the landmarks_point_id table to test the id_column
2552            parameter
2553            (PointTests): Extend the doc-string
2554            (TestPostGISShapestorePointExplicitGIDColumn)
2555            (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
2556            from PointTests to test the explicit id_column parameter.  One
2557            tests with the name of the column holding the shape ids, the other
2558            uses PostgreSQL's OID column.  For the latter a number of methods
2559            have to be overwritten to make them independent of the actual id
2560            values.
2561    
2562    2004-03-08  Silke Reimer  <[email protected]>
2563    
2564            Update debian directory:
2565    
2566            * debian/changelog: Added new version.
2567            * deiban/rules: Updated management of patches (with cbds)
2568            * debian/control: Added cbds to dependencies
2569            * debian/patches/*: New. Adds better support for patches of thuban in
2570                            debian
2571            * debian/menu: Syntax of menu changed slightly
2572            * debian/setup.py.patch: removed because it has been moved to
2573                            debian/patechs/setup.py.patch
2574            
2575    
2576    2004-02-26  Bernhard Herzog  <[email protected]>
2577    
2578            Create the Doc/technotes directory for text files with information
2579            for developers
2580    
2581            * Doc/technotes/README: New. README for the technotes
2582    
2583            * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
2584            Thuban
2585    
2586            * Doc/technotes/release_process.txt: New. Used to be
2587            HOWTO-Release.  Now slightly adapted to technote formatting style.
2588    
2589            * HOWTO-Release: Removed.  It's contents are now in
2590            Doc/technotes/release_process.txt
2591    
2592    2004-02-25  Bernhard Herzog  <[email protected]>
2593    
2594            * libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
2595            version of wxWindows the module was compiled with so we can check
2596            that against the wxPython version.
2597    
2598            * Thuban/version.py (thuban_branch, thuban_release): New variables
2599            controlling which and how Thuban versions are shown.  See the
2600            comments for details.
2601            (verify_versions): Also check that the wx version that wxproj is
2602            compiled against matches that of the wxPython we use at runtime
2603    
2604    2004-02-20  Bernhard Herzog  <[email protected]>
2605    
2606            * Extensions/wms/wms.py (epsg_code_to_projection): Use
2607            get_system_proj_file to read the epsg projections.  The old way
2608            depended on the current directory being the top Thuban directory.
2609    
2610    2004-02-20  Bernhard Herzog  <[email protected]>
2611    
2612            * Extensions/svgexport/test/test_svgmapwriter.py
2613            (TestVirtualDC.test_clippath): Remove a debug print
2614    
2615    2004-02-20  Bernhard Herzog  <[email protected]>
2616    
2617            * Extensions/svgexport/__init__.py: New.  Turn
2618            Extensions/svgexport into a package.
2619    
2620            * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
2621            doc-string a bit.  The doc-string must come first, otherwise it's
2622            not a doc-string.  The __future__ import must be the first thing
2623            after the doc-string.  Use only double quotes in doc-strings.
2624            Single quotes trip up emacs syntax highlighting if the text
2625            contains apostrophes.
2626    
2627    2004-02-20  Bernhard Herzog  <[email protected]>
2628    
2629            * Extensions/svgexport/test/__init__.py,
2630            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
2631            suite for svgexport
2632    
2633            * test/runtests.py (find_test_modules): New. Function with the
2634            module finding code from main.
2635            (main): Use find_test_modules to figure out the default test
2636            modules and take modules from Extensions.svgexport.test too.
2637    
2638    2004-02-19  Bernhard Herzog  <[email protected]>
2639    
2640            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
2641            the mainwindow has a reference to the map of the initial session.
2642            This fixes a bug introduced with the fix for RT#2245
2643    
2644    2004-02-19  Bernhard Herzog  <[email protected]>
2645    
2646            * Extensions/svgexport/svgsaver.py,
2647            Extensions/svgexport/svgmapwriter.py,
2648            Extensions/svgexport/maplegend.py: Added again.  This time in the
2649            correct place.
2650    
2651    2004-02-17  Bernhard Herzog  <[email protected]>
2652    
2653            Fix for RT#2245
2654    
2655            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
2656            instance variables before trying to create any windows.  Creating
2657            windows can start an event loop if e.g. message boxes are popped
2658            up for some reason, and event handlers, especially EVT_UPDATE_UI
2659            may want to access things from the application.
2660            (ThubanApplication.maps_changed): The mainwindow may not have been
2661            created yet, so check whether it has been created before calling
2662            its methods
2663    
2664            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
2665            have a map
2666    
2667    2004-02-17  Bernhard Herzog  <[email protected]>
2668    
2669            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
2670            Extensions/svgmapwriter.py, Extensions/maplegend.py,
2671            extensions/svgexport/svgsaver.py,
2672            extensions/svgexport/svgmapwriter.py,
2673            extensions/svgexport/maplegend.py: Removed.  These files were in
2674            the wrong places or didn't work at all.
2675    
2676    2004-02-16  Bernhard Herzog  <[email protected]>
2677    
2678            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
2679            line
2680    
2681  2004-02-16  Bernhard Herzog  <[email protected]>  2004-02-16  Bernhard Herzog  <[email protected]>
2682    
2683          * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.          * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
# Line 4129  Line 6809 
6809          Fix problem of hidden properties dialog under windows after double          Fix problem of hidden properties dialog under windows after double
6810          click on layer tree:          click on layer tree:
6811          The tree control always gets an Expanded / Collapsed event after          The tree control always gets an Expanded / Collapsed event after
6812          the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply          the ItemActivated  on double click, which raises the main window again.
6813            We add a second ItemActivated event to the queue, which simply
6814          raises the already displayed window.          raises the already displayed window.
6815    
6816          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable

Legend:
Removed from v.2067  
changed lines
  Added in v.2598

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26