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

Legend:
Removed from v.1588  
changed lines
  Added in v.1785

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26