/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1272 by jonathan, Fri Jun 20 16:43:13 2003 UTC revision 1626 by jan, Thu Aug 21 16:04:06 2003 UTC
# Line 1  Line 1 
1    2003-08-21  Jan-Oliver Wagner <[email protected]>
2    
3            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
4            (section Adding and Removing Layers): Added text and described
5            multi-selection.
6            (chapter Extensions): New.
7    
8    2003-08-21  Jan-Oliver Wagner <[email protected]>
9    
10            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
11            settings to allow multiple files to load into the map.
12            Also reduced selection to *.shp as a default.
13    
14    2003-08-20  Bernhard Herzog  <[email protected]>
15    
16            Add dialogs and commands to open database connections and add
17            database layers.
18    
19            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
20            method to open the database connection management dialog
21            (MainWindow.AddDBLayer): New method to add a layer from a database
22            (_has_dbconnections): New helper function to use for sensitivity
23            (database_management command, layer_add_db command): New commands
24            that call the above new methods.
25            (main_menu): Add the new commands to the menu.
26    
27            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
28            (PostGISConnection.connect): Establish the actual connection in a
29            separate method and call it in __init__. This makes it easier to
30            override the behavior in test cases
31            (PostGISConnection.BriefDescription): New method to return a brief
32            description for use in dialogs.
33    
34            * test/test_postgis_db.py (NonConnection): DB connection that
35            doesn't actually connect
36            (TestBriefDescription): New class with tests for the new
37            BriefDescription method
38    
39    2003-08-19  Jan-Oliver Wagner <[email protected]>
40    
41            Moved anything from extensions to libraries.
42    
43            * libraries: New.
44    
45            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
46    
47            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
48            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
49            been moved here from thuban/extensions/pyprojection/
50            See there in the Attic for the older history.
51    
52            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
53            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
54            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
55            have been moved here from thuban/extensions/pyshapelib/
56            See there in the Attic for the older history.
57    
58            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
59            files have been moved here from thuban/extensions/shapelib/
60            See there in the Attic for the older history.
61    
62            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
63            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
64            thuban/extensions/thuban/
65            See there in the Attic for the older history.
66    
67            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
68    
69            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
70            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
71    
72            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
73            Moved to libraries/shapelib.
74    
75            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
76            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
77            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
78            Moved to libraries/pyshapelib.
79    
80            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
81            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
82            Moved to libraries/pyprojection.
83    
84            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
85    
86            * extensions: Removed.
87    
88    2003-08-19  Bernhard Herzog  <[email protected]>
89    
90            * test/test_viewport.py (ViewPortTest): We don't use the
91            facilities of FileTestMixin so don't derive from it.
92            (TestViewportWithPostGIS): New class with tests for using a
93            viewport on a map with postgis layers.
94    
95    2003-08-19  Bernhard Herzog  <[email protected]>
96    
97            Add the db connection management to the session.
98    
99            * Thuban/Model/session.py (Session.__init__): New instance
100            variable db_connections
101            (Session.AddDBConnection, Session.DBConnections)
102            (Session.HasDBConnections, Session.CanRemoveDBConnection)
103            (Session.RemoveDBConnection): New methods to manage and query the
104            db connections managed by the session
105            (Session.OpenDBShapeStore): New method to open a shapestore from a
106            db connection
107    
108            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
109            messages for the db connection handling in the session
110    
111            * test/test_postgis_session.py: New. test cases for the session's
112            db connection handling with postgis connections
113    
114    2003-08-19  Bernhard Herzog  <[email protected]>
115    
116            Add very basic postgis database support and the corresponding test
117            cases. The test cases require a PostgreSQL + postgis installation
118            but no existing database. The database will be created
119            automatically by the test cases
120    
121            * test/README: Add note about skipped tests and the requirements
122            of the postgis tests.
123    
124            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
125    
126            * test/test_postgis_db.py: New. Test cases for the postgis
127            support.
128    
129            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
130            format
131    
132            * test/test_wellknowntext.py: New. Test cases for the
133            wellknowntext parser
134    
135            * test/postgissupport.py: New. Support module for tests involving
136            a postgis database.
137    
138            * test/support.py (execute_as_testsuite): Shut down the postmaster
139            if it's still running after the tests
140    
141            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
142            well known text format
143    
144    2003-08-19  Jan-Oliver Wagner <[email protected]>
145    
146            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
147            message dialog.
148    
149    2003-08-18  Bernhard Herzog  <[email protected]>
150    
151            * test/support.py (ThubanTestResult.printErrors): Indent the
152            reason for the skips in the output to make it a bit more readable.
153            (execute_as_testsuite): New helper function to run a test suite
154            and print some more information.
155            (run_tests): Use execute_as_testsuite to run the tests
156    
157            * test/runtests.py (main): Use execute_as_testsuite to run the
158            tests
159    
160    2003-08-18  Bernhard Herzog  <[email protected]>
161    
162            Fix some bugs in Thuban and the test suite that were uncovered by
163            changes introduced in Python 2.3:
164    
165            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
166            filename is an absolute name
167    
168            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
169            filename is an absolute name
170    
171            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
172            unique filename to save to and use the correct relative filename
173            in the expected output.
174            (SaveSessionTest.test_dbf_table): Use the correct relative
175            filename in the expected output.
176    
177            * test/test_layer.py (TestLayer.test_raster_layer): Update the
178            test to check whether the filename is absolute.
179    
180    2003-08-18  Jan-Oliver Wagner <[email protected]>
181    
182            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
183    
184    2003-08-15  Bernhard Herzog  <[email protected]>
185    
186            Change the way shapes are returned by a shape store. The
187            ShapesInRegion method returns an iterator over actual shape
188            objects instead of a list of shape ids.
189    
190            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
191            id.
192            (ShapefileStore.ShapesInRegion): Return an iterator over the
193            shapes which yields shape objects instead of returning a list of
194            shape ids
195            (ShapefileStore.AllShapes): New. Return an iterator over all
196            shapes in the shape store
197            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
198    
199            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
200            doc-string.
201    
202            * Thuban/UI/baserenderer.py
203            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
204            layer_shapes and make it return an iterator containg shapes
205            instead of a list of ids.
206            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
207            layer_shapes() change
208    
209            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
210            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
211    
212            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
213            changes in the ShapesInRegion return value.
214            (ViewPort._get_hit_tester): Remove commented out code
215    
216            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
217            new return value.
218            (SimpleShapeStore.AllShapes): New. Implement this method too.
219    
220            * test/test_layer.py (TestLayer.test_arc_layer)
221            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
222            (TestLayer.test_point_layer_with_projection)
223            (TestLayer.test_derived_store): Adapt to changes in the
224            ShapesInRegion return value.
225    
226            * test/test_shapefilestore.py
227            (TestShapefileStoreArc.test_shapes_in_region)
228            (TestShapefileStorePolygon.test_shapes_in_region)
229            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
230            in the ShapesInRegion return value.
231            (TestShapefileStorePoint.test_all_shapes)
232            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
233            methods
234    
235            * test/test_derivedshapestore.py
236            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
237            the ShapesInRegion return value.
238            (TestDerivedShapeStore.test_all_shapes)
239            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
240            methods
241    
242    2003-08-15  Bernhard Herzog  <[email protected]>
243    
244            Make the renderers deal correctly with raw vs. python level
245            representation of shape geometries
246    
247            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
248            Return a flag useraw in addition to the callable and the parameter
249            to indicate whether the callable can deal with the raw shape data
250            or uses the higher level python lists of coordinates. The callable
251            now should accept either the raw data or the return value of the
252            shape's Points() method.
253            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
254            change
255            (BaseRenderer.projected_points): Instead of the shape id use the
256            points list as parameter.
257            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
258            (BaseRenderer.draw_point_shape): Adapt to projected_points()
259            change and accept the points list as parameter instead of the
260            shape id.
261    
262            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
263            the useraw flag as required by the BaseRenderer
264            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
265            changes.
266    
267            * test/test_baserenderer.py
268            (TestBaseRenderer.test_point_with_classification): New test for
269            rendering a map with classifications.
270    
271    2003-08-15  Bernhard Herzog  <[email protected]>
272    
273            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
274            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
275            (ViewPort._get_hit_tester, ViewPort.projected_points)
276            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
277            (ViewPort._find_label_at): Split the find_shape_at method into
278            several new methods and use the functions in the hit-test module.
279    
280            * Thuban/UI/hittest.py: New module with Python-level hit-testing
281            functions
282    
283            * test/test_hittest.py: New. Test for the new hittest module
284    
285    2003-08-15  Bernhard Herzog  <[email protected]>
286    
287            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
288            projection to all corners of the bounding box to get a better
289            approximation of the projected bounding box
290    
291            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
292            New. Test coordinate handling of a layer with a projection.
293            Catches the bug fixed in Layer.ShapesInRegion
294    
295    2003-08-15  Bernhard Herzog  <[email protected]>
296    
297            Move some of the mock objects in test_baserenderer into their own
298            module so they can easily be used from other tests
299    
300            * test/mockgeo.py: New test helper module with some mock objects
301            for geometry related things like shapes, shapestores and
302            projections.
303    
304            * test/test_mockgeo.py: New. Tests for the new helper module
305    
306            * test/test_baserenderer.py: Some of the mock-objects are in
307            mockgeo now.
308    
309    2003-08-12  Jan-Oliver Wagner <[email protected]>
310    
311            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
312    
313    2003-08-12  Bernhard Herzog  <[email protected]>
314    
315            * po/de.po: New. German translations by Bjoern Broscheit
316    
317    2003-08-12  Bernhard Herzog  <[email protected]>
318    
319            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
320            strings have to be one string literal.
321    
322    2003-08-11  Bernhard Herzog  <[email protected]>
323    
324            * test/support.py (FloatComparisonMixin.assertPointListEquals):
325            New. This method was used in various derived classes, but it's
326            better to have it here.
327    
328            * test/test_shapefilestore.py
329            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
330            FloatComparisonMixin
331    
332            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
333            It's now in FloatComparisonMixin
334    
335            * test/test_derivedshapestore.py
336            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
337            in FloatComparisonMixin
338    
339    2003-08-11  Bernhard Herzog  <[email protected]>
340    
341            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
342            error message
343    
344    2003-08-08  Jan-Oliver Wagner <[email protected]>
345    
346            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
347            with version number.
348            Changed title to reflect version number of Thuban.
349    
350    2003-08-08  Jan-Oliver Wagner <[email protected]>
351    
352            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
353            the list corresponds to the "About" web page.
354    
355    2003-08-08  Bernhard Herzog  <[email protected]>
356    
357            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
358            Make sure translated strings are recognized as one string literal.
359    
360            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
361            Make sure translated strings are recognized as one string literal.
362    
363            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
364            translated strings are recognized as one string literal.
365    
366            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
367            sure translated strings are recognized as one string literal.
368    
369    2003-08-07  Bernhard Herzog  <[email protected]>
370    
371            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
372            Simply delegates to the original shapestore.
373    
374            * test/test_derivedshapestore.py
375            (TestDerivedShapeStore.test_raw_format): New. Test case for
376            DerivedShapeStore.RawShapeFormat
377    
378    2003-08-07  Bernhard Herzog  <[email protected]>
379    
380            Add raw data interface to shape objects.
381    
382            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
383            class to ShapefileShape which now holds shapefile specific
384            information.
385            (ShapefileShape.compute_bbox): Simplified to not cache any
386            information. The way this method is used that shouldn't matter
387            performance wise.
388            (ShapefileShape.RawData): New. Return the shapeid which is the raw
389            data format for shapes from shapefiles.
390            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
391            in the shape objects returned by a shapestore. For a
392            ShapefileStore this is always RAW_SHAPEFILE.
393            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
394            method.
395    
396            * test/test_shapefilestore.py
397            (TestShapefileStore.test_raw_format): New test to test the raw
398            format feature of shapes.
399    
400            * Thuban/Model/layer.py: Remove the unused import of Shape from
401            data. It was only there for interface compatibility but it's not
402            used inside of Thuban and the generic Shape class has gone away.
403    
404            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
405            the raw data format and only use an optimized version of its a
406            shapefile.
407    
408    2003-08-07  Bernhard Herzog  <[email protected]>
409    
410            * test/test_baserenderer.py (SimpleShape): Shape class for the
411            tests.
412            (SimpleShapeStore.Shape): Use SimpleShape instead of
413            Thuban.Model.data.Shape to make the tests independed of the coming
414            changes.
415    
416    2003-08-07  Bernhard Herzog  <[email protected]>
417    
418            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
419            (ThubanTestProgram): New classes that extend the respective
420            classes from unittest. These new version support skipping tests
421            under certain expected conditions. In the Thuban test suite we
422            uses this for tests that require the optional gdal support.
423            (run_tests): Use ThubanTestProgram instead of the unittest.main()
424    
425            * test/runtests.py (main): Use the new ThubanTestRunner instead of
426            the normal one from unittest
427    
428            * test/test_layer.py (TestLayer.test_raster_layer): If this test
429            is not run because gdal support isn't available report this to the
430            runner.
431    
432            * test/test_baserenderer.py
433            (TestBaseRenderer.test_raster_no_projection): Do not run this test
434            if gdal support isn't available and report this to the runner.
435    
436    2003-08-06  Bernhard Herzog  <[email protected]>
437    
438            Rearrange the renderers a bit, partly in preparation for changes
439            required for the postgis merge, partly to make it more testable.
440            Also make the representation of coordinates in Shapes more
441            consistent.
442    
443            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
444            this class is now in BaseRenderer. This class is now practically
445            only a specialization of BaseRenderer for rendering to an actual
446            wx DC.
447            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
448            to get the shapetype specific rendering functions.
449    
450            * Thuban/UI/baserenderer.py: New file with the basic rendering
451            logic. The code in this file is completely independend of wx.
452            (BaseRenderer): Class with the basic rendering logic
453    
454            * test/test_baserenderer.py: New. Test cases for BaseRenderer
455    
456            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
457            error_on_redraw to guard agains endless loops and stack overflows
458            when there's a bug in the rendering code that raises exceptions.
459            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
460            rendering into a separate method _do_redraw so that error handling
461            is a bit easier. When an exception occurs, set error_on_redraw to
462            true. When it's true on entry to OnIdle do nothing and return
463            immediately.
464    
465            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
466            Shape object will always have the coordinates as a list of list of
467            coordinate pairs (tuples).
468            (Shape.compute_bbox): Adapt to new representation.
469    
470            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
471            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
472            Shape objects.
473    
474            * test/test_shapefilestore.py
475            (ShapefileStoreTests.assertFloatTuplesEqual)
476            (ShapefileStoreTests.assertPointListEquals): Rename to
477            assertPointListEquals and change purpose to checking equality of
478            the lists returned by Shape.Points().
479            (TestShapefileStoreArc.test_shape)
480            (TestShapefileStorePolygon.test_shape)
481            (TestShapefileStorePoint.test_shape): Use the new
482            assertPointListEquals instead of assertFloatTuplesEqual
483    
484            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
485            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
486            and change purpose to checking equality of the lists returned by
487            Shape.Points().
488            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
489            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
490            (TestLayer.test_derived_store): Use the new assertPointListEquals
491            instead of assertFloatTuplesEqual
492    
493            * test/test_derivedshapestore.py
494            (TestDerivedShapeStore.assertFloatTuplesEqual)
495            (TestDerivedShapeStore.assertPointListEquals): Rename to
496            assertPointListEquals and change purpose to checking equality of
497            the lists returned by Shape.Points().
498            (TestDerivedShapeStore.test_shape): Use the new
499            assertPointListEquals instead of assertFloatTuplesEqual
500    
501    2003-08-06  Jan-Oliver Wagner <[email protected]>
502    
503            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
504            a bounding box. A dialog is raised in case, no bounding box
505            is found. This fixes bug #2043:
506            https://intevation.de/rt/webrt?serial_num=2043
507    
508    2003-08-05  Bernhard Herzog  <[email protected]>
509    
510            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
511            object look like a Color instantiation. Formerly it looked like a
512            tuple.
513    
514            * test/test_color.py (TestColor.test_repr)
515            (TestColor.test_equality, TestColor.test_inequality): New. test
516            some more apects of the Color class
517            (TestTransparent.test_repr, TestTransparent.test_hex)
518            (TestTransparent.test_equality): New. Test cases for the
519            Transparent object.
520    
521    2003-08-04  Jan-Oliver Wagner <[email protected]>
522    
523            * Doc/manual/thuban-manual.xml: a number of small improvements.
524            The resulting file is the version submitted for GREAT-ER II.
525    
526    2003-08-01  Bernhard Herzog  <[email protected]>
527    
528            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
529            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
530            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
531    
532            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
533            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
534            (ThubanEndBusyCursor): Add doc-strings
535    
536    2003-08-01  Bernhard Herzog  <[email protected]>
537    
538            First step towards PostGIS integration. More abstraction by movin
539            more code from the layer to the shapestore. More methods of the
540            layer are now simply delegated to the equivalent method of the
541            shapestore. The SHAPETYPE_* constants are now in data not in
542            layer.
543    
544            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
545            (SHAPETYPE_POINT, Shape): Move these constants and classes from
546            layer.py to data.py
547            (ShapefileStore.__init__): More Initialization for the new methods
548            and functionality.
549            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
550            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
551            (ShapefileStore.Shape): New methods that were formerly implemented
552            in the layer.
553            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
554            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
555            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
556            equivalents of the new shape methods. These versions are simply
557            delegated to the original shapstore.
558    
559            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
560            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
561            (Layer.SetShapeStore): Removed the initializatin of instance
562            variables that were needed for the stuff that's now in
563            ShapefileStore
564            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
565            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
566            shapestore.
567    
568            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
569            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
570            instead of layer.
571    
572            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
573    
574            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
575    
576            * test/test_layer.py: Import the SHAPETYPE_* constants from data
577            instead of layer.
578            (TestLayer.test_derived_store): Remove the test for the exception
579            when instantiating the DerivedShapeStore with an incompatible
580            table which is now in test_derivedshapestore.py. Add some more
581            tests of the layer methods to determine whether they work for a
582            DerivedShapeStore as well.
583    
584    2003-07-31  Jonathan Coles   <[email protected]>
585    
586            * Doc/manual/thuban-manual.xml: Fix the list of required packages
587            by just listing the name and where they can be found.
588    
589    2003-07-31  Frank Koormann   <[email protected]>
590    
591            * Doc/manual/thuban-manual.xml:
592            Changed the screenshot elements to figure.
593            Changed some variablelist elements to itemizedlist.
594            Added section on GDAL formats.
595    
596    2003-07-31  Jonathan Coles   <[email protected]>
597    
598            * Doc/manual/thuban-manual.xml: Added a few sentences about
599            the Fix Border Color option when generating classes.
600    
601    2003-07-30  Jonathan Coles   <[email protected]>
602    
603            * Thuban/Model/classgen.py: Add docstrings. Rename specific
604            Ramp instances to use lower_case_style.
605    
606            * Thuban/UI/classgen.py: Use renamed Ramp instances.
607            
608            * Thuban/UI/classifier.py: Add docstrings.
609    
610            * Thuban/UI/dock.py: Add docstrings.
611    
612            * test/test_classgen.py: Use renamed Ramp instances.
613    
614    2003-07-30  Bernhard Herzog  <[email protected]>
615    
616            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
617            was never used in Thuban.
618    
619    2003-07-30  Bernhard Herzog  <[email protected]>
620    
621            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
622            method directly instead of going through the transient_table
623            method. This faster because transient_table may force the copy of
624            a DBF file into the transient database and setting a table's title
625            doesnm't affect the title of the associated transient table, so
626            this fixes RT #2042
627    
628            * Thuban/UI/main.py (__version__): Don't import the already
629            removed show_exception_dialog.
630    
631    2003-07-29  Jonathan Coles   <[email protected]>
632    
633            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
634            Put back this method and remove the equivalent function since we
635            are setting the exception hook from within this class (OnInit).
636    
637    2003-07-29  Jonathan Coles   <[email protected]>
638    
639            * Doc/manual/images/5_2_custom_ramp.png,
640            Doc/manual/images/5_2_quantiles.png,
641            Doc/manual/images/5_2_uniform_dist.png,
642            Doc/manual/images/5_2_unique_values.png,
643            Doc/manual/images/8_int_error.png: New screen shots.
644    
645            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
646            some points, and added more screen shots.
647    
648    2003-07-29  Bernhard Herzog  <[email protected]>
649    
650            * Thuban/Model/data.py: Remove the now unused import of warnings
651    
652    2003-07-29  Bernhard Herzog  <[email protected]>
653    
654            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
655            deprecated since before the 0.8 release and isn't used in Thuban
656            itself anymore.
657    
658            * Thuban/Model/transientdb.py: Remove some unnecessary imports
659    
660    2003-07-29  Jonathan Coles   <[email protected]>
661    
662            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
663            python exception hook here so that we are sure to catch any
664            Thuban exception that happen during initialization.
665    
666            * Thuban/UI/main.py (main): Don't set the exception hook here,
667            it will get set in ThubanApplication.OnInit.
668    
669    2003-07-29  Jonathan Coles   <[email protected]>
670                                                                                
671            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
672            Removed and called it show_exception_dialog() so that the exception
673            handler can be set before the class is created.
674                                                                                
675            * Thuban/UI/main.py (main): Install the exception handler before
676            a ThubanApplication is created.
677                                                                                    
678    2003-07-29  Bernhard Herzog  <[email protected]>
679    
680            * po/it.po: New. Italian translation by Maurizio Napolitano
681    
682            * po/ru.po: New. Russian translation by Alex Shevlakov
683    
684    2003-07-29  Frank Koormann   <[email protected]>
685    
686            * Doc/manual/thuban-manual.xml: Extended section on supported
687            projections.
688            
689    2003-07-29  Frank Koormann   <[email protected]>
690    
691            * Doc/manual/thuban-manual.xml: gaspell-checked.
692    
693    2003-07-29  Jonathan Coles   <[email protected]>
694    
695            * Doc/manual/images/3_5_legend.png: Added border to improve look
696            on white background.
697    
698    2003-07-29  Jonathan Coles   <[email protected]>
699    
700            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
701            descriptions for the legend toolbar.
702    
703            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
704            cursor from dialog box.
705    
706    2003-07-28  Jonathan Coles   <[email protected]>
707    
708            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
709    
710            * Doc/manual/images/2_4_session_tree.png,
711            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
712            Doc/manual/images/4_2_layer_properties.png,
713            Doc/manual/images/4_2_raster_layer_properties.png,
714            Doc/manual/images/5_3_genclass.png,
715            Doc/manual/images/5_classification.png,
716            Doc/manual/images/6_projection.png,
717            Doc/manual/images/7_1_table_view.png,
718            Doc/manual/images/7_2_5_join.png: New screenshots.
719    
720    2003-07-24  Jonathan Coles   <[email protected]>
721    
722            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
723    
724    2003-07-24  Jonathan Coles   <[email protected]>
725    
726            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
727            chapter on Layer Management.
728    
729            * Doc/manual/Makefile: New. Makefile to generate all formats for the
730            manual and images.
731    
732    2003-07-24  Bernhard Herzog  <[email protected]>
733    
734            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
735            it annoys lintian which warns about these files not being
736            executable. The #1 isn't necessary here since if you absolutely
737            must execute them you can always say "python <filename>".
738    
739            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
740            superfluous code to set brush and pen for point shapes
741    
742            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
743            belong in viewport anyway
744    
745    2003-07-24  Frank Koormann   <[email protected]>
746    
747            * Doc/manual/thuban-manual.xml: Added section on table management.
748    
749    2003-07-24  Bernhard Herzog  <[email protected]>
750    
751            * test/runtests.py (main): Recognize the long "verbose" option
752            correctly.
753    
754    2003-07-22  Jonathan Coles   <[email protected]>
755    
756            * Doc/manual/thuban-manual.xml: Continue to write first revision
757            of the manual.
758    
759            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
760            with Begin/EndDrawing() calls to ensure we aren't doing to
761            many updates to the dc during rendering.
762            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
763            a pen and brush argument so they need to be passed to the function.
764    
765            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
766            Calculates the minimum and maximum scale values. Factored out
767            of set_view_transform so that it could be used to zoom all the
768            way into a single point.
769            (ViewPort.set_view_transform): Call calc_min_max_scales().
770            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
771            if only a single point is selected.
772    
773            * Doc/manual/images/1_2_legend_close.png,
774            Doc/manual/images/1_2_legend_dock.png,
775            Doc/manual/images/1_2_mainwindow.png,
776            Doc/manual/images/1_2_mainwindow.ps,
777            Doc/manual/images/1_2_mainwindow.sk,
778            Doc/manual/images/3_2_fullextent.png,
779            Doc/manual/images/3_2_fulllayerextent.png,
780            Doc/manual/images/3_2_fullshapeextent.png,
781            Doc/manual/images/3_2_pan.png,
782            Doc/manual/images/3_2_zoomin.png,
783            Doc/manual/images/3_2_zoomout.png,
784            Doc/manual/images/3_3_identify.png,
785            Doc/manual/images/3_3_label.png,
786            Doc/manual/images/3_5_invisible.png,
787            Doc/manual/images/3_5_movedown.png,
788            Doc/manual/images/3_5_moveup.png,
789            Doc/manual/images/3_5_props.png,
790            Doc/manual/images/3_5_tobottom.png,
791            Doc/manual/images/3_5_totop.png,
792            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
793    
794    2003-07-18  Bernhard Herzog  <[email protected]>
795    
796            * Thuban/UI/messages.py (MAP_REPLACED): New message.
797    
798            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
799            after the new map has been assigned
800    
801            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
802            Delegate MAP_REPLACED to the canvas too
803            (MainWindow.prepare_new_session): Removed. Thanks to the new
804            MAP_REPLACED message it's no longer needed
805            (MainWindow.OpenSession, MainWindow.NewSession):
806            prepare_new_session has been removed.
807    
808            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
809            MAP_REPLACED so that we can close the dialog if a new map is set.
810            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
811            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
812            dialog
813    
814            * test/test_viewport.py (SimpleViewPortTest)
815            (SimpleViewPortTest.test_default_size): Add doc-strings
816            (ViewPortTest.setUp): Bind map to self.map so we can use it in
817            tests. Subscribe to MAP_REPLACED messages too.
818            (ViewPortTest.tearDown): No need to explicitly unsubscribe
819            (ViewPortTest.test_set_map): New test for the SetMap method.
820    
821    2003-07-18  Bernhard Herzog  <[email protected]>
822    
823            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
824            Move this test from ViewPortTest.setUp to this new separate test
825            case. setUp is not the place for the actual tests.
826            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
827            more of the test from setUp to the new test test_inital_settings.
828            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
829            (ViewPortTest.test_proj_conv): Split test_proj_conv into
830            test_win_to_proj and test_proj_to_win and make the tests easier to
831            understand
832            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
833            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
834            (ViewPortTest.test_unprojected_rect_around_point)
835            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
836            Reformat to increase readability.
837    
838    2003-07-18  Bernhard Herzog  <[email protected]>
839    
840            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
841    
842    2003-07-18  Bernhard Herzog  <[email protected]>
843    
844            * test/runtests.py: The test suite can now be run without an X
845            connection. To make sure this remains true, remove the DISPLAY
846            environment variable so that an error occurs if the wxGTK is
847            imported accidentally
848    
849    2003-07-18  Bernhard Herzog  <[email protected]>
850    
851            * Thuban/UI/viewport.py: Remove unused imports
852    
853            * Thuban/UI/view.py: Remove unused imports
854    
855    2003-07-18  Bernhard Herzog  <[email protected]>
856    
857            * test/test_export.py Remove unused imports. The OutputTransform
858            function is now in viewport.py and is called output_transform
859            (TestScalebar.test_output_transform)
860            (TestScalebar.test_OutputTransform): Renamed to
861            test_output_transform and updated to use output_transform instead
862            of OutputTransform
863    
864            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
865            renamed.
866            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
867            renamed to output_transform
868    
869            * Thuban/UI/viewport.py (OutputTransform, output_transform):
870            Rename to output_transform
871    
872    2003-07-18  Bernhard Herzog  <[email protected]>
873    
874            * Thuban/Model/layer.py (Layer.__init__): Rename
875            classificationField to classificatin_column and init it here so
876            that it can be used in SetClassificationColumn
877            (Layer.GetClassificationColumn, Layer.GetClassificationField):
878            Rename to GetClassificationColumn.
879            (Layer.SetClassificationColumn, Layer.SetClassificationField):
880            Rename to SetClassificationColumn and issue a LAYER_CHANGED
881            message if the column changes.
882            (Layer._classification_changed, Layer.ClassChanged): Rename to
883            _classification_changed. Update the callers.
884            (Layer.SetShapeStore): Further field->column renames.
885    
886            * Thuban/Model/load.py (SessionLoader.start_classification)
887            (SessionLoader.start_clpoint): Updates because of
888            field->column method name changes in the Layer class
889    
890            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
891            because of field->column method name changes in the Layer class
892    
893            * Thuban/UI/classifier.py (Classifier.__init__)
894            (Classifier._OnTry, Classifier._OnRevert): Updates because of
895            field->column method name changes in the Layer class
896    
897            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
898            because of field->column method name changes in the Layer class
899    
900            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
901            of field->column method name changes in the Layer class
902    
903            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
904            (SaveSessionTest.testClassifiedLayer): Update because of
905            field->column method name changes in the Layer class
906    
907            * test/test_layer.py (SetShapeStoreTests.setUp)
908            (SetShapeStoreTests.test_sanity): Update because of field->column
909            method name changes in the Layer class
910            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
911            (TestLayerModification.test_sanity)
912            (TestLayerModification.test_initial_settings): remove unsued code
913            and rename to test_sanity.
914            (TestLayerModification.test_set_classification): New test for
915            SetClassification and SetClassificationField.
916    
917    2003-07-18  Bernhard Herzog  <[email protected]>
918    
919            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
920            the non-fixed values as well. The old test would have accepted a
921            fixed ramp that only returnes the fixed properties
922    
923    2003-07-17  Jonathan Coles   <[email protected]>
924    
925            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
926            shots for the manual. The XCF file is the source image and
927            has additional layers to support changes.
928    
929            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
930    
931            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
932            Return both the new class and the field name.
933    
934            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
935            fit the map to the window as this changes any zoom level that
936            the user may have set.
937    
938    2003-07-16  Jonathan Coles   <[email protected]>
939    
940            * Thuban/Model/classgen.py (generate_singletons,
941            generate_uniform_distribution, generate_quantiles): Remove
942            fixes parameter, but maintain the same functionality by having
943            the calling function pass a FixedRamp object for the ramp.
944            (FixedRamp): New. Adapts a ramp to have fixed property values.
945    
946            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
947            (Classification): Inherit from Publisher.
948            (Classification.__init__): Remove the layer parameter.
949            Classifications no longer need to have a parent layer.
950            (Classification.GetField, Classification.GetFieldType,
951            Classification.SetFieldInfo): Removed. The field name is stored
952            in the layer, and the type can be retreived by calling
953            Layer.GetFieldType().
954            (Classification._set_layer, Classification.GetLayer): Removed.
955            Classifications no longer have a parent layer.
956    
957            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
958            classification.
959            (Layer.SetShapeStore): Reset the classification first while
960            we still have the old shape store to work with.
961            (Layer.GetClassificationField, Layer.SetClassificationField):
962            New. Method for getting/setting the field to classify on.
963            (Layer.SetClassification): Simplified now that the layer
964            simply has to hold a reference to the classification and not
965            tell the classification who owns it.
966            Fixes RTbug #2023.
967    
968            * Thuban/Model/load.py (SessionLoader.start_classification):
969            Set the field name on the layer, not the classification.
970    
971            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
972            classification is modified.
973    
974            * Thuban/Model/save.py (SessionSaver.write_classification):
975            Get the field name and type from the layer.
976    
977            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
978            parameter records to rows and add docstring. Fixes RTbug #1997.
979    
980            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
981            ramp when we need to fix certain values of a ramp rather than
982            using the old fixes parameter. Fixes RTbug #2024.
983    
984            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
985            parameter.
986            (ClassTable.Reset): Add fieldType parameter and use it, rather
987            than asking the classification.
988            (Classifier.__init__): Remember the original class's field
989            and ask the layer for the field type, rather than the classification.
990            (Classifier.__SetGridTable): Retrieve the field and field type
991            for the table because they are not in the classification.
992            (Classifier._OnTry, Classifier._OnRevert): Set the classification
993            field on the layer in addition to the classification itself.
994    
995            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
996            classification field from layer.
997    
998            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
999            classification field from layer. Split up tests and remove
1000            *-imports. Fixes RTbug #1992.
1001    
1002            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
1003    
1004            * test/test_classification.py
1005            (TestClassification.test_classification): Remove tests for methods
1006            that no longer exist.
1007    
1008            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
1009            __init__ no longer has a field parameter, use SetClassificationField.
1010            (SetShapeStoreTests.test_sanity): Use layer object to get class
1011            field info.
1012    
1013            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
1014            SetClassificationField on layer to set class field info.
1015    
1016            * test/test_viewport.py: Renamed from test/test_view.py.
1017    
1018    2003-07-16  Jan-Oliver Wagner <[email protected]>
1019    
1020            * Doc/manual/thuban-manual.xml: Added authors and an initial
1021            coarse structure.
1022    
1023    2003-07-15  Bernhard Herzog  <[email protected]>
1024    
1025            * test/support.py (FloatComparisonMixin): This is a mix-in class
1026            and therefore should not be derived from any other class.
1027    
1028            * test/test_range.py (RangeTest): FloatComparisonMixin is a
1029            mix-in, so derive from TestCase as well.
1030    
1031    2003-07-15  Bernhard Herzog  <[email protected]>
1032    
1033            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
1034            draw_func handling a bit to remove one layer of indirection. This
1035            makes the renderer about 10% faster in the non-classifying case
1036            and the code a bit cleaner
1037            (MapRenderer.draw_point_shape): Add the pen and brush parameters
1038            and set them in the dc. Now the draw_point_shape method and
1039            wxproj's draw_polygon_shape function have basically the same
1040            signature so that both can be directly used as draw_func
1041    
1042    2003-07-15  Bernhard Herzog  <[email protected]>
1043    
1044            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
1045            string values (in addition to the labels) as UTF 8
1046    
1047            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
1048            values if the field type is string
1049    
1050            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
1051            saving a session with non-ascii string classification values.
1052    
1053            * test/test_load.py (TestClassification.file_contents)
1054            (TestClassification.test): Check for non-ascii values in string
1055            classifications
1056    
1057    2003-07-14  Jonathan Coles   <[email protected]>
1058    
1059            * test/test_view.py: New. Tests for ViewPort.
1060    
1061    2003-07-14  Frank Koormann   <[email protected]>
1062    
1063            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
1064            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
1065    
1066            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
1067            unicode strings from session file: session title, map title and
1068            projection name.
1069            
1070    2003-07-10  Jonathan Coles   <[email protected]>
1071    
1072            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
1073            drag_stop, not drag_move when the mouse is released.
1074    
1075    2003-07-10  Jonathan Coles   <[email protected]>
1076    
1077            The most important part of this is the seperation of view.py into
1078            two pieces. viewport.py now has a class called ViewPort which
1079            contains all the non-wx parts of view.py and can therefore be
1080            tested. view.py contains only the wx-specific parts and is fairly
1081            simple.
1082    
1083            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
1084            RTTbug #1992.
1085            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
1086            RTTbug #1992.
1087    
1088            * Thuban/Model/classgen.py (generate_singletons,
1089            generate_uniform_distribution, generate_quantiles):
1090            Added 'fixes' parameter so that property attributes can
1091            be held constant over the generated classification groups.
1092            (CustomRamp.GetProperties): Remove unused variables.
1093    
1094            * Thuban/Model/map.py (Map.SetProjection): Send the old
1095            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
1096            event.
1097    
1098            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
1099            parameter which is a list of records that restricts which
1100            records are saved. Fixes RTbug #1997.
1101    
1102            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
1103            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
1104    
1105            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
1106            to allow the user to fix line color/width on generated groups.
1107            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
1108            functions to optionally fix group properties.
1109    
1110            * Thuban/UI/main.py (main): Set exception hook to the
1111            ShowExceptionDialog. Fixes RTbug #1993.
1112    
1113            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
1114            the table window when it is selectd to be shown.
1115    
1116            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
1117            Export Selection button and move the export buttons underneath
1118            the table.
1119            (QueryTableFrame.UpdateStatusText): Added event argument so
1120            that it can respond to grid selection events. The status text
1121            is now updated even when the table is not associated with a
1122            layer as was previously assumed.
1123            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
1124            UpdateStatusText responds to these events.
1125            (QueryTableFrame.OnSaveAs): Renamed to doExport.
1126            (QueryTableFrame.doExport): Helper function that saves the
1127            entire table, or selected rows, to a file.
1128            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
1129            Respond to export button events and call doExport.
1130    
1131            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
1132            the function doesn't return NULL without first setting a Python
1133            Error.
1134    
1135            * test/runtests.py (main): Only print "Unknown option" for
1136            unsupported options.
1137    
1138            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
1139            optional epsilon argument to specify floating point accuracy.
1140            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
1141            for each item test.
1142    
1143            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
1144            tests for saving selected records.
1145    
1146            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
1147            tests for saving selected records.
1148    
1149            * test/test_map.py (TestMapWithContents.test_set_projection):
1150            MAP_PROJECTION_CHANGED events send the old projection.
1151    
1152            * test/test_session.py
1153            (TestSessionWithContent.test_forward_map_projection):
1154            MAP_PROJECTION_CHANGED events send the old projection.
1155    
1156            * test/test_table.py (TableTest): Update tests to use non-deprecated
1157            functions.
1158    
1159    2003-07-08  Bernhard Herzog  <[email protected]>
1160    
1161            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
1162            constants in the column objects are the standard ones defined in
1163            the table module.
1164    
1165            * test/test_transientdb.py
1166            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
1167            exporting transient tables as DBF works. This should catch the bug
1168            just fixed in TransientTableBase.Width.
1169    
1170    2003-07-08  Bernhard Herzog  <[email protected]>
1171    
1172            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
1173            interpolated colors correctly.
1174    
1175            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
1176            New. Test case for the fix in classgen.py
1177    
1178    2003-07-08  Bernhard Herzog  <[email protected]>
1179    
1180            * test/runtests.py (main): Make the default output less verbose
1181            and add a verbosity option (-v) to get the old output
1182    
1183    2003-07-08  Bernhard Herzog  <[email protected]>
1184    
1185            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
1186            0.9.
1187    
1188            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
1189            New. Return the join type
1190    
1191            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
1192            DTD
1193            (SessionSaver.write_data_containers): Save the join type for
1194            joined tables
1195    
1196            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
1197            namespace
1198            (SessionLoader.start_jointable): Handle the jointype attribute
1199    
1200            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
1201            as of Thuban 0.8. These are now tests to determine whether Thuban
1202            can still read files generated by Thuban 0.8
1203    
1204            * test/test_load.py (LoadSessionTest.dtd)
1205            (TestSingleLayer.file_contents)
1206            (TestLayerVisibility.file_contents, TestLabels.file_contents)
1207            (TestLayerProjection.file_contents)
1208            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1209            (TestJoinedTable.file_contents)
1210            (TestLoadError.file_contents): Update for new DTD
1211            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
1212            for new join type attribute
1213    
1214            * test/test_save.py (SaveSessionTest.dtd)
1215            (SaveSessionTest.testEmptySession)
1216            (SaveSessionTest.testSingleLayer)
1217            (SaveSessionTest.testLayerProjection)
1218            (SaveSessionTest.testRasterLayer)
1219            (SaveSessionTest.testClassifiedLayer)
1220            (SaveSessionTest.test_dbf_table)
1221            (SaveSessionTest.test_joined_table): Update for new DTD
1222            (SaveSessionTest.test_joined_table): Add test for new join type
1223            attribute
1224    
1225    2003-07-04  Bernhard Herzog  <[email protected]>
1226    
1227            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
1228            function for table_to_dbf
1229            (table_to_dbf): Deal with names longer than the 10 character limit
1230    
1231            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
1232            doc-string
1233            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
1234            long column names
1235    
1236    2003-07-03  Bernhard Herzog  <[email protected]>
1237    
1238            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
1239    
1240    2003-07-03  Bernhard Herzog  <[email protected]>
1241    
1242            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
1243            for the Thuban manual and README with some basic information about
1244            the manual
1245    
1246    2003-07-03  Bernhard Herzog  <[email protected]>
1247    
1248            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
1249            Update doc-string
1250            (TransientJoinedTable.create): Do not modify the column objects of
1251            the input tables in place and copy all columns of the input tables
1252            into the joined table after all.
1253    
1254            * test/test_transientdb.py
1255            (TestTransientTable.test_transient_joined_table_same_column_name):
1256            Update to reflect the new behavior
1257            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
1258            Update to reflect the new behavior
1259            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
1260            New test case for a bug which modified the column objects in place
1261    
1262    2003-07-02  Jonathan Coles   <[email protected]>
1263    
1264            * Thuban/Model/classgen.py (generate_singletons,
1265            generate_uniform_distribution, generate_quantiles,
1266            GenQuantiles0): Make sure maxValue isn't less than
1267            one, otherwise we could divide by zero.
1268    
1269            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
1270            ClassGenTest.doClassSingleTest): Call doBoundsTest to
1271            check the end classification groups against the
1272            proper property values.
1273            (ClassGenTest.doBoundsTest): New. Checks the first and
1274            last classification groups to make sure their properties
1275            are the correct upper and lower bounds for a color ramp.
1276    
1277    2003-07-02  Jonathan Coles   <[email protected]>
1278    
1279            * Thuban/Model/classgen.py (generate_singletons,
1280            generate_uniform_distribution, generate_quantiles,
1281            GenQuantiles0): The denominator was one to high when
1282            calculating the index for the ramp causing the index
1283            to never to reach one.
1284    
1285    2003-07-02  Jonathan Coles   <[email protected]>
1286    
1287            Changed the singature of ClassGroupRange.__init__ and
1288            ClassGroupRange.SetRange() so that the min/max values are
1289            passed as a tuple. This makes a better calling scheme for
1290            when a Range object is passed instead.
1291    
1292            * Thuban/Model/classgen.py: Fixed parameters to
1293            ClassGroupRange constructor.
1294    
1295            * Thuban/Model/classification.py (ClassGroupRange.__init__):
1296            Consolidate the min/max parameters into a single _range which
1297            can either be a tuple or a Range object.
1298            (ClassGroupRange.SetRange): Consolidate the min/max parameters
1299            into a single _range which can either be a tuple or a Range object.
1300    
1301            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
1302            call to ClassGroupRange constructor to use a tuple.
1303    
1304            * Thuban/Model/layer.py (Layer.SetClassification): Switch
1305            the classification instance variable to the new class
1306            before calling _set_layer otherwise subscribers to a
1307            LAYER_CHANGED event will not see any difference.
1308    
1309            * test/test_classification.py: Fix tests of ClassGroupRange
1310            so that they use the new signature.
1311    
1312            * test/test_load.py: Fix use of ClassGroupRange so that it
1313            uses the new signature.
1314    
1315            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
1316            uses the new signature.
1317    
1318            * test/test_save.py: Fix use of ClassGroupRange so that it
1319            uses the new signature.
1320    
1321    
1322    2003-07-01  Jonathan Coles   <[email protected]>
1323    
1324            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
1325            Import used objects/class from color.
1326            (generate_singletons): We don't
1327            need the numGroups parameter anymore because we are using
1328            the new ramps with GetProperties().
1329            (generate_uniform_distribution): Use new ramp method
1330            GetProperties().
1331            (generate_quantiles, GenQuantiles0): Use new ramp method
1332            GetProperties().
1333            (CustomRamp.SetNumGroups): Removed. The ramps now map
1334            a value from 0 to 1 to class properties so the number
1335            of groups is not needed ahead of time.
1336            (CustomRamp.next): Removed. CustomRamp does not support
1337            interation anymore.
1338            (CustomRamp.GetProperties): Returns a ClassGroupProperties
1339            object based on the index value from 0 to 1 that is
1340            passed to it.
1341            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
1342            Made into instances of Monochromatic class instread of
1343            deriving from it.
1344            (HotToCold.SetNumGroups): Removed. See CustomRamp.
1345            (HotToCold.next): Removed. See CustomRamp.
1346    
1347            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
1348            (Classification.SetField, Classification.SetFieldType):
1349            Replaced with SetFieldInfo.
1350            (Classification.SetFieldInfo): New. Does a better job of
1351            what SetField and SetFieldType used to do by combining
1352            their function since they should really always be done
1353            at the same time.
1354            (Classification.SetLayer): Renamed to _set_layer.
1355            (Classification._set_layer): Should only be called from
1356            Layer's SetClassification. This does not cause a recursive
1357            call as SetLayer did because we know that Layer knows about
1358            the classification.
1359    
1360            * Thuban/Model/color.py: Fixes RTbug #1971.
1361            (_Transparent): Renamed from Transparent so it doesn't
1362            conflict with the module variable.
1363            (Transparent, Black): Renamed from Color.Transparent,
1364            Color.Black so they are not class variables.
1365    
1366            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
1367            (Layer.Destroy): We don't need to call SetClassification
1368            anymore to clear out the back reference in the classifcation
1369            to the layer. It's better to set it to None using _set_layer,
1370            and we won't be creating another clas object too.
1371            (Layer.SetClassification): Classification._set_layer is not
1372            recursive so remove all the locking variables. Also clean
1373            up the code so that it remains unchanged if something fails.
1374    
1375            * Thuban/Model/load.py: Fixes RTbug #1971.
1376            (SessionLoader.start_classification): Call
1377            Classification.SetFieldInfo().
1378    
1379            * Thuban/Model/save.py: Removed import of Color which wasn't
1380            being used.
1381    
1382            * Thuban/UI/classgen.py: Fixes RTbug #1972.
1383            (ClassGenDialog.__init__): Color ramps are now instances
1384            already so we don't need to create any new objects.
1385            (ClassGenDialog.OnOK): Check for numGroups is no longer
1386            necessary because we never use it.
1387    
1388            * Thuban/UI/classifier.py: Fixes RTbug #1971.
1389            (Classifier.__BuildClassification, Classifier.__SetGridTable):
1390            Call Classification.SetFieldInfo() instead of SetFieldType.
1391    
1392            * Thuban/UI/renderer.py: Fixes RTbug #1971.
1393    
1394            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
1395            (MapCanvas.__init__): Subscribe to the idle time event. Set
1396            background color to white.
1397            (MapCanvas.OnPaint): Set a flag indicating that we should
1398            render the map during idle time. If we already have a bitmap
1399            just draw it now.
1400            (MapCanvas.OnIdle): New. Render the map only during idle time.
1401            This also fixes a problem with the busy cursor under gtk.
1402    
1403            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
1404            Fix calls to generate_singletons because the signature changed.
1405    
1406            * test/test_classification.py: Fix color references and
1407            change calls to Classification.[SetField|SetFieldType] to
1408            SetFieldInfo.
1409    
1410            * test/test_load.py: Fix color references.
1411    
1412            * test/test_load_0_2.py: Fix color references.
1413    
1414            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
1415            Change calls to Classification.[SetField|SetFieldType] to
1416            SetFieldInfo.
1417    
1418    2003-07-01  Frank Koormann   <[email protected]>
1419    
1420            MERGE from the greater-ms3 branch.
1421    
1422            * test/test_transientdb.py
1423            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
1424            New. Test join of two tables with partly equal column names.
1425    
1426            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
1427            If duplicates in left and right tables column names are found,
1428            append '_' (underscores) to the name until it is unique.
1429            Create always new internal names for the resulting table and reference
1430            columns in the join statement with <table>.<column>
1431    
1432    2003-07-01  Bernhard Herzog  <[email protected]>
1433    
1434            * test/test_transientdb.py
1435            (TestTransientTable.test_transient_joined_table_same_column_name):
1436            New. Test whether joining on columns with the same names in both
1437            tables works.
1438            
1439            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
1440            sure to use the right internal names even when joining on field
1441            with the same names in both tables. Also, detect duplicate names
1442            in the joined table correctly.
1443    
1444    2003-07-01  Frank Koormann   <[email protected]>
1445    
1446            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
1447            Reverse List of layers to render in same order as in desktop legend.
1448    
1449    2003-06-30  Jonathan Coles   <[email protected]>
1450    
1451            * Thuban/version.py (make_tuple): Takes a version string
1452            and splits it into a tuple of at most three integers.
1453            Used make_tuple() to make tuple versions of the version
1454            numbers.
1455    
1456            * Thuban/UI/about.py: Add Thuban email addresses.
1457    
1458    2003-06-30  Jonathan Coles   <[email protected]>
1459    
1460            * Thuban/version.py: SQLite/PySQLite version dependencies
1461            were too high.
1462    
1463    2003-06-30  Jonathan Coles   <[email protected]>
1464    
1465            * Thuban/version.py: Update version to 0.8.1
1466            
1467            * MANIFEST.in: Added Projections so that default.proj is
1468            included.
1469    
1470    2003-06-26  Jonathan Coles   <[email protected]>
1471    
1472            New About box with lots more information including library
1473            versions and credits. More/better version checking before
1474            Thuban starts.
1475    
1476            * Thuban/UI/about.py: New. New About box that displays
1477            library version information and credits.
1478    
1479            * Thuban/version.py: Added new 'versions' dictionary which
1480            contains the verions of various libraries which are checked
1481            when the module loads.
1482            (verify_versions): Check all version numbers and returns
1483            a list of errors.
1484    
1485            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
1486            Reset the status of the buttons as the situation warrants,
1487            but in a better more reliable way by not relying on the
1488            current status to determine what needs to change.
1489    
1490            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
1491            (verify_versions): Remove most of the code since it is
1492            now in Thuban.version.verify_versions.o
1493    
1494            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
1495            About box in Thuban.UI.about.
1496    
1497            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
1498            Returns the version of gdal library being used as a string.
1499    
1500            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
1501            Removed.
1502            (get_proj_version): Return the version of PROJ that the file
1503            was compiled with.
1504            (get_gtk_version): Return th version of GTK that the file
1505            was compiled with.
1506    
1507    2003-06-25  Jonathan Coles   <[email protected]>
1508    
1509            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
1510            of the SelectPropertiesDialog should be self so the window
1511            appears on top.
1512            (ClassGroupPropertiesCtrl.DoEdit): The parent
1513            of the SelectPropertiesDialog should be self so the window
1514            appears on top.
1515    
1516            * Thuban/UI/resource.py: Cleaned up how we determine file
1517            extensions.
1518            (GetImageResource): Return an wxImage from our Resources.
1519    
1520    2003-06-24  Jonathan Coles   <[email protected]>
1521    
1522            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
1523            Check that a layer has a classification before trying
1524            to get it. Raster layers don't have classifications.
1525    
1526    2003-06-23  Jonathan Coles   <[email protected]>
1527            
1528            * setup.py: Add Resources/XML to resource list.
1529        
1530    2003-06-23  Jonathan Coles   <[email protected]>
1531    
1532            * setup.cfg: Fix copyright dates
1533        
1534    2003-06-23  Jonathan Coles   <[email protected]>
1535    
1536            * MANIFEST.in: Update with Resources/XML
1537    
1538            * setup.py: Don't include Locale resources yet as we don't
1539            have any and it causes problems building the distribution
1540            for Windows. Update version to 0.8.0.
1541    
1542            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
1543    
1544            * Thuban/UI/mainwindow.py: Add blank line at the end because
1545            file was not being read correctly building the Windows
1546            distribution.
1547    
1548    2003-06-23  Jonathan Coles   <[email protected]>
1549    
1550            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
1551    
1552            * Thuban/version.py: Temporarily update longversion for
1553            the 0.8 release so that it doesn't have the cvs revision.
1554    
1555    2003-06-23  Jonathan Coles   <[email protected]>
1556    
1557            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
1558            to make sure that we don't create reentrant possibilities with
1559            wxYield.
1560    
1561            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
1562            directly to avoid the wxSafeYield() call which generates an
1563            OnPaint event causing infinite recursion. Don't try to catch
1564            exception anymore. This was for before there were limits on map
1565            scaling.
1566    
1567    2003-06-23  Bernhard Herzog  <[email protected]>
1568    
1569            Bug fix for RT #1961:
1570    
1571            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
1572            Register DerivedShapestores with the session
1573    
1574            * Thuban/Model/session.py (Session.Tables): Make sure each table
1575            is only listed once.
1576    
1577            * test/test_load.py (TestJoinedTable.test): Add check_format call.
1578            Update file contents to match the one written out.
1579    
1580    2003-06-20  Bernhard Herzog  <[email protected]>
1581    
1582            * test/xmlsupport.py (SaxEventLister.startElementNS)
1583            (SaxEventLister.endElementNS): Do not include the qname. Python
1584            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
1585            is (presumably incorrectly) None, whereas it's a string with the
1586            element name in the later versions.
1587    
1588            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
1589            (TestEventList.test_even_list_namespace): Update tests to reflect
1590            the new behaviour
1591            (TestEventList.test_even_list_id_normalization): Fix doc-string
1592    
1593    2003-06-20  Jonathan Coles   <[email protected]>
1594    
1595            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
1596            by deriving classes to determine if that layer supports shapes.
1597            (Layer): Override HasShapes and return true.
1598    
1599            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
1600            instead of a direct call to wx[Begin|End]CusyCursor().
1601            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
1602            table data.
1603    
1604            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
1605            New. Wrappers around the wxWindows functions that allow us to
1606            make additional calls such as wxYield which gives the native
1607            system a chance to update the cursor correctly.
1608    
1609            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
1610            instead of a direct call to wx[Begin|End]CusyCursor().
1611    
1612            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
1613            instead of a direct call to wx[Begin|End]CusyCursor().
1614            (MapCanvas.find_shape_at): Check if the current search layer
1615            support shapes, otherwise go on to the next layer.
1616    
1617            * test/test_layer.py: Add tests in each type of layer for
1618            HasClassification() and HasShapes()
1619    
1620  2003-06-20  Jonathan Coles   <[email protected]>  2003-06-20  Jonathan Coles   <[email protected]>
1621    
1622          * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after          * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26