/[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 2414 by bernhard, Mon Nov 22 11:17:47 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]>  2004-11-22  Bernhard Reiter <[email protected]>
976    
977          * Extensions/svgexport/svgmapwriter.py:          * Extensions/svgexport/svgmapwriter.py:

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26