/[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 1580 by bh, Tue Aug 12 12:34:19 2003 UTC revision 1873 by bh, Mon Oct 27 17:11:35 2003 UTC
# Line 1  Line 1 
1    2003-10-27  Bernhard Herzog  <[email protected]>
2    
3            Rework how localization works so that we use wx's translation
4            functions when running Thuban as a normal application but not when
5            we don't need any UI, such as in the test suite. See the comment
6            in Thuban/__init__.py for details
7    
8            * Thuban/__init__.py (_): Add one level of indirection to make the
9            translation handling more flexible and to make it possible to use
10            either wx's translation services or not.
11            (gettext_identity, translation_function_installed)
12            (install_translation_function): New function to help with this
13    
14            * Thuban/UI/__init__.py: Install the wx specific translation
15            function if it's OK to do that
16    
17            * test/support.py (initthuban): Install a dummy translation
18            function so that importing Thuban.UI doesn't install a wx specific
19            one for which would need to import wxPython
20    
21    2003-10-27  Bernhard Herzog  <[email protected]>
22    
23            * HOWTO-Release: Source archives should be created first and the
24            binary packages should be created from the source archives.
25            There's an official debian package now so there's no need to test
26            the rpm on debian anymore
27    
28    2003-10-27  Bernhard Herzog  <[email protected]>
29    
30            Several rendering changes:
31    
32             - Render the selection into a separate bitmap so that only that
33               bitmap needs to be redrawn when the selection changes
34    
35             - Render incrementally showing previews and allowing interaction
36               before rendering is complete
37    
38             - Update the renderer interface a bit. Most parameters of
39               RenderMap are now parameters of the constructor
40    
41            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
42            and the update region as parameters. Update the doc-string
43            (BaseRenderer.render_map_incrementally): New. Generator function
44            to renders the map incrementally
45            (BaseRenderer.render_map): Remove the map argument (it's now in
46            the constructor) and simply iterate over the
47            render_map_incrementally generator to draw the map.
48            (BaseRenderer.draw_shape_layer_incrementally)
49            (BaseRenderer.draw_shape_layer): Renamed to
50            draw_shape_layer_incrementally and changed into a generator that
51            yields True every 500 shapes. Used by render_map_incrementally to
52            render shape layers incrementally
53    
54            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
55            map and region parameters which are now in the constructor
56            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
57            the inherited render_map_incrementally.
58            (BaseRenderer.draw_shape_layer): Removed.
59            (ScreenRenderer.draw_selection_incrementally): New. The selection
60            drawing part of the removed draw_shape_layer as a generator
61            (ScreenRenderer.layer_shapes): Update because of the region
62            parameter change
63            (ExportRenderer.__init__): New. Extend the inherited constructor
64            with the destination region for the drawing
65            (ExportRenderer.RenderMap): Removed the map and region parameters
66            which are now in the constructor
67    
68            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
69            bitmap suitable for a preview in a tool
70            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
71            bitmap
72            (MapPrintout.draw_on_dc): Adapt to new renderer interface
73            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
74            exists
75            (MapCanvas.OnIdle): Update the logic to deal with incremental
76            rendering and the selection bitmap
77            (MapCanvas._do_redraw): Handle the instantiation of the render
78            iterator and the redraws during rendering
79            (MapCanvas._render_iterator): New. Generator to incrementally
80            redraw both bitmaps
81            (MapCanvas.Export): Adapt to new renderer interface.
82            (MapCanvas.full_redraw): Reset the selection bitmap and the
83            renderer iterator too
84            (MapCanvas.redraw_selection): New. Force a redraw of the selection
85            bitmap
86            (MapCanvas.shape_selected): Only redraw the selection bitmap
87    
88            * test/test_baserenderer.py
89            (TestBaseRenderer.test_polygon_no_projection)
90            (TestBaseRenderer.test_raster_no_projection)
91            (TestBaseRenderer.test_point_map_projection)
92            (TestBaseRenderer.test_point_layer_and_map_projection)
93            (TestBaseRenderer.test_point_layer_projection)
94            (TestBaseRenderer.test_point_with_classification): Adapt to new
95            renderer interface
96    
97    2003-10-24  Bernhard Herzog  <[email protected]>
98    
99            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
100            (point_in_polygon_shape, shape_centroid): Raise an exception if
101            the shape can't be read. Previously invalid shape ids would lead
102            to a segfault.
103    
104            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
105            New. test whether an exception is raised for invalid shape ids
106    
107    2003-10-24  Jan-Oliver Wagner <[email protected]>
108    
109            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
110            as alias for 'latlong'.
111    
112            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
113            as alias for 'latlong'.
114    
115    2003-10-24  Jan-Oliver Wagner <[email protected]>
116    
117            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
118            the projection even for the UnknownPanel.
119            (UnknownProjPanel.__init__): Define the text and create the textctrl
120            widget.
121            (UnknownProjPanel._DoLayout): Replaced static text widget by the
122            textctrl created in __init__.
123            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
124            including the parameters of the projection.
125            
126    2003-10-24  Jan-Oliver Wagner <[email protected]>
127    
128            * Resources/Projections/epsg.proj: New. This is a list of
129            EPSG codes with parameters for proj. The list has been
130            generated using devtools/create_epsg.py based on the
131            file nad/epsg of the proj 4.4.7 package. Four projection
132            definitions have been deleted as they are not accepted by proj:
133            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
134            and "HD72 / EOV".
135    
136    2003-10-22  Bernhard Herzog  <[email protected]>
137    
138            Some more tweaks to the projection dialog which should fix RT
139            #1886.
140    
141            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
142            the ProjFile's messages and call the base class methods correctly
143            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
144            flag on the newly selected item too. Otherwise some other item is
145            focused and the first time the focus is moved with the keyboard
146            the selection moves in unexpected ways.
147    
148            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
149            focus on the OK button, only on the projection list. That way the
150            list really has the focus initially
151            (ProjFrame.OnClose): Call the projection list's Destroy method to
152            make it unsubscribe all messages
153    
154    2003-10-21  Bernhard Herzog  <[email protected]>
155    
156            Rework the projection dialog to fix a few bugs, including RT 2166
157            and most of 2168
158    
159            * Thuban/UI/projlist.py: New. The class ProjectionList is a
160            special wxListCtrl to show a list of projections in a more MVC
161            fashion
162    
163            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
164            throughout the class. The main change is to use the ProjectionList
165            class instead of a normal wxListBox. Also, add an explicit
166            "Unknown" projection to the projection choice control.
167            (ProjPanel.__init__): Add an "unknown" ellipsoid
168            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
169            instantiation of the panel's controls to make the tab-order more
170            natural
171    
172    2003-10-21  Bernhard Herzog  <[email protected]>
173    
174            * test/test_load.py (TestSingleLayer.file_contents)
175            (TestSingleLayer.test): Add non-ascii characters to the titles of
176            session, map and layer. This is effectively a port of the
177            TestUnicodeStrings test in test_load_0_8.py which for some reason
178            was only added there.
179    
180            * test/test_load_0_9.py (TestSingleLayer.file_contents)
181            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
182            characters to the titles of session, map and layer,.
183    
184    2003-10-21  Bernhard Herzog  <[email protected]>
185    
186            Add EPSG projection handling to .thuban files
187    
188            * test/test_save.py (SaveSessionTest.dtd)
189            (SaveSessionTest.testEmptySession)
190            (SaveSessionTest.testLayerProjection)
191            (SaveSessionTest.testRasterLayer)
192            (SaveSessionTest.testClassifiedLayer)
193            (SaveSessionTest.test_dbf_table)
194            (SaveSessionTest.test_joined_table)
195            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
196            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
197            use a and epsg projection to test saving them
198    
199            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
200            namespace
201            (TestLayerVisibility.file_contents, TestLabels.file_contents)
202            (TestLayerProjection.file_contents)
203            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
204            (TestPostGISLayer.file_contents)
205            (TestPostGISLayerPassword.file_contents)
206            (TestLoadError.file_contents, TestLoadError.test): Update to use
207            1.0-dev namespace
208            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
209            use 1.0-dev namespace and use an EPSG projection to test whether
210            loading it works
211    
212            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
213            as of Thuban 0.9. These are now tests to determine whether Thuban
214            can still read files generated by Thuban 0.9
215    
216            * Thuban/Model/save.py (SessionSaver.write)
217            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
218            namespace
219            (SessionSaver.write_projection): Write the projection's epsg
220            attribute
221    
222            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
223            thuban-1.0-dev.dtd namespace
224            (SessionLoader.check_attrs): Allow a callable object as conversion
225            too
226            (SessionLoader.start_projection, SessionLoader.end_projection)
227            (SessionLoader.start_parameter): Handle the epsg attribute and
228            rename a few instance variables to lower case
229    
230            * Resources/XML/thuban-1.0.dtd: New. Only difference to
231            thuban-0.9.dtd is the epsg attribute for projections.
232    
233    2003-10-21  Bernhard Herzog  <[email protected]>
234    
235            * test/runtests.py (main): Let the user specify which tests to run
236            on the command line
237    
238            * test/support.py (ThubanTestResult.getDescription): Override to
239            give a better short description. The description can be used as a
240            parameter to run_tests to run that particular test in isolation.
241    
242    2003-10-21  Frank Koormann   <[email protected]>
243    
244            Popup menu for legend. Scheduled for the 1.2 release this was too
245            simple to implement: The popup menu is bound to the legend tree, while
246            the events are hanlded by its anchestor, the legend panel. This
247            allows reuse of all the event handlers already implemented for the
248            legend toolbar buttons.
249    
250            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
251            to add handlers for the events issued by the popup menu.
252            (LegendPanel._OnToggleVisibility): Handler for toggling layer
253            visibility event
254            (LegendPanel._OnProjection): Handler for layer projection event.
255            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
256            (LegendTree._OnRightClick): Event handler for right click, select item
257            and pop up menu.
258            (LegendTree.ToggleVisibility): Toggle layer visibility
259            (LegendTree.LayerProjection): Raise layer projection dialog for
260            current layer.
261    
262    2003-10-21  Bernhard Herzog  <[email protected]>
263    
264            * Resources/Projections/defaults.proj: Use correct DOCTYPE
265            declaration. The top-level element is projectionlist not projfile
266    
267    2003-10-20  Bernhard Herzog  <[email protected]>
268    
269            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
270            method to write a projfile and display a busy cursor and error
271            dialogs.
272            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
273            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
274            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
275            busy cursor while loading the user and system prj files.
276    
277    2003-10-16  Bernhard Herzog  <[email protected]>
278    
279            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
280            ProjFile objects
281            (clear_proj_file_cache): New function to clear the cache. Mainly
282            useful for use by the test suite
283            (read_proj_file): Use the cache.
284    
285            * test/test_proj.py (TestProjFile): Clarify the doc-string
286            (ProjFileReadTests): Update doc-string
287            (ProjFileReadTests.test_get_system_proj_file): Check whether the
288            system proj files is cached.
289            (ProjFileLoadTestCase): New base class for the proj file tests
290            derived from support.FileLoadTestCase to provide some common
291            behavior.
292            (TestLoadingProjFile)
293            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
294            (TestProjFileWithInvalidParameters.file_contents): Derive from
295            ProjFileLoadTestCase
296            (TestLoadingProjFile.test_caching): New. Test whether the cache
297            works
298    
299    2003-10-16      Silke Reimer    <[email protected]>
300    
301            * debian/*: New directory with configuration files for building a thuban
302              deb-package.
303    
304    2003-10-14  Bernhard Herzog  <[email protected]>
305    
306            * test/test_proj.py: Execute support.run_tests when run as
307            __main__ so that missing unsubscribes are detected
308            (TestProjFile.tearDown): Destroy the proj_file properly
309    
310    2003-10-14  Bernhard Herzog  <[email protected]>
311    
312            * Thuban/Model/messages.py (PROJECTION_ADDED)
313            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
314            the ProjFile objects
315    
316            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
317            easily send messages when the projections change
318            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
319            when the change was successful
320    
321            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
322            proj file messages
323            (TestProjFile.test_add_remove)
324            (TestProjFile.test_remove_non_existing)
325            (TestProjFile.test_replace)
326            (TestProjFile.test_replace_non_existing): Test whether the right
327            messages are sent
328    
329    2003-10-14  Bernhard Herzog  <[email protected]>
330    
331            * test/test_proj.py (TestProjFile.test): Refactor into several
332            tests
333            (TestProjFile.test_add_remove)
334            (TestProjFile.test_remove_non_existing)
335            (TestProjFile.test_replace)
336            (TestProjFile.test_replace_non_existing): Some of the new
337            individual test cases
338            (TestProjFileSimple): New class for the rest of the test cases
339            that came out of the refactoring
340            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
341            derived classes don't have to
342    
343    2003-10-13  Bernhard Herzog  <[email protected]>
344    
345            Add an optional EPSG code to the projection objects and extend the
346            .proj file format accordingly.
347    
348            * Resources/XML/projfile.dtd (element projection): Add epsg
349            attribute
350    
351            * Thuban/Model/proj.py (Projection.__init__): New parameter and
352            instance variable epsg. Update doc-string
353            (Projection.EPSGCode, Projection.Label): New methods to provide
354            access to EPSG code and a label for use in dialogs
355    
356            * Thuban/Model/resource.py (ProjFileReader.start_projection)
357            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
358            Handle the epsg code attribute when reading or writing proj files
359    
360            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
361            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
362            (ProjFrame.__FillAvailList): Use the projection's Label method to
363            get the string for the list box
364    
365            * test/test_proj.py (TestProjection.test_label)
366            (TestProjection.test_label_epsg)
367            (TestProjection.test_epsgcode_for_non_epsg_projection)
368            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
369            for the label and EPSGCode methods
370            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
371            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
372            objects in the test cases and put the expected contents into the
373            test case methods too. Update doTestWrite accordingly
374            (TestLoadingProjFile)
375            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
376            read tests from TestProjFile.
377            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
378            tests are now in the new classes.
379            (sample_projfile, sample_projfile_data)
380            (sample_projfile2, sample_projfile_data2): Removed. Not used
381            anymore.
382            (TestProjFile.test_read_unreadable_file): No need to reset the
383            permissions at the end anymore since we use a unique filename
384    
385    2003-10-13  Bernhard Herzog  <[email protected]>
386    
387            * test/test_proj.py: Some more refactoring of the test cases
388            (ProjFileTest): New base class for the proj file tests.
389            (TestProjFile): Derive from ProjFileTest
390            (TestProjFile.test_read_unreadable_file)
391            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
392            the new filename method to get a unique filename
393            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
394            (WriteProjFileTests): New class for proj file write tests.
395            Contains the write test that were in TestProjFile originally.
396    
397    2003-10-13  Bernhard Herzog  <[email protected]>
398    
399            * test/test_proj.py (TestProjFile.testRead)
400            (TestProjFile.test_read_non_existing_file)
401            (TestProjFile.test_read_unreadable_file)
402            (TestProjFile.test_read_empty_file): Split into several methods.
403    
404    2003-10-10  Bernhard Herzog  <[email protected]>
405    
406            * Thuban/UI/sizers.py: New file with custom sizers.
407    
408            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
409            all projection type specific panels and put them into a
410            NotebookLikeSizer. This way the dialog doesn't change its size
411            when a different projection is selected
412            (ProjFrame.__init__): Rename projection_panels
413            projection_panel_defs and reuse projection_panels for a list of
414            the instantiated panels.
415            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
416            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
417            the panels
418            (UnknownProjPanel._DoLayout): Place the newlines in the message
419            differently to make the panel narrower.
420            (TMPanel._DoLayout): Layout the parameters in one column.
421    
422    2003-10-10  Bernhard Herzog  <[email protected]>
423    
424            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
425            that contains all the setup for the dialog's widgets, layout and
426            event handling.
427            (__): Call build_dialog to build the dialog.
428            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
429            Their functionality is now in build_dialog
430            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
431            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
432            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
433            different widget names and hierarchy introduced with build_dialog.
434    
435    2003-10-10  Bernhard Herzog  <[email protected]>
436    
437            * README: Fix typo.
438    
439    2003-10-09  Bernhard Herzog  <[email protected]>
440    
441            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
442            projection is already in the list. This is *a lot* faster when
443            loading files with hundreds of projections since it saves a linear
444            search. OTOH this will allow adding the same projection to the
445            user.proj file multiple times in the projection dialog but we'll
446            deal with that later
447    
448    2003-10-09  Jan-Oliver Wagner <[email protected]>
449    
450            * devtools: New. Directory for developer tools that are not intended
451            for the regular user.
452    
453            * devtools/create_epsg.py: New. Convert the epsg file of proj into
454            a python .proj file.
455    
456    2003-10-09  Bernhard Herzog  <[email protected]>
457    
458            * test/test_proj.py
459            (TestProjection.test_get_parameter_without_equals_sign): New. Test
460            whether GetParameter handles parameters without "=" sign correctly
461    
462            * Thuban/Model/proj.py (Projection.GetParameter): Handle
463            parameters that do not contain a "=". Update the doc-string
464    
465    2003-10-08  Bernhard Herzog  <[email protected]>
466    
467            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
468            length limit on the projname text control
469    
470    2003-10-08  Bernhard Herzog  <[email protected]>
471    
472            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
473            (TestProjection.test_get_projection_units_normal): New. Tests for
474            the Projection.GetProjectedUnits method
475    
476    2003-10-08  Jan-Oliver Wagner <[email protected]>
477    
478            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
479            Added missing 'val' parameter.
480    
481    2003-10-08  Bernhard Herzog  <[email protected]>
482    
483            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
484            projection type of the currently selected projection is not known,
485            i.e. there's no panel for it, use the UnknownProjPanel
486            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
487            the actual replacing of the proj panel into the new method
488            _show_proj_panel.
489            (UnknownProjPanel): Add doc-string.
490            (UnknownProjPanel._DoLayout): Insert a newline into the text so
491            that the panel is not so wide.
492    
493    2003-10-08  Bernhard Herzog  <[email protected]>
494    
495            * Thuban/Model/resource.py (read_proj_file): Return the warnings
496            too. Update the doc-string
497            (get_proj_files): Removed. It wasn't used anywhere
498            (get_system_proj_files, get_system_proj_file): Rename to
499            get_system_proj_file and return the ProjFile object and not a list
500            of ProjFile objects. Update the callers.
501            (get_user_proj_files, get_user_proj_file): Rename to
502            get_user_proj_file return the ProjFile object and not a list of
503            ProjFile objects. Update the callers.
504            (ProjFileReader.__init__): New instance variable for the warnings.
505            Rename the __pf ivar to projfile. Update the methods referring to
506            __pf
507            (ProjFileReader.end_projection): Catch any errors raised when
508            instantiating the projection and record that as an error. The
509            projection will not be in the final ProjFile object.
510            (ProjFileReader.GetWarnings): New method to return the warnings.
511    
512            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
513            show the warnings from the projfile reader
514            (ProjFrame._OnImport): Deal with any warnings returned by
515            read_proj_file
516            (ProjFrame.__FillAvailList): Deal with any warnings returned by
517            get_system_proj_file or get_user_proj_file.
518    
519            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
520            (TestProjFileWithInvalidParameters.file_contents): New test cases
521            to test whether read_proj_file handles invalid projection
522            parameters correctly
523            (TestProjFile.test_get_system_proj_file): New. Simple test for
524            resource.get_system_proj_file
525    
526    2003-10-07  Bernhard Herzog  <[email protected]>
527    
528            * test/test_derivedshapestore.py
529            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
530            properly so that the temporary directories get deleted correctly
531    
532    2003-10-06  Bernhard Herzog  <[email protected]>
533    
534            Handle the title changes in a proper MVC way.
535    
536            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
537            canvas' TITLE_CHANGED messages
538            (MainWindow.update_title): New. Update the main window's title
539            (MainWindow.__SetTitle): Removed. Use update_title instead.
540            (MainWindow.SetMap): Use update_title instead of __SetTitle
541            (MainWindow.RenameMap): Do change the window title explicitly
542            here. That's handled in a proper MVC way now.
543            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
544            messages
545    
546            * Thuban/Lib/connector.py (Conduit): New class to help classes
547            that forward messages
548    
549            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
550            (ViewPort): Derive from Conduit instead of Publisher
551            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
552            when calling the inherited versions
553            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
554            methods to subscribe and unsubscribe map messages
555            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
556            handle the map subscriptions
557            (ViewPort.Map, ViewPort.map_projection_changed)
558            (ViewPort.layer_projection_changed): Add or update doc-strings
559    
560            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
561            typo
562            (MyConduit): Helper class for the Conduit test.
563            (TestConduit): Test cases for Conduit
564    
565            * test/test_connector.py: Use support.run_tests as main.
566    
567            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
568            the TITLE_CHANGED messages
569            (ViewPortTest.test_forwarding_title_changed): New test to check
570            whether the viewport forwards the map's TITLE_CHANGED messages
571            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
572            after the port's because the latter may require a still functional
573            map.
574    
575    2003-10-06  Bernhard Herzog  <[email protected]>
576    
577            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
578            doc-string
579    
580    2003-10-06  Bernhard Herzog  <[email protected]>
581    
582            * test/test_viewport.py (ViewPortTest.setUp)
583            (SimpleViewPortTest.test_init_with_size): Move the test for the
584            initial size as a constructor parameter from ViewPortTest.setUp
585            method to a new separate test in SimpleViewPortTest.
586    
587    2003-10-06  Bernhard Herzog  <[email protected]>
588    
589            * test/test_viewport.py (MockView): New class derived from
590            ViewPort with a mock implementation of GetTextExtent to be used in
591            the test cases
592            (ViewPortTest.setUp): Use MockView instead of ViewPort
593    
594            * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
595            into what would be a "pure virtual function" in C++: always raise
596            NotImplementedError. Mock implementations for test cases don't
597            belong into the real code
598    
599    2003-10-02  Bernhard Herzog  <[email protected]>
600    
601            * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
602            close the dbf file we create so that it's contents have been
603            written properly.
604    
605            * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
606            libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
607            Update to shapelib 1.2.10
608    
609    2003-10-01  Jan-Oliver Wagner <[email protected]>
610    
611            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
612            it annoys lintian which warns about these files not being
613            executable. The #! isn't necessary here since if you absolutely
614            must execute them you can always say "python <filename>".
615    
616    2003-09-26  Bernhard Herzog  <[email protected]>
617    
618            * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
619            only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
620            is ported to a newer the import will fail, so it should be noticed
621            immediately that this function is gone.
622            Fixes RT#1919
623    
624    2003-09-26  Bernhard Herzog  <[email protected]>
625    
626            Add a DTD for the projection files and make thuban write valid
627            projection files
628    
629            * Resources/XML/projfile.dtd: New. DTD for thuban's projection
630            files
631    
632            * Thuban/Model/resource.py (ProjFileSaver.write): Use
633            'projectionlist' as the name in the document type declaration so
634            that it matches the element type of the root element.
635    
636            * test/test_proj.py (sample_projfile, sample_projfile2): Use
637            'projectionlist' as the name in the document type declaration just
638            as it is done now in the files thuban would write
639            (sample_projfile, sample_projfile_data): Fix spelling of
640            "Mercator"
641            (TestProjFile.doTestWrite): Validate the written and the expected
642            XML data
643            (TestProjFile): Derive from ValidationTest so that we can run xml
644            validation tests
645    
646    2003-09-24  Bernhard Herzog  <[email protected]>
647    
648            * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
649            modify the list returned by map.Layers() in place since it is the
650            actual list of layers used by the map.
651    
652    2003-09-23  Jan-Oliver Wagner <[email protected]>
653    
654            * Doc/manual/thuban-manual.xml: Added subsection to chapter
655            Extensions to describe the extensions coming with the Thuban
656            standard package (gns2shp and importAPR).
657    
658    2003-09-23  Bernhard Herzog  <[email protected]>
659    
660            * libraries/thuban/wxproj.cpp (project_point): if there's an
661            inverse but no forward projection, convert to degrees after
662            applying the inverse projection. Fixes RT#2096
663    
664            * test/test_wxproj.py: New. Test cases for wxproj.so. One test
665            implicitly tests for the fix to RT#2096
666    
667            * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
668            Check that the sequences have the same lengths
669    
670            * Resources/Projections/defaults.proj (Geographic projection): Use
671            a much more precise value for the to_meter attribute.
672    
673    2003-09-22  Bernhard Herzog  <[email protected]>
674    
675            * test/support.py (initthuban): Make sure to unset the LANG env.
676            var. so that tests that compare translated strings work. Solves RT
677            #2094
678    
679    2003-09-22  Jan-Oliver Wagner <[email protected]>
680    
681            Small improvement of APR import.
682    
683            * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
684            Added tests for text-ranges.
685    
686            * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
687            returns a string object if the range is based on text.
688    
689            * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
690            range retrieval.
691    
692    2003-09-22  Jan-Oliver Wagner <[email protected]>
693    
694            Initial version of the importAPR extension which is in
695            experimental state.
696    
697            * /Extensions/importAPR/, /Extensions/importAPR/samples/,
698            /Extensions/importAPR/test/: New directories.
699    
700            * /Extensions/importAPR/samples/README: New: Howto load the samples.
701    
702            * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
703            file which refers to the Thuban Iceland demo data.
704    
705            * /Extensions/importAPR/test/README: New: Howto execute the tests.
706    
707            * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
708    
709            * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
710            as in '.apr'-files.
711    
712            * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
713            ODB Objects as in '.apr', '.avl' and other files.
714    
715            * /Extensions/importAPR/__init__.py: New: Init to make this
716            directory a package.
717    
718            * /Extensions/importAPR/importAPR.py: New: Import a ArcView
719            project file (.apr) and convert it to Thuban.
720    
721    2003-09-22  Jan-Oliver Wagner <[email protected]>
722    
723            * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
724    
725    2003-09-19  Jan-Oliver Wagner <[email protected]>
726    
727            * Doc/manual/thuban-manual.xml: Extended section 'Installation'
728            with description on RPM installation and RPM binary package
729            creation.
730    
731    2003-09-18  Bernhard Herzog  <[email protected]>
732    
733            * setup.py (data_files): Only add the mo files if the Locales
734            directory actually exists, so that setup.py works with a fresh CVS
735            checkout
736    
737    2003-09-12  Jan-Oliver Wagner <[email protected]>
738    
739            * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
740            in viewport, not anymore in view
741    
742    2003-09-04  Jan-Oliver Wagner <[email protected]>
743    
744            Introducing first Extension (gns2shp).
745    
746            * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
747    
748            * Extensions/__init__.py: New. init to make this dir a package.
749    
750            * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
751    
752            * Extensions/gns2shp/test/README: New. some info on this test directory.
753    
754            * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
755    
756            * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
757            of Shapefile from GNS text file format
758    
759    2003-09-03  Jan-Oliver Wagner <[email protected]>
760    
761            Fix/workaround for bug #2019:
762            https://intevation.de/rt/webrt?serial_num=2019
763    
764            * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
765            (IdentifyView.__init__): Added another button that allows to
766            stop the identify mode.
767            (IdentifyView.OnStop): New. Stops the identify mode.
768    
769    2003-09-03  Jan-Oliver Wagner <[email protected]>
770    
771            Introducing a new exception dialog that allows to exit the
772            application immediately.
773            This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
774    
775            * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
776    
777            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
778            Made strings available to translations. Exchanged the simple
779            ScrolledMessageDialog by the new ExceptionDialog.
780    
781    2003-09-01  Bernhard Herzog  <[email protected]>
782    
783            * NEWS: New. Summary of changes and release notes.
784    
785            * MANIFEST.in: Add NEWS
786    
787    2003-09-01  Bernhard Herzog  <[email protected]>
788    
789            * MANIFEST.in: Correct the include statement for the mo-files and
790            include the documentation too.
791    
792            * setup.py (data_files): Add the .mo files
793            (setup call): Up to version 0.9.0
794    
795    2003-09-01  Bernhard Herzog  <[email protected]>
796    
797            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
798            parameter list to just parent and session
799            (ChooseDBTableDialog.__set_properties): Removed. Setting the
800            selection of empty list boxes is not allowed (and produces C++
801            assertion errors) and the rest of the setup is better done in
802            __init__ anyway.
803            (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
804            (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
805            builtins True/False for booleans to avoid warnings from wxPython
806    
807            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
808            ChooseDBTableDialog constructor parameters.
809    
810    2003-09-01  Bernhard Herzog  <[email protected]>
811    
812            * Thuban/Model/postgisdb.py
813            (PostGISTable): Extend doc-string
814            (PostGISTable._fetch_table_information): Set the column index
815            correctly, pretending ignored columns don't exist.
816    
817            * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
818            for postgis tables with data types not yet supported by thuban.
819    
820    2003-08-29  Bernhard Herzog  <[email protected]>
821    
822            * HOWTO-Release: Tweak item about running the tests.
823    
824    2003-08-29  Jan-Oliver Wagner <[email protected]>
825    
826            * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
827    
828    2003-08-29  Bernhard Herzog  <[email protected]>
829    
830            Add some missing parameters to projections. Proj complains about
831            them on windows but for some reason not on Linux.
832    
833            * test/test_save.py (SaveSessionTest.testLayerProjection): Add
834            missing required projection parameters
835    
836            * test/test_proj.py (TestProjFile.test): Add missing required
837            projection parameters
838    
839            * test/test_load_0_8.py (TestLayerProjection.file_contents)
840            (TestLayerProjection.test): Add missing required projection
841            parameters and tests for them
842    
843            * test/test_load.py (TestLayerProjection.file_contents)
844            (TestLayerProjection.test): Add missing required projection
845            parameters and tests for them
846    
847            * test/test_layer.py (TestLayer.test_base_layer): Add missing
848            required projection parameters
849    
850    2003-08-29  Bernhard Herzog  <[email protected]>
851    
852            * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
853            access the pj_errno because directly accessing pj_errno doesn't
854            work on windows if the proj library is in a DLL
855    
856            * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
857    
858    2003-08-28  Bernhard Herzog  <[email protected]>
859    
860            * test/test_proj.py: Import things from Thuban after calling
861            initthuban
862    
863            * test/test_load.py (LoadSessionTest.filenames): New class
864            variable with the filename attributes to normalize
865            (LoadSessionTest.check_format): Pass self.filenames to
866            sax_eventlist to normalize the filename attributes
867    
868            * test/xmlsupport.py: Add cvs keywords
869            (SaxEventLister.__init__): New parameter filenames which indicates
870            attributes that contain filenames
871            (SaxEventLister.startElementNS): Normalize the filename attributes
872            with os.path.normpath
873            (sax_eventlist): New parameter filenames to pass through to
874            SaxEventLister
875    
876            * test/test_derivedshapestore.py: Make this file callable as a
877            program to execute the tests
878            (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
879            the session to self.session so that it gets destroyed properly
880    
881            * test/test_layer.py (TestLayer.tearDown): Call the session's
882            Destroy method
883    
884            * test/test_map.py (TestMapBase.tearDown): Destroy self.session
885            too if it exists
886            (TestMapAddLayer.test_add_layer): Bind the session to self.session
887            so that it gets destroyed properly
888    
889            * test/postgissupport.py (reason_for_not_running_tests): Add a
890            test for the existence of popen2.Popen4.
891    
892            * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
893            reliable way to destroy the sessions created in the test cases
894            (SaveSessionTest.test_dbf_table): Bind the session to self.session
895            so that it gets destroyed properly
896            (SaveSessionTest.testLayerProjection): Bind the session to
897            self.session so that it gets destroyed properly
898    
899            * test/test_session.py (UnreferencedTablesTests.tearDown): Make
900            sure that the session is destroyed properly
901    
902            * test/test_shapefilestore.py: Make this callable as a program to
903            execute the tests
904    
905            * test/test_scalebar.py: Remove unnecessary import of _ from
906            Thuban
907    
908            * test/support.py (print_garbage_information): Call initthuban
909            here because it may be called indirectly from test cases that test
910            test support modules which do not use anything from thuban itself
911            (ThubanTestProgram.runTests): Remove unnecessary debug print
912    
913    2003-08-28  Bernhard Herzog  <[email protected]>
914    
915            * Thuban/version.py (longversion): Update to 0.9
916    
917            * Thuban/UI/mainwindow.py: Remove some unused imports
918    
919            * README: Add section about required additional software. Add date
920            and revision CVS keywords
921    
922            * HOWTO-Release: Add item about the translations. Add date and
923            revision CVs keywords and change formatting to match README a bit
924            better
925    
926            * po/de.po: Update for 0.9
927    
928            * test/README: Tweak the wording a little because many tests are
929            not really unittest.
930    
931    2003-08-27  Bernhard Herzog  <[email protected]>
932    
933            As preparation for the 0.9 release, switch thuban files to a
934            non-dev namespace
935    
936            * Thuban/Model/save.py (SessionSaver.write_session): Write files
937            with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
938            namespace
939    
940            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
941            http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
942    
943            * test/test_save.py (SaveSessionTest.dtd)
944            (SaveSessionTest.testEmptySession)
945            (SaveSessionTest.testSingleLayer)
946            (SaveSessionTest.testLayerProjection)
947            (SaveSessionTest.testRasterLayer)
948            (SaveSessionTest.testClassifiedLayer)
949            (SaveSessionTest.test_dbf_table)
950            (SaveSessionTest.test_joined_table)
951            (SaveSessionTest.test_save_postgis): Update for new namespace
952    
953            * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
954            (TestLayerVisibility.file_contents, TestLabels.file_contents)
955            (TestLayerProjection.file_contents)
956            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
957            (TestPostGISLayer.file_contents)
958            (TestPostGISLayerPassword.file_contents)
959            (TestLoadError.file_contents, TestLoadError.test): Update for new
960            namespace
961    
962    2003-08-27  Bernhard Herzog  <[email protected]>
963    
964            Make the table interface distinguish between row ids (an integer
965            that uniquely identifies a row) and row ordinals (a simple row
966            count from 0 to NumRows() - 1)
967    
968            * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
969            (PostGISTable.RowOrdinalToId): New methods to conver between row
970            ids and row ordinals
971            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
972            parameter row_is_ordinal to indicate whether the row parameter is
973            the row id or the ordinal
974    
975            * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
976            (TransientTableBase.RowOrdinalToId)
977            (AutoTransientTable.RowIdToOrdinal)
978            (AutoTransientTable.RowOrdinalToId): Same new methods as in
979            PostGISTable.
980            (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
981            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
982            Same new parameter as in PostGISTable.
983    
984            * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
985            (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
986            (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
987            (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
988            (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
989            parameter as in PostGISTable.
990    
991            * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
992            (DataTable.RowOrdinalToId): New methods to convert between row ids
993            and row ordinals.
994            (TableGrid.SelectRowById): New method to select a row based on its
995            ID as opposed to its ordinal
996            (DataTable.GetValue, TableGrid.OnRangeSelect)
997            (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
998            (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
999            (LayerTableFrame.__init__): Convert between row ids and row
1000            ordinals as appropriate
1001    
1002            * test/postgissupport.py (PostGISDatabase.__init__): Add
1003            doc-string.
1004            (PostGISDatabase.initdb): The optional third item in a tuple in
1005            tables is now a (key, value) list with additional arguments to
1006            pass to upload_shapefile
1007            (upload_shapefile): New parameter gid_offset to allow gids that
1008            are not the same as the shapeids in the shapefile
1009            (PostgreSQLServer.get_default_static_data_db): Use the new
1010            gid_offset to make the gids in landmarks 1000 higher than the
1011            shapeids in the shapefile
1012    
1013            * test/test_viewport.py
1014            (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
1015            new shapeids in the landmarks table
1016    
1017            * test/test_transientdb.py
1018            (TestTransientTable.run_iceland_political_tests)
1019            (TestTransientTable.test_transient_joined_table): Add tests for
1020            the new table methods and new keywords arguments.
1021    
1022            * test/test_postgis_db.py
1023            (TestPostGISTable.test_read_row_as_dict_row_count_mode)
1024            (TestPostGISTable.test_read_value_row_count_mode)
1025            (TestPostGISTable.test_row_id_to_ordinal)
1026            (TestPostGISTable.test_row_oridnal_to_id): New test for the new
1027            table methods and the new arguments
1028            (TestPostGISShapestorePoint.test_shapes_in_region)
1029            (TestPostGISShapestorePoint.test_shape_raw_data)
1030            (TestPostGISShapestorePoint.test_shape_points)
1031            (TestPostGISShapestorePoint.test_shape_shapeid)
1032            (TestPostGISShapestorePoint.test_all_shapes)
1033            (TestPostGISTable.test_simple_query)
1034            (TestPostGISTable.test_simple_query)
1035            (TestPostGISTable.test_simple_query)
1036            (TestPostGISTable.test_read_value)
1037            (TestPostGISTable.test_read_row_as_dict): Adapt to the new
1038            shapeids in the landmarks table
1039    
1040            * test/test_memory_table.py
1041            (TestMemoryTable.test_read_row_as_dict_row_count_mode)
1042            (TestMemoryTable.test_read_value_row_count_mode)
1043            (TestMemoryTable.test_row_id_to_ordinal)
1044            (TestMemoryTable.test_row_oridnal_to_id): New test for the new
1045            table methods and the new arguments
1046    
1047            * test/test_dbf_table.py
1048            (TestDBFTable.test_read_row_as_dict_row_count_mode)
1049            (TestDBFTable.test_read_value_row_count_mode)
1050            (TestDBFTable.test_row_id_to_ordinal)
1051            (TestDBFTable.test_row_oridnal_to_id): New test for the new table
1052            methods and the new arguments
1053    
1054    2003-08-26  Bernhard Herzog  <[email protected]>
1055    
1056            * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
1057            more postgis specific but much faster method to get the bounding
1058            box
1059    
1060    2003-08-26  Bernhard Herzog  <[email protected]>
1061    
1062            * Thuban/Model/postgisdb.py (PostGISTable.Title)
1063            (PostGISShapeStore.AllShapes): Add these missing methods.
1064            (PostGISShapeStore.ShapesInRegion): No need to raise
1065            StopIteration. We can simply return
1066    
1067            * test/test_postgis_db.py (TestPostGISTable.test_title)
1068            (TestPostGISShapestorePoint.test_all_shapes): New tests for the
1069            new methods
1070    
1071    2003-08-25  Bernhard Herzog  <[email protected]>
1072    
1073            * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
1074    
1075            * test/test_postgis_db.py (PolygonTests): New class containing
1076            those tests from TestPostGISShapestorePolygon that can also be
1077            used to test MUTLIPOLYGON tables
1078            (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
1079            so derive from that
1080            (TestPostGISShapestoreMultiPolygon): New class with tests for
1081            MUTLIPOLYGON tables
1082    
1083            * test/postgissupport.py (PostGISDatabase.initdb): Allow the
1084            tables argument to have tuples with three items to override the
1085            WKT type used.
1086            (PostgreSQLServer.get_default_static_data_db): Use the above to
1087            create a polygon table with MUTLIPOLYGONs
1088            (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
1089            (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
1090            coords_to*
1091            (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
1092            (wkt_converter): New. Map WKT types to converters
1093            (upload_shapefile): New parameter force_wkt_type to use a
1094            different WKT type than the default
1095    
1096    2003-08-25  Bernhard Herzog  <[email protected]>
1097    
1098            * Thuban/UI/application.py
1099            (ThubanApplication.run_db_param_dialog): New. Suitable as a
1100            db_connection_callback. Main difference is that the dialog run
1101            from this method doesn't have a parent so it can be used even when
1102            there is no main window
1103            (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
1104            no db_connection_callback was given. This way the dialog pops up
1105            even when the .thuban file was given as a command line parameter.
1106    
1107    2003-08-25  Bernhard Herzog  <[email protected]>
1108    
1109            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
1110            before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
1111            which leads to an effectively frozen X session because the user
1112            can only interact with the dialog but the mouse is still grabbed
1113            by the canvas.
1114            Also, call the tool's Hide method before MouseLeftUp because
1115            MouseLeftUp may change the tool's coordinates.
1116    
1117    2003-08-25  Bernhard Herzog  <[email protected]>
1118    
1119            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
1120            LoadCancelled exceptions and handle them by returning immediately.
1121    
1122    2003-08-25  Bernhard Herzog  <[email protected]>
1123    
1124            GUI part of loading sessions with postgis connections which may
1125            require user interaction to get passwords or updated parameters
1126    
1127            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
1128            bit nucer and be more generic.
1129            (DBFrame.OnAdd): Adapt to new DBDialog interface
1130    
1131            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
1132            optional parameter db_connection_callback which is passed to
1133            load_session.
1134    
1135            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
1136            Suitable as a db_connection_callback
1137            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
1138            db_connection_callback of the application's OpenSession method
1139    
1140    
1141    2003-08-25  Bernhard Herzog  <[email protected]>
1142    
1143            Basic loading of sessions containing postgis connections:
1144    
1145            * Thuban/Model/load.py (LoadError): Add doc-string
1146            (LoadCancelled): New exception class to indicate a cancelled load
1147            (SessionLoader.__init__): Add the db_connection_callback parameter
1148            which will be used by the loader to get updated parameters and a
1149            password for a database connection
1150            (SessionLoader.__init__): Add the new XML elements to the
1151            dispatchers dictionary
1152            (SessionLoader.check_attrs): Two new conversions, ascii to convert
1153            to a byte-string object and idref as a generic id reference
1154            (SessionLoader.start_dbconnection)
1155            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
1156            elements
1157            (load_session): Add the db_connection_callback to pass through the
1158            SessionLoader
1159    
1160            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
1161            New classes to test loading of sessions with postgis database
1162            connections.
1163    
1164    2003-08-25  Bernhard Herzog  <[email protected]>
1165    
1166            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
1167            replace it and the comment with __BuildDate__ by the Source: and
1168            Id: cvs keywords as used in the other files.
1169    
1170    2003-08-25  Bernhard Herzog  <[email protected]>
1171    
1172            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
1173            LoadError when a required attribute is missing. The code used to
1174            be commented out for some reason, but probably should have been
1175            active.
1176    
1177            * test/test_load.py (TestLoadError.test): Test the message in the
1178            LoadError too to make sure it really is about the missing
1179            attribute
1180    
1181    2003-08-22  Bernhard Herzog  <[email protected]>
1182    
1183            * test/test_save.py (SaveSessionTest.test_dbf_table)
1184            (SaveSessionTest.test_joined_table): Add XML validation tests.
1185    
1186    2003-08-22  Bernhard Herzog  <[email protected]>
1187    
1188            Implement saving a session with a postgis connection
1189    
1190            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
1191            elements for database connections and shapestores using db
1192            connections
1193            (session): Add the dbconnections to the content model
1194    
1195            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
1196            Write the db connections
1197            (SessionSaver.write_session): Call write_db_connections to write
1198            the connection before the data sources
1199            (SessionSaver.write_data_containers): Handle postgis shapestores
1200    
1201            * test/test_save.py (SaveSessionTest.thubanids)
1202            (SaveSessionTest.thubanidrefs): Update for new DTD
1203            (SaveSessionTest.test_save_postgis): New. Test saving a session
1204            with postgis connections
1205    
1206            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
1207            (PostGISTable.TableName): New accessor methods for the connection
1208            and table name
1209    
1210            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
1211            (TestPostGISTable.test_dbname): New methods to test the new
1212            PostGISConnection methods
1213    
1214    2003-08-22  Bernhard Herzog  <[email protected]>
1215    
1216            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
1217            for exceptions occurring when establishing a Database connection
1218            (PostGISConnection.connect): Catch psycopg.OperationalError during
1219            connects and raise ConnectionError.
1220    
1221            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
1222            tests for database exceptions
1223    
1224    2003-08-22  Bernhard Herzog  <[email protected]>
1225    
1226            Prepare the test suite for tests with required authentication
1227    
1228            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
1229            variables with two predefined users/passwords, one for the admin
1230            and one for a non-privileged user.
1231            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
1232            the non-privileged user to the database and set the admin password
1233            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
1234            Better error reporting
1235            (PostgreSQLServer.connection_params)
1236            (PostgreSQLServer.connection_string): New methods to return
1237            information about how to connect to the server
1238            (PostgreSQLServer.execute_sql): New. Convenience method to execute
1239            SQL statements
1240            (PostgreSQLServer.require_authentication): Toggle whether the
1241            server requires authentication
1242            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
1243            Add or alter users
1244            (PostGISDatabase.initdb): Pass the admin name one the
1245            subprocesses' command lines. Grant select rights on
1246            geometry_columns to everybody.
1247            (upload_shapefile): Use the admin name and password when
1248            connecting. Grant select rights on the new table to everybody.
1249    
1250            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
1251            server's new methods to get the connection parameters.
1252    
1253            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
1254            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
1255            server's new methods to get the connection parameters.
1256    
1257            * test/test_postgis_db.py
1258            (TestPostGISConnection.test_gis_tables_empty)
1259            (TestPostGISConnection.test_gis_tables_non_empty)
1260            (PostGISStaticTests.setUp): Use the server's new methods to get
1261            the connection parameters.
1262    
1263    2003-08-22  Bernhard Herzog  <[email protected]>
1264    
1265            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
1266    
1267            * Thuban/version.py: Add psycopg version
1268    
1269            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
1270            version of the psycopg module
1271    
1272    2003-08-22  Bernhard Herzog  <[email protected]>
1273    
1274            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
1275            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
1276            at the moment. The functionality should probably be implemented
1277            some time, though.
1278            (DBFrame.OnRemove): Display a message if the connection can't be
1279            removed because it's still in use.
1280    
1281    2003-08-22  Jan-Oliver Wagner <[email protected]>
1282    
1283            * Thuban/UI/about.py (About.__init__): split up the huge about
1284            text into elements/lists for easier translation. This fixes bug
1285            https://intevation.de/rt/webrt?serial_num=2058
1286            Also, made some forgotten string available for the i18n.
1287    
1288    2003-08-21  Bernhard Herzog  <[email protected]>
1289    
1290            Make postgis support really optional including insensitive menu
1291            items.
1292    
1293            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
1294            whether the postgis is supported.
1295    
1296            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
1297            to make postgis support optional
1298    
1299            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
1300            version of Thuban.Model.postgisdb.has_postgis_support
1301            (database_management command): Make it only sensitive if postgis
1302            is supported.
1303    
1304    2003-08-21  Jan-Oliver Wagner <[email protected]>
1305    
1306            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
1307            (section Adding and Removing Layers): Added text and described
1308            multi-selection.
1309            (chapter Extensions): New.
1310    
1311    2003-08-21  Jan-Oliver Wagner <[email protected]>
1312    
1313            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
1314            settings to allow multiple files to load into the map.
1315            Also reduced selection to *.shp as a default.
1316    
1317    2003-08-20  Bernhard Herzog  <[email protected]>
1318    
1319            Add dialogs and commands to open database connections and add
1320            database layers.
1321    
1322            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
1323            method to open the database connection management dialog
1324            (MainWindow.AddDBLayer): New method to add a layer from a database
1325            (_has_dbconnections): New helper function to use for sensitivity
1326            (database_management command, layer_add_db command): New commands
1327            that call the above new methods.
1328            (main_menu): Add the new commands to the menu.
1329    
1330            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
1331            (PostGISConnection.connect): Establish the actual connection in a
1332            separate method and call it in __init__. This makes it easier to
1333            override the behavior in test cases
1334            (PostGISConnection.BriefDescription): New method to return a brief
1335            description for use in dialogs.
1336    
1337            * test/test_postgis_db.py (NonConnection): DB connection that
1338            doesn't actually connect
1339            (TestBriefDescription): New class with tests for the new
1340            BriefDescription method
1341    
1342    2003-08-19  Jan-Oliver Wagner <[email protected]>
1343    
1344            Moved anything from extensions to libraries.
1345    
1346            * libraries: New.
1347    
1348            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
1349    
1350            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
1351            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
1352            been moved here from thuban/extensions/pyprojection/
1353            See there in the Attic for the older history.
1354    
1355            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
1356            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
1357            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
1358            have been moved here from thuban/extensions/pyshapelib/
1359            See there in the Attic for the older history.
1360    
1361            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
1362            files have been moved here from thuban/extensions/shapelib/
1363            See there in the Attic for the older history.
1364    
1365            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
1366            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
1367            thuban/extensions/thuban/
1368            See there in the Attic for the older history.
1369    
1370            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
1371    
1372            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
1373            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
1374    
1375            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
1376            Moved to libraries/shapelib.
1377    
1378            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
1379            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
1380            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
1381            Moved to libraries/pyshapelib.
1382    
1383            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
1384            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
1385            Moved to libraries/pyprojection.
1386    
1387            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
1388    
1389            * extensions: Removed.
1390    
1391    2003-08-19  Bernhard Herzog  <[email protected]>
1392    
1393            * test/test_viewport.py (ViewPortTest): We don't use the
1394            facilities of FileTestMixin so don't derive from it.
1395            (TestViewportWithPostGIS): New class with tests for using a
1396            viewport on a map with postgis layers.
1397    
1398    2003-08-19  Bernhard Herzog  <[email protected]>
1399    
1400            Add the db connection management to the session.
1401    
1402            * Thuban/Model/session.py (Session.__init__): New instance
1403            variable db_connections
1404            (Session.AddDBConnection, Session.DBConnections)
1405            (Session.HasDBConnections, Session.CanRemoveDBConnection)
1406            (Session.RemoveDBConnection): New methods to manage and query the
1407            db connections managed by the session
1408            (Session.OpenDBShapeStore): New method to open a shapestore from a
1409            db connection
1410    
1411            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
1412            messages for the db connection handling in the session
1413    
1414            * test/test_postgis_session.py: New. test cases for the session's
1415            db connection handling with postgis connections
1416    
1417    2003-08-19  Bernhard Herzog  <[email protected]>
1418    
1419            Add very basic postgis database support and the corresponding test
1420            cases. The test cases require a PostgreSQL + postgis installation
1421            but no existing database. The database will be created
1422            automatically by the test cases
1423    
1424            * test/README: Add note about skipped tests and the requirements
1425            of the postgis tests.
1426    
1427            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
1428    
1429            * test/test_postgis_db.py: New. Test cases for the postgis
1430            support.
1431    
1432            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
1433            format
1434    
1435            * test/test_wellknowntext.py: New. Test cases for the
1436            wellknowntext parser
1437    
1438            * test/postgissupport.py: New. Support module for tests involving
1439            a postgis database.
1440    
1441            * test/support.py (execute_as_testsuite): Shut down the postmaster
1442            if it's still running after the tests
1443    
1444            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
1445            well known text format
1446    
1447    2003-08-19  Jan-Oliver Wagner <[email protected]>
1448    
1449            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
1450            message dialog.
1451    
1452    2003-08-18  Bernhard Herzog  <[email protected]>
1453    
1454            * test/support.py (ThubanTestResult.printErrors): Indent the
1455            reason for the skips in the output to make it a bit more readable.
1456            (execute_as_testsuite): New helper function to run a test suite
1457            and print some more information.
1458            (run_tests): Use execute_as_testsuite to run the tests
1459    
1460            * test/runtests.py (main): Use execute_as_testsuite to run the
1461            tests
1462    
1463    2003-08-18  Bernhard Herzog  <[email protected]>
1464    
1465            Fix some bugs in Thuban and the test suite that were uncovered by
1466            changes introduced in Python 2.3:
1467    
1468            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
1469            filename is an absolute name
1470    
1471            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
1472            filename is an absolute name
1473    
1474            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
1475            unique filename to save to and use the correct relative filename
1476            in the expected output.
1477            (SaveSessionTest.test_dbf_table): Use the correct relative
1478            filename in the expected output.
1479    
1480            * test/test_layer.py (TestLayer.test_raster_layer): Update the
1481            test to check whether the filename is absolute.
1482    
1483    2003-08-18  Jan-Oliver Wagner <[email protected]>
1484    
1485            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
1486    
1487    2003-08-15  Bernhard Herzog  <[email protected]>
1488    
1489            Change the way shapes are returned by a shape store. The
1490            ShapesInRegion method returns an iterator over actual shape
1491            objects instead of a list of shape ids.
1492    
1493            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
1494            id.
1495            (ShapefileStore.ShapesInRegion): Return an iterator over the
1496            shapes which yields shape objects instead of returning a list of
1497            shape ids
1498            (ShapefileStore.AllShapes): New. Return an iterator over all
1499            shapes in the shape store
1500            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
1501    
1502            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
1503            doc-string.
1504    
1505            * Thuban/UI/baserenderer.py
1506            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
1507            layer_shapes and make it return an iterator containg shapes
1508            instead of a list of ids.
1509            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
1510            layer_shapes() change
1511    
1512            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
1513            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
1514    
1515            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
1516            changes in the ShapesInRegion return value.
1517            (ViewPort._get_hit_tester): Remove commented out code
1518    
1519            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
1520            new return value.
1521            (SimpleShapeStore.AllShapes): New. Implement this method too.
1522    
1523            * test/test_layer.py (TestLayer.test_arc_layer)
1524            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
1525            (TestLayer.test_point_layer_with_projection)
1526            (TestLayer.test_derived_store): Adapt to changes in the
1527            ShapesInRegion return value.
1528    
1529            * test/test_shapefilestore.py
1530            (TestShapefileStoreArc.test_shapes_in_region)
1531            (TestShapefileStorePolygon.test_shapes_in_region)
1532            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
1533            in the ShapesInRegion return value.
1534            (TestShapefileStorePoint.test_all_shapes)
1535            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
1536            methods
1537    
1538            * test/test_derivedshapestore.py
1539            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
1540            the ShapesInRegion return value.
1541            (TestDerivedShapeStore.test_all_shapes)
1542            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
1543            methods
1544    
1545    2003-08-15  Bernhard Herzog  <[email protected]>
1546    
1547            Make the renderers deal correctly with raw vs. python level
1548            representation of shape geometries
1549    
1550            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
1551            Return a flag useraw in addition to the callable and the parameter
1552            to indicate whether the callable can deal with the raw shape data
1553            or uses the higher level python lists of coordinates. The callable
1554            now should accept either the raw data or the return value of the
1555            shape's Points() method.
1556            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
1557            change
1558            (BaseRenderer.projected_points): Instead of the shape id use the
1559            points list as parameter.
1560            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
1561            (BaseRenderer.draw_point_shape): Adapt to projected_points()
1562            change and accept the points list as parameter instead of the
1563            shape id.
1564    
1565            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
1566            the useraw flag as required by the BaseRenderer
1567            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
1568            changes.
1569    
1570            * test/test_baserenderer.py
1571            (TestBaseRenderer.test_point_with_classification): New test for
1572            rendering a map with classifications.
1573    
1574    2003-08-15  Bernhard Herzog  <[email protected]>
1575    
1576            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
1577            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
1578            (ViewPort._get_hit_tester, ViewPort.projected_points)
1579            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
1580            (ViewPort._find_label_at): Split the find_shape_at method into
1581            several new methods and use the functions in the hit-test module.
1582    
1583            * Thuban/UI/hittest.py: New module with Python-level hit-testing
1584            functions
1585    
1586            * test/test_hittest.py: New. Test for the new hittest module
1587    
1588    2003-08-15  Bernhard Herzog  <[email protected]>
1589    
1590            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
1591            projection to all corners of the bounding box to get a better
1592            approximation of the projected bounding box
1593    
1594            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
1595            New. Test coordinate handling of a layer with a projection.
1596            Catches the bug fixed in Layer.ShapesInRegion
1597    
1598    2003-08-15  Bernhard Herzog  <[email protected]>
1599    
1600            Move some of the mock objects in test_baserenderer into their own
1601            module so they can easily be used from other tests
1602    
1603            * test/mockgeo.py: New test helper module with some mock objects
1604            for geometry related things like shapes, shapestores and
1605            projections.
1606    
1607            * test/test_mockgeo.py: New. Tests for the new helper module
1608    
1609            * test/test_baserenderer.py: Some of the mock-objects are in
1610            mockgeo now.
1611    
1612    2003-08-12  Jan-Oliver Wagner <[email protected]>
1613    
1614            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
1615    
1616    2003-08-12  Bernhard Herzog  <[email protected]>
1617    
1618            * po/de.po: New. German translations by Bjoern Broscheit
1619    
1620  2003-08-12  Bernhard Herzog  <[email protected]>  2003-08-12  Bernhard Herzog  <[email protected]>
1621    
1622          * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated          * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
# Line 417  Line 2036 
2036    
2037          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
2038          it annoys lintian which warns about these files not being          it annoys lintian which warns about these files not being
2039          executable. The #1 isn't necessary here since if you absolutely          executable. The #! isn't necessary here since if you absolutely
2040          must execute them you can always say "python <filename>".          must execute them you can always say "python <filename>".
2041    
2042          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove

Legend:
Removed from v.1580  
changed lines
  Added in v.1873

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26