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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26