/[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 1418 by bh, Tue Jul 15 08:44:20 2003 UTC revision 1767 by jan, Wed Oct 1 09:52:52 2003 UTC
# Line 1  Line 1 
1    2003-10-01  Jan-Oliver Wagner <[email protected]>
2    
3            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
4            it annoys lintian which warns about these files not being
5            executable. The #! isn't necessary here since if you absolutely
6            must execute them you can always say "python <filename>".
7    
8    2003-09-26  Bernhard Herzog  <[email protected]>
9    
10            * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
11            only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
12            is ported to a newer the import will fail, so it should be noticed
13            immediately that this function is gone.
14            Fixes RT#1919
15    
16    2003-09-26  Bernhard Herzog  <[email protected]>
17    
18            Add a DTD for the projection files and make thuban write valid
19            projection files
20    
21            * Resources/XML/projfile.dtd: New. DTD for thuban's projection
22            files
23    
24            * Thuban/Model/resource.py (ProjFileSaver.write): Use
25            'projectionlist' as the name in the document type declaration so
26            that it matches the element type of the root element.
27    
28            * test/test_proj.py (sample_projfile, sample_projfile2): Use
29            'projectionlist' as the name in the document type declaration just
30            as it is done now in the files thuban would write
31            (sample_projfile, sample_projfile_data): Fix spelling of
32            "Mercator"
33            (TestProjFile.doTestWrite): Validate the written and the expected
34            XML data
35            (TestProjFile): Derive from ValidationTest so that we can run xml
36            validation tests
37    
38    2003-09-24  Bernhard Herzog  <[email protected]>
39    
40            * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
41            modify the list returned by map.Layers() in place since it is the
42            actual list of layers used by the map.
43    
44    2003-09-23  Jan-Oliver Wagner <[email protected]>
45    
46            * Doc/manual/thuban-manual.xml: Added subsection to chapter
47            Extensions to describe the extensions coming with the Thuban
48            standard package (gns2shp and importAPR).
49    
50    2003-09-23  Bernhard Herzog  <[email protected]>
51    
52            * libraries/thuban/wxproj.cpp (project_point): if there's an
53            inverse but no forward projection, convert to degrees after
54            applying the inverse projection. Fixes RT#2096
55    
56            * test/test_wxproj.py: New. Test cases for wxproj.so. One test
57            implicitly tests for the fix to RT#2096
58    
59            * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
60            Check that the sequences have the same lengths
61    
62            * Resources/Projections/defaults.proj (Geographic projection): Use
63            a much more precise value for the to_meter attribute.
64    
65    2003-09-22  Bernhard Herzog  <[email protected]>
66    
67            * test/support.py (initthuban): Make sure to unset the LANG env.
68            var. so that tests that compare translated strings work. Solves RT
69            #2094
70    
71    2003-09-22  Jan-Oliver Wagner <[email protected]>
72    
73            Small improvement of APR import.
74    
75            * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
76            Added tests for text-ranges.
77    
78            * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
79            returns a string object if the range is based on text.
80    
81            * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
82            range retrieval.
83    
84    2003-09-22  Jan-Oliver Wagner <[email protected]>
85    
86            Initial version of the importAPR extension which is in
87            experimental state.
88    
89            * /Extensions/importAPR/, /Extensions/importAPR/samples/,
90            /Extensions/importAPR/test/: New directories.
91    
92            * /Extensions/importAPR/samples/README: New: Howto load the samples.
93    
94            * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
95            file which refers to the Thuban Iceland demo data.
96    
97            * /Extensions/importAPR/test/README: New: Howto execute the tests.
98    
99            * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
100    
101            * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
102            as in '.apr'-files.
103    
104            * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
105            ODB Objects as in '.apr', '.avl' and other files.
106    
107            * /Extensions/importAPR/__init__.py: New: Init to make this
108            directory a package.
109    
110            * /Extensions/importAPR/importAPR.py: New: Import a ArcView
111            project file (.apr) and convert it to Thuban.
112    
113    2003-09-22  Jan-Oliver Wagner <[email protected]>
114    
115            * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
116    
117    2003-09-19  Jan-Oliver Wagner <[email protected]>
118    
119            * Doc/manual/thuban-manual.xml: Extended section 'Installation'
120            with description on RPM installation and RPM binary package
121            creation.
122    
123    2003-09-18  Bernhard Herzog  <[email protected]>
124    
125            * setup.py (data_files): Only add the mo files if the Locales
126            directory actually exists, so that setup.py works with a fresh CVS
127            checkout
128    
129    2003-09-12  Jan-Oliver Wagner <[email protected]>
130    
131            * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
132            in viewport, not anymore in view
133    
134    2003-09-04  Jan-Oliver Wagner <[email protected]>
135    
136            Introducing first Extension (gns2shp).
137    
138            * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
139    
140            * Extensions/__init__.py: New. init to make this dir a package.
141    
142            * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
143    
144            * Extensions/gns2shp/test/README: New. some info on this test directory.
145    
146            * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
147    
148            * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
149            of Shapefile from GNS text file format
150    
151    2003-09-03  Jan-Oliver Wagner <[email protected]>
152    
153            Fix/workaround for bug #2019:
154            https://intevation.de/rt/webrt?serial_num=2019
155    
156            * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
157            (IdentifyView.__init__): Added another button that allows to
158            stop the identify mode.
159            (IdentifyView.OnStop): New. Stops the identify mode.
160    
161    2003-09-03  Jan-Oliver Wagner <[email protected]>
162    
163            Introducing a new exception dialog that allows to exit the
164            application immediately.
165            This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
166    
167            * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
168    
169            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
170            Made strings available to translations. Exchanged the simple
171            ScrolledMessageDialog by the new ExceptionDialog.
172    
173    2003-09-01  Bernhard Herzog  <[email protected]>
174    
175            * NEWS: New. Summary of changes and release notes.
176    
177            * MANIFEST.in: Add NEWS
178    
179    2003-09-01  Bernhard Herzog  <[email protected]>
180    
181            * MANIFEST.in: Correct the include statement for the mo-files and
182            include the documentation too.
183    
184            * setup.py (data_files): Add the .mo files
185            (setup call): Up to version 0.9.0
186    
187    2003-09-01  Bernhard Herzog  <[email protected]>
188    
189            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
190            parameter list to just parent and session
191            (ChooseDBTableDialog.__set_properties): Removed. Setting the
192            selection of empty list boxes is not allowed (and produces C++
193            assertion errors) and the rest of the setup is better done in
194            __init__ anyway.
195            (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
196            (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
197            builtins True/False for booleans to avoid warnings from wxPython
198    
199            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
200            ChooseDBTableDialog constructor parameters.
201    
202    2003-09-01  Bernhard Herzog  <[email protected]>
203    
204            * Thuban/Model/postgisdb.py
205            (PostGISTable): Extend doc-string
206            (PostGISTable._fetch_table_information): Set the column index
207            correctly, pretending ignored columns don't exist.
208    
209            * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
210            for postgis tables with data types not yet supported by thuban.
211    
212    2003-08-29  Bernhard Herzog  <[email protected]>
213    
214            * HOWTO-Release: Tweak item about running the tests.
215    
216    2003-08-29  Jan-Oliver Wagner <[email protected]>
217    
218            * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
219    
220    2003-08-29  Bernhard Herzog  <[email protected]>
221    
222            Add some missing parameters to projections. Proj complains about
223            them on windows but for some reason not on Linux.
224    
225            * test/test_save.py (SaveSessionTest.testLayerProjection): Add
226            missing required projection parameters
227    
228            * test/test_proj.py (TestProjFile.test): Add missing required
229            projection parameters
230    
231            * test/test_load_0_8.py (TestLayerProjection.file_contents)
232            (TestLayerProjection.test): Add missing required projection
233            parameters and tests for them
234    
235            * test/test_load.py (TestLayerProjection.file_contents)
236            (TestLayerProjection.test): Add missing required projection
237            parameters and tests for them
238    
239            * test/test_layer.py (TestLayer.test_base_layer): Add missing
240            required projection parameters
241    
242    2003-08-29  Bernhard Herzog  <[email protected]>
243    
244            * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
245            access the pj_errno because directly accessing pj_errno doesn't
246            work on windows if the proj library is in a DLL
247    
248            * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
249    
250    2003-08-28  Bernhard Herzog  <[email protected]>
251    
252            * test/test_proj.py: Import things from Thuban after calling
253            initthuban
254    
255            * test/test_load.py (LoadSessionTest.filenames): New class
256            variable with the filename attributes to normalize
257            (LoadSessionTest.check_format): Pass self.filenames to
258            sax_eventlist to normalize the filename attributes
259    
260            * test/xmlsupport.py: Add cvs keywords
261            (SaxEventLister.__init__): New parameter filenames which indicates
262            attributes that contain filenames
263            (SaxEventLister.startElementNS): Normalize the filename attributes
264            with os.path.normpath
265            (sax_eventlist): New parameter filenames to pass through to
266            SaxEventLister
267    
268            * test/test_derivedshapestore.py: Make this file callable as a
269            program to execute the tests
270            (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
271            the session to self.session so that it gets destroyed properly
272    
273            * test/test_layer.py (TestLayer.tearDown): Call the session's
274            Destroy method
275    
276            * test/test_map.py (TestMapBase.tearDown): Destroy self.session
277            too if it exists
278            (TestMapAddLayer.test_add_layer): Bind the session to self.session
279            so that it gets destroyed properly
280    
281            * test/postgissupport.py (reason_for_not_running_tests): Add a
282            test for the existence of popen2.Popen4.
283    
284            * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
285            reliable way to destroy the sessions created in the test cases
286            (SaveSessionTest.test_dbf_table): Bind the session to self.session
287            so that it gets destroyed properly
288            (SaveSessionTest.testLayerProjection): Bind the session to
289            self.session so that it gets destroyed properly
290    
291            * test/test_session.py (UnreferencedTablesTests.tearDown): Make
292            sure that the session is destroyed properly
293    
294            * test/test_shapefilestore.py: Make this callable as a program to
295            execute the tests
296    
297            * test/test_scalebar.py: Remove unnecessary import of _ from
298            Thuban
299    
300            * test/support.py (print_garbage_information): Call initthuban
301            here because it may be called indirectly from test cases that test
302            test support modules which do not use anything from thuban itself
303            (ThubanTestProgram.runTests): Remove unnecessary debug print
304    
305    2003-08-28  Bernhard Herzog  <[email protected]>
306    
307            * Thuban/version.py (longversion): Update to 0.9
308    
309            * Thuban/UI/mainwindow.py: Remove some unused imports
310    
311            * README: Add section about required additional software. Add date
312            and revision CVS keywords
313    
314            * HOWTO-Release: Add item about the translations. Add date and
315            revision CVs keywords and change formatting to match README a bit
316            better
317    
318            * po/de.po: Update for 0.9
319    
320            * test/README: Tweak the wording a little because many tests are
321            not really unittest.
322    
323    2003-08-27  Bernhard Herzog  <[email protected]>
324    
325            As preparation for the 0.9 release, switch thuban files to a
326            non-dev namespace
327    
328            * Thuban/Model/save.py (SessionSaver.write_session): Write files
329            with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
330            namespace
331    
332            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
333            http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
334    
335            * test/test_save.py (SaveSessionTest.dtd)
336            (SaveSessionTest.testEmptySession)
337            (SaveSessionTest.testSingleLayer)
338            (SaveSessionTest.testLayerProjection)
339            (SaveSessionTest.testRasterLayer)
340            (SaveSessionTest.testClassifiedLayer)
341            (SaveSessionTest.test_dbf_table)
342            (SaveSessionTest.test_joined_table)
343            (SaveSessionTest.test_save_postgis): Update for new namespace
344    
345            * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
346            (TestLayerVisibility.file_contents, TestLabels.file_contents)
347            (TestLayerProjection.file_contents)
348            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
349            (TestPostGISLayer.file_contents)
350            (TestPostGISLayerPassword.file_contents)
351            (TestLoadError.file_contents, TestLoadError.test): Update for new
352            namespace
353    
354    2003-08-27  Bernhard Herzog  <[email protected]>
355    
356            Make the table interface distinguish between row ids (an integer
357            that uniquely identifies a row) and row ordinals (a simple row
358            count from 0 to NumRows() - 1)
359    
360            * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
361            (PostGISTable.RowOrdinalToId): New methods to conver between row
362            ids and row ordinals
363            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
364            parameter row_is_ordinal to indicate whether the row parameter is
365            the row id or the ordinal
366    
367            * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
368            (TransientTableBase.RowOrdinalToId)
369            (AutoTransientTable.RowIdToOrdinal)
370            (AutoTransientTable.RowOrdinalToId): Same new methods as in
371            PostGISTable.
372            (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
373            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
374            Same new parameter as in PostGISTable.
375    
376            * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
377            (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
378            (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
379            (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
380            (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
381            parameter as in PostGISTable.
382    
383            * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
384            (DataTable.RowOrdinalToId): New methods to convert between row ids
385            and row ordinals.
386            (TableGrid.SelectRowById): New method to select a row based on its
387            ID as opposed to its ordinal
388            (DataTable.GetValue, TableGrid.OnRangeSelect)
389            (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
390            (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
391            (LayerTableFrame.__init__): Convert between row ids and row
392            ordinals as appropriate
393    
394            * test/postgissupport.py (PostGISDatabase.__init__): Add
395            doc-string.
396            (PostGISDatabase.initdb): The optional third item in a tuple in
397            tables is now a (key, value) list with additional arguments to
398            pass to upload_shapefile
399            (upload_shapefile): New parameter gid_offset to allow gids that
400            are not the same as the shapeids in the shapefile
401            (PostgreSQLServer.get_default_static_data_db): Use the new
402            gid_offset to make the gids in landmarks 1000 higher than the
403            shapeids in the shapefile
404    
405            * test/test_viewport.py
406            (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
407            new shapeids in the landmarks table
408    
409            * test/test_transientdb.py
410            (TestTransientTable.run_iceland_political_tests)
411            (TestTransientTable.test_transient_joined_table): Add tests for
412            the new table methods and new keywords arguments.
413    
414            * test/test_postgis_db.py
415            (TestPostGISTable.test_read_row_as_dict_row_count_mode)
416            (TestPostGISTable.test_read_value_row_count_mode)
417            (TestPostGISTable.test_row_id_to_ordinal)
418            (TestPostGISTable.test_row_oridnal_to_id): New test for the new
419            table methods and the new arguments
420            (TestPostGISShapestorePoint.test_shapes_in_region)
421            (TestPostGISShapestorePoint.test_shape_raw_data)
422            (TestPostGISShapestorePoint.test_shape_points)
423            (TestPostGISShapestorePoint.test_shape_shapeid)
424            (TestPostGISShapestorePoint.test_all_shapes)
425            (TestPostGISTable.test_simple_query)
426            (TestPostGISTable.test_simple_query)
427            (TestPostGISTable.test_simple_query)
428            (TestPostGISTable.test_read_value)
429            (TestPostGISTable.test_read_row_as_dict): Adapt to the new
430            shapeids in the landmarks table
431    
432            * test/test_memory_table.py
433            (TestMemoryTable.test_read_row_as_dict_row_count_mode)
434            (TestMemoryTable.test_read_value_row_count_mode)
435            (TestMemoryTable.test_row_id_to_ordinal)
436            (TestMemoryTable.test_row_oridnal_to_id): New test for the new
437            table methods and the new arguments
438    
439            * test/test_dbf_table.py
440            (TestDBFTable.test_read_row_as_dict_row_count_mode)
441            (TestDBFTable.test_read_value_row_count_mode)
442            (TestDBFTable.test_row_id_to_ordinal)
443            (TestDBFTable.test_row_oridnal_to_id): New test for the new table
444            methods and the new arguments
445    
446    2003-08-26  Bernhard Herzog  <[email protected]>
447    
448            * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
449            more postgis specific but much faster method to get the bounding
450            box
451    
452    2003-08-26  Bernhard Herzog  <[email protected]>
453    
454            * Thuban/Model/postgisdb.py (PostGISTable.Title)
455            (PostGISShapeStore.AllShapes): Add these missing methods.
456            (PostGISShapeStore.ShapesInRegion): No need to raise
457            StopIteration. We can simply return
458    
459            * test/test_postgis_db.py (TestPostGISTable.test_title)
460            (TestPostGISShapestorePoint.test_all_shapes): New tests for the
461            new methods
462    
463    2003-08-25  Bernhard Herzog  <[email protected]>
464    
465            * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
466    
467            * test/test_postgis_db.py (PolygonTests): New class containing
468            those tests from TestPostGISShapestorePolygon that can also be
469            used to test MUTLIPOLYGON tables
470            (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
471            so derive from that
472            (TestPostGISShapestoreMultiPolygon): New class with tests for
473            MUTLIPOLYGON tables
474    
475            * test/postgissupport.py (PostGISDatabase.initdb): Allow the
476            tables argument to have tuples with three items to override the
477            WKT type used.
478            (PostgreSQLServer.get_default_static_data_db): Use the above to
479            create a polygon table with MUTLIPOLYGONs
480            (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
481            (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
482            coords_to*
483            (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
484            (wkt_converter): New. Map WKT types to converters
485            (upload_shapefile): New parameter force_wkt_type to use a
486            different WKT type than the default
487    
488    2003-08-25  Bernhard Herzog  <[email protected]>
489    
490            * Thuban/UI/application.py
491            (ThubanApplication.run_db_param_dialog): New. Suitable as a
492            db_connection_callback. Main difference is that the dialog run
493            from this method doesn't have a parent so it can be used even when
494            there is no main window
495            (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
496            no db_connection_callback was given. This way the dialog pops up
497            even when the .thuban file was given as a command line parameter.
498    
499    2003-08-25  Bernhard Herzog  <[email protected]>
500    
501            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
502            before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
503            which leads to an effectively frozen X session because the user
504            can only interact with the dialog but the mouse is still grabbed
505            by the canvas.
506            Also, call the tool's Hide method before MouseLeftUp because
507            MouseLeftUp may change the tool's coordinates.
508    
509    2003-08-25  Bernhard Herzog  <[email protected]>
510    
511            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
512            LoadCancelled exceptions and handle them by returning immediately.
513    
514    2003-08-25  Bernhard Herzog  <[email protected]>
515    
516            GUI part of loading sessions with postgis connections which may
517            require user interaction to get passwords or updated parameters
518    
519            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
520            bit nucer and be more generic.
521            (DBFrame.OnAdd): Adapt to new DBDialog interface
522    
523            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
524            optional parameter db_connection_callback which is passed to
525            load_session.
526    
527            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
528            Suitable as a db_connection_callback
529            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
530            db_connection_callback of the application's OpenSession method
531    
532    
533    2003-08-25  Bernhard Herzog  <[email protected]>
534    
535            Basic loading of sessions containing postgis connections:
536    
537            * Thuban/Model/load.py (LoadError): Add doc-string
538            (LoadCancelled): New exception class to indicate a cancelled load
539            (SessionLoader.__init__): Add the db_connection_callback parameter
540            which will be used by the loader to get updated parameters and a
541            password for a database connection
542            (SessionLoader.__init__): Add the new XML elements to the
543            dispatchers dictionary
544            (SessionLoader.check_attrs): Two new conversions, ascii to convert
545            to a byte-string object and idref as a generic id reference
546            (SessionLoader.start_dbconnection)
547            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
548            elements
549            (load_session): Add the db_connection_callback to pass through the
550            SessionLoader
551    
552            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
553            New classes to test loading of sessions with postgis database
554            connections.
555    
556    2003-08-25  Bernhard Herzog  <[email protected]>
557    
558            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
559            replace it and the comment with __BuildDate__ by the Source: and
560            Id: cvs keywords as used in the other files.
561    
562    2003-08-25  Bernhard Herzog  <[email protected]>
563    
564            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
565            LoadError when a required attribute is missing. The code used to
566            be commented out for some reason, but probably should have been
567            active.
568    
569            * test/test_load.py (TestLoadError.test): Test the message in the
570            LoadError too to make sure it really is about the missing
571            attribute
572    
573    2003-08-22  Bernhard Herzog  <[email protected]>
574    
575            * test/test_save.py (SaveSessionTest.test_dbf_table)
576            (SaveSessionTest.test_joined_table): Add XML validation tests.
577    
578    2003-08-22  Bernhard Herzog  <[email protected]>
579    
580            Implement saving a session with a postgis connection
581    
582            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
583            elements for database connections and shapestores using db
584            connections
585            (session): Add the dbconnections to the content model
586    
587            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
588            Write the db connections
589            (SessionSaver.write_session): Call write_db_connections to write
590            the connection before the data sources
591            (SessionSaver.write_data_containers): Handle postgis shapestores
592    
593            * test/test_save.py (SaveSessionTest.thubanids)
594            (SaveSessionTest.thubanidrefs): Update for new DTD
595            (SaveSessionTest.test_save_postgis): New. Test saving a session
596            with postgis connections
597    
598            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
599            (PostGISTable.TableName): New accessor methods for the connection
600            and table name
601    
602            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
603            (TestPostGISTable.test_dbname): New methods to test the new
604            PostGISConnection methods
605    
606    2003-08-22  Bernhard Herzog  <[email protected]>
607    
608            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
609            for exceptions occurring when establishing a Database connection
610            (PostGISConnection.connect): Catch psycopg.OperationalError during
611            connects and raise ConnectionError.
612    
613            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
614            tests for database exceptions
615    
616    2003-08-22  Bernhard Herzog  <[email protected]>
617    
618            Prepare the test suite for tests with required authentication
619    
620            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
621            variables with two predefined users/passwords, one for the admin
622            and one for a non-privileged user.
623            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
624            the non-privileged user to the database and set the admin password
625            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
626            Better error reporting
627            (PostgreSQLServer.connection_params)
628            (PostgreSQLServer.connection_string): New methods to return
629            information about how to connect to the server
630            (PostgreSQLServer.execute_sql): New. Convenience method to execute
631            SQL statements
632            (PostgreSQLServer.require_authentication): Toggle whether the
633            server requires authentication
634            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
635            Add or alter users
636            (PostGISDatabase.initdb): Pass the admin name one the
637            subprocesses' command lines. Grant select rights on
638            geometry_columns to everybody.
639            (upload_shapefile): Use the admin name and password when
640            connecting. Grant select rights on the new table to everybody.
641    
642            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
643            server's new methods to get the connection parameters.
644    
645            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
646            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
647            server's new methods to get the connection parameters.
648    
649            * test/test_postgis_db.py
650            (TestPostGISConnection.test_gis_tables_empty)
651            (TestPostGISConnection.test_gis_tables_non_empty)
652            (PostGISStaticTests.setUp): Use the server's new methods to get
653            the connection parameters.
654    
655    2003-08-22  Bernhard Herzog  <[email protected]>
656    
657            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
658    
659            * Thuban/version.py: Add psycopg version
660    
661            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
662            version of the psycopg module
663    
664    2003-08-22  Bernhard Herzog  <[email protected]>
665    
666            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
667            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
668            at the moment. The functionality should probably be implemented
669            some time, though.
670            (DBFrame.OnRemove): Display a message if the connection can't be
671            removed because it's still in use.
672    
673    2003-08-22  Jan-Oliver Wagner <[email protected]>
674    
675            * Thuban/UI/about.py (About.__init__): split up the huge about
676            text into elements/lists for easier translation. This fixes bug
677            https://intevation.de/rt/webrt?serial_num=2058
678            Also, made some forgotten string available for the i18n.
679    
680    2003-08-21  Bernhard Herzog  <[email protected]>
681    
682            Make postgis support really optional including insensitive menu
683            items.
684    
685            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
686            whether the postgis is supported.
687    
688            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
689            to make postgis support optional
690    
691            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
692            version of Thuban.Model.postgisdb.has_postgis_support
693            (database_management command): Make it only sensitive if postgis
694            is supported.
695    
696    2003-08-21  Jan-Oliver Wagner <[email protected]>
697    
698            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
699            (section Adding and Removing Layers): Added text and described
700            multi-selection.
701            (chapter Extensions): New.
702    
703    2003-08-21  Jan-Oliver Wagner <[email protected]>
704    
705            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
706            settings to allow multiple files to load into the map.
707            Also reduced selection to *.shp as a default.
708    
709    2003-08-20  Bernhard Herzog  <[email protected]>
710    
711            Add dialogs and commands to open database connections and add
712            database layers.
713    
714            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
715            method to open the database connection management dialog
716            (MainWindow.AddDBLayer): New method to add a layer from a database
717            (_has_dbconnections): New helper function to use for sensitivity
718            (database_management command, layer_add_db command): New commands
719            that call the above new methods.
720            (main_menu): Add the new commands to the menu.
721    
722            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
723            (PostGISConnection.connect): Establish the actual connection in a
724            separate method and call it in __init__. This makes it easier to
725            override the behavior in test cases
726            (PostGISConnection.BriefDescription): New method to return a brief
727            description for use in dialogs.
728    
729            * test/test_postgis_db.py (NonConnection): DB connection that
730            doesn't actually connect
731            (TestBriefDescription): New class with tests for the new
732            BriefDescription method
733    
734    2003-08-19  Jan-Oliver Wagner <[email protected]>
735    
736            Moved anything from extensions to libraries.
737    
738            * libraries: New.
739    
740            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
741    
742            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
743            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
744            been moved here from thuban/extensions/pyprojection/
745            See there in the Attic for the older history.
746    
747            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
748            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
749            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
750            have been moved here from thuban/extensions/pyshapelib/
751            See there in the Attic for the older history.
752    
753            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
754            files have been moved here from thuban/extensions/shapelib/
755            See there in the Attic for the older history.
756    
757            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
758            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
759            thuban/extensions/thuban/
760            See there in the Attic for the older history.
761    
762            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
763    
764            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
765            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
766    
767            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
768            Moved to libraries/shapelib.
769    
770            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
771            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
772            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
773            Moved to libraries/pyshapelib.
774    
775            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
776            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
777            Moved to libraries/pyprojection.
778    
779            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
780    
781            * extensions: Removed.
782    
783    2003-08-19  Bernhard Herzog  <[email protected]>
784    
785            * test/test_viewport.py (ViewPortTest): We don't use the
786            facilities of FileTestMixin so don't derive from it.
787            (TestViewportWithPostGIS): New class with tests for using a
788            viewport on a map with postgis layers.
789    
790    2003-08-19  Bernhard Herzog  <[email protected]>
791    
792            Add the db connection management to the session.
793    
794            * Thuban/Model/session.py (Session.__init__): New instance
795            variable db_connections
796            (Session.AddDBConnection, Session.DBConnections)
797            (Session.HasDBConnections, Session.CanRemoveDBConnection)
798            (Session.RemoveDBConnection): New methods to manage and query the
799            db connections managed by the session
800            (Session.OpenDBShapeStore): New method to open a shapestore from a
801            db connection
802    
803            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
804            messages for the db connection handling in the session
805    
806            * test/test_postgis_session.py: New. test cases for the session's
807            db connection handling with postgis connections
808    
809    2003-08-19  Bernhard Herzog  <[email protected]>
810    
811            Add very basic postgis database support and the corresponding test
812            cases. The test cases require a PostgreSQL + postgis installation
813            but no existing database. The database will be created
814            automatically by the test cases
815    
816            * test/README: Add note about skipped tests and the requirements
817            of the postgis tests.
818    
819            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
820    
821            * test/test_postgis_db.py: New. Test cases for the postgis
822            support.
823    
824            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
825            format
826    
827            * test/test_wellknowntext.py: New. Test cases for the
828            wellknowntext parser
829    
830            * test/postgissupport.py: New. Support module for tests involving
831            a postgis database.
832    
833            * test/support.py (execute_as_testsuite): Shut down the postmaster
834            if it's still running after the tests
835    
836            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
837            well known text format
838    
839    2003-08-19  Jan-Oliver Wagner <[email protected]>
840    
841            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
842            message dialog.
843    
844    2003-08-18  Bernhard Herzog  <[email protected]>
845    
846            * test/support.py (ThubanTestResult.printErrors): Indent the
847            reason for the skips in the output to make it a bit more readable.
848            (execute_as_testsuite): New helper function to run a test suite
849            and print some more information.
850            (run_tests): Use execute_as_testsuite to run the tests
851    
852            * test/runtests.py (main): Use execute_as_testsuite to run the
853            tests
854    
855    2003-08-18  Bernhard Herzog  <[email protected]>
856    
857            Fix some bugs in Thuban and the test suite that were uncovered by
858            changes introduced in Python 2.3:
859    
860            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
861            filename is an absolute name
862    
863            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
864            filename is an absolute name
865    
866            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
867            unique filename to save to and use the correct relative filename
868            in the expected output.
869            (SaveSessionTest.test_dbf_table): Use the correct relative
870            filename in the expected output.
871    
872            * test/test_layer.py (TestLayer.test_raster_layer): Update the
873            test to check whether the filename is absolute.
874    
875    2003-08-18  Jan-Oliver Wagner <[email protected]>
876    
877            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
878    
879    2003-08-15  Bernhard Herzog  <[email protected]>
880    
881            Change the way shapes are returned by a shape store. The
882            ShapesInRegion method returns an iterator over actual shape
883            objects instead of a list of shape ids.
884    
885            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
886            id.
887            (ShapefileStore.ShapesInRegion): Return an iterator over the
888            shapes which yields shape objects instead of returning a list of
889            shape ids
890            (ShapefileStore.AllShapes): New. Return an iterator over all
891            shapes in the shape store
892            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
893    
894            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
895            doc-string.
896    
897            * Thuban/UI/baserenderer.py
898            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
899            layer_shapes and make it return an iterator containg shapes
900            instead of a list of ids.
901            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
902            layer_shapes() change
903    
904            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
905            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
906    
907            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
908            changes in the ShapesInRegion return value.
909            (ViewPort._get_hit_tester): Remove commented out code
910    
911            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
912            new return value.
913            (SimpleShapeStore.AllShapes): New. Implement this method too.
914    
915            * test/test_layer.py (TestLayer.test_arc_layer)
916            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
917            (TestLayer.test_point_layer_with_projection)
918            (TestLayer.test_derived_store): Adapt to changes in the
919            ShapesInRegion return value.
920    
921            * test/test_shapefilestore.py
922            (TestShapefileStoreArc.test_shapes_in_region)
923            (TestShapefileStorePolygon.test_shapes_in_region)
924            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
925            in the ShapesInRegion return value.
926            (TestShapefileStorePoint.test_all_shapes)
927            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
928            methods
929    
930            * test/test_derivedshapestore.py
931            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
932            the ShapesInRegion return value.
933            (TestDerivedShapeStore.test_all_shapes)
934            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
935            methods
936    
937    2003-08-15  Bernhard Herzog  <[email protected]>
938    
939            Make the renderers deal correctly with raw vs. python level
940            representation of shape geometries
941    
942            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
943            Return a flag useraw in addition to the callable and the parameter
944            to indicate whether the callable can deal with the raw shape data
945            or uses the higher level python lists of coordinates. The callable
946            now should accept either the raw data or the return value of the
947            shape's Points() method.
948            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
949            change
950            (BaseRenderer.projected_points): Instead of the shape id use the
951            points list as parameter.
952            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
953            (BaseRenderer.draw_point_shape): Adapt to projected_points()
954            change and accept the points list as parameter instead of the
955            shape id.
956    
957            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
958            the useraw flag as required by the BaseRenderer
959            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
960            changes.
961    
962            * test/test_baserenderer.py
963            (TestBaseRenderer.test_point_with_classification): New test for
964            rendering a map with classifications.
965    
966    2003-08-15  Bernhard Herzog  <[email protected]>
967    
968            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
969            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
970            (ViewPort._get_hit_tester, ViewPort.projected_points)
971            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
972            (ViewPort._find_label_at): Split the find_shape_at method into
973            several new methods and use the functions in the hit-test module.
974    
975            * Thuban/UI/hittest.py: New module with Python-level hit-testing
976            functions
977    
978            * test/test_hittest.py: New. Test for the new hittest module
979    
980    2003-08-15  Bernhard Herzog  <[email protected]>
981    
982            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
983            projection to all corners of the bounding box to get a better
984            approximation of the projected bounding box
985    
986            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
987            New. Test coordinate handling of a layer with a projection.
988            Catches the bug fixed in Layer.ShapesInRegion
989    
990    2003-08-15  Bernhard Herzog  <[email protected]>
991    
992            Move some of the mock objects in test_baserenderer into their own
993            module so they can easily be used from other tests
994    
995            * test/mockgeo.py: New test helper module with some mock objects
996            for geometry related things like shapes, shapestores and
997            projections.
998    
999            * test/test_mockgeo.py: New. Tests for the new helper module
1000    
1001            * test/test_baserenderer.py: Some of the mock-objects are in
1002            mockgeo now.
1003    
1004    2003-08-12  Jan-Oliver Wagner <[email protected]>
1005    
1006            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
1007    
1008    2003-08-12  Bernhard Herzog  <[email protected]>
1009    
1010            * po/de.po: New. German translations by Bjoern Broscheit
1011    
1012    2003-08-12  Bernhard Herzog  <[email protected]>
1013    
1014            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
1015            strings have to be one string literal.
1016    
1017    2003-08-11  Bernhard Herzog  <[email protected]>
1018    
1019            * test/support.py (FloatComparisonMixin.assertPointListEquals):
1020            New. This method was used in various derived classes, but it's
1021            better to have it here.
1022    
1023            * test/test_shapefilestore.py
1024            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
1025            FloatComparisonMixin
1026    
1027            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
1028            It's now in FloatComparisonMixin
1029    
1030            * test/test_derivedshapestore.py
1031            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
1032            in FloatComparisonMixin
1033    
1034    2003-08-11  Bernhard Herzog  <[email protected]>
1035    
1036            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
1037            error message
1038    
1039    2003-08-08  Jan-Oliver Wagner <[email protected]>
1040    
1041            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
1042            with version number.
1043            Changed title to reflect version number of Thuban.
1044    
1045    2003-08-08  Jan-Oliver Wagner <[email protected]>
1046    
1047            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
1048            the list corresponds to the "About" web page.
1049    
1050    2003-08-08  Bernhard Herzog  <[email protected]>
1051    
1052            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
1053            Make sure translated strings are recognized as one string literal.
1054    
1055            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
1056            Make sure translated strings are recognized as one string literal.
1057    
1058            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
1059            translated strings are recognized as one string literal.
1060    
1061            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
1062            sure translated strings are recognized as one string literal.
1063    
1064    2003-08-07  Bernhard Herzog  <[email protected]>
1065    
1066            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
1067            Simply delegates to the original shapestore.
1068    
1069            * test/test_derivedshapestore.py
1070            (TestDerivedShapeStore.test_raw_format): New. Test case for
1071            DerivedShapeStore.RawShapeFormat
1072    
1073    2003-08-07  Bernhard Herzog  <[email protected]>
1074    
1075            Add raw data interface to shape objects.
1076    
1077            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
1078            class to ShapefileShape which now holds shapefile specific
1079            information.
1080            (ShapefileShape.compute_bbox): Simplified to not cache any
1081            information. The way this method is used that shouldn't matter
1082            performance wise.
1083            (ShapefileShape.RawData): New. Return the shapeid which is the raw
1084            data format for shapes from shapefiles.
1085            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
1086            in the shape objects returned by a shapestore. For a
1087            ShapefileStore this is always RAW_SHAPEFILE.
1088            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
1089            method.
1090    
1091            * test/test_shapefilestore.py
1092            (TestShapefileStore.test_raw_format): New test to test the raw
1093            format feature of shapes.
1094    
1095            * Thuban/Model/layer.py: Remove the unused import of Shape from
1096            data. It was only there for interface compatibility but it's not
1097            used inside of Thuban and the generic Shape class has gone away.
1098    
1099            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
1100            the raw data format and only use an optimized version of its a
1101            shapefile.
1102    
1103    2003-08-07  Bernhard Herzog  <[email protected]>
1104    
1105            * test/test_baserenderer.py (SimpleShape): Shape class for the
1106            tests.
1107            (SimpleShapeStore.Shape): Use SimpleShape instead of
1108            Thuban.Model.data.Shape to make the tests independed of the coming
1109            changes.
1110    
1111    2003-08-07  Bernhard Herzog  <[email protected]>
1112    
1113            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
1114            (ThubanTestProgram): New classes that extend the respective
1115            classes from unittest. These new version support skipping tests
1116            under certain expected conditions. In the Thuban test suite we
1117            uses this for tests that require the optional gdal support.
1118            (run_tests): Use ThubanTestProgram instead of the unittest.main()
1119    
1120            * test/runtests.py (main): Use the new ThubanTestRunner instead of
1121            the normal one from unittest
1122    
1123            * test/test_layer.py (TestLayer.test_raster_layer): If this test
1124            is not run because gdal support isn't available report this to the
1125            runner.
1126    
1127            * test/test_baserenderer.py
1128            (TestBaseRenderer.test_raster_no_projection): Do not run this test
1129            if gdal support isn't available and report this to the runner.
1130    
1131    2003-08-06  Bernhard Herzog  <[email protected]>
1132    
1133            Rearrange the renderers a bit, partly in preparation for changes
1134            required for the postgis merge, partly to make it more testable.
1135            Also make the representation of coordinates in Shapes more
1136            consistent.
1137    
1138            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
1139            this class is now in BaseRenderer. This class is now practically
1140            only a specialization of BaseRenderer for rendering to an actual
1141            wx DC.
1142            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
1143            to get the shapetype specific rendering functions.
1144    
1145            * Thuban/UI/baserenderer.py: New file with the basic rendering
1146            logic. The code in this file is completely independend of wx.
1147            (BaseRenderer): Class with the basic rendering logic
1148    
1149            * test/test_baserenderer.py: New. Test cases for BaseRenderer
1150    
1151            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
1152            error_on_redraw to guard agains endless loops and stack overflows
1153            when there's a bug in the rendering code that raises exceptions.
1154            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
1155            rendering into a separate method _do_redraw so that error handling
1156            is a bit easier. When an exception occurs, set error_on_redraw to
1157            true. When it's true on entry to OnIdle do nothing and return
1158            immediately.
1159    
1160            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
1161            Shape object will always have the coordinates as a list of list of
1162            coordinate pairs (tuples).
1163            (Shape.compute_bbox): Adapt to new representation.
1164    
1165            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
1166            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
1167            Shape objects.
1168    
1169            * test/test_shapefilestore.py
1170            (ShapefileStoreTests.assertFloatTuplesEqual)
1171            (ShapefileStoreTests.assertPointListEquals): Rename to
1172            assertPointListEquals and change purpose to checking equality of
1173            the lists returned by Shape.Points().
1174            (TestShapefileStoreArc.test_shape)
1175            (TestShapefileStorePolygon.test_shape)
1176            (TestShapefileStorePoint.test_shape): Use the new
1177            assertPointListEquals instead of assertFloatTuplesEqual
1178    
1179            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
1180            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
1181            and change purpose to checking equality of the lists returned by
1182            Shape.Points().
1183            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
1184            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
1185            (TestLayer.test_derived_store): Use the new assertPointListEquals
1186            instead of assertFloatTuplesEqual
1187    
1188            * test/test_derivedshapestore.py
1189            (TestDerivedShapeStore.assertFloatTuplesEqual)
1190            (TestDerivedShapeStore.assertPointListEquals): Rename to
1191            assertPointListEquals and change purpose to checking equality of
1192            the lists returned by Shape.Points().
1193            (TestDerivedShapeStore.test_shape): Use the new
1194            assertPointListEquals instead of assertFloatTuplesEqual
1195    
1196    2003-08-06  Jan-Oliver Wagner <[email protected]>
1197    
1198            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
1199            a bounding box. A dialog is raised in case, no bounding box
1200            is found. This fixes bug #2043:
1201            https://intevation.de/rt/webrt?serial_num=2043
1202    
1203    2003-08-05  Bernhard Herzog  <[email protected]>
1204    
1205            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
1206            object look like a Color instantiation. Formerly it looked like a
1207            tuple.
1208    
1209            * test/test_color.py (TestColor.test_repr)
1210            (TestColor.test_equality, TestColor.test_inequality): New. test
1211            some more apects of the Color class
1212            (TestTransparent.test_repr, TestTransparent.test_hex)
1213            (TestTransparent.test_equality): New. Test cases for the
1214            Transparent object.
1215    
1216    2003-08-04  Jan-Oliver Wagner <[email protected]>
1217    
1218            * Doc/manual/thuban-manual.xml: a number of small improvements.
1219            The resulting file is the version submitted for GREAT-ER II.
1220    
1221    2003-08-01  Bernhard Herzog  <[email protected]>
1222    
1223            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
1224            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
1225            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
1226    
1227            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
1228            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
1229            (ThubanEndBusyCursor): Add doc-strings
1230    
1231    2003-08-01  Bernhard Herzog  <[email protected]>
1232    
1233            First step towards PostGIS integration. More abstraction by movin
1234            more code from the layer to the shapestore. More methods of the
1235            layer are now simply delegated to the equivalent method of the
1236            shapestore. The SHAPETYPE_* constants are now in data not in
1237            layer.
1238    
1239            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
1240            (SHAPETYPE_POINT, Shape): Move these constants and classes from
1241            layer.py to data.py
1242            (ShapefileStore.__init__): More Initialization for the new methods
1243            and functionality.
1244            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
1245            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
1246            (ShapefileStore.Shape): New methods that were formerly implemented
1247            in the layer.
1248            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
1249            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
1250            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
1251            equivalents of the new shape methods. These versions are simply
1252            delegated to the original shapstore.
1253    
1254            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
1255            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
1256            (Layer.SetShapeStore): Removed the initializatin of instance
1257            variables that were needed for the stuff that's now in
1258            ShapefileStore
1259            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
1260            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
1261            shapestore.
1262    
1263            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
1264            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
1265            instead of layer.
1266    
1267            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
1268    
1269            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
1270    
1271            * test/test_layer.py: Import the SHAPETYPE_* constants from data
1272            instead of layer.
1273            (TestLayer.test_derived_store): Remove the test for the exception
1274            when instantiating the DerivedShapeStore with an incompatible
1275            table which is now in test_derivedshapestore.py. Add some more
1276            tests of the layer methods to determine whether they work for a
1277            DerivedShapeStore as well.
1278    
1279    2003-07-31  Jonathan Coles   <[email protected]>
1280    
1281            * Doc/manual/thuban-manual.xml: Fix the list of required packages
1282            by just listing the name and where they can be found.
1283    
1284    2003-07-31  Frank Koormann   <[email protected]>
1285    
1286            * Doc/manual/thuban-manual.xml:
1287            Changed the screenshot elements to figure.
1288            Changed some variablelist elements to itemizedlist.
1289            Added section on GDAL formats.
1290    
1291    2003-07-31  Jonathan Coles   <[email protected]>
1292    
1293            * Doc/manual/thuban-manual.xml: Added a few sentences about
1294            the Fix Border Color option when generating classes.
1295    
1296    2003-07-30  Jonathan Coles   <[email protected]>
1297    
1298            * Thuban/Model/classgen.py: Add docstrings. Rename specific
1299            Ramp instances to use lower_case_style.
1300    
1301            * Thuban/UI/classgen.py: Use renamed Ramp instances.
1302            
1303            * Thuban/UI/classifier.py: Add docstrings.
1304    
1305            * Thuban/UI/dock.py: Add docstrings.
1306    
1307            * test/test_classgen.py: Use renamed Ramp instances.
1308    
1309    2003-07-30  Bernhard Herzog  <[email protected]>
1310    
1311            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
1312            was never used in Thuban.
1313    
1314    2003-07-30  Bernhard Herzog  <[email protected]>
1315    
1316            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
1317            method directly instead of going through the transient_table
1318            method. This faster because transient_table may force the copy of
1319            a DBF file into the transient database and setting a table's title
1320            doesnm't affect the title of the associated transient table, so
1321            this fixes RT #2042
1322    
1323            * Thuban/UI/main.py (__version__): Don't import the already
1324            removed show_exception_dialog.
1325    
1326    2003-07-29  Jonathan Coles   <[email protected]>
1327    
1328            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
1329            Put back this method and remove the equivalent function since we
1330            are setting the exception hook from within this class (OnInit).
1331    
1332    2003-07-29  Jonathan Coles   <[email protected]>
1333    
1334            * Doc/manual/images/5_2_custom_ramp.png,
1335            Doc/manual/images/5_2_quantiles.png,
1336            Doc/manual/images/5_2_uniform_dist.png,
1337            Doc/manual/images/5_2_unique_values.png,
1338            Doc/manual/images/8_int_error.png: New screen shots.
1339    
1340            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
1341            some points, and added more screen shots.
1342    
1343    2003-07-29  Bernhard Herzog  <[email protected]>
1344    
1345            * Thuban/Model/data.py: Remove the now unused import of warnings
1346    
1347    2003-07-29  Bernhard Herzog  <[email protected]>
1348    
1349            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
1350            deprecated since before the 0.8 release and isn't used in Thuban
1351            itself anymore.
1352    
1353            * Thuban/Model/transientdb.py: Remove some unnecessary imports
1354    
1355    2003-07-29  Jonathan Coles   <[email protected]>
1356    
1357            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
1358            python exception hook here so that we are sure to catch any
1359            Thuban exception that happen during initialization.
1360    
1361            * Thuban/UI/main.py (main): Don't set the exception hook here,
1362            it will get set in ThubanApplication.OnInit.
1363    
1364    2003-07-29  Jonathan Coles   <[email protected]>
1365                                                                                
1366            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
1367            Removed and called it show_exception_dialog() so that the exception
1368            handler can be set before the class is created.
1369                                                                                
1370            * Thuban/UI/main.py (main): Install the exception handler before
1371            a ThubanApplication is created.
1372                                                                                    
1373    2003-07-29  Bernhard Herzog  <[email protected]>
1374    
1375            * po/it.po: New. Italian translation by Maurizio Napolitano
1376    
1377            * po/ru.po: New. Russian translation by Alex Shevlakov
1378    
1379    2003-07-29  Frank Koormann   <[email protected]>
1380    
1381            * Doc/manual/thuban-manual.xml: Extended section on supported
1382            projections.
1383            
1384    2003-07-29  Frank Koormann   <[email protected]>
1385    
1386            * Doc/manual/thuban-manual.xml: gaspell-checked.
1387    
1388    2003-07-29  Jonathan Coles   <[email protected]>
1389    
1390            * Doc/manual/images/3_5_legend.png: Added border to improve look
1391            on white background.
1392    
1393    2003-07-29  Jonathan Coles   <[email protected]>
1394    
1395            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
1396            descriptions for the legend toolbar.
1397    
1398            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
1399            cursor from dialog box.
1400    
1401    2003-07-28  Jonathan Coles   <[email protected]>
1402    
1403            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
1404    
1405            * Doc/manual/images/2_4_session_tree.png,
1406            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
1407            Doc/manual/images/4_2_layer_properties.png,
1408            Doc/manual/images/4_2_raster_layer_properties.png,
1409            Doc/manual/images/5_3_genclass.png,
1410            Doc/manual/images/5_classification.png,
1411            Doc/manual/images/6_projection.png,
1412            Doc/manual/images/7_1_table_view.png,
1413            Doc/manual/images/7_2_5_join.png: New screenshots.
1414    
1415    2003-07-24  Jonathan Coles   <[email protected]>
1416    
1417            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
1418    
1419    2003-07-24  Jonathan Coles   <[email protected]>
1420    
1421            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
1422            chapter on Layer Management.
1423    
1424            * Doc/manual/Makefile: New. Makefile to generate all formats for the
1425            manual and images.
1426    
1427    2003-07-24  Bernhard Herzog  <[email protected]>
1428    
1429            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
1430            it annoys lintian which warns about these files not being
1431            executable. The #! isn't necessary here since if you absolutely
1432            must execute them you can always say "python <filename>".
1433    
1434            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
1435            superfluous code to set brush and pen for point shapes
1436    
1437            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
1438            belong in viewport anyway
1439    
1440    2003-07-24  Frank Koormann   <[email protected]>
1441    
1442            * Doc/manual/thuban-manual.xml: Added section on table management.
1443    
1444    2003-07-24  Bernhard Herzog  <[email protected]>
1445    
1446            * test/runtests.py (main): Recognize the long "verbose" option
1447            correctly.
1448    
1449    2003-07-22  Jonathan Coles   <[email protected]>
1450    
1451            * Doc/manual/thuban-manual.xml: Continue to write first revision
1452            of the manual.
1453    
1454            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
1455            with Begin/EndDrawing() calls to ensure we aren't doing to
1456            many updates to the dc during rendering.
1457            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
1458            a pen and brush argument so they need to be passed to the function.
1459    
1460            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
1461            Calculates the minimum and maximum scale values. Factored out
1462            of set_view_transform so that it could be used to zoom all the
1463            way into a single point.
1464            (ViewPort.set_view_transform): Call calc_min_max_scales().
1465            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
1466            if only a single point is selected.
1467    
1468            * Doc/manual/images/1_2_legend_close.png,
1469            Doc/manual/images/1_2_legend_dock.png,
1470            Doc/manual/images/1_2_mainwindow.png,
1471            Doc/manual/images/1_2_mainwindow.ps,
1472            Doc/manual/images/1_2_mainwindow.sk,
1473            Doc/manual/images/3_2_fullextent.png,
1474            Doc/manual/images/3_2_fulllayerextent.png,
1475            Doc/manual/images/3_2_fullshapeextent.png,
1476            Doc/manual/images/3_2_pan.png,
1477            Doc/manual/images/3_2_zoomin.png,
1478            Doc/manual/images/3_2_zoomout.png,
1479            Doc/manual/images/3_3_identify.png,
1480            Doc/manual/images/3_3_label.png,
1481            Doc/manual/images/3_5_invisible.png,
1482            Doc/manual/images/3_5_movedown.png,
1483            Doc/manual/images/3_5_moveup.png,
1484            Doc/manual/images/3_5_props.png,
1485            Doc/manual/images/3_5_tobottom.png,
1486            Doc/manual/images/3_5_totop.png,
1487            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
1488    
1489    2003-07-18  Bernhard Herzog  <[email protected]>
1490    
1491            * Thuban/UI/messages.py (MAP_REPLACED): New message.
1492    
1493            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
1494            after the new map has been assigned
1495    
1496            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
1497            Delegate MAP_REPLACED to the canvas too
1498            (MainWindow.prepare_new_session): Removed. Thanks to the new
1499            MAP_REPLACED message it's no longer needed
1500            (MainWindow.OpenSession, MainWindow.NewSession):
1501            prepare_new_session has been removed.
1502    
1503            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
1504            MAP_REPLACED so that we can close the dialog if a new map is set.
1505            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
1506            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
1507            dialog
1508    
1509            * test/test_viewport.py (SimpleViewPortTest)
1510            (SimpleViewPortTest.test_default_size): Add doc-strings
1511            (ViewPortTest.setUp): Bind map to self.map so we can use it in
1512            tests. Subscribe to MAP_REPLACED messages too.
1513            (ViewPortTest.tearDown): No need to explicitly unsubscribe
1514            (ViewPortTest.test_set_map): New test for the SetMap method.
1515    
1516    2003-07-18  Bernhard Herzog  <[email protected]>
1517    
1518            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
1519            Move this test from ViewPortTest.setUp to this new separate test
1520            case. setUp is not the place for the actual tests.
1521            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
1522            more of the test from setUp to the new test test_inital_settings.
1523            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
1524            (ViewPortTest.test_proj_conv): Split test_proj_conv into
1525            test_win_to_proj and test_proj_to_win and make the tests easier to
1526            understand
1527            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
1528            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
1529            (ViewPortTest.test_unprojected_rect_around_point)
1530            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
1531            Reformat to increase readability.
1532    
1533    2003-07-18  Bernhard Herzog  <[email protected]>
1534    
1535            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
1536    
1537    2003-07-18  Bernhard Herzog  <[email protected]>
1538    
1539            * test/runtests.py: The test suite can now be run without an X
1540            connection. To make sure this remains true, remove the DISPLAY
1541            environment variable so that an error occurs if the wxGTK is
1542            imported accidentally
1543    
1544    2003-07-18  Bernhard Herzog  <[email protected]>
1545    
1546            * Thuban/UI/viewport.py: Remove unused imports
1547    
1548            * Thuban/UI/view.py: Remove unused imports
1549    
1550    2003-07-18  Bernhard Herzog  <[email protected]>
1551    
1552            * test/test_export.py Remove unused imports. The OutputTransform
1553            function is now in viewport.py and is called output_transform
1554            (TestScalebar.test_output_transform)
1555            (TestScalebar.test_OutputTransform): Renamed to
1556            test_output_transform and updated to use output_transform instead
1557            of OutputTransform
1558    
1559            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
1560            renamed.
1561            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
1562            renamed to output_transform
1563    
1564            * Thuban/UI/viewport.py (OutputTransform, output_transform):
1565            Rename to output_transform
1566    
1567    2003-07-18  Bernhard Herzog  <[email protected]>
1568    
1569            * Thuban/Model/layer.py (Layer.__init__): Rename
1570            classificationField to classificatin_column and init it here so
1571            that it can be used in SetClassificationColumn
1572            (Layer.GetClassificationColumn, Layer.GetClassificationField):
1573            Rename to GetClassificationColumn.
1574            (Layer.SetClassificationColumn, Layer.SetClassificationField):
1575            Rename to SetClassificationColumn and issue a LAYER_CHANGED
1576            message if the column changes.
1577            (Layer._classification_changed, Layer.ClassChanged): Rename to
1578            _classification_changed. Update the callers.
1579            (Layer.SetShapeStore): Further field->column renames.
1580    
1581            * Thuban/Model/load.py (SessionLoader.start_classification)
1582            (SessionLoader.start_clpoint): Updates because of
1583            field->column method name changes in the Layer class
1584    
1585            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
1586            because of field->column method name changes in the Layer class
1587    
1588            * Thuban/UI/classifier.py (Classifier.__init__)
1589            (Classifier._OnTry, Classifier._OnRevert): Updates because of
1590            field->column method name changes in the Layer class
1591    
1592            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
1593            because of field->column method name changes in the Layer class
1594    
1595            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
1596            of field->column method name changes in the Layer class
1597    
1598            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
1599            (SaveSessionTest.testClassifiedLayer): Update because of
1600            field->column method name changes in the Layer class
1601    
1602            * test/test_layer.py (SetShapeStoreTests.setUp)
1603            (SetShapeStoreTests.test_sanity): Update because of field->column
1604            method name changes in the Layer class
1605            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
1606            (TestLayerModification.test_sanity)
1607            (TestLayerModification.test_initial_settings): remove unsued code
1608            and rename to test_sanity.
1609            (TestLayerModification.test_set_classification): New test for
1610            SetClassification and SetClassificationField.
1611    
1612    2003-07-18  Bernhard Herzog  <[email protected]>
1613    
1614            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
1615            the non-fixed values as well. The old test would have accepted a
1616            fixed ramp that only returnes the fixed properties
1617    
1618    2003-07-17  Jonathan Coles   <[email protected]>
1619    
1620            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
1621            shots for the manual. The XCF file is the source image and
1622            has additional layers to support changes.
1623    
1624            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
1625    
1626            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
1627            Return both the new class and the field name.
1628    
1629            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
1630            fit the map to the window as this changes any zoom level that
1631            the user may have set.
1632    
1633    2003-07-16  Jonathan Coles   <[email protected]>
1634    
1635            * Thuban/Model/classgen.py (generate_singletons,
1636            generate_uniform_distribution, generate_quantiles): Remove
1637            fixes parameter, but maintain the same functionality by having
1638            the calling function pass a FixedRamp object for the ramp.
1639            (FixedRamp): New. Adapts a ramp to have fixed property values.
1640    
1641            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
1642            (Classification): Inherit from Publisher.
1643            (Classification.__init__): Remove the layer parameter.
1644            Classifications no longer need to have a parent layer.
1645            (Classification.GetField, Classification.GetFieldType,
1646            Classification.SetFieldInfo): Removed. The field name is stored
1647            in the layer, and the type can be retreived by calling
1648            Layer.GetFieldType().
1649            (Classification._set_layer, Classification.GetLayer): Removed.
1650            Classifications no longer have a parent layer.
1651    
1652            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
1653            classification.
1654            (Layer.SetShapeStore): Reset the classification first while
1655            we still have the old shape store to work with.
1656            (Layer.GetClassificationField, Layer.SetClassificationField):
1657            New. Method for getting/setting the field to classify on.
1658            (Layer.SetClassification): Simplified now that the layer
1659            simply has to hold a reference to the classification and not
1660            tell the classification who owns it.
1661            Fixes RTbug #2023.
1662    
1663            * Thuban/Model/load.py (SessionLoader.start_classification):
1664            Set the field name on the layer, not the classification.
1665    
1666            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
1667            classification is modified.
1668    
1669            * Thuban/Model/save.py (SessionSaver.write_classification):
1670            Get the field name and type from the layer.
1671    
1672            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
1673            parameter records to rows and add docstring. Fixes RTbug #1997.
1674    
1675            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
1676            ramp when we need to fix certain values of a ramp rather than
1677            using the old fixes parameter. Fixes RTbug #2024.
1678    
1679            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
1680            parameter.
1681            (ClassTable.Reset): Add fieldType parameter and use it, rather
1682            than asking the classification.
1683            (Classifier.__init__): Remember the original class's field
1684            and ask the layer for the field type, rather than the classification.
1685            (Classifier.__SetGridTable): Retrieve the field and field type
1686            for the table because they are not in the classification.
1687            (Classifier._OnTry, Classifier._OnRevert): Set the classification
1688            field on the layer in addition to the classification itself.
1689    
1690            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
1691            classification field from layer.
1692    
1693            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
1694            classification field from layer. Split up tests and remove
1695            *-imports. Fixes RTbug #1992.
1696    
1697            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
1698    
1699            * test/test_classification.py
1700            (TestClassification.test_classification): Remove tests for methods
1701            that no longer exist.
1702    
1703            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
1704            __init__ no longer has a field parameter, use SetClassificationField.
1705            (SetShapeStoreTests.test_sanity): Use layer object to get class
1706            field info.
1707    
1708            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
1709            SetClassificationField on layer to set class field info.
1710    
1711            * test/test_viewport.py: Renamed from test/test_view.py.
1712    
1713    2003-07-16  Jan-Oliver Wagner <[email protected]>
1714    
1715            * Doc/manual/thuban-manual.xml: Added authors and an initial
1716            coarse structure.
1717    
1718    2003-07-15  Bernhard Herzog  <[email protected]>
1719    
1720            * test/support.py (FloatComparisonMixin): This is a mix-in class
1721            and therefore should not be derived from any other class.
1722    
1723            * test/test_range.py (RangeTest): FloatComparisonMixin is a
1724            mix-in, so derive from TestCase as well.
1725    
1726    2003-07-15  Bernhard Herzog  <[email protected]>
1727    
1728            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
1729            draw_func handling a bit to remove one layer of indirection. This
1730            makes the renderer about 10% faster in the non-classifying case
1731            and the code a bit cleaner
1732            (MapRenderer.draw_point_shape): Add the pen and brush parameters
1733            and set them in the dc. Now the draw_point_shape method and
1734            wxproj's draw_polygon_shape function have basically the same
1735            signature so that both can be directly used as draw_func
1736    
1737  2003-07-15  Bernhard Herzog  <[email protected]>  2003-07-15  Bernhard Herzog  <[email protected]>
1738    
1739          * Thuban/Model/save.py (SessionSaver.write_classification): Encode          * Thuban/Model/save.py (SessionSaver.write_classification): Encode

Legend:
Removed from v.1418  
changed lines
  Added in v.1767

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26