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

Legend:
Removed from v.2343  
changed lines
  Added in v.2570

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26