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

Legend:
Removed from v.1582  
changed lines
  Added in v.1847

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26