/[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 1272 by jonathan, Fri Jun 20 16:43:13 2003 UTC revision 1718 by bh, Thu Sep 18 12:41:46 2003 UTC
# Line 1  Line 1 
1    2003-09-18  Bernhard Herzog  <[email protected]>
2    
3            * setup.py (data_files): Only add the mo files if the Locales
4            directory actually exists, so that setup.py works with a fresh CVS
5            checkout
6    
7    2003-09-12  Jan-Oliver Wagner <[email protected]>
8    
9            * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
10            in viewport, not anymore in view
11    
12    2003-09-04  Jan-Oliver Wagner <[email protected]>
13    
14            Introducing first Extension (gns2shp).
15    
16            * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
17    
18            * Extensions/__init__.py: New. init to make this dir a package.
19    
20            * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
21    
22            * Extensions/gns2shp/test/README: New. some info on this test directory.
23    
24            * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
25    
26            * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
27            of Shapefile from GNS text file format
28    
29            *
30    2003-09-03  Jan-Oliver Wagner <[email protected]>
31    
32            Fix/workaround for bug #2019:
33            https://intevation.de/rt/webrt?serial_num=2019
34    
35            * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
36            (IdentifyView.__init__): Added another button that allows to
37            stop the identify mode.
38            (IdentifyView.OnStop): New. Stops the identify mode.
39    
40    2003-09-03  Jan-Oliver Wagner <[email protected]>
41    
42            Introducing a new exception dialog that allows to exit the
43            application immediately.
44            This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
45    
46            * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
47    
48            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
49            Made strings available to translations. Exchanged the simple
50            ScrolledMessageDialog by the new ExceptionDialog.
51    
52    2003-09-01  Bernhard Herzog  <[email protected]>
53    
54            * NEWS: New. Summary of changes and release notes.
55    
56            * MANIFEST.in: Add NEWS
57    
58    2003-09-01  Bernhard Herzog  <[email protected]>
59    
60            * MANIFEST.in: Correct the include statement for the mo-files and
61            include the documentation too.
62    
63            * setup.py (data_files): Add the .mo files
64            (setup call): Up to version 0.9.0
65    
66    2003-09-01  Bernhard Herzog  <[email protected]>
67    
68            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
69            parameter list to just parent and session
70            (ChooseDBTableDialog.__set_properties): Removed. Setting the
71            selection of empty list boxes is not allowed (and produces C++
72            assertion errors) and the rest of the setup is better done in
73            __init__ anyway.
74            (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
75            (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
76            builtins True/False for booleans to avoid warnings from wxPython
77    
78            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
79            ChooseDBTableDialog constructor parameters.
80    
81    2003-09-01  Bernhard Herzog  <[email protected]>
82    
83            * Thuban/Model/postgisdb.py
84            (PostGISTable): Extend doc-string
85            (PostGISTable._fetch_table_information): Set the column index
86            correctly, pretending ignored columns don't exist.
87    
88            * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
89            for postgis tables with data types not yet supported by thuban.
90    
91    2003-08-29  Bernhard Herzog  <[email protected]>
92    
93            * HOWTO-Release: Tweak item about running the tests.
94    
95    2003-08-29  Jan-Oliver Wagner <[email protected]>
96    
97            * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
98    
99    2003-08-29  Bernhard Herzog  <[email protected]>
100    
101            Add some missing parameters to projections. Proj complains about
102            them on windows but for some reason not on Linux.
103    
104            * test/test_save.py (SaveSessionTest.testLayerProjection): Add
105            missing required projection parameters
106    
107            * test/test_proj.py (TestProjFile.test): Add missing required
108            projection parameters
109    
110            * test/test_load_0_8.py (TestLayerProjection.file_contents)
111            (TestLayerProjection.test): Add missing required projection
112            parameters and tests for them
113    
114            * test/test_load.py (TestLayerProjection.file_contents)
115            (TestLayerProjection.test): Add missing required projection
116            parameters and tests for them
117    
118            * test/test_layer.py (TestLayer.test_base_layer): Add missing
119            required projection parameters
120    
121    2003-08-29  Bernhard Herzog  <[email protected]>
122    
123            * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
124            access the pj_errno because directly accessing pj_errno doesn't
125            work on windows if the proj library is in a DLL
126    
127            * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
128    
129    2003-08-28  Bernhard Herzog  <[email protected]>
130    
131            * test/test_proj.py: Import things from Thuban after calling
132            initthuban
133    
134            * test/test_load.py (LoadSessionTest.filenames): New class
135            variable with the filename attributes to normalize
136            (LoadSessionTest.check_format): Pass self.filenames to
137            sax_eventlist to normalize the filename attributes
138    
139            * test/xmlsupport.py: Add cvs keywords
140            (SaxEventLister.__init__): New parameter filenames which indicates
141            attributes that contain filenames
142            (SaxEventLister.startElementNS): Normalize the filename attributes
143            with os.path.normpath
144            (sax_eventlist): New parameter filenames to pass through to
145            SaxEventLister
146    
147            * test/test_derivedshapestore.py: Make this file callable as a
148            program to execute the tests
149            (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
150            the session to self.session so that it gets destroyed properly
151    
152            * test/test_layer.py (TestLayer.tearDown): Call the session's
153            Destroy method
154    
155            * test/test_map.py (TestMapBase.tearDown): Destroy self.session
156            too if it exists
157            (TestMapAddLayer.test_add_layer): Bind the session to self.session
158            so that it gets destroyed properly
159    
160            * test/postgissupport.py (reason_for_not_running_tests): Add a
161            test for the existence of popen2.Popen4.
162    
163            * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
164            reliable way to destroy the sessions created in the test cases
165            (SaveSessionTest.test_dbf_table): Bind the session to self.session
166            so that it gets destroyed properly
167            (SaveSessionTest.testLayerProjection): Bind the session to
168            self.session so that it gets destroyed properly
169    
170            * test/test_session.py (UnreferencedTablesTests.tearDown): Make
171            sure that the session is destroyed properly
172    
173            * test/test_shapefilestore.py: Make this callable as a program to
174            execute the tests
175    
176            * test/test_scalebar.py: Remove unnecessary import of _ from
177            Thuban
178    
179            * test/support.py (print_garbage_information): Call initthuban
180            here because it may be called indirectly from test cases that test
181            test support modules which do not use anything from thuban itself
182            (ThubanTestProgram.runTests): Remove unnecessary debug print
183    
184    2003-08-28  Bernhard Herzog  <[email protected]>
185    
186            * Thuban/version.py (longversion): Update to 0.9
187    
188            * Thuban/UI/mainwindow.py: Remove some unused imports
189    
190            * README: Add section about required additional software. Add date
191            and revision CVS keywords
192    
193            * HOWTO-Release: Add item about the translations. Add date and
194            revision CVs keywords and change formatting to match README a bit
195            better
196    
197            * po/de.po: Update for 0.9
198    
199            * test/README: Tweak the wording a little because many tests are
200            not really unittest.
201    
202    2003-08-27  Bernhard Herzog  <[email protected]>
203    
204            As preparation for the 0.9 release, switch thuban files to a
205            non-dev namespace
206    
207            * Thuban/Model/save.py (SessionSaver.write_session): Write files
208            with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
209            namespace
210    
211            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
212            http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
213    
214            * test/test_save.py (SaveSessionTest.dtd)
215            (SaveSessionTest.testEmptySession)
216            (SaveSessionTest.testSingleLayer)
217            (SaveSessionTest.testLayerProjection)
218            (SaveSessionTest.testRasterLayer)
219            (SaveSessionTest.testClassifiedLayer)
220            (SaveSessionTest.test_dbf_table)
221            (SaveSessionTest.test_joined_table)
222            (SaveSessionTest.test_save_postgis): Update for new namespace
223    
224            * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
225            (TestLayerVisibility.file_contents, TestLabels.file_contents)
226            (TestLayerProjection.file_contents)
227            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
228            (TestPostGISLayer.file_contents)
229            (TestPostGISLayerPassword.file_contents)
230            (TestLoadError.file_contents, TestLoadError.test): Update for new
231            namespace
232    
233    2003-08-27  Bernhard Herzog  <[email protected]>
234    
235            Make the table interface distinguish between row ids (an integer
236            that uniquely identifies a row) and row ordinals (a simple row
237            count from 0 to NumRows() - 1)
238    
239            * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
240            (PostGISTable.RowOrdinalToId): New methods to conver between row
241            ids and row ordinals
242            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
243            parameter row_is_ordinal to indicate whether the row parameter is
244            the row id or the ordinal
245    
246            * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
247            (TransientTableBase.RowOrdinalToId)
248            (AutoTransientTable.RowIdToOrdinal)
249            (AutoTransientTable.RowOrdinalToId): Same new methods as in
250            PostGISTable.
251            (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
252            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
253            Same new parameter as in PostGISTable.
254    
255            * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
256            (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
257            (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
258            (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
259            (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
260            parameter as in PostGISTable.
261    
262            * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
263            (DataTable.RowOrdinalToId): New methods to convert between row ids
264            and row ordinals.
265            (TableGrid.SelectRowById): New method to select a row based on its
266            ID as opposed to its ordinal
267            (DataTable.GetValue, TableGrid.OnRangeSelect)
268            (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
269            (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
270            (LayerTableFrame.__init__): Convert between row ids and row
271            ordinals as appropriate
272    
273            * test/postgissupport.py (PostGISDatabase.__init__): Add
274            doc-string.
275            (PostGISDatabase.initdb): The optional third item in a tuple in
276            tables is now a (key, value) list with additional arguments to
277            pass to upload_shapefile
278            (upload_shapefile): New parameter gid_offset to allow gids that
279            are not the same as the shapeids in the shapefile
280            (PostgreSQLServer.get_default_static_data_db): Use the new
281            gid_offset to make the gids in landmarks 1000 higher than the
282            shapeids in the shapefile
283    
284            * test/test_viewport.py
285            (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
286            new shapeids in the landmarks table
287    
288            * test/test_transientdb.py
289            (TestTransientTable.run_iceland_political_tests)
290            (TestTransientTable.test_transient_joined_table): Add tests for
291            the new table methods and new keywords arguments.
292    
293            * test/test_postgis_db.py
294            (TestPostGISTable.test_read_row_as_dict_row_count_mode)
295            (TestPostGISTable.test_read_value_row_count_mode)
296            (TestPostGISTable.test_row_id_to_ordinal)
297            (TestPostGISTable.test_row_oridnal_to_id): New test for the new
298            table methods and the new arguments
299            (TestPostGISShapestorePoint.test_shapes_in_region)
300            (TestPostGISShapestorePoint.test_shape_raw_data)
301            (TestPostGISShapestorePoint.test_shape_points)
302            (TestPostGISShapestorePoint.test_shape_shapeid)
303            (TestPostGISShapestorePoint.test_all_shapes)
304            (TestPostGISTable.test_simple_query)
305            (TestPostGISTable.test_simple_query)
306            (TestPostGISTable.test_simple_query)
307            (TestPostGISTable.test_read_value)
308            (TestPostGISTable.test_read_row_as_dict): Adapt to the new
309            shapeids in the landmarks table
310    
311            * test/test_memory_table.py
312            (TestMemoryTable.test_read_row_as_dict_row_count_mode)
313            (TestMemoryTable.test_read_value_row_count_mode)
314            (TestMemoryTable.test_row_id_to_ordinal)
315            (TestMemoryTable.test_row_oridnal_to_id): New test for the new
316            table methods and the new arguments
317    
318            * test/test_dbf_table.py
319            (TestDBFTable.test_read_row_as_dict_row_count_mode)
320            (TestDBFTable.test_read_value_row_count_mode)
321            (TestDBFTable.test_row_id_to_ordinal)
322            (TestDBFTable.test_row_oridnal_to_id): New test for the new table
323            methods and the new arguments
324    
325    2003-08-26  Bernhard Herzog  <[email protected]>
326    
327            * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
328            more postgis specific but much faster method to get the bounding
329            box
330    
331    2003-08-26  Bernhard Herzog  <[email protected]>
332    
333            * Thuban/Model/postgisdb.py (PostGISTable.Title)
334            (PostGISShapeStore.AllShapes): Add these missing methods.
335            (PostGISShapeStore.ShapesInRegion): No need to raise
336            StopIteration. We can simply return
337    
338            * test/test_postgis_db.py (TestPostGISTable.test_title)
339            (TestPostGISShapestorePoint.test_all_shapes): New tests for the
340            new methods
341    
342    2003-08-25  Bernhard Herzog  <[email protected]>
343    
344            * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
345    
346            * test/test_postgis_db.py (PolygonTests): New class containing
347            those tests from TestPostGISShapestorePolygon that can also be
348            used to test MUTLIPOLYGON tables
349            (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
350            so derive from that
351            (TestPostGISShapestoreMultiPolygon): New class with tests for
352            MUTLIPOLYGON tables
353    
354            * test/postgissupport.py (PostGISDatabase.initdb): Allow the
355            tables argument to have tuples with three items to override the
356            WKT type used.
357            (PostgreSQLServer.get_default_static_data_db): Use the above to
358            create a polygon table with MUTLIPOLYGONs
359            (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
360            (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
361            coords_to*
362            (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
363            (wkt_converter): New. Map WKT types to converters
364            (upload_shapefile): New parameter force_wkt_type to use a
365            different WKT type than the default
366    
367    2003-08-25  Bernhard Herzog  <[email protected]>
368    
369            * Thuban/UI/application.py
370            (ThubanApplication.run_db_param_dialog): New. Suitable as a
371            db_connection_callback. Main difference is that the dialog run
372            from this method doesn't have a parent so it can be used even when
373            there is no main window
374            (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
375            no db_connection_callback was given. This way the dialog pops up
376            even when the .thuban file was given as a command line parameter.
377    
378    2003-08-25  Bernhard Herzog  <[email protected]>
379    
380            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
381            before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
382            which leads to an effectively frozen X session because the user
383            can only interact with the dialog but the mouse is still grabbed
384            by the canvas.
385            Also, call the tool's Hide method before MouseLeftUp because
386            MouseLeftUp may change the tool's coordinates.
387    
388    2003-08-25  Bernhard Herzog  <[email protected]>
389    
390            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
391            LoadCancelled exceptions and handle them by returning immediately.
392    
393    2003-08-25  Bernhard Herzog  <[email protected]>
394    
395            GUI part of loading sessions with postgis connections which may
396            require user interaction to get passwords or updated parameters
397    
398            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
399            bit nucer and be more generic.
400            (DBFrame.OnAdd): Adapt to new DBDialog interface
401    
402            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
403            optional parameter db_connection_callback which is passed to
404            load_session.
405    
406            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
407            Suitable as a db_connection_callback
408            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
409            db_connection_callback of the application's OpenSession method
410    
411    
412    2003-08-25  Bernhard Herzog  <[email protected]>
413    
414            Basic loading of sessions containing postgis connections:
415    
416            * Thuban/Model/load.py (LoadError): Add doc-string
417            (LoadCancelled): New exception class to indicate a cancelled load
418            (SessionLoader.__init__): Add the db_connection_callback parameter
419            which will be used by the loader to get updated parameters and a
420            password for a database connection
421            (SessionLoader.__init__): Add the new XML elements to the
422            dispatchers dictionary
423            (SessionLoader.check_attrs): Two new conversions, ascii to convert
424            to a byte-string object and idref as a generic id reference
425            (SessionLoader.start_dbconnection)
426            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
427            elements
428            (load_session): Add the db_connection_callback to pass through the
429            SessionLoader
430    
431            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
432            New classes to test loading of sessions with postgis database
433            connections.
434    
435    2003-08-25  Bernhard Herzog  <[email protected]>
436    
437            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
438            replace it and the comment with __BuildDate__ by the Source: and
439            Id: cvs keywords as used in the other files.
440    
441    2003-08-25  Bernhard Herzog  <[email protected]>
442    
443            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
444            LoadError when a required attribute is missing. The code used to
445            be commented out for some reason, but probably should have been
446            active.
447    
448            * test/test_load.py (TestLoadError.test): Test the message in the
449            LoadError too to make sure it really is about the missing
450            attribute
451    
452    2003-08-22  Bernhard Herzog  <[email protected]>
453    
454            * test/test_save.py (SaveSessionTest.test_dbf_table)
455            (SaveSessionTest.test_joined_table): Add XML validation tests.
456    
457    2003-08-22  Bernhard Herzog  <[email protected]>
458    
459            Implement saving a session with a postgis connection
460    
461            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
462            elements for database connections and shapestores using db
463            connections
464            (session): Add the dbconnections to the content model
465    
466            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
467            Write the db connections
468            (SessionSaver.write_session): Call write_db_connections to write
469            the connection before the data sources
470            (SessionSaver.write_data_containers): Handle postgis shapestores
471    
472            * test/test_save.py (SaveSessionTest.thubanids)
473            (SaveSessionTest.thubanidrefs): Update for new DTD
474            (SaveSessionTest.test_save_postgis): New. Test saving a session
475            with postgis connections
476    
477            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
478            (PostGISTable.TableName): New accessor methods for the connection
479            and table name
480    
481            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
482            (TestPostGISTable.test_dbname): New methods to test the new
483            PostGISConnection methods
484    
485    2003-08-22  Bernhard Herzog  <[email protected]>
486    
487            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
488            for exceptions occurring when establishing a Database connection
489            (PostGISConnection.connect): Catch psycopg.OperationalError during
490            connects and raise ConnectionError.
491    
492            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
493            tests for database exceptions
494    
495    2003-08-22  Bernhard Herzog  <[email protected]>
496    
497            Prepare the test suite for tests with required authentication
498    
499            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
500            variables with two predefined users/passwords, one for the admin
501            and one for a non-privileged user.
502            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
503            the non-privileged user to the database and set the admin password
504            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
505            Better error reporting
506            (PostgreSQLServer.connection_params)
507            (PostgreSQLServer.connection_string): New methods to return
508            information about how to connect to the server
509            (PostgreSQLServer.execute_sql): New. Convenience method to execute
510            SQL statements
511            (PostgreSQLServer.require_authentication): Toggle whether the
512            server requires authentication
513            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
514            Add or alter users
515            (PostGISDatabase.initdb): Pass the admin name one the
516            subprocesses' command lines. Grant select rights on
517            geometry_columns to everybody.
518            (upload_shapefile): Use the admin name and password when
519            connecting. Grant select rights on the new table to everybody.
520    
521            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
522            server's new methods to get the connection parameters.
523    
524            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
525            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
526            server's new methods to get the connection parameters.
527    
528            * test/test_postgis_db.py
529            (TestPostGISConnection.test_gis_tables_empty)
530            (TestPostGISConnection.test_gis_tables_non_empty)
531            (PostGISStaticTests.setUp): Use the server's new methods to get
532            the connection parameters.
533    
534    2003-08-22  Bernhard Herzog  <[email protected]>
535    
536            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
537    
538            * Thuban/version.py: Add psycopg version
539    
540            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
541            version of the psycopg module
542    
543    2003-08-22  Bernhard Herzog  <[email protected]>
544    
545            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
546            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
547            at the moment. The functionality should probably be implemented
548            some time, though.
549            (DBFrame.OnRemove): Display a message if the connection can't be
550            removed because it's still in use.
551    
552    2003-08-22  Jan-Oliver Wagner <[email protected]>
553    
554            * Thuban/UI/about.py (About.__init__): split up the huge about
555            text into elements/lists for easier translation. This fixes bug
556            https://intevation.de/rt/webrt?serial_num=2058
557            Also, made some forgotten string available for the i18n.
558    
559    2003-08-21  Bernhard Herzog  <[email protected]>
560    
561            Make postgis support really optional including insensitive menu
562            items.
563    
564            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
565            whether the postgis is supported.
566    
567            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
568            to make postgis support optional
569    
570            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
571            version of Thuban.Model.postgisdb.has_postgis_support
572            (database_management command): Make it only sensitive if postgis
573            is supported.
574    
575    2003-08-21  Jan-Oliver Wagner <[email protected]>
576    
577            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
578            (section Adding and Removing Layers): Added text and described
579            multi-selection.
580            (chapter Extensions): New.
581    
582    2003-08-21  Jan-Oliver Wagner <[email protected]>
583    
584            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
585            settings to allow multiple files to load into the map.
586            Also reduced selection to *.shp as a default.
587    
588    2003-08-20  Bernhard Herzog  <[email protected]>
589    
590            Add dialogs and commands to open database connections and add
591            database layers.
592    
593            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
594            method to open the database connection management dialog
595            (MainWindow.AddDBLayer): New method to add a layer from a database
596            (_has_dbconnections): New helper function to use for sensitivity
597            (database_management command, layer_add_db command): New commands
598            that call the above new methods.
599            (main_menu): Add the new commands to the menu.
600    
601            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
602            (PostGISConnection.connect): Establish the actual connection in a
603            separate method and call it in __init__. This makes it easier to
604            override the behavior in test cases
605            (PostGISConnection.BriefDescription): New method to return a brief
606            description for use in dialogs.
607    
608            * test/test_postgis_db.py (NonConnection): DB connection that
609            doesn't actually connect
610            (TestBriefDescription): New class with tests for the new
611            BriefDescription method
612    
613    2003-08-19  Jan-Oliver Wagner <[email protected]>
614    
615            Moved anything from extensions to libraries.
616    
617            * libraries: New.
618    
619            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
620    
621            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
622            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
623            been moved here from thuban/extensions/pyprojection/
624            See there in the Attic for the older history.
625    
626            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
627            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
628            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
629            have been moved here from thuban/extensions/pyshapelib/
630            See there in the Attic for the older history.
631    
632            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
633            files have been moved here from thuban/extensions/shapelib/
634            See there in the Attic for the older history.
635    
636            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
637            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
638            thuban/extensions/thuban/
639            See there in the Attic for the older history.
640    
641            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
642    
643            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
644            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
645    
646            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
647            Moved to libraries/shapelib.
648    
649            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
650            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
651            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
652            Moved to libraries/pyshapelib.
653    
654            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
655            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
656            Moved to libraries/pyprojection.
657    
658            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
659    
660            * extensions: Removed.
661    
662    2003-08-19  Bernhard Herzog  <[email protected]>
663    
664            * test/test_viewport.py (ViewPortTest): We don't use the
665            facilities of FileTestMixin so don't derive from it.
666            (TestViewportWithPostGIS): New class with tests for using a
667            viewport on a map with postgis layers.
668    
669    2003-08-19  Bernhard Herzog  <[email protected]>
670    
671            Add the db connection management to the session.
672    
673            * Thuban/Model/session.py (Session.__init__): New instance
674            variable db_connections
675            (Session.AddDBConnection, Session.DBConnections)
676            (Session.HasDBConnections, Session.CanRemoveDBConnection)
677            (Session.RemoveDBConnection): New methods to manage and query the
678            db connections managed by the session
679            (Session.OpenDBShapeStore): New method to open a shapestore from a
680            db connection
681    
682            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
683            messages for the db connection handling in the session
684    
685            * test/test_postgis_session.py: New. test cases for the session's
686            db connection handling with postgis connections
687    
688    2003-08-19  Bernhard Herzog  <[email protected]>
689    
690            Add very basic postgis database support and the corresponding test
691            cases. The test cases require a PostgreSQL + postgis installation
692            but no existing database. The database will be created
693            automatically by the test cases
694    
695            * test/README: Add note about skipped tests and the requirements
696            of the postgis tests.
697    
698            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
699    
700            * test/test_postgis_db.py: New. Test cases for the postgis
701            support.
702    
703            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
704            format
705    
706            * test/test_wellknowntext.py: New. Test cases for the
707            wellknowntext parser
708    
709            * test/postgissupport.py: New. Support module for tests involving
710            a postgis database.
711    
712            * test/support.py (execute_as_testsuite): Shut down the postmaster
713            if it's still running after the tests
714    
715            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
716            well known text format
717    
718    2003-08-19  Jan-Oliver Wagner <[email protected]>
719    
720            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
721            message dialog.
722    
723    2003-08-18  Bernhard Herzog  <[email protected]>
724    
725            * test/support.py (ThubanTestResult.printErrors): Indent the
726            reason for the skips in the output to make it a bit more readable.
727            (execute_as_testsuite): New helper function to run a test suite
728            and print some more information.
729            (run_tests): Use execute_as_testsuite to run the tests
730    
731            * test/runtests.py (main): Use execute_as_testsuite to run the
732            tests
733    
734    2003-08-18  Bernhard Herzog  <[email protected]>
735    
736            Fix some bugs in Thuban and the test suite that were uncovered by
737            changes introduced in Python 2.3:
738    
739            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
740            filename is an absolute name
741    
742            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
743            filename is an absolute name
744    
745            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
746            unique filename to save to and use the correct relative filename
747            in the expected output.
748            (SaveSessionTest.test_dbf_table): Use the correct relative
749            filename in the expected output.
750    
751            * test/test_layer.py (TestLayer.test_raster_layer): Update the
752            test to check whether the filename is absolute.
753    
754    2003-08-18  Jan-Oliver Wagner <[email protected]>
755    
756            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
757    
758    2003-08-15  Bernhard Herzog  <[email protected]>
759    
760            Change the way shapes are returned by a shape store. The
761            ShapesInRegion method returns an iterator over actual shape
762            objects instead of a list of shape ids.
763    
764            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
765            id.
766            (ShapefileStore.ShapesInRegion): Return an iterator over the
767            shapes which yields shape objects instead of returning a list of
768            shape ids
769            (ShapefileStore.AllShapes): New. Return an iterator over all
770            shapes in the shape store
771            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
772    
773            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
774            doc-string.
775    
776            * Thuban/UI/baserenderer.py
777            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
778            layer_shapes and make it return an iterator containg shapes
779            instead of a list of ids.
780            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
781            layer_shapes() change
782    
783            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
784            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
785    
786            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
787            changes in the ShapesInRegion return value.
788            (ViewPort._get_hit_tester): Remove commented out code
789    
790            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
791            new return value.
792            (SimpleShapeStore.AllShapes): New. Implement this method too.
793    
794            * test/test_layer.py (TestLayer.test_arc_layer)
795            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
796            (TestLayer.test_point_layer_with_projection)
797            (TestLayer.test_derived_store): Adapt to changes in the
798            ShapesInRegion return value.
799    
800            * test/test_shapefilestore.py
801            (TestShapefileStoreArc.test_shapes_in_region)
802            (TestShapefileStorePolygon.test_shapes_in_region)
803            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
804            in the ShapesInRegion return value.
805            (TestShapefileStorePoint.test_all_shapes)
806            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
807            methods
808    
809            * test/test_derivedshapestore.py
810            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
811            the ShapesInRegion return value.
812            (TestDerivedShapeStore.test_all_shapes)
813            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
814            methods
815    
816    2003-08-15  Bernhard Herzog  <[email protected]>
817    
818            Make the renderers deal correctly with raw vs. python level
819            representation of shape geometries
820    
821            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
822            Return a flag useraw in addition to the callable and the parameter
823            to indicate whether the callable can deal with the raw shape data
824            or uses the higher level python lists of coordinates. The callable
825            now should accept either the raw data or the return value of the
826            shape's Points() method.
827            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
828            change
829            (BaseRenderer.projected_points): Instead of the shape id use the
830            points list as parameter.
831            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
832            (BaseRenderer.draw_point_shape): Adapt to projected_points()
833            change and accept the points list as parameter instead of the
834            shape id.
835    
836            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
837            the useraw flag as required by the BaseRenderer
838            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
839            changes.
840    
841            * test/test_baserenderer.py
842            (TestBaseRenderer.test_point_with_classification): New test for
843            rendering a map with classifications.
844    
845    2003-08-15  Bernhard Herzog  <[email protected]>
846    
847            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
848            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
849            (ViewPort._get_hit_tester, ViewPort.projected_points)
850            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
851            (ViewPort._find_label_at): Split the find_shape_at method into
852            several new methods and use the functions in the hit-test module.
853    
854            * Thuban/UI/hittest.py: New module with Python-level hit-testing
855            functions
856    
857            * test/test_hittest.py: New. Test for the new hittest module
858    
859    2003-08-15  Bernhard Herzog  <[email protected]>
860    
861            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
862            projection to all corners of the bounding box to get a better
863            approximation of the projected bounding box
864    
865            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
866            New. Test coordinate handling of a layer with a projection.
867            Catches the bug fixed in Layer.ShapesInRegion
868    
869    2003-08-15  Bernhard Herzog  <[email protected]>
870    
871            Move some of the mock objects in test_baserenderer into their own
872            module so they can easily be used from other tests
873    
874            * test/mockgeo.py: New test helper module with some mock objects
875            for geometry related things like shapes, shapestores and
876            projections.
877    
878            * test/test_mockgeo.py: New. Tests for the new helper module
879    
880            * test/test_baserenderer.py: Some of the mock-objects are in
881            mockgeo now.
882    
883    2003-08-12  Jan-Oliver Wagner <[email protected]>
884    
885            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
886    
887    2003-08-12  Bernhard Herzog  <[email protected]>
888    
889            * po/de.po: New. German translations by Bjoern Broscheit
890    
891    2003-08-12  Bernhard Herzog  <[email protected]>
892    
893            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
894            strings have to be one string literal.
895    
896    2003-08-11  Bernhard Herzog  <[email protected]>
897    
898            * test/support.py (FloatComparisonMixin.assertPointListEquals):
899            New. This method was used in various derived classes, but it's
900            better to have it here.
901    
902            * test/test_shapefilestore.py
903            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
904            FloatComparisonMixin
905    
906            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
907            It's now in FloatComparisonMixin
908    
909            * test/test_derivedshapestore.py
910            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
911            in FloatComparisonMixin
912    
913    2003-08-11  Bernhard Herzog  <[email protected]>
914    
915            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
916            error message
917    
918    2003-08-08  Jan-Oliver Wagner <[email protected]>
919    
920            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
921            with version number.
922            Changed title to reflect version number of Thuban.
923    
924    2003-08-08  Jan-Oliver Wagner <[email protected]>
925    
926            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
927            the list corresponds to the "About" web page.
928    
929    2003-08-08  Bernhard Herzog  <[email protected]>
930    
931            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
932            Make sure translated strings are recognized as one string literal.
933    
934            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
935            Make sure translated strings are recognized as one string literal.
936    
937            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
938            translated strings are recognized as one string literal.
939    
940            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
941            sure translated strings are recognized as one string literal.
942    
943    2003-08-07  Bernhard Herzog  <[email protected]>
944    
945            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
946            Simply delegates to the original shapestore.
947    
948            * test/test_derivedshapestore.py
949            (TestDerivedShapeStore.test_raw_format): New. Test case for
950            DerivedShapeStore.RawShapeFormat
951    
952    2003-08-07  Bernhard Herzog  <[email protected]>
953    
954            Add raw data interface to shape objects.
955    
956            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
957            class to ShapefileShape which now holds shapefile specific
958            information.
959            (ShapefileShape.compute_bbox): Simplified to not cache any
960            information. The way this method is used that shouldn't matter
961            performance wise.
962            (ShapefileShape.RawData): New. Return the shapeid which is the raw
963            data format for shapes from shapefiles.
964            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
965            in the shape objects returned by a shapestore. For a
966            ShapefileStore this is always RAW_SHAPEFILE.
967            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
968            method.
969    
970            * test/test_shapefilestore.py
971            (TestShapefileStore.test_raw_format): New test to test the raw
972            format feature of shapes.
973    
974            * Thuban/Model/layer.py: Remove the unused import of Shape from
975            data. It was only there for interface compatibility but it's not
976            used inside of Thuban and the generic Shape class has gone away.
977    
978            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
979            the raw data format and only use an optimized version of its a
980            shapefile.
981    
982    2003-08-07  Bernhard Herzog  <[email protected]>
983    
984            * test/test_baserenderer.py (SimpleShape): Shape class for the
985            tests.
986            (SimpleShapeStore.Shape): Use SimpleShape instead of
987            Thuban.Model.data.Shape to make the tests independed of the coming
988            changes.
989    
990    2003-08-07  Bernhard Herzog  <[email protected]>
991    
992            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
993            (ThubanTestProgram): New classes that extend the respective
994            classes from unittest. These new version support skipping tests
995            under certain expected conditions. In the Thuban test suite we
996            uses this for tests that require the optional gdal support.
997            (run_tests): Use ThubanTestProgram instead of the unittest.main()
998    
999            * test/runtests.py (main): Use the new ThubanTestRunner instead of
1000            the normal one from unittest
1001    
1002            * test/test_layer.py (TestLayer.test_raster_layer): If this test
1003            is not run because gdal support isn't available report this to the
1004            runner.
1005    
1006            * test/test_baserenderer.py
1007            (TestBaseRenderer.test_raster_no_projection): Do not run this test
1008            if gdal support isn't available and report this to the runner.
1009    
1010    2003-08-06  Bernhard Herzog  <[email protected]>
1011    
1012            Rearrange the renderers a bit, partly in preparation for changes
1013            required for the postgis merge, partly to make it more testable.
1014            Also make the representation of coordinates in Shapes more
1015            consistent.
1016    
1017            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
1018            this class is now in BaseRenderer. This class is now practically
1019            only a specialization of BaseRenderer for rendering to an actual
1020            wx DC.
1021            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
1022            to get the shapetype specific rendering functions.
1023    
1024            * Thuban/UI/baserenderer.py: New file with the basic rendering
1025            logic. The code in this file is completely independend of wx.
1026            (BaseRenderer): Class with the basic rendering logic
1027    
1028            * test/test_baserenderer.py: New. Test cases for BaseRenderer
1029    
1030            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
1031            error_on_redraw to guard agains endless loops and stack overflows
1032            when there's a bug in the rendering code that raises exceptions.
1033            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
1034            rendering into a separate method _do_redraw so that error handling
1035            is a bit easier. When an exception occurs, set error_on_redraw to
1036            true. When it's true on entry to OnIdle do nothing and return
1037            immediately.
1038    
1039            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
1040            Shape object will always have the coordinates as a list of list of
1041            coordinate pairs (tuples).
1042            (Shape.compute_bbox): Adapt to new representation.
1043    
1044            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
1045            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
1046            Shape objects.
1047    
1048            * test/test_shapefilestore.py
1049            (ShapefileStoreTests.assertFloatTuplesEqual)
1050            (ShapefileStoreTests.assertPointListEquals): Rename to
1051            assertPointListEquals and change purpose to checking equality of
1052            the lists returned by Shape.Points().
1053            (TestShapefileStoreArc.test_shape)
1054            (TestShapefileStorePolygon.test_shape)
1055            (TestShapefileStorePoint.test_shape): Use the new
1056            assertPointListEquals instead of assertFloatTuplesEqual
1057    
1058            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
1059            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
1060            and change purpose to checking equality of the lists returned by
1061            Shape.Points().
1062            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
1063            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
1064            (TestLayer.test_derived_store): Use the new assertPointListEquals
1065            instead of assertFloatTuplesEqual
1066    
1067            * test/test_derivedshapestore.py
1068            (TestDerivedShapeStore.assertFloatTuplesEqual)
1069            (TestDerivedShapeStore.assertPointListEquals): Rename to
1070            assertPointListEquals and change purpose to checking equality of
1071            the lists returned by Shape.Points().
1072            (TestDerivedShapeStore.test_shape): Use the new
1073            assertPointListEquals instead of assertFloatTuplesEqual
1074    
1075    2003-08-06  Jan-Oliver Wagner <[email protected]>
1076    
1077            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
1078            a bounding box. A dialog is raised in case, no bounding box
1079            is found. This fixes bug #2043:
1080            https://intevation.de/rt/webrt?serial_num=2043
1081    
1082    2003-08-05  Bernhard Herzog  <[email protected]>
1083    
1084            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
1085            object look like a Color instantiation. Formerly it looked like a
1086            tuple.
1087    
1088            * test/test_color.py (TestColor.test_repr)
1089            (TestColor.test_equality, TestColor.test_inequality): New. test
1090            some more apects of the Color class
1091            (TestTransparent.test_repr, TestTransparent.test_hex)
1092            (TestTransparent.test_equality): New. Test cases for the
1093            Transparent object.
1094    
1095    2003-08-04  Jan-Oliver Wagner <[email protected]>
1096    
1097            * Doc/manual/thuban-manual.xml: a number of small improvements.
1098            The resulting file is the version submitted for GREAT-ER II.
1099    
1100    2003-08-01  Bernhard Herzog  <[email protected]>
1101    
1102            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
1103            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
1104            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
1105    
1106            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
1107            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
1108            (ThubanEndBusyCursor): Add doc-strings
1109    
1110    2003-08-01  Bernhard Herzog  <[email protected]>
1111    
1112            First step towards PostGIS integration. More abstraction by movin
1113            more code from the layer to the shapestore. More methods of the
1114            layer are now simply delegated to the equivalent method of the
1115            shapestore. The SHAPETYPE_* constants are now in data not in
1116            layer.
1117    
1118            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
1119            (SHAPETYPE_POINT, Shape): Move these constants and classes from
1120            layer.py to data.py
1121            (ShapefileStore.__init__): More Initialization for the new methods
1122            and functionality.
1123            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
1124            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
1125            (ShapefileStore.Shape): New methods that were formerly implemented
1126            in the layer.
1127            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
1128            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
1129            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
1130            equivalents of the new shape methods. These versions are simply
1131            delegated to the original shapstore.
1132    
1133            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
1134            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
1135            (Layer.SetShapeStore): Removed the initializatin of instance
1136            variables that were needed for the stuff that's now in
1137            ShapefileStore
1138            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
1139            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
1140            shapestore.
1141    
1142            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
1143            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
1144            instead of layer.
1145    
1146            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
1147    
1148            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
1149    
1150            * test/test_layer.py: Import the SHAPETYPE_* constants from data
1151            instead of layer.
1152            (TestLayer.test_derived_store): Remove the test for the exception
1153            when instantiating the DerivedShapeStore with an incompatible
1154            table which is now in test_derivedshapestore.py. Add some more
1155            tests of the layer methods to determine whether they work for a
1156            DerivedShapeStore as well.
1157    
1158    2003-07-31  Jonathan Coles   <[email protected]>
1159    
1160            * Doc/manual/thuban-manual.xml: Fix the list of required packages
1161            by just listing the name and where they can be found.
1162    
1163    2003-07-31  Frank Koormann   <[email protected]>
1164    
1165            * Doc/manual/thuban-manual.xml:
1166            Changed the screenshot elements to figure.
1167            Changed some variablelist elements to itemizedlist.
1168            Added section on GDAL formats.
1169    
1170    2003-07-31  Jonathan Coles   <[email protected]>
1171    
1172            * Doc/manual/thuban-manual.xml: Added a few sentences about
1173            the Fix Border Color option when generating classes.
1174    
1175    2003-07-30  Jonathan Coles   <[email protected]>
1176    
1177            * Thuban/Model/classgen.py: Add docstrings. Rename specific
1178            Ramp instances to use lower_case_style.
1179    
1180            * Thuban/UI/classgen.py: Use renamed Ramp instances.
1181            
1182            * Thuban/UI/classifier.py: Add docstrings.
1183    
1184            * Thuban/UI/dock.py: Add docstrings.
1185    
1186            * test/test_classgen.py: Use renamed Ramp instances.
1187    
1188    2003-07-30  Bernhard Herzog  <[email protected]>
1189    
1190            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
1191            was never used in Thuban.
1192    
1193    2003-07-30  Bernhard Herzog  <[email protected]>
1194    
1195            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
1196            method directly instead of going through the transient_table
1197            method. This faster because transient_table may force the copy of
1198            a DBF file into the transient database and setting a table's title
1199            doesnm't affect the title of the associated transient table, so
1200            this fixes RT #2042
1201    
1202            * Thuban/UI/main.py (__version__): Don't import the already
1203            removed show_exception_dialog.
1204    
1205    2003-07-29  Jonathan Coles   <[email protected]>
1206    
1207            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
1208            Put back this method and remove the equivalent function since we
1209            are setting the exception hook from within this class (OnInit).
1210    
1211    2003-07-29  Jonathan Coles   <[email protected]>
1212    
1213            * Doc/manual/images/5_2_custom_ramp.png,
1214            Doc/manual/images/5_2_quantiles.png,
1215            Doc/manual/images/5_2_uniform_dist.png,
1216            Doc/manual/images/5_2_unique_values.png,
1217            Doc/manual/images/8_int_error.png: New screen shots.
1218    
1219            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
1220            some points, and added more screen shots.
1221    
1222    2003-07-29  Bernhard Herzog  <[email protected]>
1223    
1224            * Thuban/Model/data.py: Remove the now unused import of warnings
1225    
1226    2003-07-29  Bernhard Herzog  <[email protected]>
1227    
1228            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
1229            deprecated since before the 0.8 release and isn't used in Thuban
1230            itself anymore.
1231    
1232            * Thuban/Model/transientdb.py: Remove some unnecessary imports
1233    
1234    2003-07-29  Jonathan Coles   <[email protected]>
1235    
1236            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
1237            python exception hook here so that we are sure to catch any
1238            Thuban exception that happen during initialization.
1239    
1240            * Thuban/UI/main.py (main): Don't set the exception hook here,
1241            it will get set in ThubanApplication.OnInit.
1242    
1243    2003-07-29  Jonathan Coles   <[email protected]>
1244                                                                                
1245            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
1246            Removed and called it show_exception_dialog() so that the exception
1247            handler can be set before the class is created.
1248                                                                                
1249            * Thuban/UI/main.py (main): Install the exception handler before
1250            a ThubanApplication is created.
1251                                                                                    
1252    2003-07-29  Bernhard Herzog  <[email protected]>
1253    
1254            * po/it.po: New. Italian translation by Maurizio Napolitano
1255    
1256            * po/ru.po: New. Russian translation by Alex Shevlakov
1257    
1258    2003-07-29  Frank Koormann   <[email protected]>
1259    
1260            * Doc/manual/thuban-manual.xml: Extended section on supported
1261            projections.
1262            
1263    2003-07-29  Frank Koormann   <[email protected]>
1264    
1265            * Doc/manual/thuban-manual.xml: gaspell-checked.
1266    
1267    2003-07-29  Jonathan Coles   <[email protected]>
1268    
1269            * Doc/manual/images/3_5_legend.png: Added border to improve look
1270            on white background.
1271    
1272    2003-07-29  Jonathan Coles   <[email protected]>
1273    
1274            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
1275            descriptions for the legend toolbar.
1276    
1277            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
1278            cursor from dialog box.
1279    
1280    2003-07-28  Jonathan Coles   <[email protected]>
1281    
1282            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
1283    
1284            * Doc/manual/images/2_4_session_tree.png,
1285            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
1286            Doc/manual/images/4_2_layer_properties.png,
1287            Doc/manual/images/4_2_raster_layer_properties.png,
1288            Doc/manual/images/5_3_genclass.png,
1289            Doc/manual/images/5_classification.png,
1290            Doc/manual/images/6_projection.png,
1291            Doc/manual/images/7_1_table_view.png,
1292            Doc/manual/images/7_2_5_join.png: New screenshots.
1293    
1294    2003-07-24  Jonathan Coles   <[email protected]>
1295    
1296            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
1297    
1298    2003-07-24  Jonathan Coles   <[email protected]>
1299    
1300            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
1301            chapter on Layer Management.
1302    
1303            * Doc/manual/Makefile: New. Makefile to generate all formats for the
1304            manual and images.
1305    
1306    2003-07-24  Bernhard Herzog  <[email protected]>
1307    
1308            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
1309            it annoys lintian which warns about these files not being
1310            executable. The #1 isn't necessary here since if you absolutely
1311            must execute them you can always say "python <filename>".
1312    
1313            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
1314            superfluous code to set brush and pen for point shapes
1315    
1316            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
1317            belong in viewport anyway
1318    
1319    2003-07-24  Frank Koormann   <[email protected]>
1320    
1321            * Doc/manual/thuban-manual.xml: Added section on table management.
1322    
1323    2003-07-24  Bernhard Herzog  <[email protected]>
1324    
1325            * test/runtests.py (main): Recognize the long "verbose" option
1326            correctly.
1327    
1328    2003-07-22  Jonathan Coles   <[email protected]>
1329    
1330            * Doc/manual/thuban-manual.xml: Continue to write first revision
1331            of the manual.
1332    
1333            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
1334            with Begin/EndDrawing() calls to ensure we aren't doing to
1335            many updates to the dc during rendering.
1336            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
1337            a pen and brush argument so they need to be passed to the function.
1338    
1339            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
1340            Calculates the minimum and maximum scale values. Factored out
1341            of set_view_transform so that it could be used to zoom all the
1342            way into a single point.
1343            (ViewPort.set_view_transform): Call calc_min_max_scales().
1344            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
1345            if only a single point is selected.
1346    
1347            * Doc/manual/images/1_2_legend_close.png,
1348            Doc/manual/images/1_2_legend_dock.png,
1349            Doc/manual/images/1_2_mainwindow.png,
1350            Doc/manual/images/1_2_mainwindow.ps,
1351            Doc/manual/images/1_2_mainwindow.sk,
1352            Doc/manual/images/3_2_fullextent.png,
1353            Doc/manual/images/3_2_fulllayerextent.png,
1354            Doc/manual/images/3_2_fullshapeextent.png,
1355            Doc/manual/images/3_2_pan.png,
1356            Doc/manual/images/3_2_zoomin.png,
1357            Doc/manual/images/3_2_zoomout.png,
1358            Doc/manual/images/3_3_identify.png,
1359            Doc/manual/images/3_3_label.png,
1360            Doc/manual/images/3_5_invisible.png,
1361            Doc/manual/images/3_5_movedown.png,
1362            Doc/manual/images/3_5_moveup.png,
1363            Doc/manual/images/3_5_props.png,
1364            Doc/manual/images/3_5_tobottom.png,
1365            Doc/manual/images/3_5_totop.png,
1366            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
1367    
1368    2003-07-18  Bernhard Herzog  <[email protected]>
1369    
1370            * Thuban/UI/messages.py (MAP_REPLACED): New message.
1371    
1372            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
1373            after the new map has been assigned
1374    
1375            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
1376            Delegate MAP_REPLACED to the canvas too
1377            (MainWindow.prepare_new_session): Removed. Thanks to the new
1378            MAP_REPLACED message it's no longer needed
1379            (MainWindow.OpenSession, MainWindow.NewSession):
1380            prepare_new_session has been removed.
1381    
1382            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
1383            MAP_REPLACED so that we can close the dialog if a new map is set.
1384            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
1385            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
1386            dialog
1387    
1388            * test/test_viewport.py (SimpleViewPortTest)
1389            (SimpleViewPortTest.test_default_size): Add doc-strings
1390            (ViewPortTest.setUp): Bind map to self.map so we can use it in
1391            tests. Subscribe to MAP_REPLACED messages too.
1392            (ViewPortTest.tearDown): No need to explicitly unsubscribe
1393            (ViewPortTest.test_set_map): New test for the SetMap method.
1394    
1395    2003-07-18  Bernhard Herzog  <[email protected]>
1396    
1397            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
1398            Move this test from ViewPortTest.setUp to this new separate test
1399            case. setUp is not the place for the actual tests.
1400            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
1401            more of the test from setUp to the new test test_inital_settings.
1402            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
1403            (ViewPortTest.test_proj_conv): Split test_proj_conv into
1404            test_win_to_proj and test_proj_to_win and make the tests easier to
1405            understand
1406            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
1407            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
1408            (ViewPortTest.test_unprojected_rect_around_point)
1409            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
1410            Reformat to increase readability.
1411    
1412    2003-07-18  Bernhard Herzog  <[email protected]>
1413    
1414            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
1415    
1416    2003-07-18  Bernhard Herzog  <[email protected]>
1417    
1418            * test/runtests.py: The test suite can now be run without an X
1419            connection. To make sure this remains true, remove the DISPLAY
1420            environment variable so that an error occurs if the wxGTK is
1421            imported accidentally
1422    
1423    2003-07-18  Bernhard Herzog  <[email protected]>
1424    
1425            * Thuban/UI/viewport.py: Remove unused imports
1426    
1427            * Thuban/UI/view.py: Remove unused imports
1428    
1429    2003-07-18  Bernhard Herzog  <[email protected]>
1430    
1431            * test/test_export.py Remove unused imports. The OutputTransform
1432            function is now in viewport.py and is called output_transform
1433            (TestScalebar.test_output_transform)
1434            (TestScalebar.test_OutputTransform): Renamed to
1435            test_output_transform and updated to use output_transform instead
1436            of OutputTransform
1437    
1438            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
1439            renamed.
1440            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
1441            renamed to output_transform
1442    
1443            * Thuban/UI/viewport.py (OutputTransform, output_transform):
1444            Rename to output_transform
1445    
1446    2003-07-18  Bernhard Herzog  <[email protected]>
1447    
1448            * Thuban/Model/layer.py (Layer.__init__): Rename
1449            classificationField to classificatin_column and init it here so
1450            that it can be used in SetClassificationColumn
1451            (Layer.GetClassificationColumn, Layer.GetClassificationField):
1452            Rename to GetClassificationColumn.
1453            (Layer.SetClassificationColumn, Layer.SetClassificationField):
1454            Rename to SetClassificationColumn and issue a LAYER_CHANGED
1455            message if the column changes.
1456            (Layer._classification_changed, Layer.ClassChanged): Rename to
1457            _classification_changed. Update the callers.
1458            (Layer.SetShapeStore): Further field->column renames.
1459    
1460            * Thuban/Model/load.py (SessionLoader.start_classification)
1461            (SessionLoader.start_clpoint): Updates because of
1462            field->column method name changes in the Layer class
1463    
1464            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
1465            because of field->column method name changes in the Layer class
1466    
1467            * Thuban/UI/classifier.py (Classifier.__init__)
1468            (Classifier._OnTry, Classifier._OnRevert): Updates because of
1469            field->column method name changes in the Layer class
1470    
1471            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
1472            because of field->column method name changes in the Layer class
1473    
1474            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
1475            of field->column method name changes in the Layer class
1476    
1477            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
1478            (SaveSessionTest.testClassifiedLayer): Update because of
1479            field->column method name changes in the Layer class
1480    
1481            * test/test_layer.py (SetShapeStoreTests.setUp)
1482            (SetShapeStoreTests.test_sanity): Update because of field->column
1483            method name changes in the Layer class
1484            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
1485            (TestLayerModification.test_sanity)
1486            (TestLayerModification.test_initial_settings): remove unsued code
1487            and rename to test_sanity.
1488            (TestLayerModification.test_set_classification): New test for
1489            SetClassification and SetClassificationField.
1490    
1491    2003-07-18  Bernhard Herzog  <[email protected]>
1492    
1493            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
1494            the non-fixed values as well. The old test would have accepted a
1495            fixed ramp that only returnes the fixed properties
1496    
1497    2003-07-17  Jonathan Coles   <[email protected]>
1498    
1499            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
1500            shots for the manual. The XCF file is the source image and
1501            has additional layers to support changes.
1502    
1503            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
1504    
1505            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
1506            Return both the new class and the field name.
1507    
1508            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
1509            fit the map to the window as this changes any zoom level that
1510            the user may have set.
1511    
1512    2003-07-16  Jonathan Coles   <[email protected]>
1513    
1514            * Thuban/Model/classgen.py (generate_singletons,
1515            generate_uniform_distribution, generate_quantiles): Remove
1516            fixes parameter, but maintain the same functionality by having
1517            the calling function pass a FixedRamp object for the ramp.
1518            (FixedRamp): New. Adapts a ramp to have fixed property values.
1519    
1520            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
1521            (Classification): Inherit from Publisher.
1522            (Classification.__init__): Remove the layer parameter.
1523            Classifications no longer need to have a parent layer.
1524            (Classification.GetField, Classification.GetFieldType,
1525            Classification.SetFieldInfo): Removed. The field name is stored
1526            in the layer, and the type can be retreived by calling
1527            Layer.GetFieldType().
1528            (Classification._set_layer, Classification.GetLayer): Removed.
1529            Classifications no longer have a parent layer.
1530    
1531            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
1532            classification.
1533            (Layer.SetShapeStore): Reset the classification first while
1534            we still have the old shape store to work with.
1535            (Layer.GetClassificationField, Layer.SetClassificationField):
1536            New. Method for getting/setting the field to classify on.
1537            (Layer.SetClassification): Simplified now that the layer
1538            simply has to hold a reference to the classification and not
1539            tell the classification who owns it.
1540            Fixes RTbug #2023.
1541    
1542            * Thuban/Model/load.py (SessionLoader.start_classification):
1543            Set the field name on the layer, not the classification.
1544    
1545            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
1546            classification is modified.
1547    
1548            * Thuban/Model/save.py (SessionSaver.write_classification):
1549            Get the field name and type from the layer.
1550    
1551            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
1552            parameter records to rows and add docstring. Fixes RTbug #1997.
1553    
1554            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
1555            ramp when we need to fix certain values of a ramp rather than
1556            using the old fixes parameter. Fixes RTbug #2024.
1557    
1558            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
1559            parameter.
1560            (ClassTable.Reset): Add fieldType parameter and use it, rather
1561            than asking the classification.
1562            (Classifier.__init__): Remember the original class's field
1563            and ask the layer for the field type, rather than the classification.
1564            (Classifier.__SetGridTable): Retrieve the field and field type
1565            for the table because they are not in the classification.
1566            (Classifier._OnTry, Classifier._OnRevert): Set the classification
1567            field on the layer in addition to the classification itself.
1568    
1569            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
1570            classification field from layer.
1571    
1572            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
1573            classification field from layer. Split up tests and remove
1574            *-imports. Fixes RTbug #1992.
1575    
1576            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
1577    
1578            * test/test_classification.py
1579            (TestClassification.test_classification): Remove tests for methods
1580            that no longer exist.
1581    
1582            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
1583            __init__ no longer has a field parameter, use SetClassificationField.
1584            (SetShapeStoreTests.test_sanity): Use layer object to get class
1585            field info.
1586    
1587            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
1588            SetClassificationField on layer to set class field info.
1589    
1590            * test/test_viewport.py: Renamed from test/test_view.py.
1591    
1592    2003-07-16  Jan-Oliver Wagner <[email protected]>
1593    
1594            * Doc/manual/thuban-manual.xml: Added authors and an initial
1595            coarse structure.
1596    
1597    2003-07-15  Bernhard Herzog  <[email protected]>
1598    
1599            * test/support.py (FloatComparisonMixin): This is a mix-in class
1600            and therefore should not be derived from any other class.
1601    
1602            * test/test_range.py (RangeTest): FloatComparisonMixin is a
1603            mix-in, so derive from TestCase as well.
1604    
1605    2003-07-15  Bernhard Herzog  <[email protected]>
1606    
1607            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
1608            draw_func handling a bit to remove one layer of indirection. This
1609            makes the renderer about 10% faster in the non-classifying case
1610            and the code a bit cleaner
1611            (MapRenderer.draw_point_shape): Add the pen and brush parameters
1612            and set them in the dc. Now the draw_point_shape method and
1613            wxproj's draw_polygon_shape function have basically the same
1614            signature so that both can be directly used as draw_func
1615    
1616    2003-07-15  Bernhard Herzog  <[email protected]>
1617    
1618            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
1619            string values (in addition to the labels) as UTF 8
1620    
1621            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
1622            values if the field type is string
1623    
1624            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
1625            saving a session with non-ascii string classification values.
1626    
1627            * test/test_load.py (TestClassification.file_contents)
1628            (TestClassification.test): Check for non-ascii values in string
1629            classifications
1630    
1631    2003-07-14  Jonathan Coles   <[email protected]>
1632    
1633            * test/test_view.py: New. Tests for ViewPort.
1634    
1635    2003-07-14  Frank Koormann   <[email protected]>
1636    
1637            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
1638            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
1639    
1640            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
1641            unicode strings from session file: session title, map title and
1642            projection name.
1643            
1644    2003-07-10  Jonathan Coles   <[email protected]>
1645    
1646            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
1647            drag_stop, not drag_move when the mouse is released.
1648    
1649    2003-07-10  Jonathan Coles   <[email protected]>
1650    
1651            The most important part of this is the seperation of view.py into
1652            two pieces. viewport.py now has a class called ViewPort which
1653            contains all the non-wx parts of view.py and can therefore be
1654            tested. view.py contains only the wx-specific parts and is fairly
1655            simple.
1656    
1657            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
1658            RTTbug #1992.
1659            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
1660            RTTbug #1992.
1661    
1662            * Thuban/Model/classgen.py (generate_singletons,
1663            generate_uniform_distribution, generate_quantiles):
1664            Added 'fixes' parameter so that property attributes can
1665            be held constant over the generated classification groups.
1666            (CustomRamp.GetProperties): Remove unused variables.
1667    
1668            * Thuban/Model/map.py (Map.SetProjection): Send the old
1669            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
1670            event.
1671    
1672            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
1673            parameter which is a list of records that restricts which
1674            records are saved. Fixes RTbug #1997.
1675    
1676            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
1677            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
1678    
1679            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
1680            to allow the user to fix line color/width on generated groups.
1681            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
1682            functions to optionally fix group properties.
1683    
1684            * Thuban/UI/main.py (main): Set exception hook to the
1685            ShowExceptionDialog. Fixes RTbug #1993.
1686    
1687            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
1688            the table window when it is selectd to be shown.
1689    
1690            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
1691            Export Selection button and move the export buttons underneath
1692            the table.
1693            (QueryTableFrame.UpdateStatusText): Added event argument so
1694            that it can respond to grid selection events. The status text
1695            is now updated even when the table is not associated with a
1696            layer as was previously assumed.
1697            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
1698            UpdateStatusText responds to these events.
1699            (QueryTableFrame.OnSaveAs): Renamed to doExport.
1700            (QueryTableFrame.doExport): Helper function that saves the
1701            entire table, or selected rows, to a file.
1702            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
1703            Respond to export button events and call doExport.
1704    
1705            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
1706            the function doesn't return NULL without first setting a Python
1707            Error.
1708    
1709            * test/runtests.py (main): Only print "Unknown option" for
1710            unsupported options.
1711    
1712            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
1713            optional epsilon argument to specify floating point accuracy.
1714            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
1715            for each item test.
1716    
1717            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
1718            tests for saving selected records.
1719    
1720            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
1721            tests for saving selected records.
1722    
1723            * test/test_map.py (TestMapWithContents.test_set_projection):
1724            MAP_PROJECTION_CHANGED events send the old projection.
1725    
1726            * test/test_session.py
1727            (TestSessionWithContent.test_forward_map_projection):
1728            MAP_PROJECTION_CHANGED events send the old projection.
1729    
1730            * test/test_table.py (TableTest): Update tests to use non-deprecated
1731            functions.
1732    
1733    2003-07-08  Bernhard Herzog  <[email protected]>
1734    
1735            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
1736            constants in the column objects are the standard ones defined in
1737            the table module.
1738    
1739            * test/test_transientdb.py
1740            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
1741            exporting transient tables as DBF works. This should catch the bug
1742            just fixed in TransientTableBase.Width.
1743    
1744    2003-07-08  Bernhard Herzog  <[email protected]>
1745    
1746            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
1747            interpolated colors correctly.
1748    
1749            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
1750            New. Test case for the fix in classgen.py
1751    
1752    2003-07-08  Bernhard Herzog  <[email protected]>
1753    
1754            * test/runtests.py (main): Make the default output less verbose
1755            and add a verbosity option (-v) to get the old output
1756    
1757    2003-07-08  Bernhard Herzog  <[email protected]>
1758    
1759            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
1760            0.9.
1761    
1762            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
1763            New. Return the join type
1764    
1765            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
1766            DTD
1767            (SessionSaver.write_data_containers): Save the join type for
1768            joined tables
1769    
1770            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
1771            namespace
1772            (SessionLoader.start_jointable): Handle the jointype attribute
1773    
1774            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
1775            as of Thuban 0.8. These are now tests to determine whether Thuban
1776            can still read files generated by Thuban 0.8
1777    
1778            * test/test_load.py (LoadSessionTest.dtd)
1779            (TestSingleLayer.file_contents)
1780            (TestLayerVisibility.file_contents, TestLabels.file_contents)
1781            (TestLayerProjection.file_contents)
1782            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1783            (TestJoinedTable.file_contents)
1784            (TestLoadError.file_contents): Update for new DTD
1785            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
1786            for new join type attribute
1787    
1788            * test/test_save.py (SaveSessionTest.dtd)
1789            (SaveSessionTest.testEmptySession)
1790            (SaveSessionTest.testSingleLayer)
1791            (SaveSessionTest.testLayerProjection)
1792            (SaveSessionTest.testRasterLayer)
1793            (SaveSessionTest.testClassifiedLayer)
1794            (SaveSessionTest.test_dbf_table)
1795            (SaveSessionTest.test_joined_table): Update for new DTD
1796            (SaveSessionTest.test_joined_table): Add test for new join type
1797            attribute
1798    
1799    2003-07-04  Bernhard Herzog  <[email protected]>
1800    
1801            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
1802            function for table_to_dbf
1803            (table_to_dbf): Deal with names longer than the 10 character limit
1804    
1805            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
1806            doc-string
1807            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
1808            long column names
1809    
1810    2003-07-03  Bernhard Herzog  <[email protected]>
1811    
1812            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
1813    
1814    2003-07-03  Bernhard Herzog  <[email protected]>
1815    
1816            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
1817            for the Thuban manual and README with some basic information about
1818            the manual
1819    
1820    2003-07-03  Bernhard Herzog  <[email protected]>
1821    
1822            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
1823            Update doc-string
1824            (TransientJoinedTable.create): Do not modify the column objects of
1825            the input tables in place and copy all columns of the input tables
1826            into the joined table after all.
1827    
1828            * test/test_transientdb.py
1829            (TestTransientTable.test_transient_joined_table_same_column_name):
1830            Update to reflect the new behavior
1831            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
1832            Update to reflect the new behavior
1833            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
1834            New test case for a bug which modified the column objects in place
1835    
1836    2003-07-02  Jonathan Coles   <[email protected]>
1837    
1838            * Thuban/Model/classgen.py (generate_singletons,
1839            generate_uniform_distribution, generate_quantiles,
1840            GenQuantiles0): Make sure maxValue isn't less than
1841            one, otherwise we could divide by zero.
1842    
1843            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
1844            ClassGenTest.doClassSingleTest): Call doBoundsTest to
1845            check the end classification groups against the
1846            proper property values.
1847            (ClassGenTest.doBoundsTest): New. Checks the first and
1848            last classification groups to make sure their properties
1849            are the correct upper and lower bounds for a color ramp.
1850    
1851    2003-07-02  Jonathan Coles   <[email protected]>
1852    
1853            * Thuban/Model/classgen.py (generate_singletons,
1854            generate_uniform_distribution, generate_quantiles,
1855            GenQuantiles0): The denominator was one to high when
1856            calculating the index for the ramp causing the index
1857            to never to reach one.
1858    
1859    2003-07-02  Jonathan Coles   <[email protected]>
1860    
1861            Changed the singature of ClassGroupRange.__init__ and
1862            ClassGroupRange.SetRange() so that the min/max values are
1863            passed as a tuple. This makes a better calling scheme for
1864            when a Range object is passed instead.
1865    
1866            * Thuban/Model/classgen.py: Fixed parameters to
1867            ClassGroupRange constructor.
1868    
1869            * Thuban/Model/classification.py (ClassGroupRange.__init__):
1870            Consolidate the min/max parameters into a single _range which
1871            can either be a tuple or a Range object.
1872            (ClassGroupRange.SetRange): Consolidate the min/max parameters
1873            into a single _range which can either be a tuple or a Range object.
1874    
1875            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
1876            call to ClassGroupRange constructor to use a tuple.
1877    
1878            * Thuban/Model/layer.py (Layer.SetClassification): Switch
1879            the classification instance variable to the new class
1880            before calling _set_layer otherwise subscribers to a
1881            LAYER_CHANGED event will not see any difference.
1882    
1883            * test/test_classification.py: Fix tests of ClassGroupRange
1884            so that they use the new signature.
1885    
1886            * test/test_load.py: Fix use of ClassGroupRange so that it
1887            uses the new signature.
1888    
1889            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
1890            uses the new signature.
1891    
1892            * test/test_save.py: Fix use of ClassGroupRange so that it
1893            uses the new signature.
1894    
1895    
1896    2003-07-01  Jonathan Coles   <[email protected]>
1897    
1898            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
1899            Import used objects/class from color.
1900            (generate_singletons): We don't
1901            need the numGroups parameter anymore because we are using
1902            the new ramps with GetProperties().
1903            (generate_uniform_distribution): Use new ramp method
1904            GetProperties().
1905            (generate_quantiles, GenQuantiles0): Use new ramp method
1906            GetProperties().
1907            (CustomRamp.SetNumGroups): Removed. The ramps now map
1908            a value from 0 to 1 to class properties so the number
1909            of groups is not needed ahead of time.
1910            (CustomRamp.next): Removed. CustomRamp does not support
1911            interation anymore.
1912            (CustomRamp.GetProperties): Returns a ClassGroupProperties
1913            object based on the index value from 0 to 1 that is
1914            passed to it.
1915            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
1916            Made into instances of Monochromatic class instread of
1917            deriving from it.
1918            (HotToCold.SetNumGroups): Removed. See CustomRamp.
1919            (HotToCold.next): Removed. See CustomRamp.
1920    
1921            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
1922            (Classification.SetField, Classification.SetFieldType):
1923            Replaced with SetFieldInfo.
1924            (Classification.SetFieldInfo): New. Does a better job of
1925            what SetField and SetFieldType used to do by combining
1926            their function since they should really always be done
1927            at the same time.
1928            (Classification.SetLayer): Renamed to _set_layer.
1929            (Classification._set_layer): Should only be called from
1930            Layer's SetClassification. This does not cause a recursive
1931            call as SetLayer did because we know that Layer knows about
1932            the classification.
1933    
1934            * Thuban/Model/color.py: Fixes RTbug #1971.
1935            (_Transparent): Renamed from Transparent so it doesn't
1936            conflict with the module variable.
1937            (Transparent, Black): Renamed from Color.Transparent,
1938            Color.Black so they are not class variables.
1939    
1940            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
1941            (Layer.Destroy): We don't need to call SetClassification
1942            anymore to clear out the back reference in the classifcation
1943            to the layer. It's better to set it to None using _set_layer,
1944            and we won't be creating another clas object too.
1945            (Layer.SetClassification): Classification._set_layer is not
1946            recursive so remove all the locking variables. Also clean
1947            up the code so that it remains unchanged if something fails.
1948    
1949            * Thuban/Model/load.py: Fixes RTbug #1971.
1950            (SessionLoader.start_classification): Call
1951            Classification.SetFieldInfo().
1952    
1953            * Thuban/Model/save.py: Removed import of Color which wasn't
1954            being used.
1955    
1956            * Thuban/UI/classgen.py: Fixes RTbug #1972.
1957            (ClassGenDialog.__init__): Color ramps are now instances
1958            already so we don't need to create any new objects.
1959            (ClassGenDialog.OnOK): Check for numGroups is no longer
1960            necessary because we never use it.
1961    
1962            * Thuban/UI/classifier.py: Fixes RTbug #1971.
1963            (Classifier.__BuildClassification, Classifier.__SetGridTable):
1964            Call Classification.SetFieldInfo() instead of SetFieldType.
1965    
1966            * Thuban/UI/renderer.py: Fixes RTbug #1971.
1967    
1968            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
1969            (MapCanvas.__init__): Subscribe to the idle time event. Set
1970            background color to white.
1971            (MapCanvas.OnPaint): Set a flag indicating that we should
1972            render the map during idle time. If we already have a bitmap
1973            just draw it now.
1974            (MapCanvas.OnIdle): New. Render the map only during idle time.
1975            This also fixes a problem with the busy cursor under gtk.
1976    
1977            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
1978            Fix calls to generate_singletons because the signature changed.
1979    
1980            * test/test_classification.py: Fix color references and
1981            change calls to Classification.[SetField|SetFieldType] to
1982            SetFieldInfo.
1983    
1984            * test/test_load.py: Fix color references.
1985    
1986            * test/test_load_0_2.py: Fix color references.
1987    
1988            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
1989            Change calls to Classification.[SetField|SetFieldType] to
1990            SetFieldInfo.
1991    
1992    2003-07-01  Frank Koormann   <[email protected]>
1993    
1994            MERGE from the greater-ms3 branch.
1995    
1996            * test/test_transientdb.py
1997            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
1998            New. Test join of two tables with partly equal column names.
1999    
2000            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
2001            If duplicates in left and right tables column names are found,
2002            append '_' (underscores) to the name until it is unique.
2003            Create always new internal names for the resulting table and reference
2004            columns in the join statement with <table>.<column>
2005    
2006    2003-07-01  Bernhard Herzog  <[email protected]>
2007    
2008            * test/test_transientdb.py
2009            (TestTransientTable.test_transient_joined_table_same_column_name):
2010            New. Test whether joining on columns with the same names in both
2011            tables works.
2012            
2013            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
2014            sure to use the right internal names even when joining on field
2015            with the same names in both tables. Also, detect duplicate names
2016            in the joined table correctly.
2017    
2018    2003-07-01  Frank Koormann   <[email protected]>
2019    
2020            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
2021            Reverse List of layers to render in same order as in desktop legend.
2022    
2023    2003-06-30  Jonathan Coles   <[email protected]>
2024    
2025            * Thuban/version.py (make_tuple): Takes a version string
2026            and splits it into a tuple of at most three integers.
2027            Used make_tuple() to make tuple versions of the version
2028            numbers.
2029    
2030            * Thuban/UI/about.py: Add Thuban email addresses.
2031    
2032    2003-06-30  Jonathan Coles   <[email protected]>
2033    
2034            * Thuban/version.py: SQLite/PySQLite version dependencies
2035            were too high.
2036    
2037    2003-06-30  Jonathan Coles   <[email protected]>
2038    
2039            * Thuban/version.py: Update version to 0.8.1
2040            
2041            * MANIFEST.in: Added Projections so that default.proj is
2042            included.
2043    
2044    2003-06-26  Jonathan Coles   <[email protected]>
2045    
2046            New About box with lots more information including library
2047            versions and credits. More/better version checking before
2048            Thuban starts.
2049    
2050            * Thuban/UI/about.py: New. New About box that displays
2051            library version information and credits.
2052    
2053            * Thuban/version.py: Added new 'versions' dictionary which
2054            contains the verions of various libraries which are checked
2055            when the module loads.
2056            (verify_versions): Check all version numbers and returns
2057            a list of errors.
2058    
2059            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
2060            Reset the status of the buttons as the situation warrants,
2061            but in a better more reliable way by not relying on the
2062            current status to determine what needs to change.
2063    
2064            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
2065            (verify_versions): Remove most of the code since it is
2066            now in Thuban.version.verify_versions.o
2067    
2068            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
2069            About box in Thuban.UI.about.
2070    
2071            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
2072            Returns the version of gdal library being used as a string.
2073    
2074            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
2075            Removed.
2076            (get_proj_version): Return the version of PROJ that the file
2077            was compiled with.
2078            (get_gtk_version): Return th version of GTK that the file
2079            was compiled with.
2080    
2081    2003-06-25  Jonathan Coles   <[email protected]>
2082    
2083            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
2084            of the SelectPropertiesDialog should be self so the window
2085            appears on top.
2086            (ClassGroupPropertiesCtrl.DoEdit): The parent
2087            of the SelectPropertiesDialog should be self so the window
2088            appears on top.
2089    
2090            * Thuban/UI/resource.py: Cleaned up how we determine file
2091            extensions.
2092            (GetImageResource): Return an wxImage from our Resources.
2093    
2094    2003-06-24  Jonathan Coles   <[email protected]>
2095    
2096            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
2097            Check that a layer has a classification before trying
2098            to get it. Raster layers don't have classifications.
2099    
2100    2003-06-23  Jonathan Coles   <[email protected]>
2101            
2102            * setup.py: Add Resources/XML to resource list.
2103        
2104    2003-06-23  Jonathan Coles   <[email protected]>
2105    
2106            * setup.cfg: Fix copyright dates
2107        
2108    2003-06-23  Jonathan Coles   <[email protected]>
2109    
2110            * MANIFEST.in: Update with Resources/XML
2111    
2112            * setup.py: Don't include Locale resources yet as we don't
2113            have any and it causes problems building the distribution
2114            for Windows. Update version to 0.8.0.
2115    
2116            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
2117    
2118            * Thuban/UI/mainwindow.py: Add blank line at the end because
2119            file was not being read correctly building the Windows
2120            distribution.
2121    
2122    2003-06-23  Jonathan Coles   <[email protected]>
2123    
2124            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
2125    
2126            * Thuban/version.py: Temporarily update longversion for
2127            the 0.8 release so that it doesn't have the cvs revision.
2128    
2129    2003-06-23  Jonathan Coles   <[email protected]>
2130    
2131            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
2132            to make sure that we don't create reentrant possibilities with
2133            wxYield.
2134    
2135            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
2136            directly to avoid the wxSafeYield() call which generates an
2137            OnPaint event causing infinite recursion. Don't try to catch
2138            exception anymore. This was for before there were limits on map
2139            scaling.
2140    
2141    2003-06-23  Bernhard Herzog  <[email protected]>
2142    
2143            Bug fix for RT #1961:
2144    
2145            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
2146            Register DerivedShapestores with the session
2147    
2148            * Thuban/Model/session.py (Session.Tables): Make sure each table
2149            is only listed once.
2150    
2151            * test/test_load.py (TestJoinedTable.test): Add check_format call.
2152            Update file contents to match the one written out.
2153    
2154    2003-06-20  Bernhard Herzog  <[email protected]>
2155    
2156            * test/xmlsupport.py (SaxEventLister.startElementNS)
2157            (SaxEventLister.endElementNS): Do not include the qname. Python
2158            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
2159            is (presumably incorrectly) None, whereas it's a string with the
2160            element name in the later versions.
2161    
2162            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
2163            (TestEventList.test_even_list_namespace): Update tests to reflect
2164            the new behaviour
2165            (TestEventList.test_even_list_id_normalization): Fix doc-string
2166    
2167    2003-06-20  Jonathan Coles   <[email protected]>
2168    
2169            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
2170            by deriving classes to determine if that layer supports shapes.
2171            (Layer): Override HasShapes and return true.
2172    
2173            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
2174            instead of a direct call to wx[Begin|End]CusyCursor().
2175            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
2176            table data.
2177    
2178            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
2179            New. Wrappers around the wxWindows functions that allow us to
2180            make additional calls such as wxYield which gives the native
2181            system a chance to update the cursor correctly.
2182    
2183            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
2184            instead of a direct call to wx[Begin|End]CusyCursor().
2185    
2186            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
2187            instead of a direct call to wx[Begin|End]CusyCursor().
2188            (MapCanvas.find_shape_at): Check if the current search layer
2189            support shapes, otherwise go on to the next layer.
2190    
2191            * test/test_layer.py: Add tests in each type of layer for
2192            HasClassification() and HasShapes()
2193    
2194  2003-06-20  Jonathan Coles   <[email protected]>  2003-06-20  Jonathan Coles   <[email protected]>
2195    
2196          * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after          * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after

Legend:
Removed from v.1272  
changed lines
  Added in v.1718

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26