/[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 848 by frank, Wed May 7 07:20:52 2003 UTC revision 1627 by bh, Thu Aug 21 16:09:01 2003 UTC
# Line 1  Line 1 
1    2003-08-21  Bernhard Herzog  <[email protected]>
2    
3            Make postgis support really optional including insensitive menu
4            items.
5    
6            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
7            whether the postgis is supported.
8    
9            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
10            to make postgis support optional
11    
12            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
13            version of Thuban.Model.postgisdb.has_postgis_support
14            (database_management command): Make it only sensitive if postgis
15            is supported.
16    
17    2003-08-21  Jan-Oliver Wagner <[email protected]>
18    
19            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
20            (section Adding and Removing Layers): Added text and described
21            multi-selection.
22            (chapter Extensions): New.
23    
24    2003-08-21  Jan-Oliver Wagner <[email protected]>
25    
26            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
27            settings to allow multiple files to load into the map.
28            Also reduced selection to *.shp as a default.
29    
30    2003-08-20  Bernhard Herzog  <[email protected]>
31    
32            Add dialogs and commands to open database connections and add
33            database layers.
34    
35            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
36            method to open the database connection management dialog
37            (MainWindow.AddDBLayer): New method to add a layer from a database
38            (_has_dbconnections): New helper function to use for sensitivity
39            (database_management command, layer_add_db command): New commands
40            that call the above new methods.
41            (main_menu): Add the new commands to the menu.
42    
43            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
44            (PostGISConnection.connect): Establish the actual connection in a
45            separate method and call it in __init__. This makes it easier to
46            override the behavior in test cases
47            (PostGISConnection.BriefDescription): New method to return a brief
48            description for use in dialogs.
49    
50            * test/test_postgis_db.py (NonConnection): DB connection that
51            doesn't actually connect
52            (TestBriefDescription): New class with tests for the new
53            BriefDescription method
54    
55    2003-08-19  Jan-Oliver Wagner <[email protected]>
56    
57            Moved anything from extensions to libraries.
58    
59            * libraries: New.
60    
61            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
62    
63            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
64            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
65            been moved here from thuban/extensions/pyprojection/
66            See there in the Attic for the older history.
67    
68            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
69            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
70            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
71            have been moved here from thuban/extensions/pyshapelib/
72            See there in the Attic for the older history.
73    
74            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
75            files have been moved here from thuban/extensions/shapelib/
76            See there in the Attic for the older history.
77    
78            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
79            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
80            thuban/extensions/thuban/
81            See there in the Attic for the older history.
82    
83            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
84    
85            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
86            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
87    
88            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
89            Moved to libraries/shapelib.
90    
91            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
92            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
93            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
94            Moved to libraries/pyshapelib.
95    
96            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
97            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
98            Moved to libraries/pyprojection.
99    
100            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
101    
102            * extensions: Removed.
103    
104    2003-08-19  Bernhard Herzog  <[email protected]>
105    
106            * test/test_viewport.py (ViewPortTest): We don't use the
107            facilities of FileTestMixin so don't derive from it.
108            (TestViewportWithPostGIS): New class with tests for using a
109            viewport on a map with postgis layers.
110    
111    2003-08-19  Bernhard Herzog  <[email protected]>
112    
113            Add the db connection management to the session.
114    
115            * Thuban/Model/session.py (Session.__init__): New instance
116            variable db_connections
117            (Session.AddDBConnection, Session.DBConnections)
118            (Session.HasDBConnections, Session.CanRemoveDBConnection)
119            (Session.RemoveDBConnection): New methods to manage and query the
120            db connections managed by the session
121            (Session.OpenDBShapeStore): New method to open a shapestore from a
122            db connection
123    
124            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
125            messages for the db connection handling in the session
126    
127            * test/test_postgis_session.py: New. test cases for the session's
128            db connection handling with postgis connections
129    
130    2003-08-19  Bernhard Herzog  <[email protected]>
131    
132            Add very basic postgis database support and the corresponding test
133            cases. The test cases require a PostgreSQL + postgis installation
134            but no existing database. The database will be created
135            automatically by the test cases
136    
137            * test/README: Add note about skipped tests and the requirements
138            of the postgis tests.
139    
140            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
141    
142            * test/test_postgis_db.py: New. Test cases for the postgis
143            support.
144    
145            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
146            format
147    
148            * test/test_wellknowntext.py: New. Test cases for the
149            wellknowntext parser
150    
151            * test/postgissupport.py: New. Support module for tests involving
152            a postgis database.
153    
154            * test/support.py (execute_as_testsuite): Shut down the postmaster
155            if it's still running after the tests
156    
157            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
158            well known text format
159    
160    2003-08-19  Jan-Oliver Wagner <[email protected]>
161    
162            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
163            message dialog.
164    
165    2003-08-18  Bernhard Herzog  <[email protected]>
166    
167            * test/support.py (ThubanTestResult.printErrors): Indent the
168            reason for the skips in the output to make it a bit more readable.
169            (execute_as_testsuite): New helper function to run a test suite
170            and print some more information.
171            (run_tests): Use execute_as_testsuite to run the tests
172    
173            * test/runtests.py (main): Use execute_as_testsuite to run the
174            tests
175    
176    2003-08-18  Bernhard Herzog  <[email protected]>
177    
178            Fix some bugs in Thuban and the test suite that were uncovered by
179            changes introduced in Python 2.3:
180    
181            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
182            filename is an absolute name
183    
184            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
185            filename is an absolute name
186    
187            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
188            unique filename to save to and use the correct relative filename
189            in the expected output.
190            (SaveSessionTest.test_dbf_table): Use the correct relative
191            filename in the expected output.
192    
193            * test/test_layer.py (TestLayer.test_raster_layer): Update the
194            test to check whether the filename is absolute.
195    
196    2003-08-18  Jan-Oliver Wagner <[email protected]>
197    
198            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
199    
200    2003-08-15  Bernhard Herzog  <[email protected]>
201    
202            Change the way shapes are returned by a shape store. The
203            ShapesInRegion method returns an iterator over actual shape
204            objects instead of a list of shape ids.
205    
206            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
207            id.
208            (ShapefileStore.ShapesInRegion): Return an iterator over the
209            shapes which yields shape objects instead of returning a list of
210            shape ids
211            (ShapefileStore.AllShapes): New. Return an iterator over all
212            shapes in the shape store
213            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
214    
215            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
216            doc-string.
217    
218            * Thuban/UI/baserenderer.py
219            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
220            layer_shapes and make it return an iterator containg shapes
221            instead of a list of ids.
222            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
223            layer_shapes() change
224    
225            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
226            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
227    
228            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
229            changes in the ShapesInRegion return value.
230            (ViewPort._get_hit_tester): Remove commented out code
231    
232            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
233            new return value.
234            (SimpleShapeStore.AllShapes): New. Implement this method too.
235    
236            * test/test_layer.py (TestLayer.test_arc_layer)
237            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
238            (TestLayer.test_point_layer_with_projection)
239            (TestLayer.test_derived_store): Adapt to changes in the
240            ShapesInRegion return value.
241    
242            * test/test_shapefilestore.py
243            (TestShapefileStoreArc.test_shapes_in_region)
244            (TestShapefileStorePolygon.test_shapes_in_region)
245            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
246            in the ShapesInRegion return value.
247            (TestShapefileStorePoint.test_all_shapes)
248            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
249            methods
250    
251            * test/test_derivedshapestore.py
252            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
253            the ShapesInRegion return value.
254            (TestDerivedShapeStore.test_all_shapes)
255            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
256            methods
257    
258    2003-08-15  Bernhard Herzog  <[email protected]>
259    
260            Make the renderers deal correctly with raw vs. python level
261            representation of shape geometries
262    
263            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
264            Return a flag useraw in addition to the callable and the parameter
265            to indicate whether the callable can deal with the raw shape data
266            or uses the higher level python lists of coordinates. The callable
267            now should accept either the raw data or the return value of the
268            shape's Points() method.
269            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
270            change
271            (BaseRenderer.projected_points): Instead of the shape id use the
272            points list as parameter.
273            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
274            (BaseRenderer.draw_point_shape): Adapt to projected_points()
275            change and accept the points list as parameter instead of the
276            shape id.
277    
278            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
279            the useraw flag as required by the BaseRenderer
280            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
281            changes.
282    
283            * test/test_baserenderer.py
284            (TestBaseRenderer.test_point_with_classification): New test for
285            rendering a map with classifications.
286    
287    2003-08-15  Bernhard Herzog  <[email protected]>
288    
289            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
290            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
291            (ViewPort._get_hit_tester, ViewPort.projected_points)
292            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
293            (ViewPort._find_label_at): Split the find_shape_at method into
294            several new methods and use the functions in the hit-test module.
295    
296            * Thuban/UI/hittest.py: New module with Python-level hit-testing
297            functions
298    
299            * test/test_hittest.py: New. Test for the new hittest module
300    
301    2003-08-15  Bernhard Herzog  <[email protected]>
302    
303            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
304            projection to all corners of the bounding box to get a better
305            approximation of the projected bounding box
306    
307            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
308            New. Test coordinate handling of a layer with a projection.
309            Catches the bug fixed in Layer.ShapesInRegion
310    
311    2003-08-15  Bernhard Herzog  <[email protected]>
312    
313            Move some of the mock objects in test_baserenderer into their own
314            module so they can easily be used from other tests
315    
316            * test/mockgeo.py: New test helper module with some mock objects
317            for geometry related things like shapes, shapestores and
318            projections.
319    
320            * test/test_mockgeo.py: New. Tests for the new helper module
321    
322            * test/test_baserenderer.py: Some of the mock-objects are in
323            mockgeo now.
324    
325    2003-08-12  Jan-Oliver Wagner <[email protected]>
326    
327            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
328    
329    2003-08-12  Bernhard Herzog  <[email protected]>
330    
331            * po/de.po: New. German translations by Bjoern Broscheit
332    
333    2003-08-12  Bernhard Herzog  <[email protected]>
334    
335            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
336            strings have to be one string literal.
337    
338    2003-08-11  Bernhard Herzog  <[email protected]>
339    
340            * test/support.py (FloatComparisonMixin.assertPointListEquals):
341            New. This method was used in various derived classes, but it's
342            better to have it here.
343    
344            * test/test_shapefilestore.py
345            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
346            FloatComparisonMixin
347    
348            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
349            It's now in FloatComparisonMixin
350    
351            * test/test_derivedshapestore.py
352            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
353            in FloatComparisonMixin
354    
355    2003-08-11  Bernhard Herzog  <[email protected]>
356    
357            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
358            error message
359    
360    2003-08-08  Jan-Oliver Wagner <[email protected]>
361    
362            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
363            with version number.
364            Changed title to reflect version number of Thuban.
365    
366    2003-08-08  Jan-Oliver Wagner <[email protected]>
367    
368            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
369            the list corresponds to the "About" web page.
370    
371    2003-08-08  Bernhard Herzog  <[email protected]>
372    
373            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
374            Make sure translated strings are recognized as one string literal.
375    
376            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
377            Make sure translated strings are recognized as one string literal.
378    
379            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
380            translated strings are recognized as one string literal.
381    
382            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
383            sure translated strings are recognized as one string literal.
384    
385    2003-08-07  Bernhard Herzog  <[email protected]>
386    
387            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
388            Simply delegates to the original shapestore.
389    
390            * test/test_derivedshapestore.py
391            (TestDerivedShapeStore.test_raw_format): New. Test case for
392            DerivedShapeStore.RawShapeFormat
393    
394    2003-08-07  Bernhard Herzog  <[email protected]>
395    
396            Add raw data interface to shape objects.
397    
398            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
399            class to ShapefileShape which now holds shapefile specific
400            information.
401            (ShapefileShape.compute_bbox): Simplified to not cache any
402            information. The way this method is used that shouldn't matter
403            performance wise.
404            (ShapefileShape.RawData): New. Return the shapeid which is the raw
405            data format for shapes from shapefiles.
406            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
407            in the shape objects returned by a shapestore. For a
408            ShapefileStore this is always RAW_SHAPEFILE.
409            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
410            method.
411    
412            * test/test_shapefilestore.py
413            (TestShapefileStore.test_raw_format): New test to test the raw
414            format feature of shapes.
415    
416            * Thuban/Model/layer.py: Remove the unused import of Shape from
417            data. It was only there for interface compatibility but it's not
418            used inside of Thuban and the generic Shape class has gone away.
419    
420            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
421            the raw data format and only use an optimized version of its a
422            shapefile.
423    
424    2003-08-07  Bernhard Herzog  <[email protected]>
425    
426            * test/test_baserenderer.py (SimpleShape): Shape class for the
427            tests.
428            (SimpleShapeStore.Shape): Use SimpleShape instead of
429            Thuban.Model.data.Shape to make the tests independed of the coming
430            changes.
431    
432    2003-08-07  Bernhard Herzog  <[email protected]>
433    
434            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
435            (ThubanTestProgram): New classes that extend the respective
436            classes from unittest. These new version support skipping tests
437            under certain expected conditions. In the Thuban test suite we
438            uses this for tests that require the optional gdal support.
439            (run_tests): Use ThubanTestProgram instead of the unittest.main()
440    
441            * test/runtests.py (main): Use the new ThubanTestRunner instead of
442            the normal one from unittest
443    
444            * test/test_layer.py (TestLayer.test_raster_layer): If this test
445            is not run because gdal support isn't available report this to the
446            runner.
447    
448            * test/test_baserenderer.py
449            (TestBaseRenderer.test_raster_no_projection): Do not run this test
450            if gdal support isn't available and report this to the runner.
451    
452    2003-08-06  Bernhard Herzog  <[email protected]>
453    
454            Rearrange the renderers a bit, partly in preparation for changes
455            required for the postgis merge, partly to make it more testable.
456            Also make the representation of coordinates in Shapes more
457            consistent.
458    
459            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
460            this class is now in BaseRenderer. This class is now practically
461            only a specialization of BaseRenderer for rendering to an actual
462            wx DC.
463            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
464            to get the shapetype specific rendering functions.
465    
466            * Thuban/UI/baserenderer.py: New file with the basic rendering
467            logic. The code in this file is completely independend of wx.
468            (BaseRenderer): Class with the basic rendering logic
469    
470            * test/test_baserenderer.py: New. Test cases for BaseRenderer
471    
472            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
473            error_on_redraw to guard agains endless loops and stack overflows
474            when there's a bug in the rendering code that raises exceptions.
475            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
476            rendering into a separate method _do_redraw so that error handling
477            is a bit easier. When an exception occurs, set error_on_redraw to
478            true. When it's true on entry to OnIdle do nothing and return
479            immediately.
480    
481            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
482            Shape object will always have the coordinates as a list of list of
483            coordinate pairs (tuples).
484            (Shape.compute_bbox): Adapt to new representation.
485    
486            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
487            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
488            Shape objects.
489    
490            * test/test_shapefilestore.py
491            (ShapefileStoreTests.assertFloatTuplesEqual)
492            (ShapefileStoreTests.assertPointListEquals): Rename to
493            assertPointListEquals and change purpose to checking equality of
494            the lists returned by Shape.Points().
495            (TestShapefileStoreArc.test_shape)
496            (TestShapefileStorePolygon.test_shape)
497            (TestShapefileStorePoint.test_shape): Use the new
498            assertPointListEquals instead of assertFloatTuplesEqual
499    
500            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
501            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
502            and change purpose to checking equality of the lists returned by
503            Shape.Points().
504            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
505            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
506            (TestLayer.test_derived_store): Use the new assertPointListEquals
507            instead of assertFloatTuplesEqual
508    
509            * test/test_derivedshapestore.py
510            (TestDerivedShapeStore.assertFloatTuplesEqual)
511            (TestDerivedShapeStore.assertPointListEquals): Rename to
512            assertPointListEquals and change purpose to checking equality of
513            the lists returned by Shape.Points().
514            (TestDerivedShapeStore.test_shape): Use the new
515            assertPointListEquals instead of assertFloatTuplesEqual
516    
517    2003-08-06  Jan-Oliver Wagner <[email protected]>
518    
519            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
520            a bounding box. A dialog is raised in case, no bounding box
521            is found. This fixes bug #2043:
522            https://intevation.de/rt/webrt?serial_num=2043
523    
524    2003-08-05  Bernhard Herzog  <[email protected]>
525    
526            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
527            object look like a Color instantiation. Formerly it looked like a
528            tuple.
529    
530            * test/test_color.py (TestColor.test_repr)
531            (TestColor.test_equality, TestColor.test_inequality): New. test
532            some more apects of the Color class
533            (TestTransparent.test_repr, TestTransparent.test_hex)
534            (TestTransparent.test_equality): New. Test cases for the
535            Transparent object.
536    
537    2003-08-04  Jan-Oliver Wagner <[email protected]>
538    
539            * Doc/manual/thuban-manual.xml: a number of small improvements.
540            The resulting file is the version submitted for GREAT-ER II.
541    
542    2003-08-01  Bernhard Herzog  <[email protected]>
543    
544            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
545            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
546            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
547    
548            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
549            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
550            (ThubanEndBusyCursor): Add doc-strings
551    
552    2003-08-01  Bernhard Herzog  <[email protected]>
553    
554            First step towards PostGIS integration. More abstraction by movin
555            more code from the layer to the shapestore. More methods of the
556            layer are now simply delegated to the equivalent method of the
557            shapestore. The SHAPETYPE_* constants are now in data not in
558            layer.
559    
560            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
561            (SHAPETYPE_POINT, Shape): Move these constants and classes from
562            layer.py to data.py
563            (ShapefileStore.__init__): More Initialization for the new methods
564            and functionality.
565            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
566            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
567            (ShapefileStore.Shape): New methods that were formerly implemented
568            in the layer.
569            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
570            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
571            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
572            equivalents of the new shape methods. These versions are simply
573            delegated to the original shapstore.
574    
575            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
576            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
577            (Layer.SetShapeStore): Removed the initializatin of instance
578            variables that were needed for the stuff that's now in
579            ShapefileStore
580            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
581            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
582            shapestore.
583    
584            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
585            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
586            instead of layer.
587    
588            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
589    
590            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
591    
592            * test/test_layer.py: Import the SHAPETYPE_* constants from data
593            instead of layer.
594            (TestLayer.test_derived_store): Remove the test for the exception
595            when instantiating the DerivedShapeStore with an incompatible
596            table which is now in test_derivedshapestore.py. Add some more
597            tests of the layer methods to determine whether they work for a
598            DerivedShapeStore as well.
599    
600    2003-07-31  Jonathan Coles   <[email protected]>
601    
602            * Doc/manual/thuban-manual.xml: Fix the list of required packages
603            by just listing the name and where they can be found.
604    
605    2003-07-31  Frank Koormann   <[email protected]>
606    
607            * Doc/manual/thuban-manual.xml:
608            Changed the screenshot elements to figure.
609            Changed some variablelist elements to itemizedlist.
610            Added section on GDAL formats.
611    
612    2003-07-31  Jonathan Coles   <[email protected]>
613    
614            * Doc/manual/thuban-manual.xml: Added a few sentences about
615            the Fix Border Color option when generating classes.
616    
617    2003-07-30  Jonathan Coles   <[email protected]>
618    
619            * Thuban/Model/classgen.py: Add docstrings. Rename specific
620            Ramp instances to use lower_case_style.
621    
622            * Thuban/UI/classgen.py: Use renamed Ramp instances.
623            
624            * Thuban/UI/classifier.py: Add docstrings.
625    
626            * Thuban/UI/dock.py: Add docstrings.
627    
628            * test/test_classgen.py: Use renamed Ramp instances.
629    
630    2003-07-30  Bernhard Herzog  <[email protected]>
631    
632            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
633            was never used in Thuban.
634    
635    2003-07-30  Bernhard Herzog  <[email protected]>
636    
637            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
638            method directly instead of going through the transient_table
639            method. This faster because transient_table may force the copy of
640            a DBF file into the transient database and setting a table's title
641            doesnm't affect the title of the associated transient table, so
642            this fixes RT #2042
643    
644            * Thuban/UI/main.py (__version__): Don't import the already
645            removed show_exception_dialog.
646    
647    2003-07-29  Jonathan Coles   <[email protected]>
648    
649            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
650            Put back this method and remove the equivalent function since we
651            are setting the exception hook from within this class (OnInit).
652    
653    2003-07-29  Jonathan Coles   <[email protected]>
654    
655            * Doc/manual/images/5_2_custom_ramp.png,
656            Doc/manual/images/5_2_quantiles.png,
657            Doc/manual/images/5_2_uniform_dist.png,
658            Doc/manual/images/5_2_unique_values.png,
659            Doc/manual/images/8_int_error.png: New screen shots.
660    
661            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
662            some points, and added more screen shots.
663    
664    2003-07-29  Bernhard Herzog  <[email protected]>
665    
666            * Thuban/Model/data.py: Remove the now unused import of warnings
667    
668    2003-07-29  Bernhard Herzog  <[email protected]>
669    
670            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
671            deprecated since before the 0.8 release and isn't used in Thuban
672            itself anymore.
673    
674            * Thuban/Model/transientdb.py: Remove some unnecessary imports
675    
676    2003-07-29  Jonathan Coles   <[email protected]>
677    
678            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
679            python exception hook here so that we are sure to catch any
680            Thuban exception that happen during initialization.
681    
682            * Thuban/UI/main.py (main): Don't set the exception hook here,
683            it will get set in ThubanApplication.OnInit.
684    
685    2003-07-29  Jonathan Coles   <[email protected]>
686                                                                                
687            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
688            Removed and called it show_exception_dialog() so that the exception
689            handler can be set before the class is created.
690                                                                                
691            * Thuban/UI/main.py (main): Install the exception handler before
692            a ThubanApplication is created.
693                                                                                    
694    2003-07-29  Bernhard Herzog  <[email protected]>
695    
696            * po/it.po: New. Italian translation by Maurizio Napolitano
697    
698            * po/ru.po: New. Russian translation by Alex Shevlakov
699    
700    2003-07-29  Frank Koormann   <[email protected]>
701    
702            * Doc/manual/thuban-manual.xml: Extended section on supported
703            projections.
704            
705    2003-07-29  Frank Koormann   <[email protected]>
706    
707            * Doc/manual/thuban-manual.xml: gaspell-checked.
708    
709    2003-07-29  Jonathan Coles   <[email protected]>
710    
711            * Doc/manual/images/3_5_legend.png: Added border to improve look
712            on white background.
713    
714    2003-07-29  Jonathan Coles   <[email protected]>
715    
716            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
717            descriptions for the legend toolbar.
718    
719            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
720            cursor from dialog box.
721    
722    2003-07-28  Jonathan Coles   <[email protected]>
723    
724            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
725    
726            * Doc/manual/images/2_4_session_tree.png,
727            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
728            Doc/manual/images/4_2_layer_properties.png,
729            Doc/manual/images/4_2_raster_layer_properties.png,
730            Doc/manual/images/5_3_genclass.png,
731            Doc/manual/images/5_classification.png,
732            Doc/manual/images/6_projection.png,
733            Doc/manual/images/7_1_table_view.png,
734            Doc/manual/images/7_2_5_join.png: New screenshots.
735    
736    2003-07-24  Jonathan Coles   <[email protected]>
737    
738            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
739    
740    2003-07-24  Jonathan Coles   <[email protected]>
741    
742            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
743            chapter on Layer Management.
744    
745            * Doc/manual/Makefile: New. Makefile to generate all formats for the
746            manual and images.
747    
748    2003-07-24  Bernhard Herzog  <[email protected]>
749    
750            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
751            it annoys lintian which warns about these files not being
752            executable. The #1 isn't necessary here since if you absolutely
753            must execute them you can always say "python <filename>".
754    
755            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
756            superfluous code to set brush and pen for point shapes
757    
758            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
759            belong in viewport anyway
760    
761    2003-07-24  Frank Koormann   <[email protected]>
762    
763            * Doc/manual/thuban-manual.xml: Added section on table management.
764    
765    2003-07-24  Bernhard Herzog  <[email protected]>
766    
767            * test/runtests.py (main): Recognize the long "verbose" option
768            correctly.
769    
770    2003-07-22  Jonathan Coles   <[email protected]>
771    
772            * Doc/manual/thuban-manual.xml: Continue to write first revision
773            of the manual.
774    
775            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
776            with Begin/EndDrawing() calls to ensure we aren't doing to
777            many updates to the dc during rendering.
778            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
779            a pen and brush argument so they need to be passed to the function.
780    
781            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
782            Calculates the minimum and maximum scale values. Factored out
783            of set_view_transform so that it could be used to zoom all the
784            way into a single point.
785            (ViewPort.set_view_transform): Call calc_min_max_scales().
786            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
787            if only a single point is selected.
788    
789            * Doc/manual/images/1_2_legend_close.png,
790            Doc/manual/images/1_2_legend_dock.png,
791            Doc/manual/images/1_2_mainwindow.png,
792            Doc/manual/images/1_2_mainwindow.ps,
793            Doc/manual/images/1_2_mainwindow.sk,
794            Doc/manual/images/3_2_fullextent.png,
795            Doc/manual/images/3_2_fulllayerextent.png,
796            Doc/manual/images/3_2_fullshapeextent.png,
797            Doc/manual/images/3_2_pan.png,
798            Doc/manual/images/3_2_zoomin.png,
799            Doc/manual/images/3_2_zoomout.png,
800            Doc/manual/images/3_3_identify.png,
801            Doc/manual/images/3_3_label.png,
802            Doc/manual/images/3_5_invisible.png,
803            Doc/manual/images/3_5_movedown.png,
804            Doc/manual/images/3_5_moveup.png,
805            Doc/manual/images/3_5_props.png,
806            Doc/manual/images/3_5_tobottom.png,
807            Doc/manual/images/3_5_totop.png,
808            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
809    
810    2003-07-18  Bernhard Herzog  <[email protected]>
811    
812            * Thuban/UI/messages.py (MAP_REPLACED): New message.
813    
814            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
815            after the new map has been assigned
816    
817            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
818            Delegate MAP_REPLACED to the canvas too
819            (MainWindow.prepare_new_session): Removed. Thanks to the new
820            MAP_REPLACED message it's no longer needed
821            (MainWindow.OpenSession, MainWindow.NewSession):
822            prepare_new_session has been removed.
823    
824            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
825            MAP_REPLACED so that we can close the dialog if a new map is set.
826            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
827            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
828            dialog
829    
830            * test/test_viewport.py (SimpleViewPortTest)
831            (SimpleViewPortTest.test_default_size): Add doc-strings
832            (ViewPortTest.setUp): Bind map to self.map so we can use it in
833            tests. Subscribe to MAP_REPLACED messages too.
834            (ViewPortTest.tearDown): No need to explicitly unsubscribe
835            (ViewPortTest.test_set_map): New test for the SetMap method.
836    
837    2003-07-18  Bernhard Herzog  <[email protected]>
838    
839            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
840            Move this test from ViewPortTest.setUp to this new separate test
841            case. setUp is not the place for the actual tests.
842            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
843            more of the test from setUp to the new test test_inital_settings.
844            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
845            (ViewPortTest.test_proj_conv): Split test_proj_conv into
846            test_win_to_proj and test_proj_to_win and make the tests easier to
847            understand
848            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
849            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
850            (ViewPortTest.test_unprojected_rect_around_point)
851            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
852            Reformat to increase readability.
853    
854    2003-07-18  Bernhard Herzog  <[email protected]>
855    
856            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
857    
858    2003-07-18  Bernhard Herzog  <[email protected]>
859    
860            * test/runtests.py: The test suite can now be run without an X
861            connection. To make sure this remains true, remove the DISPLAY
862            environment variable so that an error occurs if the wxGTK is
863            imported accidentally
864    
865    2003-07-18  Bernhard Herzog  <[email protected]>
866    
867            * Thuban/UI/viewport.py: Remove unused imports
868    
869            * Thuban/UI/view.py: Remove unused imports
870    
871    2003-07-18  Bernhard Herzog  <[email protected]>
872    
873            * test/test_export.py Remove unused imports. The OutputTransform
874            function is now in viewport.py and is called output_transform
875            (TestScalebar.test_output_transform)
876            (TestScalebar.test_OutputTransform): Renamed to
877            test_output_transform and updated to use output_transform instead
878            of OutputTransform
879    
880            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
881            renamed.
882            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
883            renamed to output_transform
884    
885            * Thuban/UI/viewport.py (OutputTransform, output_transform):
886            Rename to output_transform
887    
888    2003-07-18  Bernhard Herzog  <[email protected]>
889    
890            * Thuban/Model/layer.py (Layer.__init__): Rename
891            classificationField to classificatin_column and init it here so
892            that it can be used in SetClassificationColumn
893            (Layer.GetClassificationColumn, Layer.GetClassificationField):
894            Rename to GetClassificationColumn.
895            (Layer.SetClassificationColumn, Layer.SetClassificationField):
896            Rename to SetClassificationColumn and issue a LAYER_CHANGED
897            message if the column changes.
898            (Layer._classification_changed, Layer.ClassChanged): Rename to
899            _classification_changed. Update the callers.
900            (Layer.SetShapeStore): Further field->column renames.
901    
902            * Thuban/Model/load.py (SessionLoader.start_classification)
903            (SessionLoader.start_clpoint): Updates because of
904            field->column method name changes in the Layer class
905    
906            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
907            because of field->column method name changes in the Layer class
908    
909            * Thuban/UI/classifier.py (Classifier.__init__)
910            (Classifier._OnTry, Classifier._OnRevert): Updates because of
911            field->column method name changes in the Layer class
912    
913            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
914            because of field->column method name changes in the Layer class
915    
916            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
917            of field->column method name changes in the Layer class
918    
919            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
920            (SaveSessionTest.testClassifiedLayer): Update because of
921            field->column method name changes in the Layer class
922    
923            * test/test_layer.py (SetShapeStoreTests.setUp)
924            (SetShapeStoreTests.test_sanity): Update because of field->column
925            method name changes in the Layer class
926            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
927            (TestLayerModification.test_sanity)
928            (TestLayerModification.test_initial_settings): remove unsued code
929            and rename to test_sanity.
930            (TestLayerModification.test_set_classification): New test for
931            SetClassification and SetClassificationField.
932    
933    2003-07-18  Bernhard Herzog  <[email protected]>
934    
935            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
936            the non-fixed values as well. The old test would have accepted a
937            fixed ramp that only returnes the fixed properties
938    
939    2003-07-17  Jonathan Coles   <[email protected]>
940    
941            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
942            shots for the manual. The XCF file is the source image and
943            has additional layers to support changes.
944    
945            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
946    
947            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
948            Return both the new class and the field name.
949    
950            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
951            fit the map to the window as this changes any zoom level that
952            the user may have set.
953    
954    2003-07-16  Jonathan Coles   <[email protected]>
955    
956            * Thuban/Model/classgen.py (generate_singletons,
957            generate_uniform_distribution, generate_quantiles): Remove
958            fixes parameter, but maintain the same functionality by having
959            the calling function pass a FixedRamp object for the ramp.
960            (FixedRamp): New. Adapts a ramp to have fixed property values.
961    
962            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
963            (Classification): Inherit from Publisher.
964            (Classification.__init__): Remove the layer parameter.
965            Classifications no longer need to have a parent layer.
966            (Classification.GetField, Classification.GetFieldType,
967            Classification.SetFieldInfo): Removed. The field name is stored
968            in the layer, and the type can be retreived by calling
969            Layer.GetFieldType().
970            (Classification._set_layer, Classification.GetLayer): Removed.
971            Classifications no longer have a parent layer.
972    
973            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
974            classification.
975            (Layer.SetShapeStore): Reset the classification first while
976            we still have the old shape store to work with.
977            (Layer.GetClassificationField, Layer.SetClassificationField):
978            New. Method for getting/setting the field to classify on.
979            (Layer.SetClassification): Simplified now that the layer
980            simply has to hold a reference to the classification and not
981            tell the classification who owns it.
982            Fixes RTbug #2023.
983    
984            * Thuban/Model/load.py (SessionLoader.start_classification):
985            Set the field name on the layer, not the classification.
986    
987            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
988            classification is modified.
989    
990            * Thuban/Model/save.py (SessionSaver.write_classification):
991            Get the field name and type from the layer.
992    
993            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
994            parameter records to rows and add docstring. Fixes RTbug #1997.
995    
996            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
997            ramp when we need to fix certain values of a ramp rather than
998            using the old fixes parameter. Fixes RTbug #2024.
999    
1000            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
1001            parameter.
1002            (ClassTable.Reset): Add fieldType parameter and use it, rather
1003            than asking the classification.
1004            (Classifier.__init__): Remember the original class's field
1005            and ask the layer for the field type, rather than the classification.
1006            (Classifier.__SetGridTable): Retrieve the field and field type
1007            for the table because they are not in the classification.
1008            (Classifier._OnTry, Classifier._OnRevert): Set the classification
1009            field on the layer in addition to the classification itself.
1010    
1011            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
1012            classification field from layer.
1013    
1014            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
1015            classification field from layer. Split up tests and remove
1016            *-imports. Fixes RTbug #1992.
1017    
1018            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
1019    
1020            * test/test_classification.py
1021            (TestClassification.test_classification): Remove tests for methods
1022            that no longer exist.
1023    
1024            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
1025            __init__ no longer has a field parameter, use SetClassificationField.
1026            (SetShapeStoreTests.test_sanity): Use layer object to get class
1027            field info.
1028    
1029            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
1030            SetClassificationField on layer to set class field info.
1031    
1032            * test/test_viewport.py: Renamed from test/test_view.py.
1033    
1034    2003-07-16  Jan-Oliver Wagner <[email protected]>
1035    
1036            * Doc/manual/thuban-manual.xml: Added authors and an initial
1037            coarse structure.
1038    
1039    2003-07-15  Bernhard Herzog  <[email protected]>
1040    
1041            * test/support.py (FloatComparisonMixin): This is a mix-in class
1042            and therefore should not be derived from any other class.
1043    
1044            * test/test_range.py (RangeTest): FloatComparisonMixin is a
1045            mix-in, so derive from TestCase as well.
1046    
1047    2003-07-15  Bernhard Herzog  <[email protected]>
1048    
1049            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
1050            draw_func handling a bit to remove one layer of indirection. This
1051            makes the renderer about 10% faster in the non-classifying case
1052            and the code a bit cleaner
1053            (MapRenderer.draw_point_shape): Add the pen and brush parameters
1054            and set them in the dc. Now the draw_point_shape method and
1055            wxproj's draw_polygon_shape function have basically the same
1056            signature so that both can be directly used as draw_func
1057    
1058    2003-07-15  Bernhard Herzog  <[email protected]>
1059    
1060            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
1061            string values (in addition to the labels) as UTF 8
1062    
1063            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
1064            values if the field type is string
1065    
1066            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
1067            saving a session with non-ascii string classification values.
1068    
1069            * test/test_load.py (TestClassification.file_contents)
1070            (TestClassification.test): Check for non-ascii values in string
1071            classifications
1072    
1073    2003-07-14  Jonathan Coles   <[email protected]>
1074    
1075            * test/test_view.py: New. Tests for ViewPort.
1076    
1077    2003-07-14  Frank Koormann   <[email protected]>
1078    
1079            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
1080            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
1081    
1082            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
1083            unicode strings from session file: session title, map title and
1084            projection name.
1085            
1086    2003-07-10  Jonathan Coles   <[email protected]>
1087    
1088            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
1089            drag_stop, not drag_move when the mouse is released.
1090    
1091    2003-07-10  Jonathan Coles   <[email protected]>
1092    
1093            The most important part of this is the seperation of view.py into
1094            two pieces. viewport.py now has a class called ViewPort which
1095            contains all the non-wx parts of view.py and can therefore be
1096            tested. view.py contains only the wx-specific parts and is fairly
1097            simple.
1098    
1099            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
1100            RTTbug #1992.
1101            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
1102            RTTbug #1992.
1103    
1104            * Thuban/Model/classgen.py (generate_singletons,
1105            generate_uniform_distribution, generate_quantiles):
1106            Added 'fixes' parameter so that property attributes can
1107            be held constant over the generated classification groups.
1108            (CustomRamp.GetProperties): Remove unused variables.
1109    
1110            * Thuban/Model/map.py (Map.SetProjection): Send the old
1111            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
1112            event.
1113    
1114            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
1115            parameter which is a list of records that restricts which
1116            records are saved. Fixes RTbug #1997.
1117    
1118            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
1119            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
1120    
1121            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
1122            to allow the user to fix line color/width on generated groups.
1123            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
1124            functions to optionally fix group properties.
1125    
1126            * Thuban/UI/main.py (main): Set exception hook to the
1127            ShowExceptionDialog. Fixes RTbug #1993.
1128    
1129            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
1130            the table window when it is selectd to be shown.
1131    
1132            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
1133            Export Selection button and move the export buttons underneath
1134            the table.
1135            (QueryTableFrame.UpdateStatusText): Added event argument so
1136            that it can respond to grid selection events. The status text
1137            is now updated even when the table is not associated with a
1138            layer as was previously assumed.
1139            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
1140            UpdateStatusText responds to these events.
1141            (QueryTableFrame.OnSaveAs): Renamed to doExport.
1142            (QueryTableFrame.doExport): Helper function that saves the
1143            entire table, or selected rows, to a file.
1144            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
1145            Respond to export button events and call doExport.
1146    
1147            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
1148            the function doesn't return NULL without first setting a Python
1149            Error.
1150    
1151            * test/runtests.py (main): Only print "Unknown option" for
1152            unsupported options.
1153    
1154            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
1155            optional epsilon argument to specify floating point accuracy.
1156            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
1157            for each item test.
1158    
1159            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
1160            tests for saving selected records.
1161    
1162            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
1163            tests for saving selected records.
1164    
1165            * test/test_map.py (TestMapWithContents.test_set_projection):
1166            MAP_PROJECTION_CHANGED events send the old projection.
1167    
1168            * test/test_session.py
1169            (TestSessionWithContent.test_forward_map_projection):
1170            MAP_PROJECTION_CHANGED events send the old projection.
1171    
1172            * test/test_table.py (TableTest): Update tests to use non-deprecated
1173            functions.
1174    
1175    2003-07-08  Bernhard Herzog  <[email protected]>
1176    
1177            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
1178            constants in the column objects are the standard ones defined in
1179            the table module.
1180    
1181            * test/test_transientdb.py
1182            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
1183            exporting transient tables as DBF works. This should catch the bug
1184            just fixed in TransientTableBase.Width.
1185    
1186    2003-07-08  Bernhard Herzog  <[email protected]>
1187    
1188            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
1189            interpolated colors correctly.
1190    
1191            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
1192            New. Test case for the fix in classgen.py
1193    
1194    2003-07-08  Bernhard Herzog  <[email protected]>
1195    
1196            * test/runtests.py (main): Make the default output less verbose
1197            and add a verbosity option (-v) to get the old output
1198    
1199    2003-07-08  Bernhard Herzog  <[email protected]>
1200    
1201            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
1202            0.9.
1203    
1204            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
1205            New. Return the join type
1206    
1207            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
1208            DTD
1209            (SessionSaver.write_data_containers): Save the join type for
1210            joined tables
1211    
1212            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
1213            namespace
1214            (SessionLoader.start_jointable): Handle the jointype attribute
1215    
1216            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
1217            as of Thuban 0.8. These are now tests to determine whether Thuban
1218            can still read files generated by Thuban 0.8
1219    
1220            * test/test_load.py (LoadSessionTest.dtd)
1221            (TestSingleLayer.file_contents)
1222            (TestLayerVisibility.file_contents, TestLabels.file_contents)
1223            (TestLayerProjection.file_contents)
1224            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1225            (TestJoinedTable.file_contents)
1226            (TestLoadError.file_contents): Update for new DTD
1227            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
1228            for new join type attribute
1229    
1230            * test/test_save.py (SaveSessionTest.dtd)
1231            (SaveSessionTest.testEmptySession)
1232            (SaveSessionTest.testSingleLayer)
1233            (SaveSessionTest.testLayerProjection)
1234            (SaveSessionTest.testRasterLayer)
1235            (SaveSessionTest.testClassifiedLayer)
1236            (SaveSessionTest.test_dbf_table)
1237            (SaveSessionTest.test_joined_table): Update for new DTD
1238            (SaveSessionTest.test_joined_table): Add test for new join type
1239            attribute
1240    
1241    2003-07-04  Bernhard Herzog  <[email protected]>
1242    
1243            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
1244            function for table_to_dbf
1245            (table_to_dbf): Deal with names longer than the 10 character limit
1246    
1247            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
1248            doc-string
1249            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
1250            long column names
1251    
1252    2003-07-03  Bernhard Herzog  <[email protected]>
1253    
1254            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
1255    
1256    2003-07-03  Bernhard Herzog  <[email protected]>
1257    
1258            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
1259            for the Thuban manual and README with some basic information about
1260            the manual
1261    
1262    2003-07-03  Bernhard Herzog  <[email protected]>
1263    
1264            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
1265            Update doc-string
1266            (TransientJoinedTable.create): Do not modify the column objects of
1267            the input tables in place and copy all columns of the input tables
1268            into the joined table after all.
1269    
1270            * test/test_transientdb.py
1271            (TestTransientTable.test_transient_joined_table_same_column_name):
1272            Update to reflect the new behavior
1273            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
1274            Update to reflect the new behavior
1275            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
1276            New test case for a bug which modified the column objects in place
1277    
1278    2003-07-02  Jonathan Coles   <[email protected]>
1279    
1280            * Thuban/Model/classgen.py (generate_singletons,
1281            generate_uniform_distribution, generate_quantiles,
1282            GenQuantiles0): Make sure maxValue isn't less than
1283            one, otherwise we could divide by zero.
1284    
1285            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
1286            ClassGenTest.doClassSingleTest): Call doBoundsTest to
1287            check the end classification groups against the
1288            proper property values.
1289            (ClassGenTest.doBoundsTest): New. Checks the first and
1290            last classification groups to make sure their properties
1291            are the correct upper and lower bounds for a color ramp.
1292    
1293    2003-07-02  Jonathan Coles   <[email protected]>
1294    
1295            * Thuban/Model/classgen.py (generate_singletons,
1296            generate_uniform_distribution, generate_quantiles,
1297            GenQuantiles0): The denominator was one to high when
1298            calculating the index for the ramp causing the index
1299            to never to reach one.
1300    
1301    2003-07-02  Jonathan Coles   <[email protected]>
1302    
1303            Changed the singature of ClassGroupRange.__init__ and
1304            ClassGroupRange.SetRange() so that the min/max values are
1305            passed as a tuple. This makes a better calling scheme for
1306            when a Range object is passed instead.
1307    
1308            * Thuban/Model/classgen.py: Fixed parameters to
1309            ClassGroupRange constructor.
1310    
1311            * Thuban/Model/classification.py (ClassGroupRange.__init__):
1312            Consolidate the min/max parameters into a single _range which
1313            can either be a tuple or a Range object.
1314            (ClassGroupRange.SetRange): Consolidate the min/max parameters
1315            into a single _range which can either be a tuple or a Range object.
1316    
1317            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
1318            call to ClassGroupRange constructor to use a tuple.
1319    
1320            * Thuban/Model/layer.py (Layer.SetClassification): Switch
1321            the classification instance variable to the new class
1322            before calling _set_layer otherwise subscribers to a
1323            LAYER_CHANGED event will not see any difference.
1324    
1325            * test/test_classification.py: Fix tests of ClassGroupRange
1326            so that they use the new signature.
1327    
1328            * test/test_load.py: Fix use of ClassGroupRange so that it
1329            uses the new signature.
1330    
1331            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
1332            uses the new signature.
1333    
1334            * test/test_save.py: Fix use of ClassGroupRange so that it
1335            uses the new signature.
1336    
1337    
1338    2003-07-01  Jonathan Coles   <[email protected]>
1339    
1340            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
1341            Import used objects/class from color.
1342            (generate_singletons): We don't
1343            need the numGroups parameter anymore because we are using
1344            the new ramps with GetProperties().
1345            (generate_uniform_distribution): Use new ramp method
1346            GetProperties().
1347            (generate_quantiles, GenQuantiles0): Use new ramp method
1348            GetProperties().
1349            (CustomRamp.SetNumGroups): Removed. The ramps now map
1350            a value from 0 to 1 to class properties so the number
1351            of groups is not needed ahead of time.
1352            (CustomRamp.next): Removed. CustomRamp does not support
1353            interation anymore.
1354            (CustomRamp.GetProperties): Returns a ClassGroupProperties
1355            object based on the index value from 0 to 1 that is
1356            passed to it.
1357            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
1358            Made into instances of Monochromatic class instread of
1359            deriving from it.
1360            (HotToCold.SetNumGroups): Removed. See CustomRamp.
1361            (HotToCold.next): Removed. See CustomRamp.
1362    
1363            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
1364            (Classification.SetField, Classification.SetFieldType):
1365            Replaced with SetFieldInfo.
1366            (Classification.SetFieldInfo): New. Does a better job of
1367            what SetField and SetFieldType used to do by combining
1368            their function since they should really always be done
1369            at the same time.
1370            (Classification.SetLayer): Renamed to _set_layer.
1371            (Classification._set_layer): Should only be called from
1372            Layer's SetClassification. This does not cause a recursive
1373            call as SetLayer did because we know that Layer knows about
1374            the classification.
1375    
1376            * Thuban/Model/color.py: Fixes RTbug #1971.
1377            (_Transparent): Renamed from Transparent so it doesn't
1378            conflict with the module variable.
1379            (Transparent, Black): Renamed from Color.Transparent,
1380            Color.Black so they are not class variables.
1381    
1382            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
1383            (Layer.Destroy): We don't need to call SetClassification
1384            anymore to clear out the back reference in the classifcation
1385            to the layer. It's better to set it to None using _set_layer,
1386            and we won't be creating another clas object too.
1387            (Layer.SetClassification): Classification._set_layer is not
1388            recursive so remove all the locking variables. Also clean
1389            up the code so that it remains unchanged if something fails.
1390    
1391            * Thuban/Model/load.py: Fixes RTbug #1971.
1392            (SessionLoader.start_classification): Call
1393            Classification.SetFieldInfo().
1394    
1395            * Thuban/Model/save.py: Removed import of Color which wasn't
1396            being used.
1397    
1398            * Thuban/UI/classgen.py: Fixes RTbug #1972.
1399            (ClassGenDialog.__init__): Color ramps are now instances
1400            already so we don't need to create any new objects.
1401            (ClassGenDialog.OnOK): Check for numGroups is no longer
1402            necessary because we never use it.
1403    
1404            * Thuban/UI/classifier.py: Fixes RTbug #1971.
1405            (Classifier.__BuildClassification, Classifier.__SetGridTable):
1406            Call Classification.SetFieldInfo() instead of SetFieldType.
1407    
1408            * Thuban/UI/renderer.py: Fixes RTbug #1971.
1409    
1410            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
1411            (MapCanvas.__init__): Subscribe to the idle time event. Set
1412            background color to white.
1413            (MapCanvas.OnPaint): Set a flag indicating that we should
1414            render the map during idle time. If we already have a bitmap
1415            just draw it now.
1416            (MapCanvas.OnIdle): New. Render the map only during idle time.
1417            This also fixes a problem with the busy cursor under gtk.
1418    
1419            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
1420            Fix calls to generate_singletons because the signature changed.
1421    
1422            * test/test_classification.py: Fix color references and
1423            change calls to Classification.[SetField|SetFieldType] to
1424            SetFieldInfo.
1425    
1426            * test/test_load.py: Fix color references.
1427    
1428            * test/test_load_0_2.py: Fix color references.
1429    
1430            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
1431            Change calls to Classification.[SetField|SetFieldType] to
1432            SetFieldInfo.
1433    
1434    2003-07-01  Frank Koormann   <[email protected]>
1435    
1436            MERGE from the greater-ms3 branch.
1437    
1438            * test/test_transientdb.py
1439            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
1440            New. Test join of two tables with partly equal column names.
1441    
1442            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
1443            If duplicates in left and right tables column names are found,
1444            append '_' (underscores) to the name until it is unique.
1445            Create always new internal names for the resulting table and reference
1446            columns in the join statement with <table>.<column>
1447    
1448    2003-07-01  Bernhard Herzog  <[email protected]>
1449    
1450            * test/test_transientdb.py
1451            (TestTransientTable.test_transient_joined_table_same_column_name):
1452            New. Test whether joining on columns with the same names in both
1453            tables works.
1454            
1455            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
1456            sure to use the right internal names even when joining on field
1457            with the same names in both tables. Also, detect duplicate names
1458            in the joined table correctly.
1459    
1460    2003-07-01  Frank Koormann   <[email protected]>
1461    
1462            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
1463            Reverse List of layers to render in same order as in desktop legend.
1464    
1465    2003-06-30  Jonathan Coles   <[email protected]>
1466    
1467            * Thuban/version.py (make_tuple): Takes a version string
1468            and splits it into a tuple of at most three integers.
1469            Used make_tuple() to make tuple versions of the version
1470            numbers.
1471    
1472            * Thuban/UI/about.py: Add Thuban email addresses.
1473    
1474    2003-06-30  Jonathan Coles   <[email protected]>
1475    
1476            * Thuban/version.py: SQLite/PySQLite version dependencies
1477            were too high.
1478    
1479    2003-06-30  Jonathan Coles   <[email protected]>
1480    
1481            * Thuban/version.py: Update version to 0.8.1
1482            
1483            * MANIFEST.in: Added Projections so that default.proj is
1484            included.
1485    
1486    2003-06-26  Jonathan Coles   <[email protected]>
1487    
1488            New About box with lots more information including library
1489            versions and credits. More/better version checking before
1490            Thuban starts.
1491    
1492            * Thuban/UI/about.py: New. New About box that displays
1493            library version information and credits.
1494    
1495            * Thuban/version.py: Added new 'versions' dictionary which
1496            contains the verions of various libraries which are checked
1497            when the module loads.
1498            (verify_versions): Check all version numbers and returns
1499            a list of errors.
1500    
1501            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
1502            Reset the status of the buttons as the situation warrants,
1503            but in a better more reliable way by not relying on the
1504            current status to determine what needs to change.
1505    
1506            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
1507            (verify_versions): Remove most of the code since it is
1508            now in Thuban.version.verify_versions.o
1509    
1510            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
1511            About box in Thuban.UI.about.
1512    
1513            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
1514            Returns the version of gdal library being used as a string.
1515    
1516            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
1517            Removed.
1518            (get_proj_version): Return the version of PROJ that the file
1519            was compiled with.
1520            (get_gtk_version): Return th version of GTK that the file
1521            was compiled with.
1522    
1523    2003-06-25  Jonathan Coles   <[email protected]>
1524    
1525            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
1526            of the SelectPropertiesDialog should be self so the window
1527            appears on top.
1528            (ClassGroupPropertiesCtrl.DoEdit): The parent
1529            of the SelectPropertiesDialog should be self so the window
1530            appears on top.
1531    
1532            * Thuban/UI/resource.py: Cleaned up how we determine file
1533            extensions.
1534            (GetImageResource): Return an wxImage from our Resources.
1535    
1536    2003-06-24  Jonathan Coles   <[email protected]>
1537    
1538            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
1539            Check that a layer has a classification before trying
1540            to get it. Raster layers don't have classifications.
1541    
1542    2003-06-23  Jonathan Coles   <[email protected]>
1543            
1544            * setup.py: Add Resources/XML to resource list.
1545        
1546    2003-06-23  Jonathan Coles   <[email protected]>
1547    
1548            * setup.cfg: Fix copyright dates
1549        
1550    2003-06-23  Jonathan Coles   <[email protected]>
1551    
1552            * MANIFEST.in: Update with Resources/XML
1553    
1554            * setup.py: Don't include Locale resources yet as we don't
1555            have any and it causes problems building the distribution
1556            for Windows. Update version to 0.8.0.
1557    
1558            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
1559    
1560            * Thuban/UI/mainwindow.py: Add blank line at the end because
1561            file was not being read correctly building the Windows
1562            distribution.
1563    
1564    2003-06-23  Jonathan Coles   <[email protected]>
1565    
1566            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
1567    
1568            * Thuban/version.py: Temporarily update longversion for
1569            the 0.8 release so that it doesn't have the cvs revision.
1570    
1571    2003-06-23  Jonathan Coles   <[email protected]>
1572    
1573            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
1574            to make sure that we don't create reentrant possibilities with
1575            wxYield.
1576    
1577            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
1578            directly to avoid the wxSafeYield() call which generates an
1579            OnPaint event causing infinite recursion. Don't try to catch
1580            exception anymore. This was for before there were limits on map
1581            scaling.
1582    
1583    2003-06-23  Bernhard Herzog  <[email protected]>
1584    
1585            Bug fix for RT #1961:
1586    
1587            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
1588            Register DerivedShapestores with the session
1589    
1590            * Thuban/Model/session.py (Session.Tables): Make sure each table
1591            is only listed once.
1592    
1593            * test/test_load.py (TestJoinedTable.test): Add check_format call.
1594            Update file contents to match the one written out.
1595    
1596    2003-06-20  Bernhard Herzog  <[email protected]>
1597    
1598            * test/xmlsupport.py (SaxEventLister.startElementNS)
1599            (SaxEventLister.endElementNS): Do not include the qname. Python
1600            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
1601            is (presumably incorrectly) None, whereas it's a string with the
1602            element name in the later versions.
1603    
1604            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
1605            (TestEventList.test_even_list_namespace): Update tests to reflect
1606            the new behaviour
1607            (TestEventList.test_even_list_id_normalization): Fix doc-string
1608    
1609    2003-06-20  Jonathan Coles   <[email protected]>
1610    
1611            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
1612            by deriving classes to determine if that layer supports shapes.
1613            (Layer): Override HasShapes and return true.
1614    
1615            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
1616            instead of a direct call to wx[Begin|End]CusyCursor().
1617            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
1618            table data.
1619    
1620            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
1621            New. Wrappers around the wxWindows functions that allow us to
1622            make additional calls such as wxYield which gives the native
1623            system a chance to update the cursor correctly.
1624    
1625            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
1626            instead of a direct call to wx[Begin|End]CusyCursor().
1627    
1628            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
1629            instead of a direct call to wx[Begin|End]CusyCursor().
1630            (MapCanvas.find_shape_at): Check if the current search layer
1631            support shapes, otherwise go on to the next layer.
1632    
1633            * test/test_layer.py: Add tests in each type of layer for
1634            HasClassification() and HasShapes()
1635    
1636    2003-06-20  Jonathan Coles   <[email protected]>
1637    
1638            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
1639            turning on the busy cursor to allow the system to change the
1640            cursor before we begin painting. This fixes a problem that
1641            was occuring only under GTK. Fixes RTbug #1840.
1642    
1643    2003-06-20  Bernhard Herzog  <[email protected]>
1644    
1645            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
1646            version.
1647    
1648            * Thuban/Model/save.py (sort_data_stores): New. Make topological
1649            sort of the data sources so they can be written with sources that
1650            data sources that depend on other data sources come after the
1651            sources they depend on.
1652            (SessionSaver.__init__): Add idmap instance variable to map from
1653            objects to the ids used in the file.
1654            (SessionSaver.get_id, SessionSaver.define_id)
1655            (SessionSaver.has_id): New. Methods to manage the idmap
1656            (SessionSaver.write): Use thuban-0.8.dtd
1657            (SessionSaver.write_session): Add a namespace on the session and
1658            write out the data sources before the maps.
1659            (SessionSaver.write_data_containers): New. Write the data
1660            containers.
1661            (SessionSaver.write_layer): Layer elements now refer to a
1662            shapestore and don't contain filenames anymore.
1663    
1664            * Thuban/Model/load.py (LoadError): Exception class to raise when
1665            errors in the files are discovered
1666            (SessionLoader.__init__): Define dispatchers for elements with a
1667            thuban-0.8 namespace too.
1668            (SessionLoader.check_attrs): New helper method to check and
1669            convert attributes
1670            (AttrDesc): New. Helper class for SessionLoader.check_attrs
1671            (SessionLoader.start_fileshapesource)
1672            (SessionLoader.start_derivedshapesource)
1673            (SessionLoader.start_filetable, SessionLoader.start_jointable):
1674            Handlers for the new elements in the new fileformat
1675            (SessionLoader.start_layer): Handle the shapestore attribute in
1676            addition to filename.
1677            (SessionLoader.start_table, SessionLoader.end_table): Removed.
1678            They were never used in the old formats and aren't needed for the
1679            new.
1680    
1681            * Thuban/Model/session.py (Session.DataContainers): New method to
1682            return all "data containers", i.e. shapestores and tables
1683    
1684            * test/xmlsupport.py (SaxEventLister.__init__)
1685            (SaxEventLister.startElementNS, sax_eventlist): Add support to
1686            normalize IDs.
1687    
1688            * test/test_xmlsupport.py
1689            (TestEventList.test_even_list_id_normalization): New test case for
1690            id normalization
1691    
1692            * test/test_load.py (LoadSessionTest.check_format): Use ID
1693            normalization
1694            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
1695            class atrributes used for ID normalization
1696            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
1697            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
1698            file format
1699            (TestJoinedTable): New test for loading sessions with joined
1700            tables.
1701            (TestLoadError): New. Test whether missing required attributes
1702            cause a LoadError.
1703    
1704            * test/test_save.py (SaveSessionTest.thubanids)
1705            (SaveSessionTest.thubanidrefs): New class attributes for ID
1706            normalization in .thuban files.
1707            (SaveSessionTest.compare_xml): Use id-normalization.
1708            (SaveSessionTest.testEmptySession)
1709            (SaveSessionTest.testLayerProjection)
1710            (SaveSessionTest.testRasterLayer)
1711            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
1712            (SaveSessionTest.testLayerProjection): The filename used was the
1713            same as for testSingleLayer. Use a different one.
1714            (SaveSessionTest.test_dbf_table)
1715            (SaveSessionTest.test_joined_table): New test cases for saving the
1716            new data sources structures.
1717            (TestStoreSort, MockDataStore): Classes to test the sorting of the
1718            data stores for writing.
1719    
1720            * test/runtests.py: Add CVS keywords
1721    
1722    2003-06-20  Jonathan Coles   <[email protected]>
1723    
1724            * test/test_session.py
1725            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
1726            Use the cultural_landmark-point.dbf file for the store so that
1727            the table rows and shape count match.
1728    
1729    2003-06-20  Jonathan Coles   <[email protected]>
1730    
1731            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
1732            an exception if the number of shapes is different from the
1733            number of rows in the table. Address RTbug #1933.
1734    
1735            * test/test_layer.py (TestLayer.test_derived_store): Add
1736            a test for the new exception in DerivedShapeStore.__init__.
1737    
1738            * test/support.py (FloatTestCase): Removed since there is
1739            already FloatComparisonMixin. Fixes RTbug #1954.
1740            (FloatComparisonMixin.assertFloatEqual): Include test for
1741            infinity that was part of FloatTestCase.
1742    
1743            * test/test_range.py (RangeTest): Inherit from
1744            support.FloatComparisonMixin now that we don't have
1745            support.FloatTestCase.
1746    
1747    2003-06-20  Bernhard Herzog  <[email protected]>
1748    
1749            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
1750            the implementation in xmlsupport instead.
1751            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
1752    
1753            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
1754            of test_save
1755    
1756    2003-06-20  Bernhard Herzog  <[email protected]>
1757    
1758            * test/test_load.py (LoadSessionTest.check_format): New helper
1759            method to make sure the test files we load might have been written
1760            by the current thuban version.
1761            (ClassificationTest.TestLayers, TestSingleLayer.test)
1762            (TestLayerVisibility.test, TestClassification.test)
1763            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
1764            Add check_format() calls and fix the thuban data to match the data
1765            that would be written by saving the session loaded from it.
1766    
1767            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
1768            the same class and function in test_save.
1769    
1770            * test/test_xmlsupport.py (TestEventList): New. test cases for
1771            sax_eventlist
1772    
1773    2003-06-20  Bernhard Herzog  <[email protected]>
1774    
1775            * Resources/XML/thuban.dtd: Add comment about which versions of
1776            Thuban are covered by this DTD
1777            (map): Fix content model for layers and raster layers. There can
1778            be any number or layers and raster layers in any order.
1779    
1780    2003-06-20  Jonathan Coles   <[email protected]>
1781    
1782            This is mainly about fixing RTbug #1949.
1783    
1784            * Thuban/Model/classification.py: Remove "from __future__"
1785            import statement since python 2.2 is the earliest supported
1786            version.
1787    
1788            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
1789            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
1790            depending on the units this projection *forwards* into.
1791    
1792            * Thuban/Model/save.py (SessionSaver.write_classification):
1793            Remove unnecessary use of lambdas and nested functions.
1794    
1795            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
1796            adjustment here if the map projection uses degrees.
1797    
1798            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
1799            scale adjust code since it is now done before calling
1800            this method. Don't do anything if the map projection
1801            is None.
1802    
1803    2003-06-19  Bernhard Herzog  <[email protected]>
1804    
1805            Move version specific load tests to their own file.
1806    
1807            * test/test_load.py: Expand the doc-string to explain a bit how to
1808            handle file format changes.
1809            (TestClassification.test): Update the docstring as this test is
1810            not about Thuban 0.2 anymore.
1811    
1812            * test/test_load_0_2.py: New file with the load tests for thuban
1813            files created with Thuban 0.2 and earlier.
1814    
1815    2003-06-19  Bernhard Herzog  <[email protected]>
1816    
1817            Add XML validation to some of the tests. Validation will only be
1818            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
1819            To make the DTD available to the test cases it's moved into
1820            Resources/XML
1821    
1822            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
1823            for versions up to and including 0.2. Two slight changes: added an
1824            encoding specification and fixed the comment which refered to
1825            GRASS, not Thuban
1826    
1827            * test/xmlsupport.py: New support module for tests involving XML.
1828            Currently there's a mix-in class for XML validation.
1829    
1830            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
1831    
1832            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
1833            so that we can validate the
1834            (SaveSessionTest.testEmptySession)
1835            (SaveSessionTest.testSingleLayer)
1836            (SaveSessionTest.testSingleLayer)
1837            (SaveSessionTest.testLayerProjection)
1838            (SaveSessionTest.testRasterLayer)
1839            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
1840    
1841            * test/runtests.py (main): Call print_additional_summary instead
1842            of print_garbage_information
1843    
1844            * test/support.py (resource_dir): New function to return the
1845            "Resource" subdirectory
1846            (print_additional_summary): New function to combine several
1847            summary functions
1848            (run_tests): Use print_additional_summary instead of calling
1849            print_garbage_information directly
1850    
1851    2003-06-19  Bernhard Herzog  <[email protected]>
1852    
1853            * Doc/thuban.dtd (classification): Correct the content model of
1854            the classification element.
1855            (projection): Add the "name" attribute
1856    
1857    2003-06-19  Frank Koormann   <[email protected]>
1858    
1859            MERGE from the greater-ms3 branch.
1860    
1861            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
1862            scale if projection is latlong to get better estimate.
1863    
1864            Fix problem of hidden properties dialog under windows after double
1865            click on layer tree:
1866            The tree control always gets an Expanded / Collapsed event after
1867            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
1868            raises the already displayed window.
1869    
1870            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
1871            raiseProperties initialized to prevent endless loops
1872            (LegendTree._OnItemActivated): Depending on self.raiseProperties
1873            simply raise the properties or open the dialog and issue a second
1874            event.
1875    
1876    2003-06-18  Jonathan Coles   <[email protected]>
1877    
1878            * setup.py: Fix a few problems that occured under Windows.
1879    
1880    2003-06-18  Jonathan Coles   <[email protected]>
1881    
1882            When Thuban loaded the map was redrawn twice because the
1883            legend was being opened after the mainwindow was created
1884            and not during its creation. This meant the map was drawn
1885            initially and then had to be redrawn when the legend
1886            caused the display to change. Now the legend is opened
1887            in the mainwindow constructor which resolves this issue.
1888    
1889            Also, although we were checking for the existence of
1890            gdal and gdalwarp modules, the gdalwarp extension was
1891            still being compiled (which may fail if the system doesn't
1892            have gdal installed). the build_ext command to setup.py
1893            now accepts the flags --with-gdal and --without-gdal.
1894            If --without-gdal is specified setup.py will try to
1895            use the gdal parameters specified by gdal-config. Under
1896            windows, those parameters have to be set in setup.py
1897            as with proj4 an wxWindows.
1898    
1899            * setup.py: Use a list instead of seperate variables for
1900            extension parameters so we can create a generic function
1901            that runs an appropriate *-config script.
1902            (run_cs_script): Renamed from run_wx_script and modified
1903            to accept a second argument which is a list of lists to
1904            be filled in by the values returned from running the command.
1905            (thuban_build_ext): New. Extends the build_ext command and
1906            provides the options --with-gdal/--without-gdal which then
1907            optionally includes the gdalwarp extension.
1908    
1909            * Thuban/Model/resource.py: First check if we can import
1910            the gdalwarp Thuban extension before checking for gdal.
1911            Also added some comments.
1912            
1913            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
1914            the map is None which may be the case if none has been loaded
1915            yet.
1916    
1917            * Thuban/UI/main.py (main): Remove call to ShowLegend.
1918    
1919            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
1920    
1921            * Thuban/UI/renderer.py: Check for gdal support before importing
1922            gdalwarp.
1923            (MapRenderer.render_map): Only try to optimize if we have gdal
1924            support otherwise nothing will get drawn.
1925    
1926            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
1927            during startup before a map has been created. Check if map is None
1928            before using it and do nothing if it is.
1929    
1930    2003-06-17  Jonathan Coles   <[email protected]>
1931    
1932            Fix the problem with raster layers under Windows that caused
1933            Thuban to crash. The view should respond to layer projection
1934            changed events to update the display. Changes to a projection
1935            should not cause the map to be set to full extent.
1936            
1937            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
1938            current_map_proj to remember the current map projection so that
1939            when the projection changes we know what the previous projection
1940            was.
1941            (MapCanvas.SetMap): Unsubscribe and subscribe to
1942            LAYER_PROJECTION_CHANGED events.
1943            (MapCanvas.projection_changed): Split into two methods that respond
1944            to map and layer projection changes.
1945            (MapCanvas.map_projection_changed): New. Takes the current view and
1946            projects it using the new projection. This does not cause the
1947            map to be redrawn at full extent.
1948            (MapCanvas.layer_projection_changed): New. Cause a redraw which
1949            will draw each layer in its new projection.
1950            
1951            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
1952            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
1953            under Windows.
1954            
1955            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
1956            to twice sizeof(void*) because there are two digits for each
1957            hex byte.
1958    
1959    2003-06-16  Bernhard Herzog  <[email protected]>
1960    
1961            Update to the layer interface: Direct access to the table,
1962            shapetable, shapefile and filename attributes is now actively
1963            deprecated by issuing deprecation warnings for all places where
1964            this happens.
1965    
1966            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
1967            to the instance variables table, shapetable, shapefile and
1968            filename via __getattr__ so that we can issue a deprecation
1969            warning.
1970            (Layer.SetShapeStore): Don't set the deprecated instance variables
1971            any more
1972            (Layer.SetShapeStore): Don't use deprecated layer instance
1973            variables
1974            (Layer.Destroy): No need to explicitly remove the instance
1975            variables any more
1976            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
1977            instance variables
1978    
1979            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
1980            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
1981            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
1982            use deprecated layer instance variables
1983    
1984            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
1985            deprecated layer instance variables
1986    
1987            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
1988            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
1989            instance variables
1990    
1991            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
1992            deprecated layer instance variables
1993    
1994            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
1995            deprecated layer instance variables
1996    
1997            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
1998            deprecated layer instance variables
1999    
2000            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
2001            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
2002            variables
2003    
2004            * test/runtests.py (main): Turn Thuban's deprecation warnings into
2005            errors so that they're cought by the tests
2006    
2007            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
2008            layer instance variables
2009    
2010    2003-06-16  Jonathan Coles   <[email protected]>
2011    
2012            Fix a problem under Windows whereby if the user double-clicks on a
2013            layer in the legend that tree item will expand or collapse as well
2014            as open the layer properties dialog. The state of the tree item
2015            should not be affected.
2016    
2017            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
2018            preventExpandCollapse and subscribe to expanding and collapsing
2019            events.
2020            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
2021            collapsing events and will veto the event if it has been triggered
2022            by the user double clicking on a layer.
2023            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
2024            that an expanding/collapsing event should be vetoed.
2025    
2026    2003-06-13  Bernhard Herzog  <[email protected]>
2027    
2028            * Thuban/UI/classifier.py (Classifier.OnClose)
2029            (Classifier.map_layers_removed)
2030            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
2031            in OnClose and not in map_layers_removed or
2032            layer_shapestore_replaced to make sure it always happens when the
2033            dialog is closed
2034    
2035    2003-06-13  Jonathan Coles   <[email protected]>
2036    
2037            This puts back a fix for Windows where a panel is needed so that
2038            the background of the table view appears correctly.
2039    
2040            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
2041            object that can be used by derived classes to place any
2042            controls (including the grid) onto.
2043            (QueryTableFrame.__init__): Use the panel as the parent window
2044            for all the controls. Reparent the grid so that the panel is
2045            the parent. Call UpdateStatusText() to correctly initialize
2046            the status bar.
2047    
2048    2003-06-13  Jonathan Coles   <[email protected]>
2049    
2050            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
2051            from wxFrame (as opposed to wxDialog like the other classes)
2052            but otherwise behaves like the other classes. This is needed
2053            for the TableView which isn't really a dialog and needs to
2054            have a status bar and control buttons.
2055    
2056            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
2057            instance variable to keep track of how many rows are selected.
2058            Subscribe once to the the events we are interested in.
2059            (ThubanGrid.OnRangeSelect): Only handle event if event handling
2060            hasn't been turned off.
2061            (ThubanGrid.OnSelectCell): Only handle event if event handling
2062            hasn't been turned off.
2063            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
2064            as an event listener (which changes the event handler stack)
2065            simply set an instance variable to False. This is checked in
2066            the event handlers.
2067            (ThubanGrid.GetNumberSelected): Return the number of currently
2068            selected rows.
2069            (TableFrame): Inherit from ThubanFrame so we can have a
2070            status bar and control buttons.
2071            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
2072            Explicitly set which items are selected in the operator choice and
2073            action choice so there is always a valid selection. Fixes RTbug #1941.
2074            Subscribe to grid cell selection events so we can update the
2075            status bar.
2076            (QueryTableFrame.UpdateStatusText): Update the status bar with
2077            how many rows are in the grid, how many columns, and how many
2078            rows are selected.
2079            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
2080            Call UpdateStatusText when cells are (de)selected.
2081            (QueryTableFrame.OnQuery): Use the string value in the value
2082            combo if either the selected item index is 0 or if the string
2083            cannot be found in the predefined list (this happens if the
2084            user changes the text). Fixes RTbug #1940.
2085            Only turn off the grid event listeners if there a query comes
2086            back with a none empty list of ids. in the case that the list
2087            is empty this causes a grid.ClearSelection() call to actually
2088            clear the grid selection which causes the selected items in
2089            the map to be deselected. Fixes RTbug #1939.
2090    
2091            * test/test_save.py (XMLWriterTest.Encode): Check return values.
2092            Fixes RTbug #1851.
2093    
2094    2003-06-13  Bernhard Herzog  <[email protected]>
2095    
2096            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
2097            self.selected_shape with the current selection to make sure the
2098            contents of the dialog are up to date when it's shown for the
2099            first time.
2100            The dialog used to work without this by luck. The recent fix to
2101            the connector module 'broke' a 'feature' the identify view was
2102            relying on, i.e that subscribing to a message in response to
2103            receiving a message of that type would mean that the new
2104            subscriber would also be called for the same message.
2105            
2106    2003-06-12  Jonathan Coles   <[email protected]>
2107    
2108            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
2109            the image is rendered. Fixes RTbug #1937.
2110    
2111    2003-06-12  Jonathan Coles   <[email protected]>
2112    
2113            * Thuban/Lib/fileutil.py: As is done under Windows, create the
2114            user directory if it doesn't exist on a posix system.
2115            Fixes RTbug #1815.
2116    
2117            * Thuban/Model/resource.py (get_user_proj_files): Moved the
2118            called to get_application_dir here, so that the directory
2119            will only be called if this method is invoked.
2120    
2121            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
2122            the projfilepath if no projection is selected.
2123    
2124    2003-06-12  Jonathan Coles   <[email protected]>
2125    
2126            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
2127            the scalebar if the current map has no projection set.
2128    
2129            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
2130            projfilepath label to just the basename of the projection file
2131            rather than include the entire path.
2132    
2133            * Thuban/Model/resource.py: Fix missed proj functions that
2134            needed to be renamed.
2135    
2136    2003-06-12  Jonathan Coles   <[email protected]>
2137    
2138            * Thuban/Model/classification.py: Removed assert statements that
2139            tested if the variable was an instance of Color.
2140    
2141            * Thuban/Model/color.py (Color): Remove commented code that isn't
2142            used.
2143            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
2144            Fixes RTbug #1835.
2145            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
2146            Needed now that the class doesn't inherit from Color.
2147    
2148    2003-06-12  Jonathan Coles   <[email protected]>
2149    
2150            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
2151            check unicode strings.
2152    
2153            * test/test_layer.py: Check for existence of gdal.
2154    
2155    2003-06-12  Jonathan Coles   <[email protected]>
2156        
2157            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
2158            that was in load.py
2159    
2160            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
2161            that was in save.py
2162    
2163    2003-06-12  Jonathan Coles   <[email protected]>
2164    
2165            This is largely a collection of bug fixes. We also handle the
2166            case where gdal is not on the system. The XMLReader and XMLWriter
2167            classes were moved into there own files to resolve some circular
2168            import references and because they shouldn't really be in the
2169            file that is dediciated to reading/writing session files since
2170            they are also used elsewhere.
2171    
2172            * Thuban/Model/classgen.py: Renamed functions to follow the
2173            function_names_with_underscores style. Fixes RTbug #1903.
2174            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
2175    
2176            * Thuban/Model/layer.py: Import gdal only if it available.
2177            (RasterLayer): Handle the case where the gdal library is unavailable.
2178            Addresses RTbug #1877.
2179    
2180            * Thuban/Model/load.py (XMLReader): Moved into seperate file
2181            xmlreader.py.
2182    
2183    2003-06-12  Jonathan Coles   <[email protected]>
2184    
2185            This is largely a collection of bug fixes. We also handle the
2186            case where gdal is not on the system. The XMLReader and XMLWriter
2187            classes were moved into there own files to resolve some circular
2188            import references and because they shouldn't really be in the
2189            file that is dediciated to reading/writing session files since
2190            they are also used elsewhere.
2191    
2192            * Thuban/Model/classgen.py: Renamed functions to follow the
2193            function_names_with_underscores style. Fixes RTbug #1903.
2194            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
2195    
2196            * Thuban/Model/layer.py: Import gdal only if it available.
2197            (RasterLayer): Handle the case where the gdal library is unavailable.
2198            Addresses RTbug #1877.
2199    
2200            * Thuban/Model/load.py (XMLReader): Moved into seperate file
2201            xmlreader.py.
2202    
2203            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
2204            file xmlwriter.py.
2205    
2206            * Thuban/Model/resource.py: Renamed functions to following the
2207            function_names_with_underscores style.
2208            (has_gdal_support): New function that returns true if the gdal
2209            library is available. Addresses RTbug #1877.
2210    
2211            * Thuban/UI/application.py (ThubanApplication.OpenSession):
2212            Display a message box if the gdal library is not available, but
2213            only if there are any layers that would use it. Addresses RTbug #1877.
2214    
2215            * Thuban/UI/classgen.py: Use renamed projection resource functions.
2216            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
2217            when using integers versus floats.
2218    
2219            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
2220            determine if the "Add Image Layer" menu option should be
2221            greyed out or not. Addresses RTbug #1877.
2222    
2223            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
2224    
2225            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
2226            optimize if a raster layer is visible. Fixes RTbug #1931.
2227            Only draw the raster layer if the gdal library is available.
2228            Addresses RTbug #1877.
2229    
2230            * test/test_classgen.py: Add tests for generate_singletons,
2231            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
2232            (test_calculate_quantiles): Fix some tests to catch the new
2233            ValueError that is raised.
2234    
2235            * test/test_proj.py: Use renamed projection resource functions.
2236    
2237            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
2238            test for saving classified layers. Fixes RTbug #1902.
2239            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
2240    
2241    2003-06-12  Jan-Oliver Wagner <[email protected]>
2242    
2243            Fix for http://intevation.de/rt/webrt?serial_num=1900.
2244    
2245            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
2246    
2247            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
2248            multiplechoicedialog.py rather than from the wxPython library.
2249    
2250    2003-06-11  Frank Koormann  <[email protected]>
2251    
2252            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
2253            update.
2254    
2255    2003-06-11  Frank Koormann  <[email protected]>
2256    
2257            * Thuban/Lib/fileutil.py (get_application_dir): New function to
2258            determine the absolute .thuban/thuban directory under
2259            "posix" (os.expanduser) and "nt" (read AppData registry key).
2260    
2261            * Thuban/Model/resource.py: Use get_application_dir
2262    
2263            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
2264            Use get_application_dir.
2265    
2266    2003-06-10  Bernhard Herzog  <[email protected]>
2267    
2268            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
2269            the messages MAP_LAYERS_REMOVED messages
2270            (LayerTableFrame.OnClose): Unsubscribe from it.
2271            (LayerTableFrame.map_layers_removed): New. Receiver for
2272            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
2273            dialog is showing is removed.
2274    
2275    2003-06-10  Bernhard Herzog  <[email protected]>
2276    
2277            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
2278            of the receivers list so that unsubscribing in a receiver doesn't
2279            modify it while iterating over it.
2280    
2281            * test/test_connector.py
2282            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
2283            unsubscribing in a receiver works correctly. See docstring for
2284            details
2285    
2286    2003-06-10  Bernhard Herzog  <[email protected]>
2287    
2288            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
2289            message.
2290    
2291            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
2292            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
2293            LAYER_CHANGED will still be sent if the classification changes.
2294    
2295            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
2296            parameter so we can subscribe to some of its messages
2297            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
2298            and the layer's LAYER_SHAPESTORE_REPLACED
2299            (Classifier.unsubscribe_messages): New. Unsubscribe from message
2300            subscribed to in __init__
2301            (Classifier.map_layers_removed)
2302            (Classifier.layer_shapestore_replaced): receivers for the messages
2303            subscribed to in __init__. Unsubscribe and close the dialog
2304    
2305            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
2306            the map to the Classifier dialog
2307    
2308            * test/test_layer.py (SetShapeStoreTests): Derive from
2309            SubscriberMixin as well so we can test messages
2310            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
2311            messages
2312            (SetShapeStoreTests.tearDown): Clear the messages again
2313            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
2314            for the modified flag too
2315            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
2316            to check whether SetShapeStore sets the modified flag
2317            (SetShapeStoreTests.test_set_shape_store_different_field_name)
2318            (SetShapeStoreTests.test_set_shape_store_same_field)
2319            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
2320            Add tests for the messages. This checks both the new
2321            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
2322    
2323    2003-06-06  Jan-Oliver Wagner <[email protected]>
2324    
2325            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
2326            the menu items.
2327    
2328    2003-06-05  Frank Koormann  <[email protected]>
2329    
2330            * Thuban/UI/identifyview.py (IdentifyView.__init__):
2331            Layout reimplemented without panel. Make life easier to fit the list
2332            in the dialog.
2333    
2334    2003-06-05  Frank Koormann  <[email protected]>
2335    
2336            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
2337            once on initialisation (Former implementation resulted in multiple
2338            entries for each projection).
2339            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
2340            if set, select the projection found under the specified name. This
2341            overwrites any other selection estimate.
2342            Removed projchoice filling from this method.
2343            (ProjFrame._OnSave, ProjFrame._OnAddToList):
2344            Updated call of ProjFrame.__FillAvailList
2345            (LCCPanel._DoLayout): Moved parameter controls in more common order.
2346    
2347            * Resources/Projections/defaults.proj: Extended defaults representing
2348            various common European projections.
2349    
2350    2003-06-05  Frank Koormann  <[email protected]>
2351    
2352            * Thuban/UI/identifyview.py (IdentifyView.__init__):
2353            Use ListCtrl instead of GridCtrl
2354    
2355            * Thuban/Model/resource.py:
2356            Guess location of .thuban directory from tempdir parent directory.
2357    
2358            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
2359            Guess location of .thuban directory from tempdir parent directory.
2360    
2361    2003-06-04  Bernhard Herzog  <[email protected]>
2362    
2363            Do not cache the values returned by the tree widget's
2364            GetFirstChild and GetNextChild methods because it led to lots of
2365            segfaults. The new way requires more brute force but is more
2366            reliable.
2367    
2368            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
2369            variable layer2id
2370            (LegendTree.find_layer): New method to do with brute force what
2371            layer2id tried to accomplish
2372            (LegendTree._OnMsgLayerChanged)
2373            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
2374            Use find_layer instead of layer2id
2375            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
2376            update layer2id anymore
2377            (LegendTree._OnMsgMapLayersRemoved)
2378            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
2379    
2380    2003-06-03  Thomas Koester  <[email protected]>
2381    
2382            * Thuban/Model/classgen.py (GenQuantiles0): New function.
2383    
2384    2003-06-02  Bernhard Herzog  <[email protected]>
2385    
2386            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
2387            New commands.
2388            (main_menu): Add the new commands.
2389            (MainWindow.TableRename): New. Implementation of the table_rename
2390            command.
2391            (MainWindow.RenameLayer): New. Implementation of the layer_rename
2392            command.
2393    
2394            * Thuban/Model/session.py (Session.AddTable): call self.changed to
2395            set the modified flag
2396    
2397            * test/test_session.py (TestSessionSimple.test_add_table): Test
2398            whether the modified flag is set properly
2399    
2400            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
2401            instead of issue so that the modified flags get updated.
2402    
2403            * test/test_base.py (SomeTitledObject): Derive from Modifiable
2404            instead of Publisher to reflect reality better and to accomodate
2405            the fact that SetTitle now calls changed instead of issue
2406    
2407    2003-06-02  Bernhard Herzog  <[email protected]>
2408    
2409            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
2410            acquisition has to happen before the try in a try-finally.
2411    
2412    2003-06-02  Bernhard Herzog  <[email protected]>
2413    
2414            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
2415            possible that a layer is removed that is not currently selected in
2416            the legend so don't check for this.
2417    
2418    2003-05-30  Bernhard Herzog  <[email protected]>
2419    
2420            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
2421            variables to None that have direct or indirect references to
2422            shapefiles or dbf files to make sure that they do go away and the
2423            files are closed.
2424    
2425    2003-05-30  Bernhard Herzog  <[email protected]>
2426    
2427            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
2428            availImgListIndices when a new image list is created
2429            
2430    2003-05-30  Bernhard Herzog  <[email protected]>
2431    
2432            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
2433            changing_selection to indicate whether the LegendTree code itself
2434            is currently changing the selection
2435            (LegendTree.normalize_selection): New method to normalize the
2436            selection by selecting the layer item even if the user clicked on
2437            the classification.
2438            (LegendTree._OnSelChanged): normalize the selection. This works
2439            around a bug in wx which doesn't keep track of the selection
2440            properly when subtrees are deleted.
2441    
2442    2003-05-30  Bernhard Herzog  <[email protected]>
2443    
2444            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
2445            maximum and minimum scale factors.
2446    
2447            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
2448            changes in classgen.py
2449    
2450    2003-05-30  Jonathan Coles   <[email protected]>
2451    
2452            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
2453            all the methods functions. Fixes RTBug #1903.
2454    
2455            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
2456            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
2457            RTBug #1907.
2458    
2459            * Thuban/UI/classgen.py: Use classgen functions that were part
2460            of the ClassGenerator class. Put try/finally blocks around
2461            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
2462            RTBug #1904.
2463    
2464            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
2465    
2466            * Thuban/UI/legend.py: The legend was cleared and repopulated any
2467            time something changed which caused some state to be lost such
2468            as which children were expanded or collapsed. Fixes RTBug #1901.
2469            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
2470            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
2471            the legend but not in the map.
2472            (LegendTree.__FillTree): Move main functionality out into smaller
2473            methods that can be used by other methods.
2474            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
2475            if they are available.
2476            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
2477            that we override the wxTreeCtrl method. Iterate over children
2478            and call __RemoveLayer.
2479            (LegendTree.__AddLayer): New. Add a new layer to the legend.
2480            (LegendTree.__RemoveLayer): Remove a layer from the legend.
2481            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
2482            Should only be called with the id of a layer branch.
2483            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
2484            Returns the root item or creates one if necessary.
2485    
2486            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
2487            ProjectRasterFile with tuple arguments instead of strings.
2488    
2489            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
2490            with try/finally. Fixes RTBug #1904.
2491    
2492            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
2493            with try/finally. Fixes RTBug #1904.
2494            (MapCanvas.FitSelectedToWindow): If a single point is selected
2495            simply center it on the display. Fixes RTBug #1849.
2496    
2497            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
2498            to be compiled as a standalone app. Now the code can only be
2499            called from Python which simplifies the parameter passing.
2500            (ProjectRasterFile): Handle Python arguments. Remove code that
2501            checks for a destination dataset. Add more clean up code.
2502    
2503            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
2504            TestMapWithContents.test_lower_layer_bottom):
2505            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
2506            Fixes RTBug #1907.
2507    
2508            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
2509            extent to the map when the legend is toggled. Fixes RTBug #1881.
2510    
2511    2003-05-29  Jan-Oliver Wagner <[email protected]>
2512    
2513            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
2514            unsubscribes all that is subcribed in __init__.
2515    
2516    2003-05-28  Bernhard Herzog  <[email protected]>
2517    
2518            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
2519            (MainWindow.CanDuplicateLayer): New methods to implement the
2520            Layer/Duplicate command.
2521            (layer_duplicate command): New.
2522            (main_menu): Add layer_duplicate to the Layer menu.
2523    
2524    2003-05-28  Bernhard Herzog  <[email protected]>
2525    
2526            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
2527            renderer so that NULL/None values get displayed differently (by a
2528            gray rectangle).
2529            (TableGrid.__init__): Override the default renderers
2530    
2531    2003-05-28  Bernhard Herzog  <[email protected]>
2532    
2533            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
2534            classification to "None" if the type of the field has changed.
2535    
2536            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
2537            test for the Layer.SetShapeStore method
2538    
2539    2003-05-28  Jan-Oliver Wagner <[email protected]>
2540    
2541            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
2542            does not necessarily have a filename).
2543    
2544    2003-05-28  Jan-Oliver Wagner <[email protected]>
2545    
2546            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
2547            sort the selection list for the dialog.
2548    
2549    2003-05-28  Frank Koormann  <[email protected]>
2550    
2551            * extensions/thuban/wxproj.cpp
2552            (project_point): Removed cast to int for projected point coordinates.
2553            (shape_centroid): Return last point if all polygon vertices fall
2554            to one point.
2555    
2556    2003-05-28  Bernhard Herzog  <[email protected]>
2557    
2558            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
2559            with layers that don't have shapestores, i.e. raster layers.
2560    
2561    2003-05-28  Bernhard Herzog  <[email protected]>
2562    
2563            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
2564            when determining the title from the filename.
2565    
2566            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
2567            reflect changes in the way the title is derived from the filename
2568    
2569    2003-05-28  Frank Koormann  <[email protected]>
2570    
2571            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
2572            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
2573    
2574    2003-05-27  Bernhard Herzog  <[email protected]>
2575    
2576            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
2577            delegate SelectedLayer.
2578            (MainWindow.LayerUnjoinTable): Implement.
2579            (_can_unjoin): New. Helper function for the sensitivity of the
2580            layer/unjoin command.
2581    
2582            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
2583            (DerivedShapeStore.OrigShapeStore): New. Return the original
2584            shapestore. Used to figure out how to unjoin.
2585            (DerivedShapeStore.Shapefile): Fix a typo.
2586    
2587    2003-05-27  Bernhard Herzog  <[email protected]>
2588    
2589            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
2590            well
2591            (JoinDialog.__init__): Use the layer parameter and only build the
2592            left choice when a layer is given
2593            (JoinDialog.OnJoin): Handle layer joins as well
2594            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
2595            that the user selects the "Select..." item. The sensitivitly
2596            updating is now in update_sensitivity
2597            (JoinDialog.y): New method to refactor the sensitivity update of
2598            the join button into its own method.
2599    
2600            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
2601    
2602    2003-05-27  Bernhard Herzog  <[email protected]>
2603    
2604            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
2605            iff there are unreferenced tables in the session
2606    
2607    2003-05-27  Bernhard Herzog  <[email protected]>
2608    
2609            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
2610    
2611            * Thuban/Model/session.py (Session.UnreferencedTables): New method
2612            to return tables that are not referenced by other tables or shape
2613            stores and can be removed.
2614            (Session.RemoveTable): Issue a TABLE_REMOVED message after
2615            removing the table
2616    
2617            * Thuban/UI/mainwindow.py: Remove unused imports
2618            (MainWindow.TableClose): Implement.
2619    
2620            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
2621            messages so that the frame will be automatically closed when a new
2622            session is opened or the table is removed.
2623            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
2624            __init__
2625            (TableFrame.close_on_session_replaced)
2626            (TableFrame.close_on_table_removed): New. Subscribers that close
2627            the window
2628    
2629            * test/test_session.py (TestSessionMessages.test_remove_table)
2630            (TestSessionSimple.test_remove_table): Move the test to
2631            TestSessionSimple and add test for the TABLE_REMOVED message
2632            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
2633            (TestSessionSimple.test_unreferenced_tables) New. Test for the
2634            UnreferencedTables method.
2635            (UnreferencedTablesTests): New. Class with some more sophisticated
2636            tests for UnreferencedTables.
2637    
2638    2003-05-27  Frank Koormann  <[email protected]>
2639    
2640            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
2641            display has some unwanted side effects. Removed again.
2642    
2643    2003-05-27  Frank Koormann  <[email protected]>
2644    
2645            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
2646    
2647            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
2648    
2649    2003-05-27  Jan-Oliver Wagner <[email protected]>
2650    
2651            * test/test_menu.py (MenuTest.test): Added test for
2652            Menu.RemoveItem().
2653    
2654            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
2655            the menu.
2656    
2657    2003-05-27  Frank Koormann  <[email protected]>
2658            
2659            Nonmodal dialogs without parent (i.e. they can fall behind the main
2660            window)
2661    
2662            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
2663            all dialogs in the dialogs dictionary and the canvas.
2664    
2665            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
2666            parent, i.e. can fall behind other windows.
2667            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
2668            dictionary before removing it.
2669    
2670            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
2671    
2672            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
2673            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
2674            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
2675    
2676    2003-05-27  Bernhard Herzog  <[email protected]>
2677    
2678            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
2679            tableview dialog
2680            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
2681            Also, don't use the table's titles as the dialog names. The titles
2682            aren't guaranteed to be unique.
2683            (MainWindow.TableOpen): Open a table view dialog after opening the
2684            table
2685    
2686    2003-05-27  Bernhard Herzog  <[email protected]>
2687    
2688            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
2689            effect can be achieved by simply closing the window showing the
2690            table.
2691            (MainWindow.TableHide): Removed.
2692            (main_menu): Removed "table_hide"
2693    
2694    2003-05-27  Frank Koormann  <[email protected]>
2695    
2696            Fix legend tree display problems under Win32
2697    
2698            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
2699            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
2700            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
2701    
2702            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
2703    
2704    2003-05-27  Jan-Oliver Wagner <[email protected]>
2705    
2706            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
2707            'after' now allows to insert separators almost anywhere in the menu.
2708    
2709    2003-05-27  Frank Koormann  <[email protected]>
2710    
2711            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
2712            "S" of selection box label to hint on hot key (Alt-S). Works under
2713            Win32 but is ignored under GTK.
2714    
2715    2003-05-26  Frank Koormann  <[email protected]>
2716    
2717            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
2718            Center Choices.
2719    
2720    2003-05-26  Bernhard Herzog  <[email protected]>
2721    
2722            Remove the Precision methods again. They're too DBF specific to be
2723            part of the table interface and they're only used in table_to_dbf
2724            anyway.
2725            
2726            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
2727            fixed precision of 12 for doubles.
2728            (TransientTableBase.Precision): Removed
2729            (AutoTransientTable.Width): Delegate to self.table.
2730    
2731            * Thuban/Model/table.py (DBFTable.Precision)
2732            (MemoryTable.Precision): Removed.
2733            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
2734            (table_to_dbf): Use a fixed precision of 12 for floats unless the
2735            column object specifies something else.
2736    
2737            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
2738            test for table_to_dbf
2739    
2740    2003-05-26  Bernhard Herzog  <[email protected]>
2741    
2742            * test/test_transientdb.py
2743            (TestTransientTable.run_iceland_political_tests): Fix a comment.
2744    
2745    2003-05-26  Bernhard Herzog  <[email protected]>
2746    
2747            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
2748            implementation. Mark parts of the file format strings for
2749            localization.
2750    
2751            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
2752            file and add the table to the tables managed by the session
2753    
2754            * test/test_session.py (TestSessionSimple.test_open_table_file):
2755            New. test case for OpenTableFile
2756    
2757    2003-05-26  Jan-Oliver Wagner <[email protected]>
2758    
2759            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
2760            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
2761            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
2762            Replace the true/false of wxWindows by True/False of Python 2.2.1.
2763    
2764    2003-05-26  Jan-Oliver Wagner <[email protected]>
2765    
2766            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
2767            already a selection present, update the grid accordingly.
2768    
2769            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
2770            resizeable and increase its initial size.
2771    
2772    2003-05-26  Frank Koormann  <[email protected]>
2773    
2774            Table export functionality
2775    
2776            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
2777            Return width (in characters) for a column.
2778            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
2779            (table_to_dbf): Write table to dbf file.
2780            (table_to_csv): Write table to csv file.
2781    
2782            * Thuban/Model/transientdb.py (TransientTableBase.Width,
2783            TransientTableBase.Precision): Return column width and precision.
2784    
2785            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
2786            or table_to_csv depending on file selection.
2787    
2788            * test/test_dbf_table.py:
2789            Test table_to_dbf (extension of former part of test).
2790    
2791            * test/test_csv_table.py:
2792            Test table_to_csv.
2793    
2794    2003-05-23  Jan-Oliver Wagner <[email protected]>
2795    
2796            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
2797            Use QueryTableFrame instead of TableFrame.
2798    
2799            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
2800            table window with 'Layer Table:' instead of 'Table:'.
2801    
2802    2003-05-23  Jan-Oliver Wagner <[email protected]>
2803    
2804            Give all tables a title via mix-in TitledObject.LayerShowTable
2805    
2806            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
2807            only if it exists.
2808    
2809            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
2810            and call its init-method with a default title. Remove Title() method.
2811    
2812            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
2813            AutoTransientTable): mix-in TitledObject and call its init-method with
2814            a default title. Remove Title() method.
2815    
2816    2003-05-23  Bernhard Herzog  <[email protected]>
2817    
2818            * Thuban/Model/session.py (Session.AddShapeStore): Define
2819            AddShapeStore analogously to AddTable.
2820    
2821            * test/test_session.py (TestSessionSimple.test_add_shapestore):
2822            New. Test for AddShapeStore
2823    
2824    2003-05-23  Jan-Oliver Wagner <[email protected]>
2825    
2826            Introducing QueryTableFrame and a very coarse ShowTable implementation.
2827    
2828            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
2829            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
2830            The latter implements the selection GUI without dependency on a layer.
2831            LayerTableFrame now is derived from QueryTableFrame and connects
2832            to a layer.
2833    
2834            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
2835            implementation that still needs work.
2836    
2837            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
2838    
2839    2003-05-22  Frank Koormann  <[email protected]>
2840    
2841            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
2842            Added "outer_join = False" as optional parameter.
2843            (TransientJoinedTable.create): If outer join is true, perform a
2844            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
2845            the left table. Records not matching are filled with 0 / None.
2846    
2847            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
2848            (JoinDialog.OnJoin): Consider outer join check box.
2849    
2850    2003-05-22  Bernhard Herzog  <[email protected]>
2851    
2852            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
2853            somewhat safer way. Storing the traceback in a local variable can
2854            lead to memory leaks
2855    
2856    2003-05-22  Bernhard Herzog  <[email protected]>
2857    
2858            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
2859            the wxMessageDialog's Destroy() method.
2860    
2861    2003-05-22  Frank Koormann  <[email protected]>
2862    
2863            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
2864            TransientTable.Title()
2865    
2866    2003-05-22  Frank Koormann  <[email protected]>
2867    
2868            Join Dialog, initial version.
2869    
2870            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
2871    
2872            * Thuban/UI/join.py (JoinDialog): Functional implementation of
2873            former framework. Renamed Table1/Table2 to LeftTable/RightTable
2874            in all occurences.
2875    
2876            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
2877            Typo fixed.
2878    
2879    2003-05-22  Bernhard Herzog  <[email protected]>
2880    
2881            Give the tables titles so that the GUI can display more meaningful
2882            names. For now the titles are fixed but depend on e.g. filenames
2883            or the titles of the joined tables.
2884    
2885            * Thuban/Model/transientdb.py (TransientTable.Title)
2886            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
2887    
2888            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
2889    
2890            * test/test_transientdb.py
2891            (TestTransientTable.test_auto_transient_table_title): New. Test
2892            for the Title method
2893            (TestTransientTable.test_transient_joined_table)
2894            (TestTransientTable.test_transient_table): Add test for the Title
2895            methods
2896    
2897            * test/test_memory_table.py (TestMemoryTable.test_title): New.
2898            Test for the Title method
2899    
2900            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
2901            the Title method
2902    
2903    2003-05-22  Bernhard Herzog  <[email protected]>
2904    
2905            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
2906            Provide a better way to destroy the layers
2907            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
2908            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
2909            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
2910            the new way to destroy the layers.
2911            (TestLayer.test_derived_store): New. Test for using a layer with a
2912            DerivedShapeStore
2913    
2914            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
2915            filename if the shape store actually has one.
2916    
2917    2003-05-22  Bernhard Herzog  <[email protected]>
2918    
2919            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
2920            for the filename
2921    
2922            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
2923            for the FileName method
2924            (TestDBFTableWriting.test_write): Fix spelling of filename
2925    
2926    2003-05-22  Thomas Koester  <[email protected]>
2927    
2928            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
2929            from SciParam that now really is immutable.
2930    
2931    2003-05-22  Frank Koormann  <[email protected]>
2932    
2933            Layer Top/Bottom placement added to legend.
2934    
2935            * Thuban/UI/legend.py
2936            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
2937            bound to tool events.
2938            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
2939            New, methods binding the event methods with the map methods.
2940    
2941            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
2942            layer at top/bottom of layer stack.
2943    
2944            * Resources/Bitmaps/top_layer.xpm: New button icon.
2945    
2946            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
2947    
2948    2003-05-22  Bernhard Herzog  <[email protected]>
2949    
2950            * Thuban/Model/session.py (Session.RemoveTable): New method to
2951            remove tables
2952    
2953            * test/test_session.py (TestSessionSimple.test_remove_table): New.
2954            Test for RemoveTable
2955    
2956    2003-05-22  Thomas Koester  <[email protected]>
2957    
2958            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
2959            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
2960    
2961    2003-05-22  Bernhard Herzog  <[email protected]>
2962    
2963            Implement a way to discover dependencies between tables and
2964            shapestores.
2965    
2966            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
2967            (TransientJoinedTable.Dependencies)
2968            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
2969            interface
2970            (TransientJoinedTable.__init__): Keep tack of the original table
2971            objects in addition to the corresponding transient tables.
2972    
2973            * Thuban/Model/table.py (DBFTable.Dependencies)
2974            (MemoryTable.Dependencies): New. Implement the dependencies
2975            interface
2976    
2977            * Thuban/Model/data.py (ShapeTable): New. Helper class for
2978            ShapefileStore
2979            (ShapefileStore.__init__): Use ShapeTable instead of
2980            AutoTransientTable
2981            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
2982            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
2983            methods for filename and type
2984            (ShapefileStore.Dependencies): New. Implement the dependencies
2985            interface
2986            (DerivedShapeStore): New class to replace SimpleStore. The main
2987            difference to SimpleStore is that it depends not on a shapefile
2988            but another shapestore which expresses the dependencies a bit
2989            better
2990            (SimpleStore.__init__): Add deprecation warning.
2991    
2992            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
2993            Test for the Dependencies method.
2994    
2995            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
2996            New. Test for the Dependencies method.
2997    
2998            * test/test_transientdb.py
2999            (TestTransientTable.test_auto_transient_table_dependencies): New.
3000            Test for the Dependencies method.
3001            (TestTransientTable.test_transient_joined_table): Add test for the
3002            Dependencies method.
3003    
3004            * test/test_session.py (TestSessionSimple.setUp)
3005            (TestSessionSimple.tearDown): New. Implement a better way to
3006            destroy the sessions.
3007            (TestSessionSimple.test_initial_state)
3008            (TestSessionSimple.test_add_table): Bind session to self.session
3009            so that it's destroyed by tearDown
3010            (TestSessionSimple.test_open_shapefile): New. Test for
3011            OpenShapefile and the object it returns
3012    
3013    2003-05-22  Bernhard Herzog  <[email protected]>
3014    
3015            * Thuban/Model/session.py (Session.AddTable): New method to
3016            register tables with the session.
3017            (Session.Tables): Return the tables registered with AddTable too.
3018    
3019            * test/test_session.py (TestSessionSimple.test_add_table): New.
3020            Test case for the AddTable method
3021    
3022    2003-05-22  Frank Koormann  <[email protected]>
3023    
3024            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
3025            lower right corner, center labels for selections, initialize controls
3026            in reasonable order for keyboard navigation.
3027    
3028            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
3029            (ProjFrame.__DoOnProjAvail): Determine position of current projection
3030            using the wxListBox.FindString() method. Still a problem (#1886)
3031    
3032            * Thuban/UI/classifier.py
3033            (Classifier.__init__, SelectPropertiesDialog.__init__)
3034    
3035            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
3036            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
3037            different classification types from here to __init__.
3038            (GenUniquePanel.__init__): Set the column width of the first field
3039            in the Field ListCtrl to the full width.
3040    
3041            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
3042            Button to 'Export'. Center Buttons in Selection Box, set Focus to
3043            Grid.
3044            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
3045            changes focus to the Selection when pressing "Alt-S".
3046    
3047            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
3048            the text if not visible. The italic font sometimes exceeds the
3049            rendering area.
3050    
3051    2003-05-21  Jonathan Coles   <[email protected]>
3052    
3053            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
3054            to OnClose so that Thuban closes correctly.
3055    
3056            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
3057            DockFrame.OnClose, not DockFrame._OnClose.
3058    
3059    2003-05-21  Jonathan Coles   <[email protected]>
3060    
3061            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
3062            references to 'inf' and use new Range __init__ to pass floats
3063            directly rather than converting them to strings first.
3064            Fixes RTBug #1876.
3065    
3066            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
3067            Use new Range ___init__ to pass floats.
3068    
3069            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
3070            filename is a valid image file. Throw IOError otherwise.
3071    
3072            * Thuban/Model/range.py: Brought over new Range from SciParam that
3073            is immutable and has an __init__ which can accept floats.
3074    
3075            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
3076            into try block. AddLayer doesn't throw any exceptions anymore.
3077            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
3078            try block.
3079    
3080            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
3081            the first item in choices. Fixes RTBug #1882.
3082    
3083            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
3084            has gone to 0 which is a serious problem. abort.
3085            (MapRenderer.draw_raster_layer): Catch IOError seperately and
3086            print the error from GDAL.
3087    
3088            * Thuban/UI/tableview.py (TableGrid.__init__): Call
3089            ToggleEventListeners to turn on listening.
3090            (TableGrid.ToggleEventListeners): New. Turns event listening on
3091            and off so as to prevent excessive messages.
3092            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
3093            to suppress excessive messages when selecting many rows.
3094            Fixes RTBug #1880.
3095    
3096            * Thuban/UI/view.py: Added checks against if scale == 0. This
3097            is a serious problem that can occur when an image without
3098            geo data is loading and causes the map projection bounds to
3099            go to infinity. Right now, the solution is to simply try
3100            to recover.
3101    
3102            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
3103            to set the MFILEReceiver attributes even if the data is NULL.
3104    
3105            * extensions/thuban/gdalwarp.cpp: Improved the error handling
3106            and passed GDAL messages back up to the Python layer. Also
3107            tried to fix some memory leaks that were present in the original
3108            utility but didn't matter because the program aborted.
3109    
3110            * test/test_range.py: Copied over tests from SciParam. Removed
3111            tests against importing. Fixes RTBug #1867.
3112    
3113    2003-05-21  Bernhard Herzog  <[email protected]>
3114    
3115            * test/test_load.py: Remove unused imports and restructure the
3116            test code
3117            (LoadSessionTest): Split into one class for each test and turn
3118            LoadSessionTest itself into the base class for all such session
3119            tests.
3120            (ClassificationTest): New base class for load tests that test
3121            classifications
3122            (TestSingleLayer, TestLayerVisibility, TestClassification)
3123            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
3124            for the individual tests
3125    
3126            * test/support.py (FileLoadTestCase.filename): New base class for
3127            file loading tests
3128    
3129    2003-05-21  Jan-Oliver Wagner <[email protected]>
3130    
3131            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
3132            Mercator' to 'UTM Zone 32' as a more convenient example.
3133            Added 'Gauss Krueger Zone 6'.
3134    
3135            * Data/iceland_sample_raster.thuban: political polygon now
3136            filled transparent to have the raster image visible at once.
3137    
3138    2003-05-21  Frank Koormann  <[email protected]>
3139    
3140            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
3141            OnClose() to keep in sync with extensions. Internally Thuban
3142            still uses "underscored" names.
3143    
3144    2003-05-20  Jonathan Coles   <[email protected]>
3145    
3146            This puts back Raster layer support. These layers support projections
3147            through the GDAL library. Currently, the CVS version is being used.
3148            There are no Debian packages available although this may change soon.
3149            A GDAL driver was extended to support writing to memory rather to
3150            files.
3151    
3152            There is still some work that needs to be done, such as some error
3153            handling when loading invalid images or when there is a problem
3154            projecting the image. This putback simply checks in the majority
3155            of the work.
3156    
3157            * setup.py: Add gdalwarp library extension.
3158    
3159            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
3160            Defaults to False, but can be overridden by subclasses if they
3161            support classification.
3162            (RasterLayer): New. Defines a new layer that represents an
3163            image.
3164    
3165            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
3166            tag handler.
3167            (SessionLoader.start_layer): Encode the filename.
3168            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
3169            New. Supports reading a rasterlayer tag.
3170    
3171            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
3172    
3173            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
3174            get a string in Latin1. If we get such as string convert it to
3175            unicode first, otherwise leave if alone before encoding.
3176            (SessionSaver.write_layer): Add support for writing both Layers
3177            and RasterLayers.
3178    
3179            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
3180            The right argument may not be a string, it could also be a Column.
3181    
3182            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
3183            Make initial window size 600x400. Fixes RTBug #1872.
3184    
3185            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
3186            the dialog is constructed so that we can support layers that
3187            do not have classifications.
3188            (Classifier._OnTry): Only build a classification if the layer
3189            supports one.
3190    
3191            * Thuban/UI/legend.py: Change all checks that a layer is an
3192            instance of Layer into checks against BaseLayer.
3193            (LegendTree.__FillTreeLayer): Only add children to a branch if
3194            the layer supports classification.
3195    
3196            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
3197            MainWindow.OpenSession): Don't proceed with an action if the
3198            user chooses Cancel when they are asked to save changes.
3199            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
3200            user to select an image file. Create a new RasterLayer and add
3201            it to the map.
3202    
3203            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
3204            for rendering RasterLayer layers.
3205            (MapRenderer.draw_raster_layer): Actually method that calls
3206            the GDALWarp python wrapper and constructs an image from the
3207            data returned.
3208    
3209            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
3210            Choices symbols to match those used in the table query method.
3211            Replace deprecated method calls on table with new method names.
3212    
3213            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
3214            how small the scale can get. This still needs more testing.
3215    
3216            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
3217            Provides a driver to output in .bmp format.
3218    
3219            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
3220            New. Provides IO routines which write to memory, rather than a file.
3221    
3222            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
3223            of the gdalwarp utility provided in GDAL. Added function calls
3224            that can be accessed from python.
3225    
3226            * Data/iceland_sample_raster.thuban: New. Sample file that uses
3227            a raster layer.
3228    
3229            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
3230            layer image data.
3231    
3232            * Doc/thuban.dtd: Added rasterlayer attribute definition.
3233    
3234            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
3235            tests associated with the raster layer code.
3236    
3237            * test/test_transientdb.py
3238            (TestTransientTable.test_auto_transient_table_query): Added a test
3239            for using a Column object as the "right" parameter to a query.
3240    
3241    2003-05-19  Frank Koormann  <[email protected]>
3242    
3243            * Thuban/version.py (get_changelog_date):
3244            Catch exceptions if ChangeLog does not exist.
3245    
3246            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
3247    
3248    2003-05-19  Frank Koormann  <[email protected]>
3249    
3250            Extended version information for Thuban
3251    
3252            * Thuban/version.py: New, version information for Thuban: Last
3253            modification date and last ChangeLog entry date.
3254    
3255            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
3256            information: Display Thuban, wxPython and Python version.
3257    
3258    2003-05-16  Bernhard Herzog  <[email protected]>
3259    
3260            * Thuban/Model/save.py: Remove some unused imports including the
3261            __future__ import for nested_scopes as Thuban relies on Python 2.2
3262            now.
3263            (XMLWriter.encode): Remove the special case for a None argument.
3264            In the saver encode is always called with a string argument.
3265    
3266    2003-05-16  Bernhard Herzog  <[email protected]>
3267    
3268            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
3269            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
3270            of the bug was that e.g. float("1.2") would fail. Thuban now
3271            requires 2.4.x.
3272            
3273    2003-05-16  Frank Koormann   <[email protected]>
3274    
3275            Printing enhancement and WMF export (under Win32)
3276    
3277            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
3278            ScreenRenderer. Renders Map, Legend and Scalebar for export.
3279            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
3280            PrintRender.
3281    
3282            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
3283            to fullfil information needed for PrinterRenderer.
3284            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
3285            (MapCanvas.Print): Adapted to new MapPrintout.
3286            (OutputTransform): General calculations to transform from canvas
3287            coordinates to export/printing devices.
3288    
3289            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
3290            new method_command to call ExportMap, with platform dependency (only
3291            __WXMSW__)
3292      
3293            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
3294            of scalebar drawing area as new parameters.
3295            
3296            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
3297    
3298            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
3299            Update to extended scalebar.DrawScalebar header.
3300    
3301            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
3302    
3303            * test/test_scalebar.py: Made test executable as standalone.
3304    
3305    2003-05-16  Bernhard Herzog  <[email protected]>
3306    
3307            * Thuban/Model/table.py (Table): Remove this compatibility alias
3308            for DBFTable.
3309    
3310            * test/test_table.py: Import DBFTable as Table because that alias
3311            doesn't exist anymore.
3312    
3313            * Thuban/UI/classgen.py: Remove some unused imports
3314    
3315    2003-05-14  Jonathan Coles   <[email protected]>
3316    
3317            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
3318            Fix docstring.
3319            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
3320            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
3321            values of the supplied range to determine the beginning and end
3322            bounds of the generated classes.
3323    
3324            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
3325            do not have a leading 0 (.5 is now accepted as well as 0.5).
3326    
3327            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
3328            call to ClassGenerator.GenUniformDistribution.
3329    
3330            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
3331            layout bug with the 'Projection' label.
3332    
3333            * test/support.py (FloatTestCase): New. Needed for the Range tests.
3334    
3335            * test/test_range.py: New. Imported from SciParam.
3336    
3337    2003-05-12  Jonathan Coles   <[email protected]>
3338    
3339            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
3340            to table.UniqueValues() with calls that retrieve all the values
3341            from the table. This will need to be replaced by a method on table
3342            which can simply return the list (perhaps more efficiently).
3343    
3344    2003-05-12  Jonathan Coles   <[email protected]>
3345    
3346            The return value of ClassGenerator.CalculateQuantiles has changed.
3347            Refer to the documentation for details.
3348    
3349            * test/test_classgen.py: Modified Quantile tests to use the
3350            new return values.
3351    
3352            * Thuban/Model/classgen.py
3353            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
3354            use new return values from CalculateQuantiles to produce the correct
3355            range bounds in the Classification.
3356            (ClassGenerator.CalculateQuantiles): Add more comments describing
3357            the return values and parameters. Make minor adjustments to improve
3358            the legibility of the code. Fix problem with adjusted not being set
3359            in most cases.
3360    
3361    2003-05-12  Frank Koormann <[email protected]>
3362            
3363            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
3364            and latin1. Fixes #1851 finally.
3365    
3366    2003-05-09  Jonathan Coles   <[email protected]>
3367    
3368            * test/test_classgen.py: New. Tests the Quantile algorithm.
3369    
3370            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
3371            Clean up debugging statement, add comments, fix a small bug in the
3372            returned adjusted percentiles.
3373            
3374    2003-05-09  Jonathan Coles   <[email protected]>
3375    
3376            Introduces Range class from SciParam into the ClassGroupRange class,
3377            and such ranges can now be saved and loaded from disk.
3378    
3379            Quantiles are now available in the Classification Generator.
3380    
3381            Initial support for building Queries on a table. Doesn't do anything
3382            but run some tests.
3383    
3384            * Thuban/Model/classification.py: Explicit imports.
3385            (ClassGroupRange): Use the Range class to store the underlying
3386            range information. The interface remains the same, except for
3387            GetRange(), and you can also supply a Range object as the min
3388            parameter to SetRange or __init__.
3389    
3390            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
3391            string appropriately for use in Thuban. Fixes RTbug #1851.
3392            (SessionLoader.end_projection): Handle the context of the
3393            projection tag a bit better by looking at what objects are not
3394            None. There was an assumption that a projection tag for a map
3395            could occur before any layers.
3396            (SessionLoader.start_clrange): Provide backward compatibility for
3397            reading min/max values as well as the new range parameter.
3398    
3399            * Thuban/Model/map.py: Explicit imports.
3400    
3401            * Thuban/Model/resource.py: Import _.
3402            (ProjFileSaver.write): write header using projfile.dtd.
3403    
3404            * Thuban/Model/save.py: Explicit imports.
3405            (XMLWriter.encode): New. Encode the given string from a format
3406            used by Thuban into UTF-8. Fixes RTbug #1851.
3407    
3408            * Thuban/UI/classgen.py: Explicit imports.
3409            (ClassGenDialog.__init__): Clean up the code and add support
3410            for Quantiles.
3411            (ClassGenDialog.OnOK): Add support for Quantiles.
3412            (GenQuantilesPanel): New. Input panel for Quantiles.
3413            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
3414            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
3415    
3416            * Thuban/Model/classgen.py: New. Contains all the classes named above.
3417    
3418            * Thuban/UI/classifier.py: Explicit imports.
3419            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
3420            ClassTable.SetValueAsCustom): Reworked to use new Range class.
3421    
3422            * Thuban/UI/legend.py: Explicit imports.
3423    
3424            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
3425            a Table menu and associated method calls.
3426            (MainWindow.choose_color): Removed. No longer needed.
3427    
3428            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
3429            should be disabled if no projection is selected in the available
3430            list.
3431    
3432            * Thuban/UI/renderer.py: Explicit imports.
3433    
3434            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
3435            with correctly selecting the rows and issuing the right events.
3436            Be sure to call Skip() to allow the grid to do some of its own
3437            handling which allows the rows to actually be selected.
3438            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
3439            selecting multiple shapes.
3440            (LayerTableFrame): Support for building Queries.
3441            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
3442    
3443            * Thuban/UI/tree.py: Explicit imports.
3444    
3445            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
3446            table view can call it.
3447    
3448            * test/test_classification.py: Explicit imports.
3449            (TestClassification.test_ClassGroupRange): Fix test for new
3450            Range class.
3451    
3452            * Doc/thuban.dtd: Add range parameter for clrange.
3453    
3454            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
3455            object in ClassGroupRange, and also uesd for inputting ranges in
3456            the classifer table and elsewhere.
3457    
3458            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
3459            yet.
3460    
3461    2003-05-09  Frank Koormann <[email protected]>
3462    
3463            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
3464    
3465    2003-05-08  Frank Koormann <[email protected]>
3466    
3467            Coding style updates
3468    
3469            * test/test_scalebar.py: Replaced tab indentation by spaces.
3470    
3471            * Thuban/UI/scalebar.py: Explicit imports.
3472    
3473    2003-05-08  Frank Koormann <[email protected]>
3474    
3475            * Thuban/UI/scalebar.py
3476            (ScaleBar.DrawScalebar): Format string bug fixed.
3477    
3478    2003-05-08  Frank Koormann <[email protected]>
3479    
3480            Reorganization of scalebar component (no wx in Thuban/Model)
3481    
3482            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
3483            (deriveInterval):
3484            Calculate scalebar interval and unit which fits in width for scale.
3485            (roundInterval): Round float.
3486    
3487            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
3488    
3489            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
3490    
3491            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
3492    
3493    2003-05-08  Frank Koormann <[email protected]>
3494    
3495            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
3496            Initialize ScaleBar with canvas.map
3497    
3498            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
3499            round intervals to display smarter lengths
3500            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
3501            layer. If the maps has no projection applied grey the scalebar.
3502    
3503    2003-05-07  Frank Koormann <[email protected]>
3504            
3505            Basic Scalebar features added.
3506    
3507            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
3508    
3509            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
3510            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
3511            and the renderer.
3512    
3513            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
3514    
3515            * Thuban/UI/messages.py: SCALE_CHANGED added.
3516    
3517    2003-05-07  Bernhard Herzog  <[email protected]>
3518    
3519            * Thuban/Model/session.py (Session.__init__): New instance
3520            variable shapestores to hold a list of all open shapestore objects
3521            (Session.ShapeStores): New. Accessor method for the shapestores
3522            list.
3523            (Session._add_shapestore, Session._clean_weak_store_refs): New.
3524            Internal methods to maintain the shapestores list.
3525            (Session.Tables): New. Return all tables open in the session.
3526            (Session.OpenShapefile): Insert the new ShapeStore into the
3527            shapestores list.
3528    
3529            * test/test_session.py (TestSessionSimple.test_initial_state): Add
3530            tests for ShapeStores and Tables
3531            (TestSessionWithContent.test_shape_stores)
3532            (TestSessionWithContent.test_tables): New. Test cases for
3533            ShapeStores and Tables
3534    
3535    2003-05-07  Bernhard Herzog  <[email protected]>
3536    
3537            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
3538            Add comments about the optimizations used.
3539            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
3540            Implement the ReadValue table interface method.
3541    
3542            * test/test_transientdb.py
3543            (TestTransientTable.run_iceland_political_tests)
3544            (TestTransientTable.test_transient_joined_table): Add tests for
3545            ReadValue
3546    
3547  2003-05-07  Frank Koormann <[email protected]>  2003-05-07  Frank Koormann <[email protected]>
3548    
3549          * Resources/Bitmaps/fulllayerextent.xpm,          * Resources/Bitmaps/fulllayerextent.xpm,

Legend:
Removed from v.848  
changed lines
  Added in v.1627

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26