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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26