/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26