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

Legend:
Removed from v.2344  
changed lines
  Added in v.2585

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26