/[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 1657 by bh, Mon Aug 25 18:27:16 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]>  2003-08-25  Bernhard Herzog  <[email protected]>
796    
797          * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.          * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
# Line 966  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.1657  
changed lines
  Added in v.1832

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26