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

Legend:
Removed from v.2291  
changed lines
  Added in v.2573

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26